/* Shared web report layout; PDF typography remains in the PDF stylesheet. */
main.results-page { width:100%; max-width:none; margin:0; padding:36px 0; }
.result-layout { min-width:0; font-size:1rem; line-height:1.55; color:var(--ink); }
.result-header { margin-bottom:28px; }
.result-header h1 { max-width:28ch; font-size:clamp(2rem,4vw,3rem); margin:10px 0 22px; }
.result-header>p:first-child { margin-top:0; }
.result-actions,.result-community-actions { display:flex; flex-wrap:wrap; align-items:flex-start; gap:10px; }
.result-layout .button,.result-layout button { min-height:44px; white-space:normal; text-align:center; }
.result-layout .button.secondary { background:var(--card); color:var(--ink); border:1px solid var(--line); }
.result-action-help { color:var(--muted); font-size:.9rem; margin:12px 0 0; }
.result-layout details.result-more { position:relative; margin:0; padding:0; border:0; font-size:inherit; }
.result-more>summary { padding:13px 21px; min-height:44px; border:1px solid var(--line); border-radius:999px; background:var(--card); font-weight:780; cursor:pointer; }
.result-more-links { position:absolute; inset-block-start:100%; inset-inline-start:0; z-index:20; width:min(20rem,100%); max-height:min(60vh,28rem); overflow:auto; display:grid; gap:4px; padding:12px; margin-top:8px; background:var(--card); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); overflow-wrap:anywhere; }
.result-more-links a { display:flex; align-items:center; min-height:44px; padding:8px; }
.result-more-links .result-delete { color:#8e342f; border-top:1px solid var(--line); }
.result-more-links>details { margin:0; padding:8px; }
.result-more-links>details>summary { min-height:44px; color:#8e342f; cursor:pointer; }
.result-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,280px); gap:28px; align-items:start; }
.result-report { min-width:0; overflow-wrap:anywhere; }
.result-next { min-width:0; padding:24px; border:1px solid var(--line); border-radius:18px; background:var(--sage); }
.result-next h2 { margin:8px 0 12px; }
.result-next .button { width:100%; }
.result-next .result-next-extra { margin-top:14px; }
.result-report> :first-child { margin-top:0; }
.result-report .blueprint-hero { text-align:left; padding:0; margin:0 0 24px; }
.result-report :is(.fi-card,.ca-card,.ra-card,.property-preview__panel,.domain-card) { border:1px solid var(--line); border-radius:18px; padding:clamp(20px,3vw,28px); background:var(--card); margin-bottom:24px; }
.result-report h2 { font-size:1.5rem; line-height:1.25; }
.result-report h3 { font-size:1.15rem; line-height:1.35; }
.result-report :is(.priority-grid,.domain-grid,.work-comparisons) { grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); }
.result-report .fi-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.result-report .fi-stage-reasons { margin:24px 0 0; padding:20px; border-radius:12px; }
.result-community,.result-report .fi-handoff { margin:24px 0; padding:24px; border:1px solid #d8dce8; border-left:5px solid var(--sage-dark); border-radius:14px; background:#e8eaf6; color:var(--ink); }
.result-community h2 { margin:8px 0 12px; }
.result-community p,.result-community label { color:var(--ink); }
.result-community .result-community-help { color:var(--ink-soft); font-size:.9rem; }
.result-community textarea { min-height:150px; resize:vertical; }
.result-community details>summary { font-weight:700; cursor:pointer; min-height:44px; padding-block:10px; }
.result-community [hidden] { display:none!important; }
.result-layout summary:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.result-report :is(.table-wrap,.assessment-table-wrap) { max-width:100%; overflow-x:auto; }
@media(max-width:1000px) {
    .result-columns { grid-template-columns:minmax(0,1fr); }
    .result-next { margin-top:0; }
}
@media(max-width:560px) {
    main.results-page { padding:24px 0; }
    .result-header h1 { font-size:2rem; }
    .result-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .result-actions>.button { height:100%; padding:12px; }
    .result-more { grid-column:1/-1; }
    .result-more>summary { width:fit-content; }
    .result-community-actions { display:grid; grid-template-columns:1fr; }
    .result-report .fi-summary-grid { grid-template-columns:1fr; }
    .result-community,.result-report .fi-handoff,.result-next { padding:20px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
@media print { .result-header nav,.result-action-help,.result-next,.result-community,.result-report .fi-handoff { display:none; } .result-columns { display:block; } }

.result-next { background:var(--highlight-soft); border-top:4px solid var(--highlight); }
.result-community,.result-report .fi-handoff { background:var(--highlight-soft); border-left-color:var(--highlight); }
.result-layout .button.secondary,.result-more>summary { border-color:var(--control-line); }
