/* Book Boy: mobile first. Covers carry the colour; the interface stays quiet. */
:root {
  --ink: #17161C; --ink-2: #4E4B57; --ink-3: #5E5B66;
  --paper: #F7F5F0; --card: #FFFFFF; --line: #DCD8CF; --line-2: #EFECE6;
  --accent: #3B2ED0; --accent-dark: #2A1FA8; --sun: #FFD23F;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Fraunces, Georgia, serif;
  --r: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--body);
       -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden;
                   clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
main { flex: 1 0 auto; }

/* Header */
.top { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.logo { font: 800 24px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
            color: var(--ink); border-radius: 12px; background: none; border: 0; cursor: pointer; }
.icon-btn:hover { background: rgba(23,22,28,.06); color: var(--ink); }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h2 { font-size: 24px; font-weight: 800; }
.section { padding-top: 36px; }
.section > h2 { margin-bottom: 14px; }
.muted { color: var(--ink-2); }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px;
       border-radius: var(--r); font: 800 18px/1 var(--display); text-decoration: none; cursor: pointer;
       border: 2px solid var(--ink); width: 100%; padding: 0 20px; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 4px 0 var(--ink); }
.btn-primary:hover { color: #fff; background: var(--accent-dark); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn-ghost { background: var(--card); color: var(--ink); font-family: var(--body); font-weight: 700; font-size: 16px; }
.btn-ghost:hover { color: var(--ink); background: #fff8dc; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.chip { min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--line);
        display: inline-flex; align-items: center; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
a.chip:hover { border-color: var(--ink); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Home ---------- */
.home { display: flex; flex-direction: column; min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); }
.home-main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 8px 0 24px; }
.home-title { font-size: clamp(40px, 11vw, 64px); font-weight: 800; line-height: 1.0; letter-spacing: -0.03em; display: block; }
.home-sub { margin: 0; font-size: 17px; color: var(--ink-2); max-width: 30em; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.picks:empty { display: none; }
.pick { min-height: 40px; padding: 0 6px 0 12px; border-radius: 20px; background: var(--ink); color: #fff;
        display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; max-width: 100%; }
.pick-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick svg { flex-shrink: 0; }
.pick button { width: 30px; height: 30px; border: 0; border-radius: 15px; background: #3A3942; color: #fff;
               display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; flex-shrink: 0; }
.pick button:hover { background: #55535F; }

.search { position: relative; }
.field { height: 64px; background: var(--card); border: 2px solid var(--ink); border-radius: 18px; display: flex;
         align-items: center; gap: 12px; padding: 0 8px 0 18px; box-shadow: 0 4px 0 var(--ink); }
.field:focus-within { border-color: var(--accent); }
.search.open .field { border-radius: 18px 18px 0 0; box-shadow: none; border-color: var(--accent); }
.field input { flex: 1; border: 0; outline: none; background: transparent; font: 500 18px var(--body);
               color: var(--ink); min-width: 0; height: 100%; }
.field input::placeholder { color: #6B6875; }
.field input::-webkit-search-cancel-button { display: none; }
.suggest { position: absolute; left: 0; right: 0; top: 62px; z-index: 20; background: var(--card);
           border: 2px solid var(--accent); border-top: 1px solid #E7E4DC; border-radius: 0 0 18px 18px;
           box-shadow: 0 18px 36px rgba(23,22,28,.14); overflow: hidden; max-height: 60vh; overflow-y: auto; }
.suggest[hidden] { display: none; }
.suggest-head { padding: 12px 16px 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em;
                text-transform: uppercase; color: var(--ink-3); }
.suggest-head + .opt { border-top: 0; }
.opt { width: 100%; min-height: 60px; border: 0; background: transparent; display: flex; align-items: center;
       gap: 12px; padding: 8px 16px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.opt[aria-selected="true"], .opt:hover { background: #EEEBFF; }
.opt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.opt-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt-sub { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt-kind { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
            border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; }
.opt-thumb { width: 36px; height: 54px; border-radius: 3px; flex-shrink: 0; object-fit: cover; background: #E7E4DC; }
.opt-avatar { width: 40px; height: 40px; border-radius: 20px; background: var(--ink); color: #fff; flex-shrink: 0;
              display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.suggest-empty { padding: 16px; color: var(--ink-2); font-size: 15px; }

.go { display: none; flex-direction: column; gap: 10px; }
.go.show { display: flex; }
.search.open ~ .go.show { display: none; }
.go-note { margin: 0; font-size: 14px; color: var(--ink-2); text-align: center; }
@media (max-width: 599px) {
  /* On phones the button lives at the bottom of the screen, under your thumb. */
  .go.show { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
             background: var(--card); border-top: 1px solid #E7E4DC; z-index: 30;
             box-shadow: 0 -8px 24px rgba(23,22,28,.06); }
  .home-page.has-picks .home { padding-bottom: 140px; }
}
.fan { position: relative; height: 250px; overflow: hidden; margin: 0 -20px; pointer-events: none; }
.fan .cover { position: absolute; width: 104px; box-shadow: 0 14px 28px rgba(23,22,28,.22); }
.fan .cover:nth-child(1) { left: calc(50% - 225px); bottom: 10px; transform: rotate(-14deg); }
.fan .cover:nth-child(2) { left: calc(50% - 153px); bottom: 40px; transform: rotate(-7deg); }
.fan .cover:nth-child(3) { left: calc(50% - 75px); bottom: 60px; transform: rotate(0deg); z-index: 2; }
.fan .cover:nth-child(4) { left: calc(50% + 1px); bottom: 38px; transform: rotate(7deg); }
.fan .cover:nth-child(5) { left: calc(50% + 77px); bottom: 12px; transform: rotate(13deg); }
.fan .cover:nth-child(6) { left: calc(50% + 145px); bottom: -30px; transform: rotate(20deg); }
.fan .cover:nth-child(7) { left: calc(50% - 285px); bottom: -60px; transform: rotate(-22deg); }
.home-foot { text-align: center; font-size: 13px; color: var(--ink-2); padding: 14px 0 22px; }

/* Loading overlay */
.loading { position: fixed; inset: 0; z-index: 100; background: rgba(247,245,240,.96); display: flex;
           flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px; text-align: center; }
.loading[hidden] { display: none; }
.loading p { font: 800 24px/1.1 var(--display); margin: 0; }
.loading .books { display: flex; gap: 8px; align-items: flex-end; height: 70px; }
.loading .books span { width: 18px; border-radius: 3px; animation: bob 1s ease-in-out infinite; }
.loading .books span:nth-child(1) { height: 56px; background: #1F2A5C; }
.loading .books span:nth-child(2) { height: 66px; background: #E8A33D; animation-delay: .12s; }
.loading .books span:nth-child(3) { height: 48px; background: #7A1E2B; animation-delay: .24s; }
.loading .books span:nth-child(4) { height: 60px; background: #2F5D50; animation-delay: .36s; }
@keyframes bob { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .loading .books span { animation: none; } }

/* ---------- Covers ---------- */
.cover { position: relative; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: var(--c, #1F2A5C);
         box-shadow: 0 10px 22px rgba(23,22,28,.18); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
/* Title text sits under the image, so a cover that fails to load still reads well. */
.cover.has-img img { position: absolute; inset: 0; z-index: 2; }
.cover.has-img::after { display: none; }
.cover.drawn { padding: 10%; display: flex; flex-direction: column; justify-content: space-between; color: #F6EFD9; }
.cover.drawn.light { color: var(--ink); }
.cover.drawn::after { content: ""; position: absolute; right: -22%; bottom: -14%; width: 80%; aspect-ratio: 1;
                      border-radius: 50%; background: rgba(255,255,255,.22); }
.cover.drawn .t { position: relative; z-index: 1; font: 600 1.1em/1.05 var(--serif); }
.cover.drawn .a { position: relative; z-index: 1; font-size: .55em; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }

/* ---------- Results ---------- */
.you-liked { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 4px; }
.you-liked .tag { min-height: 36px; padding: 0 12px; border-radius: 18px; background: var(--ink); color: #fff;
                  display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; }
.you-liked .add { min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1.5px dashed #8A8792; color: var(--ink);
                  display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; text-decoration: none; }
.results-title { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0; }
.tabs { display: flex; gap: 6px; background: #ECE9E2; padding: 4px; border-radius: 14px; overflow-x: auto; }
.tab { flex: 1 0 auto; min-height: 40px; border: 0; border-radius: 10px; background: transparent; font: 500 14px var(--body);
       color: var(--ink-2); padding: 0 12px; cursor: pointer; white-space: nowrap; max-width: 60%;
       overflow: hidden; text-overflow: ellipsis; }
.tab[aria-selected="true"] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(23,22,28,.12); }
.top-match { margin-top: 20px; padding: 18px; border-radius: 22px; background: var(--c); color: #fff; display: flex; gap: 16px;
             text-decoration: none; box-shadow: 0 16px 32px rgba(23,22,28,.22); position: relative; overflow: hidden; }
.top-match::before { content: ""; position: absolute; inset: 0; background: rgba(10,10,20,.45); }
.top-match > * { position: relative; }
.top-match .cover { width: 120px; flex-shrink: 0; box-shadow: 0 10px 22px rgba(0,0,0,.35); }
.top-match .info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.badge { align-self: flex-start; background: var(--sun); color: var(--ink); font-size: 11px; font-weight: 700;
         letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.top-match .t { font: 800 24px/1.02 var(--display); color: #fff; }
.top-match .a { font-size: 14px; color: #E6E6F0; }
.top-match .w { font-size: 14px; line-height: 1.4; color: #FBF7EC; }
.top-match .more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--sun); }
.top-match:hover { color: #fff; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 26px; padding-top: 28px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); min-width: 0; }
.card:hover { color: var(--ink); }
.card:hover .cover { transform: translateY(-3px); }
.card .cover { transition: transform .15s ease; font-size: 17px; }
.card .t { font-size: 16px; font-weight: 600; line-height: 1.2; margin-top: 4px; }
.card .a { font-size: 13px; color: var(--ink-3); }
.card .why { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--ink); background: #E9E7EE;
             padding: 4px 8px; border-radius: 6px; line-height: 1.35; }
.card[hidden] { display: none; }
.empty { padding: 40px 0; text-align: center; }

/* ---------- Book page ---------- */
.hero { background: var(--hero, #E4E7F3); padding-bottom: 28px; }
.crumbs { font-size: 13px; color: var(--ink-2); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); }
.hero-body { padding-top: 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.hero .cover { width: 184px; box-shadow: 0 24px 44px rgba(23,22,28,.35); font-size: 28px; }
.hero h1 { font-size: clamp(34px, 9vw, 52px); font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; }
.byline { margin: 0; font-size: 17px; }
.byline a { font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pill { font-size: 13px; font-weight: 500; background: var(--card); padding: 6px 10px; border-radius: 8px; }
.award { display: flex; align-items: center; gap: 8px; background: var(--sun); padding: 8px 12px; border-radius: 10px;
         font-size: 13px; font-weight: 600; text-align: left; }
.cta { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.prose p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; }
.label-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.label-row h2 { margin: 0; }
.ok { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1E6B45;
      background: #DDF3E6; padding: 4px 8px; border-radius: 6px; }
.quote { background: var(--card); border-radius: var(--r); padding: 16px; margin-top: 4px; }
.quote p { font-size: 16px; line-height: 1.6; margin: 0 0 8px; }
.quote small { color: var(--ink-3); font-size: 13px; }
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fit div { background: var(--card); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.fit span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.fit strong { font-size: 16px; font-weight: 600; line-height: 1.3; }
.rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rail { display: flex; gap: 14px; overflow-x: auto; padding: 4px 20px 16px; margin: 0 -20px;
        scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.rail .card { width: 132px; flex-shrink: 0; scroll-snap-align: start; }
.rail .card .why { background: none; padding: 0; font-weight: 400; color: var(--ink-2); font-size: 13px; }
.facts { margin: 0; background: var(--card); border-radius: var(--r); padding: 4px 16px; }
.facts div { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.facts div:last-child { border-bottom: 0; }
.facts dt { width: 116px; flex-shrink: 0; font-size: 14px; color: var(--ink-3); }
.facts dd { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.4; min-width: 0; }
.author-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.avatar { width: 64px; height: 64px; border-radius: 32px; background: var(--c, #1F2A5C); color: var(--sun);
          display: flex; align-items: center; justify-content: center; font: 800 22px var(--display); flex-shrink: 0; }
.author-head a { font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; }
.author-head a:hover { text-decoration: underline; }
.box { background: var(--card); border-radius: var(--r); padding: 16px; }
.box h3 { font: 700 16px var(--body); letter-spacing: 0; margin-bottom: 10px; }
.box ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.get { display: flex; flex-direction: column; gap: 10px; }
.get a { min-height: 64px; background: var(--card); border-radius: var(--r); padding: 12px 16px; display: flex;
         align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.get a:hover { box-shadow: 0 0 0 2px var(--ink) inset; color: var(--ink); }
.get .dot { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; }
.dot.green { background: #DDF3E6; } .dot.blue { background: #E4E7F3; } .dot.yellow { background: #FFE7A3; }
.get .txt { flex: 1; display: flex; flex-direction: column; }
.get .txt strong { font-weight: 600; }
.get .txt span { font-size: 13px; color: var(--ink-3); }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--card); border-radius: 14px; padding: 14px 16px; }
.faq summary { font-weight: 600; cursor: pointer; min-height: 24px; list-style-position: outside; }
.faq details p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: #33313A; }
.credits { margin: 32px 0 36px; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.credits a { color: var(--ink-3); }

/* Footer */
.foot { background: var(--ink); color: #C9C6D0; padding: 28px 0 36px; font-size: 13px; line-height: 1.6; margin-top: 40px; }
.foot a { color: #E6E3EE; }
.home-page .foot { margin-top: 0; }

/* Wider screens: still a phone-first layout, just roomier. */
@media (min-width: 760px) {
  .hero-body { flex-direction: row; text-align: left; align-items: flex-end; gap: 32px; }
  .hero-body .meta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
  .pills { justify-content: flex-start; }
  .hero .cover { width: 220px; flex-shrink: 0; }
}

/* ---------- Browse pages ---------- */
.lede { font-size: 17px; line-height: 1.55; margin: 0 0 8px; max-width: 36em; }
.small { font-size: 14px; margin: 0 0 18px; }
.ranked { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ranked-item { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: var(--r);
               padding: 12px 14px 12px 12px; text-decoration: none; color: var(--ink); }
.ranked-item:hover { box-shadow: 0 0 0 2px var(--ink) inset; color: var(--ink); }
.rank { font: 800 22px/1 var(--display); width: 30px; flex-shrink: 0; text-align: center; color: var(--accent); }
.rank.year { font-size: 15px; width: 42px; color: var(--ink-2); }
.ranked-cover { width: 64px; flex-shrink: 0; font-size: 11px; }
.ranked-cover .cover { box-shadow: 0 6px 14px rgba(23,22,28,.18); }
.ranked-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ranked-info .t { font-weight: 700; font-size: 16px; line-height: 1.25; }
.ranked-info .a { font-size: 13px; color: var(--ink-3); }
.mini-award { align-self: flex-start; font-size: 12px; font-weight: 600; background: var(--sun); padding: 2px 7px; border-radius: 6px; }
.also { font-size: 13px; color: var(--ink-2); }
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (min-width: 600px) { .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { background: var(--card); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 12px;
        text-decoration: none; color: var(--ink); min-height: 44px; }
.tile:hover { box-shadow: 0 0 0 2px var(--ink) inset; color: var(--ink); }
.tile-covers { display: flex; height: 96px; align-items: flex-end; }
.tile-covers .cover { width: 58px; font-size: 9px; box-shadow: 0 6px 14px rgba(23,22,28,.2); }
.tile-covers .cover + .cover { margin-left: -18px; }
.tile-covers .cover:nth-child(2) { transform: translateY(-6px) rotate(3deg); }
.tile-covers .cover:nth-child(3) { transform: rotate(7deg); }
.tile-name { font: 800 17px/1.15 var(--display); }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 20px; }
.az a, .az span { width: 40px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
                  border-radius: 10px; font-weight: 700; text-decoration: none; }
.az a { background: var(--card); color: var(--ink); }
.az a[aria-current="page"] { background: var(--ink); color: #fff; }
.az span { color: #B9B5C0; }
.name-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 20px; }
.name-list li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.name-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.name-list a:hover { text-decoration: underline; }

/* Homepage: browse below the fold */
.browse { padding-top: 8px; padding-bottom: 24px; }
.see-all { font-size: 14px; font-weight: 600; white-space: nowrap; }
a.chip.theme { background: #EEEBFF; border-color: transparent; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 12px; }
.foot-nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.foot-nav a:hover { text-decoration: underline; }

/* ---------- Brand: shelf of spines ---------- */
:root { --indigo: #3B2ED0; --sun: #FFD23F; --amber: #E8A33D; --coral: #E85D3F; --teal: #2BB39A; }
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.logo-word { font: 800 23px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.logo .lb { color: var(--indigo); } .logo .lo { color: var(--amber); } .logo .ly { color: var(--coral); }
.foot-logo .logo-word { color: #fff; font-size: 20px; }
.foot-logo .lb { color: #8F86FF; } .foot-logo .lo { color: var(--sun); }
.foot-logo .logo-mark { box-shadow: 0 0 0 1px rgba(255,255,255,.18); border-radius: 8px; }

/* Each pick gets its own spine colour, carried through to the results. */
.pick { box-shadow: inset 5px 0 0 var(--pc, var(--indigo)); padding-left: 14px; }
.pick-ico { color: var(--pc); display: inline-flex; filter: brightness(1.35) saturate(1.1); }
.you-liked .tag { box-shadow: inset 5px 0 0 var(--pc); padding-left: 14px; }
.p0 { --pc: var(--indigo); --tint: #E8E6FB; --tint-ink: #2A1FA8; }
.p1 { --pc: var(--coral); --tint: #FCE3DC; --tint-ink: #8E2E19; }
.p2 { --pc: var(--teal); --tint: #D9F3EE; --tint-ink: #12594C; }
.p3 { --pc: var(--amber); --tint: #FDEFD2; --tint-ink: #6B4A07; }
.p4 { --pc: #8F86FF; --tint: #EEEBFF; --tint-ink: #3C3489; }
.card .why[class*=" p"] { background: var(--tint); color: var(--tint-ink); }
.card .why.both { background: #FFF1B8; color: #5C4600; }
.tabs { scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab .dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--pc); margin-right: 6px; vertical-align: 1px; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.title-row .share { flex-shrink: 0; }

/* Theme colours */
a.chip.theme.t0 { background: #E8E6FB; color: #2A1FA8; }
a.chip.theme.t1 { background: #FCE3DC; color: #8E2E19; }
a.chip.theme.t2 { background: #D9F3EE; color: #12594C; }
a.chip.theme.t3 { background: #FDEFD2; color: #6B4A07; }
.tile { position: relative; overflow: hidden; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--indigo); }
.tile:nth-child(4n+2)::before { background: var(--coral); }
.tile:nth-child(4n+3)::before { background: var(--teal); }
.tile:nth-child(4n+4)::before { background: var(--amber); }
.ranked li:nth-child(4n+2) .rank { color: #C8452C; }
.ranked li:nth-child(4n+3) .rank { color: #138A74; }
.ranked li:nth-child(4n+4) .rank { color: #A86F0A; }

/* Loading: the logo's spines bounce */
.loading .books span:nth-child(1) { background: var(--indigo); }
.loading .books span:nth-child(2) { background: var(--sun); }
.loading .books span:nth-child(3) { background: var(--coral); }
.loading .books span:nth-child(4) { background: var(--teal); transform-origin: bottom center; rotate: 12deg; }

/* Share */
.cta-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.share { position: relative; }
.share > summary { list-style: none; }
.share > summary::-webkit-details-marker { display: none; }
.share-btn { gap: 8px; padding: 0 18px; min-height: 52px; width: auto; }
.title-row .share-btn, .list-share .share-btn { min-height: 44px; font-size: 15px; border-width: 1.5px; }
.share-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 200px; background: var(--card);
              border-radius: 14px; box-shadow: 0 18px 40px rgba(23,22,28,.18), 0 0 0 1px rgba(23,22,28,.06);
              padding: 6px; display: flex; flex-direction: column; text-align: left; }
.share-menu a, .share-menu button { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: 10px;
              font: 500 15px var(--body); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
.share-menu a:hover, .share-menu button:hover { background: #F1EFE8; color: var(--ink); }
.list-share { margin: 10px 0 16px; }
.list-share .share-menu { left: 0; right: auto; }
