/* "Libri più adottati" pages; cards and store tiles come from book-list.css */
.rankings-page { max-width: 980px; margin: 0 auto; text-align: left; }
.rankings-page h1 { font-size: 26px; margin: 8px 0 6px; }
.rankings-page h2 { font-size: 20px; margin: 28px 0 10px; }
.rankings-page .intro { font-size: 15px; color: #444; margin-bottom: 14px; }
.rankings-page .breadcrumb { background: none; padding: 0; margin: 0 0 6px; font-size: 13px; }
.rank-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.rank-groups::before, .rank-groups::after { display: none; }
.rank-group { border: 1px solid #e3e3e3; border-radius: 10px; padding: 12px 14px; background: #fff; }
.rank-group h2 { margin: 0 0 8px; font-size: 17px; }
.rank-group ul { list-style: none; margin: 0; padding: 0; }
.rank-group li { padding: 5px 0; border-top: 1px solid #f0f0f0; font-size: 14px; }
.rank-group li:first-child { border-top: 0; }
.rank-group .type-link { font-weight: 600; }
.rank-group .class-links { display: block; margin-top: 3px; }
.rank-chip { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 9px; border: 1px solid #d6d6d6; border-radius: 14px; font-size: 13px; color: #333; background: #fafafa; }
.rank-chip:hover { border-color: #3fa34d; color: #3fa34d; text-decoration: none; }
.rank-chip.is-current { background: #ce3939; border-color: #ce3939; color: #fff; }
.subject-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.subject-list::before, .subject-list::after { display: none; }
.subject-card { border: 1px solid #e3e3e3; border-radius: 10px; padding: 12px 14px; background: #fff; }
.subject-card h3 { font-size: 16px; margin: 0 0 4px; }
.subject-card .subject-meta { font-size: 12px; color: #777; margin-bottom: 6px; }
.subject-card ol { margin: 0 0 6px; padding-left: 20px; font-size: 14px; }
.subject-card ol li { margin-bottom: 3px; }
.subject-card .count { color: #777; font-size: 12px; white-space: nowrap; }
.subject-card .more { font-size: 13px; font-weight: 600; }
.rank-badge { display: inline-block; min-width: 26px; padding: 1px 7px; margin-right: 6px; border-radius: 12px; background: #3fa34d; color: #fff; font-weight: 700; font-size: 13px; text-align: center; }
.rank-share { font-size: 13px; color: #555; }
.rank-bar { display: block; height: 5px; margin-top: 4px; border-radius: 3px; background: #e8f3ea; overflow: hidden; max-width: 260px; }
.rank-bar > span { display: block; height: 100%; background: #3fa34d; }
.rank-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.rank-table th, .rank-table td { padding: 7px 8px; border-bottom: 1px solid #eee; vertical-align: top; }
.rank-table th { font-size: 12px; color: #777; font-weight: 600; text-align: left; }
.rank-table td.num { text-align: right; white-space: nowrap; color: #555; }
.rank-table .isbn { color: #888; font-size: 12px; }
.rank-table .pos { width: 40px; color: #777; }
.faq { margin-top: 10px; }
.faq details { border: 1px solid #e3e3e3; border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; background: #fff; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 8px 0 0; }
@media (max-width: 600px) {
  .rankings-page h1 { font-size: 21px; }
  .rank-table .col-publisher { display: none; }
}
.rank-chip .chip-count { color: #999; font-size: 11px; margin-left: 2px; }
.rank-chip.is-current .chip-count { color: #fde; }
.rank-group h2 a { color: inherit; }
.category-chips { margin: 0 0 16px; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.listing-grid::before, .listing-grid::after { display: none; }
.listing-card { display: flex; gap: 12px; padding: 12px; border: 1px solid #e3e3e3; border-radius: 10px; background: #fff; color: #333; text-decoration: none; }
.listing-card:hover, .listing-card:focus { border-color: #3fa34d; box-shadow: 0 2px 8px rgba(0,0,0,.06); text-decoration: none; color: #333; }
.listing-cover { flex: 0 0 80px; height: 112px; display: flex; align-items: center; justify-content: center; background: #f6f6f6; border-radius: 6px; overflow: hidden; }
.listing-cover img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.listing-cover .no-cover { color: #bbb; }
.listing-info { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.listing-title { font-weight: 600; font-size: 14px; color: #ce3939; line-height: 1.3; margin-bottom: 4px; }
.listing-meta { color: #666; line-height: 1.4; }
.listing-cta { margin-top: auto; padding-top: 6px; font-weight: 600; color: #3fa34d; }
.badge-adopted { align-self: flex-start; font-size: 11px; font-weight: 600; color: #2d7a38; background: #e8f3ea; border-radius: 10px; padding: 1px 8px; margin-bottom: 4px; }
.listing-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 22px 0 6px; }
.listing-pages a, .listing-pages span { min-width: 36px; padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px; text-align: center; font-size: 14px; background: #fff; }
.listing-pages a:hover { border-color: #3fa34d; color: #3fa34d; text-decoration: none; }
.listing-pages .is-current { background: #ce3939; border-color: #ce3939; color: #fff; font-weight: 600; }
.listing-pages .gap { border: 0; background: none; min-width: 0; }
@media (max-width: 600px) {
  .listing-grid { grid-template-columns: 1fr; }
}
