/* Page-specific: header action icons (upper-right of the title) and the description's
	     Markdown-rendered, scrollable body - shared-web owns the global stylesheet, neither
	     is common enough elsewhere to belong there. */
.detail-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.detail-header-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.detail-header-actions .icon-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
}
.detail-header-actions .icon-btn:not(.icon-btn-danger) {
    background: color-mix(in srgb, var(--color-accent) 12%, transparent);
}
.detail-header-actions .icon-btn:not(.icon-btn-danger):hover {
    background: color-mix(in srgb, var(--color-accent) 22%, transparent);
}
.detail-description {
    max-height: 20vh;
    overflow-y: auto;
}
.detail-description :first-child {
    margin-top: 0;
}
.detail-description :last-child {
    margin-bottom: 0;
}

/* Volume detail page's system/publisher/studio/license sections sit side by side (wrapping
 * when they don't fit) instead of stacking - each is a short label-plus-chips group. */
.detail-associations {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 24px 0;
}
.detail-associations .detail-block { margin: 0; }

/* Volume detail page's tabbed area below the cover/description header: a centered strip of
	 tab buttons plus one panel per tab, with only the .active panel shown. Scoped under
	 .volume-tabs so a future platform-wide pattern can graduate to main.css without collision. */
.volume-tabs {
    width: 100%;
    margin-top: 32px;
}
.volume-tabs .tab-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    border-bottom: 1px solid var(--color-divider);
    margin-bottom: 20px;
}
.volume-tabs .tab-btn {
    appearance: none;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-weight: var(--font-heading-weight);
    font-size: 14px;
    letter-spacing: 0.02em;
    color: color-mix(in srgb, var(--color-text) 65%, transparent);
    cursor: pointer;
}
.volume-tabs .tab-btn:hover {
    color: var(--color-accent);
}
.volume-tabs .tab-btn:focus-visible {
    outline-offset: -2px;
}
.volume-tabs .tab-btn.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    font-weight: 600;
}
.volume-tabs .tab-panel {
    display: none;
}
.volume-tabs .tab-panel.active {
    display: block;
}

/* Credits are short "person - role" lines; flowing them into as many columns as fit keeps a
	 long credit roll from becoming one tall strip inside the tab. */
.volume-tabs .credit-columns {
    columns: 220px auto;
    column-gap: 40px;
}
.volume-tabs .credit-columns p {
    margin: 0 0 8px;
    break-inside: avoid;
}
