/* Identity pages - shared styles */

/* Sidebar: related generators */
.related-sidebar {
    margin-top: 16px;
}

.related-box {
    border: 1px solid #e5ebe7;
    padding: 14px;
    border-radius: 12px;
    background: #fff;
}

.related-box h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
}

.related-card {
    display: block;
    border: 1px solid #e6ece8;
    border-radius: 10px;
    padding: 10px 11px;
    background: #fbfdfc;
    text-decoration: none;
    color: inherit;
    transition: all 0.18s ease;
}

.related-card:hover {
    text-decoration: none;
    color: inherit;
    border-color: #cfdcd4;
    background: #fff;
    transform: translateY(-1px);
}

.related-card .title {
    display: block;
    font-weight: 700;
    margin-bottom: 3px;
}

.related-card .meta {
    display: block;
    font-size: 0.92rem;
    opacity: 0.86;
}

/* Sidebar: saved names */
.identity-favorites-list {
    margin-top: 8px;
    max-height: 260px;
    overflow: auto;
}

.identity-favorites-empty {
    font-size: 0.92rem;
    color: #5a6b63;
    padding: 8px 10px;
    border: 1px dashed #d6e2dc;
    border-radius: 8px;
    background: #f8fbf9;
}

.identity-favorite-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e4ece8;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fff;
    font-size: 0.95rem;
}

.identity-favorite-remove {
    border: 0;
    background: transparent;
    color: #7d8e86;
    font-weight: 700;
    line-height: 1;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 2px 4px;
}

.identity-favorite-remove:hover {
    color: #2f3d36;
}

.identity-favorites-actions .btn {
    border-radius: 8px;
}

/* Page content / RelatedInfoHTML */
.identity-content-box {
    margin-top: 22px;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #e7ece9;
    background: #fff;
}

@media (max-width: 767px) {
    /* Fix container-fluid 0-padding from ng-bundle.min.css */
    .site-container > .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Center H1 on mobile */
    .identity-hero-card h1,
    .ship-hero h1 {
        text-align: center;
    }
}
