/* Screen + print layout for the Sensera trygghetsrapport. */

.report-root {
    width: 100%;
    max-width: 54rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 4rem;
}

.report-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.report-doc {
    --report-ink: #1c2736;
    --report-muted: #5b6675;
    --report-line: #e4e7ec;
    overflow: hidden;
    border: 1px solid var(--report-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 35, 61, 0.05), 0 24px 60px -32px rgba(16, 35, 61, 0.28);
    color: var(--report-ink);
}

/* --- cover ------------------------------------------------------------ */
.report-cover {
    position: relative;
    padding: clamp(2rem, 5vw, 3.25rem);
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(245, 166, 35, 0.16) 0%, rgba(245, 166, 35, 0) 42%),
        linear-gradient(145deg, #162c4b 0%, #1b365d 55%, #234a78 100%);
    color: #fff;
}

.report-cover::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lp-accent), rgba(245, 166, 35, 0));
}

.report-cover-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(2.5rem, 7vw, 4.5rem);
}

.report-brand {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.report-kicker {
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.report-cover-eyebrow {
    margin: 0 0 0.6rem;
    color: var(--lp-accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.report-cover-title {
    margin: 0;
    max-width: 22ch;
    font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
    font-size: clamp(2.1rem, 5.2vw, 3.4rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.025em;
}

.report-cover-meta {
    margin: 0.9rem 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
}

.report-cover-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 5vw, 3rem);
    margin-top: clamp(2rem, 5vw, 3rem);
}

.report-cover-ring {
    width: fit-content;
    padding: 0.75rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.55);
}

.report-cover-summary {
    display: grid;
    gap: 0.85rem;
    max-width: 30rem;
}

.report-tier-chip {
    justify-self: start;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.16);
    color: #ffd89a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.report-cover-lead {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(0.98rem, 1.5vw, 1.08rem);
    line-height: 1.65;
}

.report-cover-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.report-fact {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* --- sections --------------------------------------------------------- */
.report-section {
    padding: clamp(1.75rem, 4vw, 2.6rem) clamp(1.5rem, 4.5vw, 3rem);
    border-top: 1px solid var(--report-line);
}

.report-section-head {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    margin-bottom: 1.35rem;
}

.report-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--lp-surface-muted);
    color: var(--lp-primary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.report-section-titles {
    display: grid;
    gap: 0.3rem;
}

.report-h2 {
    margin: 0;
    font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 1.95rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--lp-primary);
}

.report-section-lead {
    margin: 0;
    color: var(--report-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.report-lead {
    margin: 0 0 1.1rem;
    color: #334050;
    font-size: clamp(1rem, 1.4vw, 1.075rem);
    line-height: 1.75;
}

.report-prose {
    display: grid;
    gap: 0.9rem;
}

.report-p {
    margin: 0;
    color: #3b4655;
    font-size: 0.975rem;
    line-height: 1.75;
}

.report-h3 {
    margin: 1.15rem 0 0.4rem;
    color: var(--report-ink);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
}

.report-h4 {
    margin: 1.6rem 0 0.7rem;
    color: var(--lp-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.report-eyebrow {
    margin: 0.2rem 0 0.6rem;
    color: var(--report-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.report-bullets {
    display: grid;
    gap: 0.55rem;
    margin: 0.4rem 0 0;
    padding: 0;
    list-style: none;
}

.report-bullets li {
    position: relative;
    padding-left: 1.35rem;
    color: #3b4655;
    font-size: 0.95rem;
    line-height: 1.6;
}

.report-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--lp-accent);
}

.report-focus {
    margin-top: 1.5rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(245, 166, 35, 0.28);
    border-radius: 12px;
    background: color-mix(in srgb, var(--lp-accent) 7%, #fff);
}

.report-focus-label {
    margin: 0 0 0.3rem;
    color: #946200;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.report-focus-text {
    margin: 0;
    color: #3b4655;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- 4D profile ------------------------------------------------------- */
.report-dimensions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.report-dimension {
    --tone: #0ea5e9;
    --tone-soft: #e0f2fe;
    display: grid;
    gap: 0.55rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid color-mix(in srgb, var(--tone) 24%, #fff);
    border-left: 4px solid var(--tone);
    border-radius: 12px;
    background: linear-gradient(180deg, var(--tone-soft), #fff 85%);
}

.report-dimension[data-tone='amber'] { --tone: #d97706; --tone-soft: #fef3c7; }
.report-dimension[data-tone='violet'] { --tone: #7c3aed; --tone-soft: #ede9fe; }
.report-dimension[data-tone='rose'] { --tone: #db2777; --tone-soft: #fce7f3; }

.report-dimension-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.report-dimension-title {
    margin: 0;
    color: var(--lp-primary);
    font-size: 0.95rem;
    font-weight: 700;
}

.report-dimension-question {
    margin: 0;
    color: var(--report-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.report-meter {
    height: 6px;
    margin-top: 0.2rem;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tone) 16%, #fff);
}

.report-meter-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--tone);
}

.report-level {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #eef1f5;
    color: #445061;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.report-level[data-level='high'] { background: #fee2e2; color: #991b1b; }
.report-level[data-level='medium'] { background: #fef3c7; color: #92400e; }
.report-level[data-level='low'] { background: #dcfce7; color: #166534; }

/* --- deep dives ------------------------------------------------------- */
.report-deepdive {
    --tone: #0ea5e9;
    border-left: 4px solid var(--tone);
    padding-left: clamp(1.15rem, 3vw, 2.1rem);
}

.report-deepdive[data-tone='amber'] { --tone: #d97706; }
.report-deepdive[data-tone='violet'] { --tone: #7c3aed; }
.report-deepdive[data-tone='rose'] { --tone: #db2777; }

.report-deepdive-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.55rem;
}

.report-deepdive-head .report-h2 {
    flex: 1;
}

.report-deepdive .report-prose,
.report-deepdive .report-h3,
.report-deepdive .report-h4,
.report-deepdive .report-rec-list {
    max-width: 46rem;
}

/* --- recommendations -------------------------------------------------- */
.report-rec-list {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.report-rec {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--report-line);
    border-radius: 10px;
    background: #fbfbfa;
}

.report-rec-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    background: var(--lp-primary);
    color: #fff;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.report-rec-text {
    color: #3b4655;
    font-size: 0.92rem;
    line-height: 1.55;
}

.report-personal + .report-personal {
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--report-line);
}

/* --- contact + footer ------------------------------------------------- */
.report-contact {
    background: color-mix(in srgb, var(--lp-surface-muted) 35%, #fff);
}

.report-contact .report-section-head {
    margin-bottom: 0.9rem;
}

.report-footer {
    display: grid;
    gap: 0.4rem;
    padding: 1.4rem clamp(1.5rem, 4.5vw, 3rem) 1.6rem;
    border-top: 1px solid var(--report-line);
    background: #fbfbfa;
}

.report-footer-brand {
    margin: 0;
    color: var(--lp-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.report-footer-note {
    margin: 0;
    max-width: 50rem;
    color: var(--report-muted);
    font-size: 0.72rem;
    line-height: 1.55;
}

@media (max-width: 680px) {
    .report-cover-body {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .report-dimensions {
        grid-template-columns: 1fr;
    }

    .report-section-head {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* --- print ------------------------------------------------------------ */
@media print {
    @page {
        size: A4;
        margin: 16mm;
    }

    #navbar-root,
    #footer-root,
    .report-toolbar,
    .cookie-banner,
    .cookie-settings-btn {
        display: none !important;
    }

    body {
        background: #fff !important;
    }

    .spine-page {
        padding: 0 !important;
    }

    .report-root {
        max-width: none;
        padding: 0;
    }

    .report-doc {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .report-cover {
        min-height: 245mm;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        break-after: page;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .report-section {
        break-inside: avoid;
        page-break-inside: avoid;
        padding-left: 0;
        padding-right: 0;
    }

    .report-deepdive {
        break-before: page;
        page-break-before: always;
        border-left-width: 3px;
    }

    .report-rec,
    .report-dimension,
    .report-focus {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-contact {
        break-before: page;
        page-break-before: always;
    }

    a {
        color: inherit;
        text-decoration: none;
    }
}
