/* =====================================================================
   Home page (/, pages/homepage.py): an open, centred welcome page (no cards).
   Colours: assets/theme.css; the animated title colours: .title-word in assets/style.css.
   ===================================================================== */
.nma-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: none;
    padding: 2.2em clamp(16px, 4vw, 56px) 0;
    text-align: center;
    background: #fff;
}

/* ---------- title ---------- */
.nma-home .home-title {
    margin: 0.2em 0 0.3em;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(2em, 3.6vw, 3.2em);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.nma-home .home-tagline {
    max-width: 46em;
    margin: 0 0 0.8em;
    font-size: clamp(1em, 1.3vw, 1.2em);
    color: #5c7780;
}

.nma-home .home-main-pic {
    display: block;
    width: min(1200px, 100%);
    height: auto;
    margin: 0 auto;
}

/* ---------- section headings ---------- */
.nma-home .home-heading {
    margin: 2.4em 0 1em;
    font-size: clamp(1.4em, 2.1vw, 1.9em);
    font-weight: 500;
    color: #5c7780;
}

.nma-home .home-text {
    max-width: 52em;
    margin: 0 0 1.4em;
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-ink);
}

.nma-home .home-muted {
    margin-top: 0.4em;
    font-size: 14.5px;
    color: var(--c-ink-muted);
}

.nma-home .home-link {
    color: var(--c-primary-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- results: animated icons in a row ---------- */
.nma-home .home-results {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6em 2em;
    max-width: 1200px;
}

.nma-home .home-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7em;
    width: 140px;
}

.nma-home .home-result-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.nma-home .home-result:hover .home-result-icon {
    transform: scale(1.12);
}

.nma-home .home-result-label {
    font-size: 15px;
    line-height: 1.4;
    color: var(--c-ink);
}

/* ---------- NMA-KIT: two reports as big circles (procedure picture style) ---------- */
.nma-home .home-kits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em clamp(3em, 10vw, 9em);
}

.nma-home .home-kit {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 280px;
}

.nma-home .home-kit-icon {
    width: 130px;
    height: 130px;
    margin-bottom: 0.8em;
    filter: drop-shadow(0 6px 14px rgba(29, 43, 58, 0.14));
    transition: transform 0.2s ease;
}

.nma-home .home-kit:hover .home-kit-icon {
    transform: translateY(-3px);
}

.nma-home .home-kit-name {
    font-size: 1.2em;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nma-home .home-kit-name-report {
    color: var(--c-primary);
}

.nma-home .home-kit-name-summary {
    color: var(--c-accent);
}

.nma-home .home-kit-text {
    margin-top: 0.35em;
    font-size: 15px;
    line-height: 1.5;
    color: var(--c-ink-muted);
}

.nma-home .home-kit-features {
    max-width: 52em;
    margin: 1.8em 0 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: #5c7780;
}

/* ---------- before uploading ---------- */
.nma-home .home-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.6em 1.2em;
}

.nma-home .home-and {
    color: var(--c-ink-muted);
}

.nma-home .home-tutorial {
    margin-top: 1.6em;
    font-size: 1.35em;
    color: var(--c-accent);
    text-decoration: none;
}

.nma-home .home-tutorial:hover {
    color: var(--c-primary-dark);
    text-decoration: underline;
}

/* ---------- start ---------- */
.nma-home .ui-button.home-start {
    min-width: 9em;
    justify-content: center;
    padding: 0.6em 1.8em;
    font-size: 1.3em;
    text-decoration: none;
}

/* ---------- questions and footer ---------- */
.nma-home .home-contact {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--c-ink);
}

/* university logos at the bottom */
.nma-home .home-institutions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5em 4em;
    width: 100%;
    margin-top: 3.5em;
    padding-top: 2em;
    border-top: 1px solid var(--c-border);
}

.nma-home .home-inst-logo {
    height: 60px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
}

.nma-home .home-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5em 1.5em;
    width: 100%;
    margin-top: 2em;
    padding: 1.1em 0 1.3em;
    font-size: 13.5px;
    color: var(--c-ink-muted);
    border-top: 1px solid var(--c-border);
}

/* white page, so the animated icons (white background) blend in */
body:has(.nma-home),
body:has(.nma-home) #_pages_content,
.nma-modern.nma-home {
    background: #fff !important;
}

/* all seven result icons on one row on a normal screen */
.nma-home .home-results {
    gap: 1.4em 1.2em;
    max-width: 1240px;
}

.nma-home .home-result {
    width: 135px;
}

.nma-home .home-link {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}
