/* =========================================
   Yhteyshenkilö — otsikko + keskitetty henkilökortti (HTG)
   ========================================= */

.wdf-yhteyshenkilo {
    /* Täysleveä valkoinen tausta; kortti erottuu varjolla (Markus 17.11.2026) */
    margin-inline: calc(50% - 50vw);
    background: var(--wp--preset--color--base);
    color: var(--wp--preset--color--asphalt-900);
}

.wdf-yhteyshenkilo__sisalto {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px var(--wdf-padding-x);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Otsikko on rakenteessa H2 (18.11.2026), mutta ulkoasu on H3-kokoinen kuten
   ennen: koko, riviväli ja koristeviivan mitat annetaan tässä */
.wdf-yhteyshenkilo__otsikko {
    margin: 0 0 40px;
    text-align: center;
    font-size: var(--wp--preset--font-size--x-large);
    line-height: 1.2;
}

.wdf-yhteyshenkilo__otsikko::after {
    width: 120px;
    height: 5px;
    margin-top: 12px;
    margin-inline: auto;
}

/* Kortti: valkoinen, suorat kulmat, kevyt varjo */
.wdf-yhteyshenkilo__kortti {
    /* Kortin musta: teksti, henkilörengas ja ikonit (Markus 17.11.2026) */
    --yh-musta: var(--wp--preset--color--asphalt-900);
    color: var(--yh-musta);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 360px;
    padding: 48px 32px 44px;
    box-sizing: border-box;
    background: var(--wp--preset--color--base);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wdf-yhteyshenkilo__avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    /* Rengas ja ikoni samaa väriä kuin kortin teksti */
    border: 3px solid var(--yh-musta);
    border-radius: 50%;
    /* Läpinäkyvä: taustasymboli näkyy renkaan läpi (Markus 17.11.2026) */
    background: transparent;
    color: var(--yh-musta);
}

.wdf-yhteyshenkilo__avatar svg {
    width: 38px;
    height: 38px;
}

.wdf-yhteyshenkilo__nimi {
    position: relative;
    margin: 20px 0 0;
    font-family: var(--wp--preset--font-family--display);
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.2;
}

.wdf-yhteyshenkilo__titteli {
    position: relative;
    margin: 4px 0 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--wp--preset--color--asphalt-700);
}

.wdf-yhteyshenkilo__tiedot {
    position: relative;
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    text-align: left;
}

.wdf-yhteyshenkilo__tiedot a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    color: var(--yh-musta);
    font-weight: 500;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.wdf-yhteyshenkilo__tiedot a:hover {
    color: var(--wp--preset--color--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wdf-yhteyshenkilo__tiedot a:focus-visible {
    outline: 3px solid var(--wp--preset--color--primary);
    outline-offset: 3px;
}

/* Pyöreä keltainen ikonimerkki, ikoni kortin musta */
.wdf-yhteyshenkilo__ikoni {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wp--custom--vari--logo-keltainen);
    color: var(--yh-musta);
}

.wdf-yhteyshenkilo__ikoni svg {
    width: 20px;
    height: 20px;
}

/* Numero samalla painolla kuin sähköpostiosoite */
.wdf-yhteyshenkilo__numero {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
    .wdf-yhteyshenkilo__sisalto {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .wdf-yhteyshenkilo__otsikko {
        margin-bottom: 32px;
    }

    .wdf-yhteyshenkilo__kortti {
        padding: 40px 24px 36px;
    }
}

/* Sähköpostiosoitteen verkkotunnus pysyy yhtenä palana (katko vain @-merkin jälkeen) */
.wdf-yhteyshenkilo__verkkotunnus {
    white-space: nowrap;
}
