/* ===== Base compartilhada BFI-2 / BFI-2-S ===== */
.resource-head .crumb { color: var(--primary); }
.info-card, .tip { max-width: 880px; margin-left: auto; margin-right: auto; }

.scale-frame {
    max-width: 880px; margin: 0 auto 26px;
    display: flex; align-items: center; gap: 14px;
    background: rgba(74,95,124,.08); border-left: 3px solid var(--primary);
    border-radius: 4px; padding: 16px 20px;
}
.scale-frame svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.scale-frame p { font-size: .92rem; font-weight: 300; line-height: 1.6; color: var(--text); }
.scale-frame strong { color: var(--primary); font-weight: 500; }

.notice {
    max-width: 880px; margin: 0 auto 26px;
    display: flex; gap: 13px; align-items: flex-start;
    background: rgba(169,131,68,.07); border: 1px solid rgba(169,131,68,.28);
    border-radius: 12px; padding: 16px 20px;
}
.notice svg { width: 20px; height: 20px; color: #a98344; flex-shrink: 0; margin-top: 2px; }
.notice p { font-size: .85rem; font-weight: 300; line-height: 1.6; color: var(--text); }
.notice strong { color: #7c5f2e; font-weight: 600; }

.scale-form { max-width: 880px; margin: 0 auto; }

.q-card {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 20px 22px; margin-bottom: 14px; transition: border-color .2s, box-shadow .2s;
}
.q-card.answered { border-color: rgba(74,95,124,.4); }
.q-card.unanswered-flag { border-color: rgba(200,117,103,.55); box-shadow: 0 0 0 3px rgba(200,117,103,.08); }

.q-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.q-num {
    flex-shrink: 0; width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(74,95,124,.08); color: var(--primary);
    font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 1px;
}
.q-card.answered .q-num { background: rgba(74,95,124,.14); color: var(--primary); }
.q-lead-in { font-size: .8rem; font-weight: 300; font-style: italic; color: var(--mute); }
.q-text { font-size: 1.02rem; color: var(--text); font-weight: 400; line-height: 1.5; }

.q-opts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding-left: 40px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-box {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    text-align: center; height: 100%; padding: 11px 6px;
    border: 1px solid var(--line); border-radius: 9px; background: var(--bg);
    transition: all .15s; min-height: 78px;
}
.opt-box b { font-size: 1.05rem; font-weight: 600; color: var(--mute); font-variant-numeric: tabular-nums; transition: color .15s; }
.opt-box span { font-size: .7rem; font-weight: 400; color: var(--mute); line-height: 1.2; }
.opt:hover .opt-box { border-color: #a98344; background: rgba(169,131,68,.06); }
.opt input:checked + .opt-box { border-color: #a98344; background: rgba(169,131,68,.13); box-shadow: 0 0 0 1px #a98344 inset; }
.opt input:checked + .opt-box b { color: #7c5f2e; }
.opt input:checked + .opt-box span { color: #7c5f2e; font-weight: 500; }
.opt input:focus-visible + .opt-box { box-shadow: 0 0 0 3px rgba(169,131,68,.32); }

.scale-form.locked .opt { cursor: default; }
.scale-form.locked .opt:hover .opt-box { border-color: var(--line); background: var(--bg); }
.scale-form.locked .opt input:checked + .opt-box { border-color: #a98344; background: rgba(169,131,68,.13); }
.scale-form.locked .opt input:not(:checked) + .opt-box { opacity: .5; }
.scale-form.locked .q-card { border-color: rgba(74,95,124,.4); }

.progress-line { max-width: 880px; margin: 0 auto 18px; display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--mute); font-weight: 400; }
.progress-track { flex: 1; height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--primary); border-radius: 3px; transition: width .3s; }
.progress-count { font-variant-numeric: tabular-nums; white-space: nowrap; }

.reveal-zone { max-width: 880px; margin: 22px auto 0; text-align: center; }
.reveal-btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 500;
    padding: 15px 30px; min-height: 52px; border-radius: 999px; border: none; cursor: pointer;
    background: var(--primary); color: #fff; box-shadow: 0 6px 20px rgba(74,95,124,.28);
    transition: transform .15s, box-shadow .2s, background .2s;
}
.reveal-btn svg { width: 18px; height: 18px; }
.reveal-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 26px rgba(74,95,124,.34); }
.reveal-btn:active { transform: translateY(0); }
.reveal-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px rgba(74,95,124,.5); }
.reveal-btn:disabled { background: #fff; color: var(--mute); border: 1px dashed var(--line); box-shadow: none; cursor: not-allowed; }
.reveal-btn:disabled svg { display: none; }
.reveal-hint { margin-top: 12px; font-size: .82rem; font-weight: 300; font-style: italic; color: var(--mute); line-height: 1.5; }
.reveal-zone.done { display: none; }

.result-panel {
    max-width: 880px; margin: 28px auto 0; background: #fff;
    border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 40px rgba(74,95,124,.10);
}
.result-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .result-panel.revealing { animation: resultIn .5s cubic-bezier(.22,.61,.36,1) forwards; } }
@keyframes resultIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.result-head { padding: 30px 32px; border-bottom: 1px solid var(--line-soft); }
.result-eyebrow { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; color: var(--mute); margin-bottom: 8px; }
.result-band { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-style: italic; font-weight: 600; color: var(--primary); line-height: 1.15; margin-bottom: 10px; }
.result-desc { font-size: .94rem; font-weight: 300; line-height: 1.6; color: var(--text); }

/* Domains */
.domains { padding: 22px 32px 30px; display: flex; flex-direction: column; gap: 26px; }
.domain { }
.dom-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.dom-name { font-size: 1.05rem; font-weight: 600; color: var(--text); }
.dom-level { font-size: .8rem; font-weight: 600; color: var(--dom-color, var(--mute)); white-space: nowrap; flex-shrink: 0; }
.dom-level b { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; margin-left: 5px; }
.dom-bar { position: relative; height: 9px; border-radius: 5px; background: var(--soft); overflow: hidden; }
.dom-fill { height: 100%; width: 0; border-radius: 5px; background: var(--dom-color, var(--mute)); transition: width .6s cubic-bezier(.4,0,.2,1), background .4s; }
.dom-mid { position: absolute; top: -2px; bottom: -2px; left: 50%; width: 2px; background: var(--mute); opacity: .4; border-radius: 2px; }
.dom-interp { font-size: .85rem; font-weight: 300; line-height: 1.55; color: var(--text); margin-top: 9px; }

/* Facets */
.facets { margin-top: 14px; padding-left: 4px; display: flex; flex-direction: column; gap: 9px; border-left: 2px solid var(--line-soft); padding-left: 16px; }
.facet { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.facet-name { font-size: .82rem; font-weight: 400; color: var(--mute); }
.facet-bar { grid-column: 1 / -1; position: relative; height: 5px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.facet-fill { height: 100%; width: 0; border-radius: 3px; background: var(--facet-color, var(--mute)); transition: width .5s cubic-bezier(.4,0,.2,1); }
.facet-val { font-size: .78rem; font-weight: 600; color: var(--facet-color, var(--mute)); font-variant-numeric: tabular-nums; }

.result-note { margin: 0 32px 28px; padding: 16px 20px; border-radius: 10px; font-size: .88rem; font-weight: 300; line-height: 1.65; background: rgba(74,95,124,.06); border-left: 3px solid var(--primary); }
.result-note strong { color: var(--primary); font-weight: 600; }

/* Acquiescence readout */
.aq-readout { margin: 0 32px; padding: 16px 20px; border-radius: 10px; background: rgba(74,95,124,.05); border: 1px solid var(--line); }
.aq-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.aq-label { font-size: .64rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; color: var(--mute); }
.aq-value { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-style: italic; font-weight: 600; color: var(--mute); text-align: right; }
.aq-scale { position: relative; height: 6px; border-radius: 4px; background: linear-gradient(90deg, #cd8a52 0%, #c2a13f 25%, #6b9e7c 50%, #c2a13f 75%, #cd8a52 100%); opacity: .55; margin-bottom: 12px; }
.aq-marker { position: absolute; top: -4px; width: 3px; height: 14px; border-radius: 2px; background: var(--mute); transform: translateX(-50%); transition: left .5s cubic-bezier(.4,0,.2,1); box-shadow: 0 0 0 2px #fff; }
.aq-note { font-size: .76rem; font-weight: 300; line-height: 1.55; color: var(--mute); }
.aq-note strong { color: var(--primary); font-weight: 600; }

.edit-hint { max-width: 880px; margin: 14px auto 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .8rem; font-weight: 300; color: var(--mute); text-align: center; }
.edit-hint svg { width: 14px; height: 14px; flex-shrink: 0; }

.tip .tip-lead { font-size: .87rem; font-weight: 300; line-height: 1.65; color: var(--text); }
.tip-cite { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.tip-cite p { font-size: .78rem; font-weight: 300; line-height: 1.6; color: var(--mute); overflow-wrap: anywhere; }
.tip-cite p + p { margin-top: 9px; }
.tip-cite .cite-label { display: inline-block; font-size: .64rem; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; color: var(--primary); margin-right: 7px; }
.tip-cite em { font-style: italic; color: inherit; }
.tip-cite a { color: var(--primary); text-decoration: none; border-bottom: 1px solid rgba(74,95,124,.3); }
.tip-cite a:hover { border-bottom-color: var(--primary); }

@media (max-width: 640px) {
    .q-opts { padding-left: 0; gap: 6px; }
    .opt-box { min-height: 72px; padding: 9px 3px; }
    .opt-box span { font-size: .62rem; }
    .result-head { padding: 26px 22px; }
    .domains { padding: 20px 18px 24px; }
    .result-note { margin: 0 18px 22px; }
    .reveal-btn { width: 100%; justify-content: center; }
}
@media print {
    .scale-frame { background: rgba(74,95,124,.08) !important; }
    .q-card, .result-panel { page-break-inside: avoid; box-shadow: none; }
    .progress-line, .reveal-zone, .edit-hint { display: none !important; }
    .result-panel[hidden] { display: block !important; }
}
