/* Book detail pages — old-school bibliographic card */

:root {
    --book-page-bg: #f7f6f3;
    --book-surface: #ffffff;
    --book-text: #222222;
    --book-text-muted: #5c5c5c;
    --book-border: #d8d4cc;
    --book-link: #2a4a6b;
    --book-link-hover: #1a3050;
}

.book-page {
    background: var(--book-page-bg);
    padding: 0.75rem 0 2rem;
}

.book-card {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 0.75rem;
}

.book-card .crumbs {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--book-text-muted);
}

.book-card .crumbs a {
    color: var(--book-link);
    text-decoration: none;
}

.book-card .crumbs a:hover {
    color: var(--book-link-hover);
    text-decoration: underline;
}

.book-card__grid {
    display: grid;
    grid-template-columns: 130px 1fr minmax(180px, 220px);
    gap: 1rem 1.25rem;
    align-items: start;
}

.book-card__cover {
    margin: 0;
}

.book-card__cover img {
    display: block;
    width: 100%;
    max-height: 130px;
    object-fit: contain;
    border: 1px solid var(--book-border);
    background: var(--book-surface);
}

.book-card__cover-placeholder {
    width: 100%;
    height: 130px;
    border: 1px solid var(--book-border);
    background: var(--book-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--book-text-muted);
    font-size: 0.75rem;
}

.book-card__header h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 0.35rem;
    color: var(--book-text);
}

.book-card__original-title {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--book-text-muted);
    margin: 0 0 0.5rem;
}

.book-card__meta-line {
    font-size: 0.8125rem;
    line-height: 1.45;
    margin: 0 0 0.65rem;
    color: var(--book-text);
}

.book-card__meta-line a {
    color: var(--book-link);
    text-decoration: none;
}

.book-card__meta-line a:hover {
    text-decoration: underline;
}

.book-card__meta-sep {
    color: var(--book-text-muted);
}

.annotation {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--book-text);
}

.annotation--clamped {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.annotation-details {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
}

.annotation-details summary {
    color: var(--book-link);
    cursor: pointer;
    list-style: none;
}

.annotation-details summary::-webkit-details-marker {
    display: none;
}

.annotation-details summary:hover {
    text-decoration: underline;
}

.book-card__author {
    font-size: 0.8125rem;
    line-height: 1.45;
    border-left: 1px solid var(--book-border);
    padding-left: 1rem;
}

.book-card__author-name {
    display: block;
    font-weight: 600;
    color: var(--book-link);
    text-decoration: none;
    margin-bottom: 0.2rem;
}

.book-card__author-name:hover {
    text-decoration: underline;
}

.book-card__author-years {
    display: block;
    color: var(--book-text-muted);
    margin-bottom: 0.5rem;
}

.book-card__series-siblings {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--book-border);
}

.book-card__series-siblings-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--book-text-muted);
    margin: 0 0 0.35rem;
}

.book-card__series-siblings ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.book-card__series-siblings li {
    margin-bottom: 0.2rem;
}

.book-card__series-siblings a {
    color: var(--book-link);
    text-decoration: none;
    font-size: 0.8125rem;
}

.book-card__series-siblings a:hover {
    text-decoration: underline;
}

.recommendations__block + .recommendations__block {
    margin-top: 1rem;
}

.recommendations__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.recommendations__list a {
    color: var(--book-link);
    text-decoration: none;
    font-size: 0.875rem;
}

.recommendations__list a:hover {
    text-decoration: underline;
}

.edition-block {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--book-border);
}

.edition-block__title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--book-text-muted);
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.meta-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.15rem 1rem;
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.meta-dl dt {
    color: var(--book-text-muted);
    margin: 0;
    font-weight: normal;
}

.meta-dl dd {
    margin: 0;
    color: var(--book-text);
}

.meta-dl dd a {
    color: var(--book-link);
    text-decoration: none;
}

.meta-dl dd a:hover {
    text-decoration: underline;
}

.rights-text {
    color: var(--book-text-muted);
}

.book-card__cover--hero img,
.book-card__cover--hero .book-card__cover-placeholder {
    max-height: 200px;
}

.book-card__main {
    min-width: 0;
}

.book-score {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
}

.book-score__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #c47a00;
}

.book-score__scale {
    color: var(--book-text-muted);
    font-size: 0.875rem;
}

.book-score__votes,
.book-score__reviews {
    color: var(--book-text-muted);
    font-size: 0.8125rem;
    text-decoration: none;
}

.book-score__reviews:hover {
    color: var(--book-link);
    text-decoration: underline;
}

.book-cta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 0.25rem;
}

.book-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    line-height: 1.2;
}

.book-cta--primary {
    background: #1a6b3c;
    color: #fff;
}

.book-cta--primary:hover {
    background: #145a32;
    color: #fff;
}

.book-cta--download {
    background: #2a4a6b;
    color: #fff;
}

.book-cta--download:hover {
    background: #1a3050;
    color: #fff;
}

.book-cta--cta {
    background: #6b4a1a;
    color: #fff;
}

.book-cta--disabled {
    background: #9a9a9a;
    color: #fff;
    cursor: default;
}

.book-cta__size {
    font-weight: 400;
    font-size: 0.75rem;
    opacity: 0.9;
}

.annotation-more {
    margin-top: 0.35rem;
    padding: 0;
    border: none;
    background: none;
    color: var(--book-link);
    font-size: 0.8125rem;
    cursor: pointer;
    text-decoration: underline;
}

.is-hidden {
    display: none !important;
}

.annotation--full {
    margin-top: 0.5rem;
}

.formats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.5rem;
}

.dl-format {
    display: inline-block;
    font-size: 0.8125rem;
    padding: 0.15rem 0.5rem;
    border: 1px solid var(--book-border);
    border-radius: 2px;
    background: var(--book-surface);
    color: var(--book-text);
    text-decoration: none;
    line-height: 1.4;
}

.dl-format:hover {
    background: #efede8;
    border-color: #bbbbbb;
    color: var(--book-text);
}

.dl-format strong {
    font-weight: 600;
}

.dl-format span {
    color: var(--book-text-muted);
}

.dl-format--disabled {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.75rem;
    margin-top: 0.35rem;
}

.action-link {
    color: var(--book-text-muted);
    text-decoration: none;
    border-bottom: 1px dotted #aaaaaa;
}

.action-link:hover {
    color: var(--book-link);
    border-bottom-color: var(--book-link);
}

.other-editions {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
}

.other-editions summary {
    color: var(--book-link);
    cursor: pointer;
    list-style: none;
}

.other-editions summary::-webkit-details-marker {
    display: none;
}

.other-editions-table {
    width: 100%;
    margin-top: 0.5rem;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.other-editions-table th,
.other-editions-table td {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--book-border);
    text-align: left;
}

.other-editions-table th {
    background: #efede8;
    font-weight: 600;
    color: var(--book-text-muted);
}

.rating-compact {
    font-size: 0.8125rem;
    color: var(--book-text-muted);
    margin: 0 0 0.5rem;
}

.below-fold {
    max-width: 1140px;
    margin: 1.5rem auto 0;
    padding: 0 0.75rem;
}

.below-fold__title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--book-text);
}

.rights-evidence-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    font-size: 0.8125rem;
}

.rights-evidence-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--book-border);
}

.rights-evidence-list li:last-child {
    border-bottom: none;
}

.comments-form textarea {
    width: 100%;
    font-size: 0.875rem;
    padding: 0.5rem;
    border: 1px solid var(--book-border);
    border-radius: 2px;
    resize: vertical;
    min-height: 4rem;
}

.comments-form button {
    font-size: 0.8125rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--book-border);
    border-radius: 2px;
    background: var(--book-surface);
    color: var(--book-text);
    cursor: pointer;
    margin-top: 0.35rem;
}

.comments-form button:hover {
    background: #efede8;
}

.comments-form-note {
    font-size: 0.75rem;
    color: var(--book-text-muted);
    margin-left: 0.5rem;
}

.comments-login-hint {
    font-size: 0.8125rem;
    color: var(--book-text-muted);
    margin-bottom: 1rem;
}

.comments-login-hint a {
    color: var(--book-link);
}

.comments-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comments-list li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--book-border);
    font-size: 0.875rem;
}

.comments-list__meta {
    font-size: 0.75rem;
    color: var(--book-text-muted);
    margin-bottom: 0.25rem;
}

.comments-list__author {
    font-weight: 600;
    color: var(--book-text);
}

.comments-list__replies {
    margin: 0.5rem 0 0 1rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--book-border);
    font-size: 0.8125rem;
}

.comments-empty {
    font-size: 0.8125rem;
    color: var(--book-text-muted);
}

.rights-evidence-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

@media (max-width: 768px) {
    .book-card__grid {
        grid-template-columns: 1fr;
    }

    .book-card__cover {
        justify-self: center;
        max-width: 160px;
    }

    .book-card__author {
        border-left: none;
        border-top: 1px solid var(--book-border);
        padding-left: 0;
        padding-top: 0.75rem;
    }

    .meta-dl {
        grid-template-columns: 35% 1fr;
    }
}

.meta-dl--characteristics {
    margin-top: 0.25rem;
}

.book-characteristics .edition-block__title {
    margin-bottom: 0.5rem;
}

.about-author__grid {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1rem;
}

.about-author__photo img,
.about-author__photo-placeholder {
    width: 96px;
    height: 96px;
    border: 1px solid var(--book-border);
    background: var(--book-surface);
    object-fit: cover;
}

.about-author__photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--book-text-muted);
}

.about-author__name {
    font-size: 1.05rem;
    margin: 0 0 0.25rem;
}

.about-author__original,
.about-author__years {
    color: var(--book-text-muted);
    font-size: 0.85rem;
    margin: 0 0 0.5rem;
}

.about-author__bio {
    margin: 0 0 0.75rem;
    line-height: 1.45;
}

.about-author__works ul {
    margin: 0.25rem 0 0;
    padding-left: 1.1rem;
}

.rating-compact--prominent {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.rating-compact__count {
    color: var(--book-text-muted);
}

.rating-form__stars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.5rem;
}

.rating-form__stars label {
    margin: 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.rating-form__submit {
    font-size: 0.85rem;
}

.rating-user-score {
    font-size: 0.9rem;
    color: var(--book-text-muted);
    margin-bottom: 0.5rem;
}

.comments-list__rating {
    color: #b8860b;
    margin-right: 0.35rem;
}

.annotation-details--staff {
    margin-top: 0.75rem;
    opacity: 0.85;
}

.text-profile__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.text-profile__intro {
    margin: 0.5rem 0 0.75rem;
    font-size: 0.95rem;
    color: var(--book-text-muted);
    line-height: 1.5;
}

.text-profile__verdict {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
}

.text-profile__heading {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.text-profile__metric + .text-profile__metric {
    margin-top: 0.65rem;
}

.text-profile__metric-head {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.text-profile__hint {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: var(--book-text-muted);
    line-height: 1.35;
}

.text-profile__hint--block {
    margin-bottom: 0.5rem;
}

.text-profile__tags {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
