/* Patient information and memorial. Loaded after the existing site theme. */

#main {
    color: #4c5654;
}

#main > section {
    padding: clamp(24px, 3.2vw, 44px);
}

#main > section,
#main {
    scroll-margin-top: 24px;
}

#one h1 {
    color: #354b46;
    font-size: clamp(1.5rem, 2.3vw, 2rem);
    line-height: 1.25;
    margin-bottom: 0;
}

.app-content {
    min-width: 0;
}

#main a:focus-visible,
#main summary:focus-visible,
#header a:focus-visible,
.skip-link:focus-visible {
    outline: 3px solid #398378;
    outline-offset: 5px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 12px 20px;
    background: #fff;
    color: #245e54;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.memorial-notice {
    padding: 23px 27px;
    border: 1px solid #d9e2df;
    border-left: 3px solid #718c83;
    border-radius: 0 10px 10px 0;
    background: #eaf0ed;
    font-size: 1rem;
    line-height: 1.65;
}

.memorial-notice p {
    margin-bottom: 10px;
    color: #3b4944;
}

.memorial-notice a,
#pasientinformasjon p a {
    color: #286b60;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.memorial-notice a:hover,
#pasientinformasjon p a:hover {
    color: #174b42 !important;
}

#about .team-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 620px;
    margin: 28px auto 0;
}

#about .team-member {
    min-width: 0;
    margin: 0;
    max-width: none;
}

#about .team-image {
    width: min(100%, 170px);
    height: auto;
    aspect-ratio: 1;
}

#main > #fred-holsten {
    background: #f8f6f1;
    border: 1px solid #e2dfd6;
    border-radius: 14px;
    box-shadow: none;
    margin-top: 40px;
}

.memorial-layout {
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.memorial-portrait img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.memorial-portrait figcaption {
    margin-top: 12px;
    color: #676b63;
    font-size: 0.85rem;
    line-height: 1.5;
}

.memorial-copy h2 {
    font-family: Georgia, "Times New Roman", serif;
    color: #35413c;
    font-size: clamp(1.9rem, 2.5vw, 2.4rem);
    line-height: 1.25;
    margin-bottom: 20px;
}

.memorial-eyebrow,
.section-eyebrow {
    display: block;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
    color: #5e7368;
    margin-bottom: 10px;
}

.memorial-copy p {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.memorial-copy p:last-child {
    margin-bottom: 0;
}

#pasientinformasjon {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    font-size: 1.0625rem;
    line-height: 1.75;
}

#main > .patient-disclosure {
    margin-top: 16px;
    scroll-margin-top: 24px;
}

.patient-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 64px;
    padding: 22px clamp(20px, 3.2vw, 44px);
    background: #edf4f1;
    border-radius: 13px;
    cursor: pointer;
    list-style: none;
}

.patient-summary::-webkit-details-marker {
    display: none;
}

.patient-summary::marker {
    content: "";
}

.patient-summary:hover {
    background: #e3eee8;
}

#pasientinformasjon .patient-summary h2 {
    color: #286b60;
    font-size: 1.125rem;
    line-height: 1.5;
    margin: 0;
}

.disclosure-icon {
    flex: 0 0 24px;
    color: #286b60;
    font-size: 1.5rem;
    line-height: 1;
    text-align: center;
}

.disclosure-icon::before {
    content: "+";
}

.patient-disclosure[open] .disclosure-icon::before {
    content: "\2212";
}

.patient-disclosure[open] .patient-summary {
    border-bottom: 1px solid #d9e2df;
    border-radius: 13px 13px 0 0;
}

.patient-content {
    padding: 28px clamp(20px, 3.2vw, 44px);
}

#pasientinformasjon h3 {
    color: #354b46;
    font-size: 1.22rem;
    line-height: 1.4;
    margin-bottom: 14px;
}

#pasientinformasjon p {
    max-width: 70ch;
    margin-bottom: 18px;
}

#pasientinformasjon .section-eyebrow {
    margin-bottom: 10px;
}

#pasientinformasjon .patient-header > p:last-child {
    color: #4c5654;
    font-size: inherit;
    line-height: inherit;
    margin-top: 0;
}

.patient-topic,
.patient-closing {
    border-top: 1px solid #e5ebe8;
    margin-top: 28px;
    padding-top: 28px;
}

.patient-topic > p:last-child {
    margin-bottom: 0;
}

.private-treatment {
    background: #edf4f1;
    border-left: 3px solid #398378;
    margin: 22px 0;
    padding: 20px 24px;
}

#pasientinformasjon .private-treatment p {
    margin: 0;
}

.private-treatment strong {
    color: #2d5147;
    font-weight: 600;
}

.patient-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.patient-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid #2b6c60;
    border-radius: 6px;
    background: #2b6c60;
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.patient-button:hover {
    background: #1e5248;
    color: #fff !important;
}

.patient-button-secondary {
    background: #fff;
    color: #2b6c60;
}

.patient-button-secondary:hover {
    background: #edf4f1;
    color: #1e5248 !important;
}

.contact-card-body {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media screen and (max-width: 1280px) and (min-width: 981px) {
    .memorial-layout {
        grid-template-columns: 130px minmax(0, 1fr);
        gap: 24px;
    }
}

@media screen and (max-width: 980px) {
    #header {
        padding: 36px 24px;
    }

    #header > .inner {
        align-items: center;
    }

    #header .image.avatar {
        max-width: 210px;
        margin: 0 auto 10px;
        padding-bottom: 8px;
    }

    #header .header-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 24px;
        text-align: center;
        margin: 0;
    }

    #header .header-links a {
        font-size: 1rem;
        min-height: 32px;
    }

    #main {
        padding: 28px 24px 40px;
        max-width: none;
    }

    #main > section {
        border-radius: 12px;
    }
}

@media screen and (max-width: 600px) {
    #main {
        padding: 20px 14px 32px;
    }

    #main > section {
        padding: 26px 20px;
    }

    .memorial-notice {
        padding: 20px;
    }

    .memorial-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .memorial-portrait {
        max-width: 180px;
    }

    #about .team-container {
        gap: 18px;
    }

    #about .team-member h3 {
        font-size: 1rem;
    }

    #about .team-member p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    #pasientinformasjon h3 {
        font-size: 1.15rem;
    }

    .private-treatment {
        padding: 18px;
    }

    .patient-actions {
        flex-direction: column;
    }
}

@media screen and (max-width: 350px) {
    #about .team-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}
