/* Anchored to .hero-slot (position: relative, per style-common.css) rather
   than left in .hero-text's normal flow, so it sits at the hero's actual
   bottom edge regardless of how tall the title/blurb above it are, instead
   of just trailing whatever height they add up to. bottom:0 alone would only
   reach .hero-slot's own edge, which sits --hero-padding-bottom above the
   hero's true bottom border; subtracting it cancels that inset, the same
   technique .hero-slot > .hero-status-pill uses in
   style-lost-ground-detail.css, landing the strip flush with the hero's
   real bottom edge instead. Sizing to its own content (rather than
   stretching to .hero-text's, narrower at smaller breakpoints) also lets it
   extend past .hero-text's right edge. */
.stat-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: absolute;
    left: 0;
    bottom: calc(6px - var(--hero-padding-bottom));
    width: max-content;
    gap: 14px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.stat-strip .stat-divider {
    color: var(--accent);
    font-size: 11px;
}

.stat-strip .stat-year {
    font-size: 15px;
}

/* =====================
    Release History Table
   ===================== */

/* Overrides style-detail-page.css's default .detail-content p margin. */
.detail-content p {
    margin-bottom: 28px;
}

.recovery-main p {
    color: var(--text-subtle);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 28px;
}

.release-history-table {
    border-collapse: collapse;
    font-size: 0.95rem;
}

.release-history-table th,
.release-history-table td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.release-history-table th {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    text-align: center;
}

.release-history-table td {
    color: var(--text-subtle);
    width: 1%;
    white-space: nowrap;
}

.release-history-table td {
    text-align: center;
}

.release-history-table tbody tr:last-child td {
    border-bottom: none;
}

/* =====================
    Digital Availability
   ===================== */

.digital-availability {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 28px;
}

.digital-region-title {
    margin: 0 0 16px 0;
    font-family: "Newsreader", serif;
    font-size: 1.2rem;
    font-weight: 500;
}

.digital-services {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.digital-service {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-subtle);
}

.digital-service-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    flex-shrink: 0;
    color: #15803d;
}

.digital-region .no-releases-note {
    text-align: left;
}

.digital-region-note {
    margin: 16px 0 0 0;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-subtle);
    text-align: left;
}

.digital-region-note p {
    margin: 0;
}

.digital-region-note p + p {
    margin-top: 16px;
}

/* =====================
    Drawer
   ===================== */

.recovery-drawer {
    padding-bottom: 48px;
}

.drawer-section h3 {
    margin: 0 0 16px 0;
}

.box-set-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.box-set-title {
    margin: 0 0 16px 0;
    font-size: 1.05rem;
    font-weight: 600;
}

/* =====================
    Cover Carousel
   ===================== */

.cover-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
}

.cover-nav {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--panel);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-muted);
    transition: border-color .2s ease, color .2s ease;
}

.cover-nav:hover {
    border-color: var(--hover-border);
    color: var(--accent);
}

.cover-nav i {
    width: 15px;
    height: 15px;
    stroke-width: 1.8;
}

.cover-image-trigger {
    display: block;
    background: none;
    border: none;
    padding: 0;
    cursor: zoom-in;
}

.cover-image {
    display: block;
    width: 190px;
    max-width: 100%;
    aspect-ratio: 300 / 428;
    object-fit: cover;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

/* =====================
    Release Stats
   ===================== */

.release-stats-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.release-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
}

.back-cover-note {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-faint);
    text-align: center;
}

.no-releases-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-faint);
    text-align: center;
}

.digital-check-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    vertical-align: -3px;
    margin-right: 6px;
    color: var(--accent);
}

.release-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-subtle);
}

.release-stat-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    flex-shrink: 0;
}

.release-stat-yes {
    color: #15803d;
}

.release-stat-no {
    color: #b91c1c;
}

.release-stat-unknown {
    color: var(--text-faint);
}

.language-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.language-bar-split {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
}

.language-bar-split .language-group:first-child {
    justify-self: end;
}

.language-bar-split .language-group:last-child {
    justify-self: start;
}

.language-icon {
    width: 13px;
    height: 13px;
    stroke-width: 2;
    color: var(--text-faint);
}

.language-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.language-divider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: var(--accent);
    font-size: 11px;
    text-transform: none;
}

.language-bar-divider {
    width: 28px;
    height: 1px;
    background: var(--border-color);
    margin: 0 auto;
}

/* =====================
    Image Modal Navigation
   ===================== */

.artifact-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--panel);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text);
    z-index: 1;
}

.artifact-modal-nav:hover {
    border-color: var(--hover-border);
    color: var(--accent);
}

.artifact-modal-nav i {
    width: 16px;
    height: 16px;
    stroke-width: 1.8;
}

/* Hidden by openModal (script-common.js) whenever the carousel has only one
   cover, since there's nothing to navigate to. */
.artifact-modal-nav[hidden] {
    display: none;
}

.artifact-modal-prev {
    left: -18px;
}

.artifact-modal-next {
    right: -18px;
}

/* =====================
    Access Cards
   ===================== */

.list-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.list-card-header .list-card-tag {
    margin-bottom: 0;
}

.access-status-pill {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.access-status-available {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.access-status-unavailable {
    background: rgba(239, 68, 68, 0.10);
    color: #b91c1c;
}

.access-status-out-of-print {
    background: rgba(120, 113, 108, 0.12);
    color: #57534e;
}

/* .related-links / .related-link base styles live in style-detail-page.css. */
