/* HEXACO reports: the same trait-card geometry for new and saved results. */
.hexaco-result-report--refined {
    gap: 28px;
    color: var(--site-color-text);
}

html[data-palette] .hexaco-result-report--refined .hexaco-result-header {
    display: grid;
    gap: 10px;
    padding: 0 0 24px;
    border: 0;
    border-bottom: 1px solid var(--site-color-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hexaco-result-report--refined .hexaco-result-header h1 {
    max-width: 940px;
    font-size: clamp(1.85rem, 3.4vw, 2.6rem);
    line-height: 1.2;
}

.hexaco-result-report--refined .hexaco-result-header > p {
    margin: 0;
    max-width: 850px;
    line-height: 1.6;
}

.hexaco-result-report--refined .hexaco-score-note,
.hexaco-result-report--refined .hexaco-result-date {
    color: var(--site-color-muted);
    font-size: .875rem;
}

html[data-palette] .hexaco-result-report--refined .hexaco-score-note {
    color: var(--site-color-muted) !important;
}

.hexaco-result-report--refined .hexaco-result-panel {
    padding: 24px;
    border-radius: 14px;
    box-shadow: none;
}

html .hexaco-result-report--refined .hexaco-result-panel--scores {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.hexaco-result-report--refined .hexaco-result-panel h2 {
    font-size: clamp(1.45rem, 2.5vw, 1.8rem);
    line-height: 1.3;
}

.hexaco-result-report--refined .hexaco-result-panel--scores > p:not(.hexaco-result-eyebrow) {
    margin: 8px 0 20px;
    color: var(--site-color-muted);
}

.hexaco-result-report--refined .hexaco-domain-results {
    gap: 20px;
    align-items: stretch;
}

html .hexaco-result-report--refined .hexaco-score-card {
    display: flex;
    min-width: 0;
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    border: 1px solid var(--site-color-border);
    border-radius: 14px;
    background: var(--site-color-surface);
    box-shadow: none;
}

.hexaco-score-card__head {
    display: grid;
    min-height: 62px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
}

.hexaco-result-report--refined .hexaco-score-card h3 {
    margin: 4px 0 0;
    color: var(--site-color-heading);
    font: 500 1.2rem/1.35 Lora, Georgia, serif;
}

.hexaco-score-card__scores {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hexaco-result-report--refined .hexaco-score-card__scores p {
    margin: 0;
    line-height: 1.2;
}

.hexaco-score-card__scaled {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 3px;
}

html[data-palette] .hexaco-result-report--refined .hexaco-score-card__scaled strong {
    color: var(--site-color-accent-text-raised, var(--site-color-accent-text)) !important;
}

.hexaco-score-card__scaled strong {
    font: 600 2rem/1 Inter, sans-serif;
    letter-spacing: -.03em;
}

.hexaco-score-card__scaled span {
    color: var(--site-color-muted);
    font-size: .875rem;
}

.hexaco-result-report--refined .hexaco-score-card__raw {
    margin-top: 7px !important;
    color: var(--site-color-muted);
    font-size: .8125rem;
}

html[data-palette] .hexaco-result-report--refined .hexaco-score-card__raw strong {
    color: var(--site-color-muted) !important;
    font-weight: 500;
}
.hexaco-score-card__raw span { margin-left: 4px; }

.hexaco-score-card__track {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--site-color-surface-elevated);
}

.hexaco-score-card__track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--site-color-accent-primary);
}

.hexaco-score-card__track::after {
    position: absolute;
    inset: 0 auto 0 50%;
    width: 1px;
    background: var(--site-color-border-strong);
    content: '';
}

.hexaco-score-card__ticks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 7px;
    color: var(--site-color-muted);
    font-size: .75rem;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

.hexaco-score-card__ticks > :nth-child(2) { text-align: center; }
.hexaco-score-card__ticks > :last-child { text-align: right; }

.hexaco-result-report--refined .hexaco-score-card .hexaco-score-card__summary {
    margin: 0;
    flex: 1;
    color: var(--site-color-text);
    font-size: .9375rem;
    line-height: 1.65;
}

.hexaco-score-card__details,
.hexaco-score-method {
    border-top: 1px solid var(--site-color-border);
    color: var(--site-color-muted);
    font-size: .875rem;
    line-height: 1.6;
}

.hexaco-score-card__details > summary,
.hexaco-score-method > summary {
    min-height: 44px;
    padding-top: 13px;
    color: var(--site-color-heading);
    cursor: pointer;
    font-weight: 500;
}

.hexaco-score-card__details > summary:focus-visible,
.hexaco-score-method > summary:focus-visible {
    outline: 2px solid var(--site-color-focus);
    outline-offset: 3px;
    border-radius: 3px;
}

.hexaco-result-report--refined .hexaco-score-card__details p { margin: 10px 0 0; }
.hexaco-score-card__details .hexaco-reliability { margin-top: 12px; font-size: inherit; }
.hexaco-score-card__details dl { display: flex; margin: 12px 0 0; gap: 24px; }
.hexaco-score-card__details dl > div { display: flex; gap: 8px; }
.hexaco-score-card__details dt { font-weight: 500; }
.hexaco-score-card__details dd { margin: 0; font-variant-numeric: tabular-nums; }
.hexaco-score-method { margin-top: 20px; }
.hexaco-score-method p { margin: 0 0 12px; }

.hexaco-result-report--refined .account-saved-result-actions {
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    border: 0;
    flex-direction: row;
    gap: 10px;
}

html[data-palette] .hexaco-result-report--refined .account-saved-result-actions .personality-test-btn {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--site-color-border) !important;
    border-radius: 9px;
    background: var(--site-color-surface) !important;
    color: var(--site-color-text) !important;
    box-shadow: none !important;
    font: 600 .875rem/1.4 Inter, sans-serif;
}

html[data-palette] .hexaco-result-report--refined .account-saved-result-actions .personality-test-btn-primary {
    border-color: var(--site-color-accent-primary) !important;
    background: var(--site-color-accent-primary) !important;
    color: var(--site-color-on-accent) !important;
}

html[data-palette] .hexaco-result-report--refined .account-saved-result-actions .personality-test-btn-primary:hover {
    border-color: var(--site-color-accent-hover) !important;
    background: var(--site-color-accent-hover) !important;
}

html[data-palette] .hexaco-result-report--refined > .result-reading {
    margin: 0;
    padding: 24px;
    border-radius: 14px;
}

@media (max-width: 760px) {
    .hexaco-result-report--refined { gap: 24px; }
    .hexaco-result-report--refined .hexaco-domain-results { grid-template-columns: 1fr; gap: 16px; }
    .hexaco-result-report--refined .hexaco-quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
    html .hexaco-result-report--refined .hexaco-score-card { padding: 20px; }
    .hexaco-score-card__head { gap: 12px; }
    .hexaco-result-report--refined .hexaco-score-card h3 { font-size: 1.05rem; }
    .hexaco-score-card__scaled strong { font-size: 1.8rem; }
}
