/* ============================================================
   Theatrical Toggle Widget — theatrical-toggle.css
   ============================================================ */

.tt-toggles-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background-color: #2b1a0e;
    border-radius: 16px;
    box-sizing: border-box;
    width: 100%;
}

/* Each item is just a container — no background on the item itself */
.tt-toggle-item {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

/* Header carries the background color */
.tt-toggle-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    background-color: #c8a96e;
    border-radius: 10px;
    transition: background-color 0.3s ease, border-radius 0.3s ease;
    position: relative;
}

/* Active header */
.tt-toggle-item.tt-active > .tt-toggle-header {
    background-color: #7a1a1a;
    border-radius: 10px 10px 0 0;
}

/* Image */
.tt-toggle-image {
    width: 52px;
    min-width: 52px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.tt-toggle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text */
.tt-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.tt-toggle-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    color: #1a0a00;
    font-family: Georgia, 'Times New Roman', serif;
    transition: color 0.3s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tt-toggle-item.tt-active .tt-toggle-title {
    color: #f5e6c8;
}

.tt-toggle-subtitle {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5a3a1a;
    transition: color 0.3s ease;
    display: block;
}
.tt-toggle-item.tt-active .tt-toggle-subtitle {
    color: #d4b896;
}

/* Icon */
.tt-toggle-icon {
    font-size: 16px;
    color: #1a0a00;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: color 0.3s ease;
}
.tt-toggle-item.tt-active .tt-toggle-icon {
    color: #f5e6c8;
}

.tt-icon-close { display: none; }
.tt-icon-open  { display: flex; }
.tt-toggle-item.tt-active .tt-icon-open  { display: none; }
.tt-toggle-item.tt-active .tt-icon-close { display: flex; }

/* Body */
.tt-toggle-body {
    background-color: #f5e6c8;
    color: #3a2010;
    padding: 16px 20px 20px;
    border-radius: 0 0 10px 10px;
    font-size: 15px;
    line-height: 1.6;
    overflow: hidden;
}

.tt-toggle-body ul,
.tt-toggle-body ol {
    margin: 0;
    padding-left: 20px;
}
.tt-toggle-body li         { margin-bottom: 10px; }
.tt-toggle-body li:last-child { margin-bottom: 0; }
.tt-toggle-body ul li::marker,
.tt-toggle-body ol li::marker { color: #7a1a1a; }
