/* Visual language modelled on literal.club: white page, Libre Baskerville headings,
   Inter body, hairline #eee borders, flat book covers, green accent, light-grey bands. */
:root {
  --bg: #ffffff;
  --band: #f8f8f8;
  --card: #ffffff;
  --ink: #000000;
  --text: #444340;
  --muted: #8a8883;
  --line: #eeeeee;
  --green: #278458;
  --green-dark: #1f6b47;
  --green-soft: #e8f3ed;
  --chip: #f2f2f0;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --cover-r: 2px 4px 4px 2px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141413; --band: #1b1b19; --card: #1b1b19; --ink: #f4f2ee; --text: #cfccc5; --muted: #8f8c85;
    --line: #2b2a27; --green: #4bb383; --green-dark: #5cc794; --green-soft: #1d3127; --chip: #262523;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141413; --band: #1b1b19; --card: #1b1b19; --ink: #f4f2ee; --text: #cfccc5; --muted: #8f8c85;
  --line: #2b2a27; --green: #4bb383; --green-dark: #5cc794; --green-soft: #1d3127; --chip: #262523;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.wrap, main > section > *, .top-inner, .foot { max-width: 1160px; margin-left: auto; margin-right: auto; }
main > section { padding: 56px 24px; }
main > section.band { background: var(--band); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top { display: flex; align-items: center; gap: 20px; height: 72px; padding: 0 max(24px, calc((100% - 1160px) / 2)); }
.brand { font: 700 17px/1.1 var(--serif); color: var(--ink); text-decoration: none; white-space: nowrap; }
.search { flex: 1; max-width: 420px; margin-left: auto; }
.search input { width: 100%; padding: 9px 14px; border-radius: 5px; border: 1px solid var(--line); background: var(--band); color: var(--ink); font: inherit; font-size: 14px; }
.search input:focus { outline: 2px solid var(--green); outline-offset: 0; background: var(--card); }
.by { font-size: 14px; color: var(--text); text-decoration: none; white-space: nowrap; }
.by:hover { color: var(--green); }

/* hero */
.hero { text-align: center; padding-top: 72px !important; padding-bottom: 40px !important; overflow: hidden; }
h1 { font: 400 clamp(32px, 4.6vw, 48px)/1.3 var(--serif); color: var(--ink); margin: 0 auto 18px; max-width: 760px; letter-spacing: -0.01em; }
.lede { font-size: 17px; max-width: 600px; margin: 0 auto; }
.cloud { position: relative; height: 320px; max-width: 1160px; margin: 40px auto 0; }
.cloud button { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; transform: translate(-50%, -50%) scale(var(--s, 1)); transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .35s; }
.cloud img { width: 80px; aspect-ratio: 2/3; object-fit: cover; border-radius: var(--cover-r); background: var(--chip); box-shadow: 0 1px 2px rgb(0 0 0 / 8%); }
.cloud button:hover, .cloud button.on { transform: translate(-50%, -50%) scale(calc(var(--s, 1) * 1.18)); z-index: 2; }
.cloud button.on img { box-shadow: 0 10px 28px rgb(0 0 0 / 22%); }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; font-style: italic; font-family: var(--serif); }
.rotator { position: relative; margin: 28px auto 0; max-width: 640px; min-height: 120px; }
.rotator blockquote { margin: 0; }
.rotator blockquote p { font: 400 20px/1.5 var(--serif); color: var(--ink); margin: 0 0 10px; font-style: italic; }
.rotator blockquote p::before { content: "“"; } .rotator blockquote p::after { content: "”"; }
.rotator footer { font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.rotator footer a { font-weight: 600; color: var(--ink); text-decoration: none; }
.rotator footer a:hover { color: var(--green); }
.rotator .fade { animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.rot-dots { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.rot-dots button { width: 6px; height: 6px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; transition: width .2s; }
.rot-dots button[aria-selected="true"] { background: var(--green); width: 18px; border-radius: 3px; }

/* section heads */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
h2 { font: 400 28px/1.25 var(--serif); color: var(--ink); margin: 0; }
.section-head p { margin: 0; font-size: 14px; }

/* top 8 */
.top-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
.top-card { display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.top-card .cover-wrap { background: var(--band); border-radius: 6px; padding: 26px 0; display: grid; place-items: center; transition: background .2s; }
.top-card:hover .cover-wrap { background: var(--green-soft); }
.top-card img, .top-card .ph { width: 112px; aspect-ratio: 2/3; object-fit: cover; border-radius: var(--cover-r); background: var(--chip); box-shadow: 0 6px 18px rgb(0 0 0 / 14%); transition: transform .2s; }
.top-card:hover img { transform: translateY(-3px); }
.rank { font: 600 11px var(--sans); color: var(--green); letter-spacing: .08em; text-transform: uppercase; }
.title { font: 700 16px/1.3 var(--serif); color: var(--ink); margin: 0; }
.author { font-size: 14px; color: var(--muted); }
.count { font-size: 13px; }
.count b { color: var(--ink); font-weight: 600; }
.quote { font: italic 14px/1.5 var(--serif); margin: 2px 0 0; }
.quote cite { display: block; font: normal 12px var(--sans); color: var(--muted); margin-top: 4px; }
.buy { margin-top: 4px; }

.btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 5px; font-size: 14px; font-weight: 500; text-decoration: none; border: 1px solid var(--green); background: var(--green); color: #fff; cursor: pointer; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--green); color: var(--green); background: transparent; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--card); padding: 5px 11px; border-radius: 5px; font-size: 13px; cursor: pointer; color: var(--text); }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.chip .n { opacity: .55; margin-left: 5px; font-variant-numeric: tabular-nums; }
#sources { padding-left: 16px; border-left: 1px solid var(--line); }
.sort { margin-left: auto; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sort select { font: inherit; font-size: 14px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 6px 8px; }

/* library grid */
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 32px 22px; }
.card { cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.card img, .card .ph { width: 100%; max-width: 128px; aspect-ratio: 2/3; object-fit: cover; border-radius: var(--cover-r); background: var(--chip); box-shadow: 0 2px 8px rgb(0 0 0 / 10%); margin-bottom: 6px; transition: transform .2s, box-shadow .2s; }
.card:hover img, .card:hover .ph { transform: translateY(-3px); box-shadow: 0 8px 20px rgb(0 0 0 / 16%); }
.card .title { font-size: 14px; }
.card .author { font-size: 13px; }
.card .count { font-size: 12px; color: var(--muted); }
.ph { display: grid; place-items: center; font: 700 12px/1.25 var(--serif); color: var(--text); text-align: center; padding: 10px; background: linear-gradient(160deg, var(--green-soft), var(--chip)) !important; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.badge { font-size: 11px; padding: 2px 7px; border-radius: 4px; background: var(--chip); color: var(--text); white-space: nowrap; text-decoration: none; }
.badge.person { background: var(--green-soft); color: var(--green); font-weight: 600; }
.empty { text-align: center; padding: 30px; }
.more-wrap { text-align: center; margin-top: 36px; }

/* npr shelf */
.shelf { list-style: none; padding: 0 0 8px; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 120px; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; }
.shelf li { scroll-snap-align: start; }
.shelf img { width: 120px; aspect-ratio: 2/3; object-fit: cover; border-radius: var(--cover-r); box-shadow: 0 2px 8px rgb(0 0 0 / 10%); background: var(--chip); }
.shelf .t { font: 700 13px/1.3 var(--serif); color: var(--ink); margin: 10px 0 2px; }
.shelf .a { font-size: 12px; color: var(--muted); }
.shelf .links { display: flex; gap: 10px; font-size: 12px; margin-top: 4px; }
.shelf .links a { color: var(--green); text-decoration: none; font-weight: 600; }

/* drawer */
.drawer { border: 0; border-left: 1px solid var(--line); padding: 0; width: min(520px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; background: var(--card); color: var(--text); box-shadow: -10px 0 40px rgb(0 0 0 / 12%); }
.drawer::backdrop { background: rgb(0 0 0 / 30%); }
.drawer[open] { animation: slide .25s ease; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border-radius: 5px; border: 1px solid var(--line); background: var(--card); font-size: 20px; line-height: 1; cursor: pointer; }
#d-body { padding: 36px 30px 40px; }
.d-head { display: flex; gap: 22px; margin-bottom: 18px; align-items: flex-end; }
.d-head img, .d-head .ph { width: 112px; flex: none; aspect-ratio: 2/3; object-fit: cover; border-radius: var(--cover-r); box-shadow: 0 6px 18px rgb(0 0 0 / 14%); background: var(--chip); }
.d-head h2 { font-size: 24px; margin: 4px 0 6px; padding-right: 30px; }
.d-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 18px; }
.recs-h { font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 32px 0 0; }
.recs { list-style: none; padding: 0; margin: 10px 0 0; }
.recs li { border-top: 1px solid var(--line); padding: 14px 0; }
.recs .who { font-weight: 600; font-size: 14px; color: var(--ink); display: flex; justify-content: space-between; gap: 10px; }
.recs .who a { color: var(--muted); font-weight: 400; font-size: 13px; text-decoration: none; white-space: nowrap; }
.recs .who a:hover { color: var(--green); }
.recs p { margin: 6px 0 0; font: italic 15px/1.55 var(--serif); }
.disclose { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* footer */
.foot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; border-top: 1px solid var(--line); padding: 40px 24px 56px; font-size: 14px; }
.foot h3 { font: 700 15px var(--serif); color: var(--ink); margin: 0 0 8px; }
.foot p { margin: 0 0 8px; }
.foot a:hover { color: var(--green); }

@media (max-width: 980px) {
  .top-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  main > section { padding: 40px 16px; }
  .top { flex-wrap: wrap; height: auto; gap: 10px 14px; padding: 12px 16px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .by { margin-left: auto; }
  .hero { padding-top: 40px !important; }
  .cloud { height: 260px; }
  .cloud img { width: 60px; }
  .rotator blockquote p { font-size: 17px; }
  .top-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .top-card .cover-wrap { padding: 18px 0; }
  .top-card img, .top-card .ph { width: 84px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  #sources { padding-left: 0; border-left: 0; }
  .sort { margin-left: 0; }
  .foot { grid-template-columns: 1fr; gap: 16px; padding: 32px 16px 40px; }
  #d-body { padding: 30px 18px 32px; }
  .d-head img, .d-head .ph { width: 84px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* source marks + post meta */
.src { display: inline-flex; align-items: center; flex: none; }
.src svg { width: 14px; height: 14px; display: block; }
.src-x { color: var(--ink); }
.src-npr svg { width: 28px; height: 11px; }
.src-list { color: var(--green); }
.metaline { display: inline-flex; align-items: center; gap: 6px; font: 400 12px var(--sans); color: var(--muted); margin-top: 4px; }
.metaline > span:last-child { min-width: 0; }
.quote cite .metaline { display: flex; margin-top: 3px; }
.quote cite b { color: var(--text); font-weight: 600; }
.rot-meta { display: flex; justify-content: center; margin-top: 4px; }
.srcrow { display: inline-flex; gap: 6px; align-items: center; margin-top: 2px; }
.recs .metaline { display: flex; }
.shelf li[data-slug] { cursor: pointer; }
.shelf .why { font: 600 10px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin-top: 10px; }
.shelf .why + .t { margin-top: 3px; }

/* ===== v3: nav row, compact hero, avatars, top 10, filter groups ===== */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; margin: 0 auto 36px; max-width: 1160px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 var(--serif); color: var(--ink); text-decoration: none; }
.logo { width: 34px; height: 34px; flex: none; }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.nav .search { position: relative; flex: none; width: 190px; margin: 0; }
.nav .search svg { position: absolute; left: 10px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--muted); }
.nav .search input { padding: 7px 10px 7px 31px; font-size: 13px; background: var(--band); }
.catpick select { font: inherit; font-size: 13px; color: var(--ink); background: var(--band); border: 1px solid var(--line); border-radius: 5px; padding: 7px 8px; max-width: 170px; }
.hero { padding-top: 22px !important; padding-bottom: 28px !important; }
.hero h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.hero .lede { font-size: 15.5px; max-width: 640px; }
.hero .lede b { color: var(--ink); font-weight: 600; }
.cloud { height: 250px; margin-top: 24px; }
.rotator { margin-top: 14px; min-height: 0; }
.rotator blockquote p { font-size: 19px; margin-bottom: 8px; }
.rotator footer { align-items: center; }
.who-wrap { display: inline-flex; }
.av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; background: var(--chip); display: inline-grid; place-items: center; }
.av-fb { font: 600 10px var(--sans); color: var(--green); background: var(--green-soft); }
.rot-dots { margin-top: 12px; }

.top-grid { grid-template-columns: repeat(5, 1fr); gap: 36px 22px; }
.top-card .cover-wrap { padding: 20px 0; }
.top-card img, .top-card .ph { width: 96px; }
.top-card .title { font-size: 15px; }
.quote cite { display: flex; gap: 8px; align-items: flex-start; }
.quote cite .av { width: 22px; height: 22px; margin-top: 2px; }
.quote cite > span { display: flex; flex-direction: column; min-width: 0; }

.filters { flex-direction: column; align-items: stretch; gap: 14px; }
.fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.flabel { font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); width: 150px; flex: none; }
.fgroup .chips { flex: 1; }
#sources { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip .src svg { width: 13px; height: 13px; }
.chip .src-npr svg { width: 24px; height: 10px; }
.chip[aria-pressed="true"] .src-x { color: #fff; }

.recs li { display: flex; gap: 12px; }
.recs li > .av { width: 34px; height: 34px; margin-top: 2px; }
.rec-body { flex: 1; min-width: 0; }
.src-hn svg, .src-critic svg { width: 14px; height: 14px; }
.src-critic { color: var(--text); }

@media (max-width: 980px) { .top-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; margin-bottom: 22px; }
  .nav-tools { width: 100%; }
  .nav .search { flex: 1; width: auto; }
  .flabel { width: 100%; }
  .top-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== v4: logo-only nav, quote under headline, wide cloud, fold stats + logo strip ===== */
.logo { width: 40px; height: 40px; }
.nav { margin-bottom: 28px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.15; margin: 8px auto 18px; max-width: 900px; }
.rotator { margin: 0 auto; max-width: 680px; min-height: 150px; }
.rotator blockquote p { font-size: 20px; line-height: 1.45; margin-bottom: 14px; }
.rotator footer { display: inline-flex; align-items: center; gap: 12px; text-align: left; justify-content: center; }
.rotator .av { width: 46px; height: 46px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line); }
.rotator .av-fb { font-size: 14px; }
.who-text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.who-text a { font-weight: 600; color: var(--ink); text-decoration: none; }
.rot-meta { display: block; margin: 0; font-size: 12.5px; color: var(--muted); }
.rot-dots { margin-top: 16px; }
.cloud { height: 360px; max-width: 1260px; margin: 30px auto 0; }
.cloud img { width: 92px; }
.fold { margin: 34px auto 0; max-width: 860px; }
.fold-stat { font: 400 clamp(20px, 2.4vw, 28px)/1.35 var(--serif); color: var(--ink); margin: 0 0 10px; }
.fold-stat b { font-weight: 700; color: var(--green); }
.fold-sub { font-size: 14px; color: var(--muted); max-width: 620px; margin: 0 auto 26px; }
.logo-strip { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 26px; }
.logo-strip li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-strip li:hover { filter: none; opacity: 1; color: var(--ink); }
.logo-strip .lg { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; display: inline-flex; }
.logo-strip .lg svg { width: 24px; height: 24px; }
@media (max-width: 640px) {
  .cloud { height: 270px; }
  .cloud img { width: 66px; }
  .rotator blockquote p { font-size: 17px; }
  .logo-strip { gap: 10px 16px; }
}

/* v5: identical top-10 cards regardless of cover */
.top-grid { align-items: stretch; }
.top-card .cover-wrap { height: 186px; padding: 0; }
.top-card img, .top-card .ph { width: 96px; height: 144px; aspect-ratio: auto; }
.top-card .ph { padding: 10px; font-size: 12px; }
.top-card .title { min-height: 2.6em; }

.top-grid { grid-auto-rows: 1fr; }
.logo-strip .lg-txt { background: var(--ink); color: var(--bg); font: 700 10px/24px var(--sans); justify-content: center; letter-spacing: -.02em; }
.fold { margin-bottom: 8px; }
.fold-stat { margin-bottom: 22px; }

/* footer: three columns incl. Support reading */
.foot { grid-template-columns: 1.1fr 1.3fr .9fr; gap: 40px; }
.support { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.support li { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.support a { color: var(--green); font-weight: 600; text-decoration: none; }
.support a:hover { text-decoration: underline; }
.support span { color: var(--muted); font-size: 12px; }
@media (max-width: 980px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .foot { grid-template-columns: 1fr; } .support { grid-template-columns: 1fr; } }
.support-h { font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.support-3 { grid-template-columns: 1fr; gap: 10px; }

/* mobile polish */
@media (max-width: 640px) {
  .top-grid { grid-auto-rows: auto; gap: 26px 14px; }
  .top-card .quote, .top-card .srcrow { display: none; }
  .top-card .cover-wrap { height: 150px; }
  .top-card img, .top-card .ph { width: 80px; height: 120px; }
  .top-card .title { font-size: 14px; min-height: 0; }
  .top-card .count { font-size: 12px; }
  .top-card .btn { height: 32px; padding: 0 12px; font-size: 13px; }
  .cloud { height: 240px; margin-top: 18px; }
  .cloud img { width: 58px; }
  .cloud button:hover, .cloud button.on { transform: translate(-50%, -50%) scale(calc(var(--s, 1) * 1.08)); }
  .hero h1 { font-size: 32px; }
  .fold-stat { font-size: 20px; }
  .logo-strip { gap: 8px 14px; }
  .logo-strip li { font-size: 12px; }
  .logo-strip .lg, .logo-strip .lg svg { width: 20px; height: 20px; }
  .flabel { margin-bottom: -2px; }
  .filters .chips { gap: 5px; }
  .chip { padding: 4px 9px; font-size: 12px; }
}
.fresh { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: -10px 0 22px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb36d; box-shadow: 0 0 0 0 rgb(47 179 109 / 50%); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(47 179 109 / 45%); } 70% { box-shadow: 0 0 0 8px rgb(47 179 109 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(47 179 109 / 0%); } }
.views { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); white-space: nowrap; margin-right: 4px; }
.views svg { width: 14px; height: 14px; }
.shelf .ph { width: 120px; height: 180px; border-radius: var(--cover-r); }

/* ===== footer: banner + expandable details ===== */
.site-foot { max-width: 1160px; margin: 40px auto 0; padding: 0 24px 56px; }
.foot-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--band); border: 1px solid var(--line); border-radius: 12px; padding: 22px 26px; }
.foot-banner-copy { display: flex; align-items: flex-start; gap: 16px; }
.foot-banner .logo { width: 36px; height: 36px; flex: none; }
.foot-banner p { margin: 0; font: 400 16px/1.5 var(--serif); color: var(--ink); max-width: 760px; }
.foot-banner p b { color: var(--green); font-weight: 700; }
.built-by { flex: none; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; align-self: flex-end; }
.built-by:hover { color: var(--green); }
.foot-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.foot-details details { border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; background: var(--card); }
.foot-details summary { cursor: pointer; list-style: none; padding: 14px 0; font: 700 15px var(--serif); color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.foot-details summary::-webkit-details-marker { display: none; }
.foot-details summary::after { content: "+"; font: 400 20px var(--sans); color: var(--muted); transition: transform .2s; }
.foot-details details[open] summary::after { transform: rotate(45deg); }
.foot-details details > *:not(summary) { font-size: 14px; color: var(--text); margin: 0 0 12px; }
.foot-details details[open] { padding-bottom: 6px; }
@media (max-width: 760px) {
  .site-foot { padding: 0 16px 40px; }
  .foot-banner { flex-direction: column; align-items: flex-start; padding: 18px; }
  .built-by { align-self: flex-start; }
  .foot-details { grid-template-columns: 1fr; }
}
.built-by { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; color: var(--muted); }
.built-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.built-who { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 600; transition: border-color .2s, color .2s; }
.built-by:hover .built-who { border-color: var(--ink); }
.built-av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; }
.built-av-fb { background: var(--green); color: #fff; font: 700 13px var(--sans); }
.built-x { width: 14px; height: 14px; color: var(--ink); }
@media (max-width: 760px) { .built-by { align-items: flex-start; } }
.foot-banner p { font-size: 20px; line-height: 1.4; }
.foot-banner-copy { align-items: center; }
.foot-banner p { white-space: nowrap; font-size: 20px; }
.foot-banner p .dot { color: var(--muted); margin: 0 10px; }
@media (max-width: 760px) { .foot-banner p { white-space: normal; font-size: 18px; } }
.foot-banner p .it { white-space: nowrap; }
@media (max-width: 760px) { .foot-banner p .it { display: block; } .foot-banner p .dot { display: none; } }
.az-note { font-size: 11px; color: var(--muted); margin: 10px 0 0; }
.foot-disclose { font-size: 12px; color: var(--muted); margin: 12px 0 0; text-align: left; }

/* ---- mobile touch-ups (v46) ---- */
@media (max-width: 640px) {
  /* nav on one row */
  .nav { flex-wrap: nowrap; gap: 10px; margin-bottom: 24px; }
  .nav .brand .logo { width: 34px; height: 34px; }
  .nav-tools { width: auto; flex: 1; min-width: 0; justify-content: flex-end; gap: 6px; }
  .nav .search { flex: 1; min-width: 0; width: auto; }
  .nav .catpick select { max-width: 136px; font-size: 13px; padding-top: 7px; padding-bottom: 7px; }
  .nav .views { display: none !important; }
  /* hero */
  .hero h1 { font-size: 34px; line-height: 1.1; }
  .rotator blockquote > p { font-size: 18px; }
  .rot-dots { gap: 4px; }
  .rot-dots button { width: 5px; height: 5px; }
  .cloud { height: 200px; margin-top: 14px; }
  .cloud img { width: 74px; }
  .cloud button:hover, .cloud button.on { transform: translate(-50%, -50%) scale(calc(var(--s, 1) * 1.05)); z-index: 4; }
  .fold-stat { font-size: 20px; }
  /* fewer logos: the first six, in a neat grid */
  .logo-strip { display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; gap: 10px 28px; }
  .logo-strip li:nth-child(n+7) { display: none; }
  /* library filters: one swipeable row per group */
  .filters, .fgroup, .filters .chips { min-width: 0; max-width: 100%; }
  .fgroup { display: block; }
  .fgroup .flabel { display: block; margin-bottom: 6px; }
  .filters .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin: 0 -16px; padding: 0 16px 2px; scroll-padding: 0 16px;
    mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%); }
  .filters .chips::-webkit-scrollbar { display: none; }
  .filters .chips > * { flex: none; }
  .fgroup .sort { display: flex; margin-top: 10px; }
}
