/* CA Immigration Tools — shared design tokens (CRS, NOC finder, …) */
:root {
    --bt-primary:      #1a56a3;
    --bt-primary-dark: #0f3d7c;
    --bt-accent:       #e8333e;
    --bt-btn:          #1a56a3;
    --bt-btn-txt:      #ffffff;
    --bt-font:         inherit;
    --bt-success:      #16a34a;
    --bt-warning:      #d97706;
    --bt-danger:       #dc2626;
    --bt-surface:      #ffffff;
    --bt-bg:           #f8fafc;
    --bt-border:       #e2e8f0;
    --bt-text:         #1e293b;
    --bt-muted:        #64748b;
    --bt-radius:       12px;
    --bt-radius-sm:    7px;
    --bt-shadow:       0 2px 20px rgba(0,0,0,.07);
}

/* ── Tooltips (all CA tools) ─────────────────────────────────── */
.bt-tip {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.bt-tip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fca5a5;
    cursor: pointer;
    margin-left: 5px;
    padding: 0;
    line-height: 1;
    transition: color .15s;
    vertical-align: middle;
    flex-shrink: 0;
}

.bt-tip__icon:hover,
.bt-tip__icon:focus {
    color: #ef4444;
    outline: none;
}

.bt-tip__trigger {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: solid;
}

.bt-tip__box {
    font-family: inherit !important;
    position: absolute !important;
    width: 300px;
    max-width: 90vw;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .14) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
    color: #1e293b !important;
    z-index: 99999 !important;
    text-align: left !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
}

.bt-tip__box.bt-tip__box--wide {
    width: 380px !important;
}

.bt-tip__box * {
    box-sizing: border-box;
    font-family: inherit;
}

.bt-tip__box ul {
    margin: 6px 0 !important;
    padding-left: 18px !important;
    list-style: disc !important;
}

.bt-tip__box li {
    margin-bottom: 5px !important;
    line-height: 1.5 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
}

.bt-tip__box p {
    margin: 0 0 7px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
    color: #1e293b !important;
}

.bt-tip__box p:last-child {
    margin-bottom: 0 !important;
}

.bt-tip__box strong {
    font-weight: 600 !important;
}

.bt-tip-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.bt-tip-popup {
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px 20px;
    max-width: 420px;
    width: 100%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    color: #1e293b;
}

.bt-tip-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    padding: 4px 6px;
    border-radius: 4px;
}

.bt-tip-close:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.bt-tip-content ul {
    padding-left: 20px;
    margin: 8px 0;
    list-style: disc;
}

.bt-tip-content li {
    margin-bottom: 6px;
    line-height: 1.55;
    font-size: 15px;
    font-weight: 500;
}

.bt-tip-content p {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.bt-tip-content p:last-child {
    margin-bottom: 0;
}

.bt-tip-content strong {
    font-weight: 600;
}
