:root {
    --ink: #092a61;
    --muted: #4e6688;
    --blue: #0879c2;
    --blue-dark: #07529d;
    --aqua: #d8f3fb;
    --sky: #edf6ff;
    --line: #cfe1f1;
    --accent: #c51b69;
    --white: #fff;
    --shadow: 0 14px 35px rgba(16, 42, 67, .09);
    --content-wide: 960px
}

.nav-current {
    display: block;
    padding: .65rem .8rem;
    border-radius: .4rem;
    color: var(--blue-dark);
    background: var(--sky);
    font-weight: 700;
    font-size: .94rem
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6
}

a {
    color: inherit
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px
}

/* .container {
    width: min(1200px, calc(100% - 2.5rem));
    margin: 0 auto
} */

.container {
    width: min(var(--content-wide), calc(100% - 2.5rem));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    z-index: 20;
    top: -4rem;
    left: 1rem;
    padding: .65rem 1rem;
    border-radius: .35rem;
    background: var(--ink);
    color: var(--white)
}

.skip-link:focus {
    top: 1rem
}

.site-header {
    position: relative;
    border-bottom: 1px solid rgba(217, 230, 235, .9);
    background: rgba(255, 255, 255, .96)
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1rem
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    font-weight: 750;
    letter-spacing: -.02em
}

.brand img {
    width: 52px;
    height: 52px;
    object-fit: contain
}

.brand span {
    font-size: 1.3rem
}

.brand-name {
    font-size: 1.3rem;
}

.brand > .brand-name {
    font-size: 1.3rem;
}

.brand-primary {
    color: var(--ink);
}

.brand-accent {
    color: var(--accent);
}


.menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: .45rem;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: .2rem;
    margin: 0;
    padding: 0;
    list-style: none
}

.site-nav a {
    display: block;
    padding: .65rem .8rem;
    border-radius: .4rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    font-size: .94rem
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--blue-dark);
    background: var(--sky)
}

.page-intro {
    background: linear-gradient(135deg, #f7fbff 0%, #e5f5fc 52%, #f6eff8 100%)
}

.eyebrow,
.section-label {
    margin: 0 0 .85rem;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase
}

h1,
h2,
h3 {
    line-height: 1.16;
    letter-spacing: -.035em
}

h1 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(2.45rem, 7vw, 4.8rem)
}

h2 {
    margin: 0
}

.hero-copy,
.section-intro {
    max-width: 680px;
    margin: 1.2rem 0 1.7rem;
    color: var(--muted);
    font-size: clamp(1.04rem, 2vw, 1.18rem)
}

/* Added by Nj */
.section-intro-highlight {
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--accent);
    border-radius: .35rem;
    background: linear-gradient(135deg, #fff 0%, #fff8fc 100%);
    color: var(--ink);
    font-weight: 650;
}


section {
    padding: 4rem 0
}

.page-intro {
    padding: 3.5rem 0
}

.page-intro h1 {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem)
}

.page-intro h1,
.section-heading {
    max-width: var(--content-wide);
}

.section-heading {
    font-size: clamp(1.85rem, 4vw, 2.85rem)
}

.section-intro {
    margin-bottom: 2rem
}

.benefit-grid,
.capability-grid,
.preview-grid {
    display: grid;
    gap: 1rem
}

.benefit-grid,
.capability-grid {
    max-width: var(--content-wide)
}

.benefit,
.capability {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: .8rem;
    background: var(--white)
}

/* .preview-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
} */

.preview-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: .8rem;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 4px 12px rgba(16, 42, 67, .035);
    text-decoration: none;
    cursor: pointer;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease,
        background-color .2s ease;
}

/* .preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(16, 42, 67, .08);
} */

.preview-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 12px 26px rgba(16, 42, 67, .11);
}

.preview-card:hover h2 span {
    transform: translateX(4px);
}

.preview-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.benefit {
    border-left: 4px solid #73c8c0
}

.benefit h3,
.capability h3 {
    margin: 0 0 .45rem;
    color: var(--accent);
    font-size: 1.08rem
}

.benefit p,
.capability p,
.preview-card p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem
}

.preview-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(16, 42, 67, .035)
}

.home .preview-grid {
    max-width: var(--content-wide)
}

.home-overview {
    min-height: calc(100vh - 150px);
    display: grid;
    align-items: center;
    background: linear-gradient(135deg, #f7fbff 0%, #e8f6fc 62%, #f8f0f7 100%)
}

.home-overview .section-intro-highlight {
    margin-top: .25rem;
}

.home-overview .preview-grid {
    margin-top: 2rem;
}

.home-overview h1 {
    max-width: 820px;
    font-size: clamp(2.45rem, 6vw, 4.35rem)
}

.home-overview .section-intro {
    margin-bottom: 2.2rem
}

/* .preview-card h2 {
    margin: 0 0 .45rem;
    font-size: 1.08rem
} */

.preview-card h2 {
    color: var(--accent);
    font-size: 1.08rem;
}

.preview-card h2 span {
    display: inline-block;
    margin-left: .25rem;
    transition: transform .2s ease;
}

.preview-card h2 a {
    color: var(--accent);
    text-decoration: none
}

.preview-card h2 a:hover {
    text-decoration: underline;
    text-underline-offset: 3px
}

.benefit-research {
    border-left-color: var(--accent);
    background: linear-gradient(135deg, #fff 0%, #fff8fc 100%)
}

.text-link {
    color: var(--blue-dark);
    font-weight: 750;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px
}

.workflow-section {
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 18%, rgba(197, 27, 105, .1), transparent 25rem),
        linear-gradient(135deg, var(--sky), #f9eff7)
}

.why-emr-page .page-intro {
    background: linear-gradient(135deg, #f4faff 0%, #e7f6fb 55%, #faedf6 100%)
}

.specialist-grid {
    display: grid;
    gap: 1rem;
    max-width: var(--content-wide)
}

.specialist-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: .85rem;
    background: var(--white)
}

.specialist-card-accent {
    border-color: #efbdd6;
    background: linear-gradient(145deg, var(--white), #fff3f9)
}

.specialist-number {
    display: grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 50%;
    background: var(--aqua);
    color: var(--blue-dark);
    font-size: .78rem;
    font-weight: 800
}

.specialist-card-accent .specialist-number {
    background: #f8d7e7;
    color: var(--accent)
}

.specialist-card h3,
.clinical-node h3,
.clinical-hub h3 {
    margin: 0 0 .35rem;
    font-size: 1.05rem
}

.specialist-card h3 {
    color: var(--accent)
}

.specialist-card p,
.clinical-node p,
.clinical-hub p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem
}

.clinical-map {
    position: relative;
    display: grid;
    gap: .8rem;
    max-width: var(--content-wide);
    margin-top: 1.75rem
}

.clinical-node,
.clinical-hub {
    position: relative;
    z-index: 1;
    padding: 1.05rem;
    border: 1px solid #d9c6db;
    border-radius: .85rem;
    background: rgba(255, 255, 255, .96)
}

.clinical-node-label,
.clinical-hub-kicker {
    display: inline-block;
    margin-bottom: .55rem;
    color: var(--accent);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase
}

.clinical-hub {
    border: 0;
    background: linear-gradient(145deg, var(--ink), #163d7a);
    box-shadow: 0 14px 28px rgba(9, 42, 97, .17);
    color: var(--white)
}

.clinical-hub p {
    color: #dceaf4
}

.clinical-hub-kicker {
    color: #f3a9cc
}

.clinical-node-evidence {
    border-color: #e89cbe;
    background: #fff6fa
}

.configuration-note {
    max-width: var(--content-wide);
    margin-top: 1rem;
    padding: 1.35rem;
    border-left: 4px solid var(--accent);
    border-radius: .75rem;
    background: linear-gradient(135deg, #fff7fb, var(--white))
}

.configuration-note h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem)
}

.configuration-note p:last-child {
    max-width: 760px;
    margin: .65rem 0 0;
    color: var(--muted)
}

.capability-research {
    border-color: #efbdd6;
    background: linear-gradient(145deg, var(--white), #fff3f9)
}

.capability-research .capability-mark {
    background: #f8d7e7;
    color: var(--accent)
}

.workflow {
    display: grid;
    gap: .75rem;
    max-width: var(--content-wide);
    margin: 2rem 0 0
}

.workflow-step {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: .75rem;
    background: var(--white);
    box-shadow: 0 5px 14px rgba(16, 42, 67, .05)
}

.workflow-icon,
.capability-mark {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: .65rem;
    background: var(--aqua);
    color: var(--blue-dark);
    font-weight: 800
}

.workflow-step strong {
    display: block
}

.workflow-step>div {
    display: grid;
    grid-template-rows: 1.5rem auto;
    align-content: start;
    min-height: 3.8rem
}

.workflow-step span {
    color: var(--muted);
    font-size: .9rem
}

.workflow-arrow {
    justify-self: center;
    height: 1.3rem;
    color: #258cc7
}

.capability {
    min-height: 100%;
    box-shadow: 0 4px 12px rgba(16, 42, 67, .035)
}

.capability-mark {
    width: 2.45rem;
    height: 2.45rem;
    margin-bottom: 1rem;
    background: var(--sky);
    color: var(--blue)
}

.access-panel {
    max-width: var(--content-wide);
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 1rem;
    background: var(--ink);
    color: var(--white)
}

.access-panel h2 {
    max-width: 650px;
    font-size: clamp(1.8rem, 4vw, 2.8rem)
}

.access-panel p {
    max-width: 700px;
    margin: 1rem 0 0;
    color: #d9e9ed
}

.instruction-card {
    max-width: 800px;
    padding: clamp(1.4rem, 4vw, 2.25rem);
    border: 1px solid #b7dadd;
    border-radius: 1rem;
    background: var(--white);
    box-shadow: var(--shadow)
}

.instruction-card p {
    max-width: 670px;
    color: var(--muted)
}

.contact-details {
    display: grid;
    gap: 1rem;
    margin: 1.4rem 0 0
}

.contact-details div {
    display: grid;
    gap: .15rem
}

.contact-details dt {
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase
}

.contact-details dd {
    margin: 0;
    color: var(--muted)
}

/* Contact page: group communication routes without affecting shared cards. */
.contact-page .page-intro .hero-copy {
    max-width: 750px
}

.contact-page main {
    background: linear-gradient(180deg, #fbfdff 0%, #f4faff 42%, #fff 100%)
}

.contact-page main>section:not(.page-intro) {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem
}

.contact-page .contact-card {
    max-width: var(--content-wide)
}

.contact-page .contact-card-heading h2 {
    font-size: clamp(1.7rem, 3vw, 2.35rem)
}

.contact-page .contact-details {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-top: 1.6rem
}

.contact-page .contact-option {
    min-height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: .75rem;
    background: linear-gradient(145deg, var(--white), #fbfdff)
}

.contact-page .contact-option h3 {
    margin: 0 0 .55rem;
    color: var(--accent);
    font-size: 1.08rem
}

.contact-page .contact-option p {
    margin: 0;
    font-size: .95rem
}

.contact-page .contact-option p+p {
    margin-top: 1rem
}

.contact-page .contact-card a {
    color: var(--blue-dark);
    font-weight: 750;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px
}

.contact-page .contact-card a:hover {
    color: var(--accent)
}

.contact-page .contact-person-details {
    width: 100%;
    max-width: none;
    margin-top: 0
}

.contact-page .contact-person {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line)
}

.contact-page .contact-person>* {
    min-width: 0
}

.contact-page .contact-person h3 {
    margin: 0 0 .45rem;
    color: var(--accent);
    font-size: 1.08rem
}

.contact-page .contact-person p {
    max-width: none;
    margin: 0
}

.contact-page .contact-person-details>div {
    padding: 1rem 1.1rem;
    border-left: 3px solid var(--aqua);
    background: var(--sky)
}

.contact-page .contact-person-details dd {
    font-size: 1.04rem
}

.notice {
    margin-top: 1.2rem;
    padding: 1rem 1.1rem;
    border-left: 4px solid var(--accent);
    background: var(--sky);
    color: var(--muted)
}

.access-page main {
    background: linear-gradient(180deg, #fbfdff 0%, #f4faff 55%, #fff 100%)
}

.access-option-grid {
    display: grid;
    gap: 1rem;
    max-width: var(--content-wide);
    margin-top: 1.5rem
}

.access-page .notice {
    max-width: var(--content-wide)
}

.access-option {
    max-width: none;
    box-shadow: 0 4px 12px rgba(16, 42, 67, .035)
}

.access-option h3 {
    margin: 0;
    color: var(--accent);
    font-size: clamp(1.3rem, 2.5vw, 1.65rem)
}

.access-option > :last-child {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 1rem;
}

footer {
    padding: 1.8rem 0;
    color: #617487;
    font-size: .9rem;
    text-align: center
}

@media(min-width:640px) {

    .benefit-grid,
    .capability-grid,
    .preview-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .specialist-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media(min-width:820px) {
    .header-inner {
        min-height: 78px
    }

    .menu-toggle {
        display: none
    }

    section {
        padding: 5.5rem 0
    }

    .page-intro {
        padding: 4.5rem 0
    }

    .contact-page main>section:not(.page-intro) {
        padding-top: 3.5rem
    }

    .benefit-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .capability-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .home .preview-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .clinical-map {
        grid-template-columns: 1fr 1.08fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 1rem 1.4rem
    }

    .clinical-map::before,
    .clinical-map::after {
        position: absolute;
        z-index: 0;
        content: "";
        background: linear-gradient(90deg, #69c7dd, #d9689d)
    }

    .clinical-map::before {
        top: 50%;
        left: 16%;
        width: 68%;
        height: 2px
    }

    .clinical-map::after {
        top: 15%;
        left: 50%;
        width: 2px;
        height: 70%;
        background: linear-gradient(#69c7dd, #d9689d)
    }

    .clinical-node-question {
        grid-area: 1 / 2
    }

    .clinical-node-capture {
        grid-area: 2 / 1
    }

    .clinical-hub {
        grid-area: 2 / 2;
        align-self: center;
        text-align: center
    }

    .clinical-node-review {
        grid-area: 2 / 3
    }

    .clinical-node-evidence {
        grid-area: 3 / 2
    }

    .access-option-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .workflow {
        grid-template-columns: 1fr auto 1fr auto 1fr;
        align-items: stretch;
        gap: .5rem
    }

    .workflow-step {
        grid-template-columns: 1fr;
        grid-template-rows: 3rem 3.8rem;
        align-content: center;
        justify-items: center;
        text-align: center;
        padding: 1.1rem .7rem
    }

    .workflow-arrow {
        align-self: center;
        transform: rotate(-90deg)
    }
}

/*
 * Home page desktop composition
 *
 * Keep paragraph lines readable, but use the wider viewport as a real
 * two-column hero. The existing Streemr artwork occupies the visual column
 * and the destination cards span the full content rail below it.
 */
@media(min-width:1024px) {
    .home-overview {
        min-height: auto;
        display: block;
        padding-top: clamp(4rem, 7vh, 5.5rem);
        padding-bottom: clamp(3.5rem, 6vh, 4.75rem)
    }

    .home-overview>.container {
        display: grid;
        grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
        column-gap: clamp(3rem, 6vw, 6rem);
        align-items: center
    }

    .home-overview>.container>.section-label,
    .home-overview>.container>h1,
    .home-overview>.container>.section-intro {
        grid-column: 1
    }

    .home-overview>.container>.section-label {
        grid-row: 1
    }

    .home-overview>.container>h1 {
        grid-row: 2;
        max-width: 720px
    }

    .home-overview>.container>.section-intro {
        max-width: 680px;
        margin-top: 1.1rem;
        margin-bottom: 1.25rem
    }

    .home-overview>.container>.section-intro-highlight {
        margin-top: .35rem
    }

    .home-overview>.container::after {
        grid-column: 2;
        grid-row: 1 / 6;
        align-self: center;
        justify-self: center;
        width: min(100%, 390px);
        aspect-ratio: 1;
        content: "";
        background: url("../streemr-tr-logo-512.png") center / contain no-repeat;
        filter: drop-shadow(0 18px 28px rgba(9, 42, 97, .12))
    }

    .home-overview .preview-grid {
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
        margin-top: clamp(2.25rem, 5vh, 3.5rem)
    }

    .home-overview .preview-card {
        min-height: 100%;
        padding: 1.35rem;
        border: 1px solid rgba(207, 225, 241, .8);
        border-radius: .8rem;
        background: rgba(255, 255, 255, .72)
    }
}

@media(min-width:1440px) {
    .home-overview>.container {
        grid-template-columns: minmax(0, 1.5fr) minmax(320px, .7fr)
    }
}

@media(max-width:819px) {
    .site-nav {
        position: absolute;
        z-index: 10;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        padding: .75rem max(1.25rem, calc((100% - 1120px)/2));
        border-bottom: 1px solid var(--line);
        background: var(--white);
        box-shadow: 0 8px 18px rgba(16, 42, 67, .08)
    }

    .site-nav[data-open="true"] {
        display: block
    }

    .site-nav ul {
        display: grid;
        gap: .25rem
    }

    .site-nav a {
        padding: .8rem
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *:before,
    *:after {
        transition-duration: .01ms !important
    }
}

.access-option,
.contact-option {
    display: flex;
    flex-direction: column;
}

.access-option .text-link,
.contact-option p:last-child {
    margin-top: auto;
    padding-top: 1rem;
}
