/* Kinship prototype — study cards, gallery modal, iframe overlay */

.kinship-intro {
    font-size: 0.88em;
    color: #888;
    line-height: 1.5;
    margin-bottom: 16px;
}

.kinship-study-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kinship-study-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(100, 216, 208, 0.18);
    border-radius: 10px;
    padding: 14px 16px;
}

.kinship-study-card h4 {
    margin: 0 0 6px;
    font-size: 0.95em;
    font-weight: 600;
    color: #64d8d0;
    line-height: 1.35;
}

.kinship-study-meta {
    font-size: 0.78em;
    color: #777;
    margin-bottom: 8px;
}

.kinship-study-desc {
    font-size: 0.82em;
    color: #aaa;
    line-height: 1.45;
    margin-bottom: 12px;
}

.kinship-study-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kinship-btn {
    appearance: none;
    border: 1px solid rgba(100, 216, 208, 0.45);
    background: rgba(100, 216, 208, 0.12);
    color: #64d8d0;
    font-size: 0.8em;
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}

.kinship-btn:hover {
    background: rgba(100, 216, 208, 0.22);
    color: #fff;
}

.kinship-btn-secondary {
    border-color: rgba(255, 255, 255, 0.15);
    background: transparent;
    color: #aaa;
}

.kinship-btn-secondary:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.kinship-empty {
    font-size: 0.88em;
    color: #888;
    font-style: italic;
    line-height: 1.5;
}

.kinship-badge {
    display: inline-block;
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(200, 130, 255, 0.15);
    color: #c882ff;
    margin-left: 6px;
    vertical-align: middle;
}

.kinship-badge-discovered {
    background: rgba(255, 179, 71, 0.18);
    color: #ffb347;
}

.kinship-badge-type {
    background: rgba(100, 216, 208, 0.1);
    color: #8ecfc8;
}

.kinship-study-card-discovered {
    border-color: rgba(255, 179, 71, 0.22);
}

.kinship-section {
    margin-bottom: 20px;
}

.kinship-section-title {
    margin: 0 0 8px;
    font-size: 0.82em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
}

.kinship-section-desc {
    margin: 0 0 12px;
    font-size: 0.78em;
    color: #777;
    line-height: 1.45;
}

/* Gallery modal */
.kinship-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(0, 0, 0, 0.72);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.kinship-backdrop.open {
    display: flex;
}

.kinship-modal {
    background: #141a22;
    border: 1px solid rgba(100, 216, 208, 0.25);
    border-radius: 12px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.kinship-modal-header {
    padding: 18px 20px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.kinship-modal-header h2 {
    margin: 0 0 6px;
    font-size: 1.15em;
    font-weight: 400;
    color: #64d8d0;
}

.kinship-modal-header p {
    margin: 0;
    font-size: 0.82em;
    color: #888;
    line-height: 1.45;
    padding-right: 32px;
}

.kinship-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.5em;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

.kinship-modal-close:hover {
    color: #fff;
}

.kinship-modal-body {
    overflow-y: auto;
    padding: 16px 20px 20px;
}

/* Full-screen map overlay */
.kinship-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 13000;
    background: #10151c;
    flex-direction: column;
}

.kinship-overlay.open {
    display: flex;
}

.kinship-overlay-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: #1a212b;
    border-bottom: 1px solid #2c3744;
}

.kinship-overlay-title {
    font-size: 0.9em;
    color: #e8ecf1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kinship-overlay-title span {
    color: #64d8d0;
}

.kinship-overlay-frame-wrap {
    flex: 1;
    min-height: 0;
    position: relative;
}

.kinship-overlay-frame-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    background: #10151c;
}
