/* ================================
   WHCAARC GLOSSARY — GLOBAL WRAPPER
   ================================ */
.whcaarc-glossary-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

/* ================================
   LETTER HEADER (Dark Blue Bars)
   ================================ */
.whcaarc-letter-header {
    background: #002b5c;
    color: white;
    padding: 14px 18px;
    margin-top: 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.whcaarc-letter-header:hover {
    box-shadow: 0 0 12px gold;
}

.whcaarc-letter-arrow {
    transition: transform 0.25s ease;
}

.whcaarc-letter-header.active .whcaarc-letter-arrow {
    transform: rotate(90deg);
}

/* ================================
   TERMS CONTAINER
   ================================ */
.whcaarc-terms-container {
    display: none;
    padding-left: 0;
    margin-top: 10px;
}

/* ================================
   TERM HEADER (Light Blue Bars)
   ================================ */
.whcaarc-term-header {
    background: #d7ecff;
    color: #003366;
    padding: 12px 16px;
    margin: 8px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.whcaarc-term-header:hover {
    box-shadow: 0 0 10px gold;
}

/* Gold border when open */
.whcaarc-term-header.active {
    border-color: gold;
}

.whcaarc-term-arrow {
    transition: transform 0.25s ease;
}

.whcaarc-term-header.active .whcaarc-term-arrow {
    transform: rotate(90deg);
}

/* ================================
   TERM CONTENT
   ================================ */
.whcaarc-term-content {
    display: none;
    background: white;
    padding: 12px 16px;
    margin-top: -4px;
    margin-bottom: 10px;
    border-left: 3px solid #d7ecff;
    border-right: 3px solid #d7ecff;
    border-bottom: 3px solid #d7ecff;
    border-radius: 0 0 4px 4px;
}

/* ================================
   AUTOLINK STYLE
   ================================ */
.whcaarc-glossary-autolink {
    color: #004a99;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px dotted #004a99;
}

.whcaarc-glossary-autolink:hover {
    color: gold;
}

/* ================================
   POPUP OVERLAY
   ================================ */
#whcaarc-glossary-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

/* ================================
   POPUP BOX
   ================================ */
#whcaarc-glossary-popup {
    background: white;
    padding: 24px;
    width: 90%;
    max-width: 600px;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 0 20px black;
}

#whcaarc-glossary-popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 28px;
    cursor: pointer;
}

#whcaarc-glossary-popup-term {
    margin-top: 0;
    color: #002b5c;
}

#whcaarc-glossary-popup-content {
    margin-top: 12px;
}
