/* ── RELATIONS WRAPPER ── */
.relations_wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    padding: 8px 0;
}

.relations_col {
    width: calc(50% - 8px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.relations_col_entries {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow: auto;
}

.relations_col_entries::-webkit-scrollbar { width: 3px; }
.relations_col_entries::-webkit-scrollbar-track { background: transparent; }
.relations_col_entries::-webkit-scrollbar-thumb { background: #c9a8b2; }

/* ── HEADING ── */
.relations_heading {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(245, 238, 240, 0.8);
}

.rel_vline {
    width: 2px;
    background: linear-gradient(180deg, #ffdde0, #806c9a);
    border-radius: 2px;
    flex-shrink: 0;
    min-height: 24px;
}

.rel_heading_text {
    font-family: "DMSerifDisplay-Regular", serif;
    font-style: italic;
    font-size: 18px;
    font-weight: 300;
    color: #8b5e6e;
    letter-spacing: 1px;
}

/* ── BIT ── */
.rel_bit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #806c9a29;
}

.rel_icon {
    flex-shrink: 0;
}

.rel_icon img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #d4c5d0;
    display: block;
}

.rel_icon_vline {
    width: 2px;
    background: linear-gradient(180deg, #ffdde0, #806c9a);
    border-radius: 2px;
    align-self: stretch;
    flex-shrink: 0;
}

.rel_info {
    flex: 1;
    min-width: 0;
}

.rel_name {
   font-family: "DMSerifDisplay-Regular", serif;
    font-size: 13px;
    font-weight: 400;
    color: #2a1520;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rel_name a {
    color: #3d1f2e;
    text-decoration: none;
}

.rel_name a:hover {
    color: #8b5e6e;
}

.rel_type {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a07080;
    margin: 2px 0;
}

.rel_facts {
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6b4a58;
}

.rel_facts span {
    color: #8b5e6e;
}

/* ── OPTIONS ── */
.rel_options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding-left: 10px;
    border-left: 1px solid rgba(212,197,208,0.4);
    flex-shrink: 0;
}

.rel_options a {
    font-size: 0 !important;
    color: transparent !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    transition: color 0.2s;
}

.rel_options a[href*="delrel"]::before {
    content: '\f1f8';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 13px;
    color: #c9a8b2;
}

.rel_options a[href*="delrel"]:hover::before {
    color: #ba5555;
}

.rel_options a:not([href*="delrel"])::before {
    content: '\f304';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 13px;
    color: #c9a8b2;
}

.rel_options a:not([href*="delrel"]):hover::before {
    color: #8b5e6e;
}

.rel_options a[onclick]::before {
    content: '\f304';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 13px;
    color: #c9a8b2;
}

.rel_options a[onclick]:hover::before {
    color: #8b5e6e;
}

/* ── NONE ── */
.rel_none {
    font-size: 11px;
    font-style: italic;
    color: #9b7080;
    padding: 8px 12px;
    font-family: 'Cormorant Garamond', serif;
}

/* ── ADD FORM ── */
.relations_add_wrap {
    margin-top: 16px;
}

.relations_add_toggle {
    cursor: pointer;
    user-select: none;
    justify-content: space-between;
}

.rel_add_arrow {
    font-size: 20px;
    color: #c9a8b2;
    line-height: 1;
}

.relations_add_form {
    background: #806c9a29;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.relations_add_row {
    display: flex;
    gap: 10px;
}

.relations_add_input {
    flex: 1;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 8px 12px;
    background: rgba(245, 238, 240, 0.8);
    border: 1px solid #d4c5d0;
    color: #3b3b3b;
    outline: none;
}

.relations_add_textarea {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    padding: 8px 12px;
    background: rgba(245, 238, 240, 0.8);
    border: 1px solid #d4c5d0;
    color: #3b3b3b;
    width: 100%;
    height: 80px;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}

.relations_add_submit {
    text-align: center;
}

.relations_add_btn {
    font-family: 'Jost', sans-serif;
    font-size: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 8px 24px;
    background: transparent;
    border: 1px solid #c9a8b2;
    color: #8b5e6e;
    cursor: pointer;
    transition: background 0.2s;
}

.relations_add_btn:hover {
    background: rgba(201, 168, 178, 0.2);
}