/* Verksamhetsberättelser v1 */
.reports-page,
.reports-page *,
.reports-page *::before,
.reports-page *::after {
    box-sizing: border-box;
}

.reports-page {
    --reports-blue: #1d4289;
    --reports-blue-dark: #15366f;
    --reports-blue-deep: #0d2857;
    --reports-ink: #11253c;
    --reports-muted: #607080;
    --reports-border: rgba(17, 57, 97, .15);
    --reports-focus: #f3c94c;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 1rem 0 4rem;
    overflow-x: hidden;
    overflow-x: clip;
    background:
        radial-gradient(circle at 7% 2%, rgba(29, 66, 137, .09), transparent 26rem),
        linear-gradient(180deg, #f4f7fb 0, #fff 25rem);
}

.reports-shell {
    width: 100%;
    max-width: 84rem;
    min-width: 0;
    margin: 0 auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.reports-hero--match {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 1.3rem;
    background-color: var(--reports-blue);
    box-shadow: 0 1.2rem 3.2rem rgba(29, 66, 137, .25);
    color: #fff;
    isolation: isolate;
}

.reports-hero--match::before,
.reports-hero--match::after {
    display: none;
    content: none;
}

.reports-hero__topline {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 3.1rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 3vw, 1.5rem);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.reports-hero__topline p,
.reports-hero__topline span {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: .72rem;
    font-weight: 750;
    line-height: 1.3;
}

.reports-hero__topline p {
    color: #fff;
    font-weight: 850;
}

.reports-hero__scoreboard {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(8rem, .6fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(.8rem, 3vw, 2rem);
    padding: clamp(1.5rem, 4vw, 2.6rem);
    text-align: center;
}

.reports-hero__title {
    grid-column: 1 / -1;
    grid-row: 1;
    width: max-content;
    max-width: 100%;
    justify-self: center;
    text-align: center;
}

.reports-hero__spacer:first-child {
    grid-column: 1;
    grid-row: 1;
}

.reports-hero__spacer:last-child {
    grid-column: 3;
    grid-row: 1;
}

.reports-hero h1 {
    max-width: 100%;
    margin: 0;
    color: #fff;
    font-family: "Francois One", "Arial Narrow", sans-serif;
    font-size: clamp(2.7rem, 6.6vw, 5rem);
    font-weight: 400;
    letter-spacing: .015em;
    line-height: .94;
    text-wrap: balance;
}

.reports-hero__title p {
    margin: .48rem 0 0;
    color: rgba(255, 255, 255, .74);
    font-size: .72rem;
    font-weight: 750;
    line-height: 1.3;
}

.reports-hero__kpis {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    background: rgba(5, 24, 55, .16);
}

.reports-hero__kpi {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 4rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin: 0;
    padding: .85rem .95rem;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .09);
    border-radius: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    text-decoration: none;
    transition: background-color 160ms ease;
}

.reports-hero__kpi:first-child {
    border-left: 0;
}

a.reports-hero__kpi:hover,
a.reports-hero__kpi:focus-visible {
    background: rgba(255, 255, 255, .09);
    color: #fff;
    text-decoration: none;
}

a.reports-hero__kpi:focus-visible {
    position: relative;
    z-index: 2;
    outline: 2px solid rgba(255, 255, 255, .8);
    outline-offset: -2px;
}

.reports-hero__kpi > span {
    display: block;
    color: rgba(255, 255, 255, .62);
    font-size: .58rem;
    font-weight: 850;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.reports-hero__kpi > strong {
    display: block;
    margin-top: .24rem;
    color: #fff;
    font-size: .8rem;
    font-weight: 850;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.reports-eyebrow {
    margin: 0 0 .3rem;
    color: var(--reports-blue);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .09em;
    line-height: 1.25;
    text-transform: uppercase;
}

.reports-panel {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: end;
    margin: 1.15rem 0;
    padding: clamp(1rem, 2.4vw, 1.35rem);
    border: 1px solid var(--reports-border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 .65rem 1.8rem rgba(16, 38, 64, .08);
}

.reports-panel__heading {
    min-width: 0;
}

.reports-panel__heading h2,
.reports-collection-header h2 {
    margin: 0;
    color: var(--reports-ink);
    line-height: 1.18;
    text-align: left;
}

.reports-panel__heading h2 {
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

.reports-panel__heading > p:last-child,
.reports-collection-header > div > p:last-child {
    max-width: 43rem;
    margin: .42rem 0 0;
    color: var(--reports-muted);
    font-size: .88rem;
    line-height: 1.5;
}

.reports-form {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(7.5rem, .7fr));
    gap: .65rem;
    align-items: end;
    min-width: 0;
    margin: 0;
}

.reports-field {
    display: block;
    min-width: 0;
    margin: 0;
}

.reports-field > span {
    display: block;
    margin-bottom: .34rem;
    color: #243447;
    font-size: .72rem;
    font-weight: 850;
    line-height: 1.25;
}

.reports-field input,
.reports-field select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 2.8rem;
    margin: 0;
    padding: .58rem .72rem;
    border: 1px solid rgba(36, 52, 71, .25);
    border-radius: .62rem;
    background: #fff;
    color: var(--reports-ink);
    font: inherit;
    font-size: .82rem;
    line-height: 1.3;
}

.reports-field select {
    padding-right: 2rem;
}

.reports-form__actions {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    padding-top: .1rem;
}

.reports-view-switch {
    display: inline-grid;
    grid-template-columns: repeat(2, auto);
    overflow: hidden;
    border: 1px solid rgba(36, 52, 71, .2);
    border-radius: .58rem;
    background: #eef3f7;
}

.reports-view-button,
.reports-reset {
    appearance: none;
    min-height: 2.35rem;
    margin: 0;
    font: inherit;
    font-size: .74rem;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
}

.reports-view-button {
    padding: .5rem .75rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--reports-muted);
}

.reports-view-button.is-active {
    background: #fff;
    box-shadow: 0 .15rem .45rem rgba(13, 45, 76, .1);
    color: var(--reports-blue-dark);
}

.reports-reset {
    padding: .5rem .8rem;
    border: 1px solid var(--reports-blue);
    border-radius: .58rem;
    background: #fff;
    color: var(--reports-blue-dark);
}

.reports-reset:disabled {
    border-color: rgba(36, 52, 71, .14);
    background: #f3f5f8;
    color: #98a3ae;
    cursor: default;
}

.reports-collection-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--reports-border);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .75rem 2rem rgba(16, 38, 64, .075);
}

.reports-collection-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--reports-border);
}

.reports-collection-header h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
}

.reports-result {
    margin: 0;
    color: var(--reports-muted);
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.35;
    text-align: right;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
    min-width: 0;
    padding: 1rem;
}

.reports-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--reports-border);
    border-radius: .86rem;
    background: #fff;
    box-shadow: 0 .45rem 1.2rem rgba(16, 38, 64, .07);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.reports-card__link {
    display: flex;
    height: 100%;
    min-width: 0;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.reports-card__media {
    position: relative;
    display: grid;
    min-width: 0;
    aspect-ratio: 520 / 250;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--reports-border);
    background:
        radial-gradient(circle at 50% 28%, rgba(29, 66, 137, .08), transparent 65%),
        #edf2f7;
}

.reports-card__cover {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
}

.reports-card__year {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 1;
    display: inline-flex;
    min-height: 1.65rem;
    align-items: center;
    padding: .25rem .5rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: .45rem;
    background: rgba(8, 28, 51, .82);
    box-shadow: 0 .28rem .75rem rgba(0, 0, 0, .16);
    color: #fff;
    font-size: .64rem;
    font-weight: 850;
    line-height: 1;
}

.reports-card__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: var(--reports-blue-dark);
    text-align: center;
}

.reports-card__placeholder strong {
    font-size: clamp(1.8rem, 5vw, 2.7rem);
    line-height: 1;
}

.reports-card__placeholder span {
    margin-top: .45rem;
    font-size: .58rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.reports-card__body {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    padding: .7rem .75rem .74rem;
}

.reports-card__title {
    color: var(--reports-blue-dark);
    font-size: .88rem;
    line-height: 1.2;
}

.reports-card__meta {
    margin-top: .25rem;
    color: var(--reports-muted);
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.3;
}

.reports-card__action {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: .25rem;
    margin-top: auto;
    padding-top: .42rem;
    color: var(--reports-blue);
    font-size: .7rem;
    font-weight: 850;
    line-height: 1.2;
}

.reports-grid.is-list {
    display: block;
    padding: 0;
}

.reports-grid.is-list .reports-card {
    border: 0;
    border-bottom: 1px solid var(--reports-border);
    border-radius: 0;
    box-shadow: none;
}

.reports-grid.is-list .reports-card:last-child {
    border-bottom: 0;
}

.reports-grid.is-list .reports-card.is-even {
    background: #fbfcfe;
}

.reports-grid.is-list .reports-card__link {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    min-height: 6.25rem;
}

.reports-grid.is-list .reports-card__media {
    min-height: 6.25rem;
    aspect-ratio: 520 / 250;
    border-right: 1px solid var(--reports-border);
    border-bottom: 0;
}

.reports-grid.is-list .reports-card__cover {
    padding: 0;
}

.reports-grid.is-list .reports-card__year {
    top: .35rem;
    right: .35rem;
    min-height: 1.35rem;
    padding: .18rem .35rem;
    font-size: .55rem;
}

.reports-grid.is-list .reports-card__body {
    justify-content: center;
    padding: .75rem .9rem;
}

.reports-grid.is-list .reports-card__title {
    font-size: .92rem;
}

.reports-grid.is-list .reports-card__action {
    margin-top: .4rem;
    padding-top: 0;
}

.reports-empty {
    display: grid;
    gap: .3rem;
    margin: 1rem;
    padding: 1.4rem;
    border: 1px solid var(--reports-border);
    border-radius: .85rem;
    background: #f8fafc;
    color: var(--reports-muted);
    text-align: center;
}

.reports-empty strong {
    color: var(--reports-ink);
}

.reports-pagination {
    display: flex;
    min-height: 4.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1rem;
    border-top: 1px solid var(--reports-border);
    background: #f8fafc;
}

.reports-pagination[hidden],
.reports-page [hidden] {
    display: none !important;
}

.reports-pagination > p {
    margin: 0;
    color: var(--reports-muted);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.35;
}

.reports-pagination__buttons,
.reports-page-numbers {
    display: flex;
    align-items: center;
    gap: .28rem;
}

.reports-page-button,
.reports-page-number {
    appearance: none !important;
    display: inline-flex !important;
    width: auto !important;
    min-width: 2.25rem !important;
    height: 2.25rem !important;
    min-height: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: .35rem .58rem !important;
    border: 1px solid rgba(18, 54, 96, .18) !important;
    border-radius: .48rem !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #354a63 !important;
    font: inherit !important;
    font-size: .74rem !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    text-transform: none !important;
    transform: none !important;
    cursor: pointer !important;
}

.reports-page-button:hover,
.reports-page-number:hover,
.reports-page-button:focus-visible,
.reports-page-number:focus-visible {
    border-color: rgba(29, 66, 137, .42) !important;
    background: #edf4fc !important;
    color: var(--reports-blue) !important;
    outline: 0 !important;
}

.reports-page-number[aria-current="page"] {
    border-color: var(--reports-blue) !important;
    background: var(--reports-blue) !important;
    color: #fff !important;
}

.reports-page-button:disabled,
.reports-page-number:disabled {
    border-color: rgba(18, 54, 96, .1) !important;
    background: #f3f5f8 !important;
    color: #9aa5b2 !important;
    cursor: default !important;
    opacity: 1 !important;
}

.reports-page-ellipsis {
    display: inline-grid;
    width: 1.6rem;
    height: 2.25rem;
    place-items: center;
    color: #7b8999;
    font-size: .76rem;
}

.reports-field input:focus-visible,
.reports-field select:focus-visible,
.reports-view-button:focus-visible,
.reports-reset:focus-visible,
.reports-card__link:focus-visible {
    outline: 3px solid var(--reports-focus);
    outline-offset: 3px;
}

@media (max-width: 68rem) {
    .reports-panel {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .reports-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 52rem) {
    .reports-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reports-field--search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 47.99rem) {
    .reports-page {
        padding-top: .75rem;
    }

    .reports-shell {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .reports-hero__topline {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: .24rem;
        padding: .75rem .8rem;
    }

    .reports-hero__scoreboard {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: .45rem;
        padding: 1.25rem .75rem;
    }

    .reports-hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: .98;
    }

    .reports-hero__title p {
        font-size: .58rem;
    }

    .reports-hero__kpis {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .reports-hero__kpi {
        grid-column: span 2;
        min-height: 3.45rem;
        padding: .62rem .58rem;
    }

    .reports-hero__kpi:nth-child(4),
    .reports-hero__kpi:nth-child(5) {
        grid-column: span 3;
    }

    .reports-hero__kpi:nth-child(1),
    .reports-hero__kpi:nth-child(4) {
        border-left: 0;
    }

    .reports-hero__kpi > span {
        font-size: .5rem;
        letter-spacing: .025em;
    }

    .reports-hero__kpi > strong {
        margin-top: .18rem;
        font-size: .72rem;
    }

    .reports-panel {
        margin-top: .85rem;
        padding: .9rem;
        border-radius: .9rem;
    }

    .reports-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reports-collection-header {
        align-items: flex-start;
        flex-direction: column;
        gap: .45rem;
        padding: .85rem;
    }

    .reports-result {
        text-align: left;
    }

    .reports-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem;
        padding: .7rem;
    }

    .reports-card {
        border-radius: .68rem;
        box-shadow: 0 .25rem .75rem rgba(16, 38, 64, .065);
    }

    .reports-card__body {
        padding: .62rem;
    }

    .reports-card__title {
        font-size: .78rem;
    }

    .reports-card__meta,
    .reports-card__action {
        font-size: .62rem;
    }

    .reports-pagination {
        align-items: stretch;
        flex-direction: column;
        gap: .65rem;
        padding: .75rem;
    }

    .reports-pagination > p {
        text-align: center;
    }

    .reports-pagination__buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .reports-page-button--wide {
        font-size: 0 !important;
    }

    .reports-page-button--wide:first-of-type::after {
        font-size: .82rem;
        content: "‹";
    }

    .reports-page-button--wide:nth-last-child(2)::after {
        font-size: .82rem;
        content: "›";
    }
}

@media (max-width: 31rem) {
    .reports-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .reports-field--search {
        grid-column: auto;
    }

    .reports-form__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .reports-view-switch {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reports-reset {
        width: 100%;
    }
}

@media (max-width: 24rem) {
    .reports-page-button--edge {
        display: none !important;
    }

    .reports-hero__kpi {
        padding-inline: .42rem;
    }

    .reports-hero__kpi > span {
        font-size: .47rem;
    }
}

@media (max-width: 21.99rem) {
    .reports-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (hover: hover) and (pointer: fine) {
    .reports-card:hover {
        border-color: rgba(29, 66, 137, .4);
        box-shadow: 0 .85rem 1.8rem rgba(16, 38, 64, .13);
        transform: translateY(-2px);
    }

    .reports-grid.is-list .reports-card:hover {
        background: #f4f8fd;
        box-shadow: inset .22rem 0 0 var(--reports-blue);
        transform: none;
    }

    .reports-reset:not(:disabled):hover {
        background: #edf4fc;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reports-card,
    .reports-hero__kpi {
        transition: none;
    }
}

/* v2: kortbilderna följer originalformatet 520×250 */
@media (max-width: 47.99rem) {
    .reports-grid.is-list .reports-card__link {
        grid-template-columns: 9rem minmax(0, 1fr);
        min-height: 4.33rem;
    }

    .reports-grid.is-list .reports-card__media {
        min-height: 4.33rem;
        aspect-ratio: 520 / 250;
    }

    .reports-grid.is-list .reports-card__body {
        padding: .52rem .62rem;
    }

    .reports-grid.is-list .reports-card__title {
        font-size: .78rem;
    }

    .reports-grid.is-list .reports-card__meta,
    .reports-grid.is-list .reports-card__action {
        font-size: .6rem;
    }
}

@media (max-width: 24rem) {
    .reports-grid.is-list .reports-card__link {
        grid-template-columns: 7.5rem minmax(0, 1fr);
        min-height: 3.61rem;
    }

    .reports-grid.is-list .reports-card__media {
        min-height: 3.61rem;
    }

    .reports-grid.is-list .reports-card__year {
        display: none;
    }
}
