/* /genres and /genres/<slug>. Builds on home.css and subpages.css. */
.gn-hero { padding: 56px 0 0; }
.gn-hero .hn-title { max-width: 860px; margin-top: 16px; }
.gn-sub { margin: 18px 0 0; max-width: 680px; font-size: 18px; line-height: 1.55; color: var(--hn-ink-soft); }
.gn-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.gn-ghost { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--hn-ink);
    background: #fff; box-shadow: 0 0 0 1px var(--hn-line), 0 4px 10px -6px rgba(24, 24, 27, .2); text-decoration: none; }
.gn-ghost:hover { color: var(--hn-ink); box-shadow: 0 0 0 1px var(--hn-ink-mute); }

.gn-section { padding-top: 96px; }
.gn-section--tight { padding-top: 48px; }
.gn-h2 { margin: 0 0 22px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -.03em; }
.gn-lead { margin: -10px 0 22px; max-width: 640px; font-size: 16px; color: var(--hn-ink-soft); }

.gn-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 20px; }
.gn-book { display: flex; gap: 20px; padding: 18px; border-radius: 20px; background: linear-gradient(180deg, #f3f5fa, #fff); box-shadow: 0 0 0 1px rgba(24, 24, 27, .05);
    text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.gn-book:hover { transform: translateY(-2px); color: inherit; box-shadow: 0 0 0 1px rgba(24, 24, 27, .08), 0 24px 40px -28px rgba(24, 24, 27, .4); }
.gn-book img { width: 120px; height: 180px; flex-shrink: 0; object-fit: cover; border-radius: 4px 9px 9px 4px; box-shadow: 0 14px 24px -14px rgba(24, 24, 27, .55); }
.gn-book-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gn-book-copy b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.gn-book-copy small { font-size: 13px; color: var(--hn-ink-soft); }
.gn-book-copy span { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--hn-ink-2); }
.gn-book-copy em { margin-top: auto; padding-top: 10px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--hn-blue-deep); }
.gn-book-copy em::after { content: " \2192"; }

.gn-voices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.gn-voices li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--hn-line); }
.gn-voices li > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.gn-voices b { font-size: 14.5px; font-weight: 600; }
.gn-voices small { font-size: 12.5px; color: var(--hn-ink-soft); }
.gn-more { display: inline-block; margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--hn-blue-deep); text-decoration: none; }
.gn-more::after { content: " \2192"; }
.gn-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.gn-prose { max-width: 760px; }
.gn-prose table { width: 100%; }

.gn-others { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.gn-others a { display: inline-flex; height: 38px; align-items: center; padding: 0 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--hn-line);
    font-size: 14px; font-weight: 500; color: var(--hn-ink-2); text-decoration: none; }
.gn-others a:hover { color: var(--hn-ink); box-shadow: 0 0 0 1px var(--hn-ink-mute); }

.gn-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.gn-tile { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; border-radius: 22px; background: linear-gradient(180deg, #f3f5fa, #fff);
    box-shadow: 0 0 0 1px rgba(24, 24, 27, .05); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.gn-tile:hover { transform: translateY(-2px); color: inherit; box-shadow: 0 0 0 1px rgba(24, 24, 27, .08), 0 24px 40px -28px rgba(24, 24, 27, .4); }
.gn-tile-covers { display: flex; gap: 10px; height: 120px; margin-bottom: 8px; }
.gn-tile-covers img { width: 80px; height: 120px; object-fit: cover; border-radius: 3px 7px 7px 3px; box-shadow: 0 10px 18px -10px rgba(24, 24, 27, .5); }
.gn-tile b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.gn-tile > span:last-child { font-size: 14.5px; line-height: 1.5; color: var(--hn-ink-soft); }

@media (max-width: 640px) {
    .gn-books { grid-template-columns: minmax(0, 1fr); }
    .gn-book { flex-direction: column; }
    .gn-book img { width: 140px; height: 210px; }
    .gn-grid { grid-template-columns: minmax(0, 1fr); }
}
