/* Amiga Paradise - Entity timeline */

.ap-timeline-summary {
    margin: 0 0 22px;
    text-align: center;
    line-height: 1.6;
}

.ap-timeline-summary strong {
    font-size: 1.08rem;
}

.ap-timeline-note {
    margin-top: 8px;
    font-size: 0.9rem;
    opacity: 0.72;
}

.ap-timeline-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0 8px;
}

.ap-timeline-inner {
    display: flex;
    justify-content: center;
    min-width: 100%;
    width: max-content;
}

.ap-timeline-chart {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 34px;
    align-items: end;
    gap: 4px;

    width: max-content;
    height: 220px;

    padding: 10px 8px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}

.ap-timeline-year {
    display: grid;
    grid-template-rows: 24px 150px 30px;
    align-items: end;
    justify-items: center;

    min-width: 34px;
    height: 100%;
}

.ap-timeline-count {
    align-self: center;
    min-height: 20px;

    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.ap-timeline-bar-area {
    display: flex;
    align-items: flex-end;
    justify-content: center;

    width: 100%;
    height: 150px;
}

.ap-timeline-bar {
    width: 68%;
    min-width: 8px;
    max-width: 22px;
    height: var(--ap-timeline-height, 0);

    background: linear-gradient(
        to top,
        rgba(0, 140, 186, 0.78),
        rgba(65, 190, 230, 0.95)
    );

    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 4px 4px 0 0;
    box-sizing: border-box;
}

.ap-timeline-year.is-zero .ap-timeline-count {
    opacity: 0.42;
    font-weight: 400;
}

.ap-timeline-year.is-zero .ap-timeline-bar {
    height: 2px;
    min-height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border: 0;
    border-radius: 0;
}

.ap-timeline-label {
    align-self: start;
    padding-top: 7px;

    font-size: 0.72rem;
    line-height: 1;
    white-space: nowrap;
    opacity: 0.86;
}

.ap-timeline-empty {
    margin: 0;
    text-align: center;
    opacity: 0.8;
}

.ap-relations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
    gap: 18px;
}

.ap-relation-block {
    min-width: 0;
    padding: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
}

.ap-relation-title {
    margin: 0 0 12px;
    padding-bottom: 8px;
    text-align: center;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.ap-relation-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ap-relation-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
}

.ap-relation-list a {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ap-relation-count {
    flex: 0 0 auto;
    opacity: 0.68;
    white-space: nowrap;
}

.ap-relation-note {
    margin: 16px 0 0;
    text-align: center;
    font-size: 0.88rem;
    opacity: 0.68;
}

.ap-relation-actions {
    margin-top: 12px;
    text-align: center;
}

.ap-relation-actions .ap-btn {
    padding: 7px 12px;
    font-size: 0.86rem;
}