.ps-glass-panel {
    width: min(100%, 1320px);
    margin: 28px auto;
    padding: clamp(26px, 5vw, 48px);
    color: var(--ps-panel-text, #fafafa);
    background: var(--ps-glass-background, rgba(7,15,25,.74));
    border: 0;
    border-radius: var(--ps-radius, 10px);
    box-shadow: var(--ps-shadow, 0 12px 38px rgba(0,0,0,.3));
    backdrop-filter: blur(var(--ps-glass-blur, 14px)) saturate(85%);
    -webkit-backdrop-filter: blur(var(--ps-glass-blur, 14px)) saturate(85%);
}

.ps-glass-panel--narrow {
    max-width: 860px;
}

.ps-glass-panel__title {
    margin: 0;
    padding: 0;
    color: #fafafa;
    border: 0;
    font-family: "Roboto", sans-serif;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.ps-main:not(.ps-main--front) .ps-entry__content > .ps-glass-panel:first-child {
    margin-top: 0;
}

.ps-main:not(.ps-main--front) .ps-glass-panel__title {
    color: #fafafa;
    letter-spacing: 0.01em;
}

.ps-main:not(.ps-main--front) .ps-glass-panel__title + * {
    margin-top: 28px;
}

.ps-glass-panel__intro {
    margin: 0 0 15px;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
}

.ps-glass-panel__content {
    color: var(--ps-panel-text, #fafafa);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
}

.ps-glass-panel__intro > :first-child,
.ps-glass-panel__content > :first-child {
    margin-top: 0;
}

.ps-glass-panel__intro > :last-child,
.ps-glass-panel__content > :last-child {
    margin-bottom: 0;
}

.ps-glass-panel a {
    color: inherit;
    text-underline-offset: 3px;
}


/* =========================================================
   ISOT TEKSTIT
========================================================= */

.ps-entry__content h2,
.ps-entry__content h3,
.ps-article h2,
.ps-article h3 {
    color: #fafafa;
}


/* =========================================================
   LUOTTAMUSTEHTÄVÄT / CV
========================================================= */

.ps-cv__rows {
    display: grid;
    gap: 5px;
}

.ps-cv__row {
    display: grid;
    grid-template-columns: minmax(95px, 150px) 1fr;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.ps-cv__year {
    color: var(--ps-cv-year-color, #fafafa);
    font-size: var(--ps-cv-year-size, 18px);
    font-weight: var(--ps-cv-year-weight, 300);
    line-height: 1.4;
}

.ps-cv__position {
    min-width: 0;
}

.ps-cv__role {
    color: var(--ps-cv-role-color, #fafafa);
    font-size: var(--ps-cv-role-size, 18px);
    font-weight: var(--ps-cv-role-weight, 600);
    line-height: 1.4;
}

.ps-cv__city {
    color: var(--ps-cv-city-color, #fafafa);
    font-size: var(--ps-cv-city-size, 18px);
    font-weight: var(--ps-cv-city-weight, 300);
    line-height: 1.4;
    white-space: nowrap;
}


/* =========================================================
   SOSIAALINEN MEDIA
========================================================= */

.ps-social-panel__icons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ps-social-link {
    display: inline-flex;
    flex: 0 0 91px;
    align-items: center;
    justify-content: center;
    width: 91px;
    height: 91px;
    padding: 0;
    color: var(--ps-social-color, #151515);
    background: var(--ps-social-bg, #fafafa);
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(0,0,0,.22);
    text-decoration: none;
    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.ps-glass-panel a.ps-social-link {
    color: var(--ps-social-color, #151515);
}

.ps-glass-panel a.ps-social-link:hover,
.ps-glass-panel a.ps-social-link:focus-visible {
    color: var(--ps-social-color, #151515);
    background: var(--ps-social-hover, var(--ps-pill-hover, #ffc300));
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,.28);
}

.ps-social-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.ps-social-link .ps-component-icon {
    width: 34px;
    height: 34px;
}

.ps-component-icon {
    width: 32px;
    height: 32px;
}


/* =========================================================
   VIDEOT
========================================================= */

.ps-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ps-video-card {
    overflow: hidden;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(0,0,0,.35);
    border-radius: 9px;
}

.ps-video-card[hidden] {
    display: none !important;
}

.ps-video-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.ps-video-more {
    min-height: var(--ps-pill-min-height, 48px);
    padding: var(--ps-pill-padding-y, 16px) var(--ps-pill-padding-x, 34px);
    color: var(--ps-pill-text, #151515);
    background: var(--ps-pill-background, #ffe700);
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-size: var(--ps-pill-font-size, 18px);
    font-weight: var(--ps-pill-font-weight, 600);
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ps-video-more:hover,
.ps-video-more:focus-visible {
    background: var(--ps-pill-hover, #ffc300);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.22);
}

.ps-video-more:focus-visible {
    outline: 3px solid #fafafa;
    outline-offset: 3px;
}

.ps-video-more[hidden] {
    display: none !important;
}

.ps-video-card__placeholder {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    aspect-ratio: 16/9;
    padding: 20px;
    overflow: hidden;
    color: #fff;
    background: #101b2e;
    border: 0;
    text-align: center;
    text-decoration: none;
}

.ps-video-card__placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.06) 65%);
    transition: background .2s ease;
}

.ps-video-card__placeholder:hover::after {
    background: linear-gradient(to top, rgba(0,0,0,.78), rgba(39,65,125,.16) 65%);
}

.ps-video-card__thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ps-video-card__play {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    padding: 12px;
    color: #fff;
    background: #ff0033;
    border-radius: 14px;
}

.ps-video-card__name {
    position: relative;
    z-index: 1;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0,0,0,.8);
}

.ps-video-card iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
}

.ps-video-card__caption {
    margin: 0;
    padding: 14px 16px;
}


/* =========================================================
   SUOSITTELIJAT JA VIHAAJAT
========================================================= */

.ps-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ps-testimonial-card {
    padding: 22px;
    color: #151515;
    background: rgba(250,250,250,.94);
    border-radius: 9px;
    transition: transform .22s ease, box-shadow .22s ease;
}

@media (hover: hover) and (pointer: fine) {
    .ps-testimonial-card:hover {
        transform: translateY(-6px) rotate(-.6deg);
        box-shadow: 0 14px 30px rgba(0,0,0,.22);
    }

    .ps-testimonial-card:nth-child(even):hover {
        transform: translateY(-6px) rotate(.6deg);
    }
}

.ps-testimonial-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ps-testimonial-card__image {
    display: grid;
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    overflow: hidden;
    place-items: center;
    color: #fff;
    background: transparent;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
}

.ps-testimonial-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ps-testimonial-card h3 {
	font-size: 22px;
	font-weight: 700;
    margin: 0;
    color: #151515;
}

.ps-testimonial-card p {
	font-size: 16px;
	font-weight: 500;
    margin: 0;
    color: #151515;
}

.ps-testimonial-card blockquote {
    margin: 18px 0 0;
    font-size: 15px;
	font-weight: 400;
    font-style: italic;
	line-height: 1.55;
}


/* =========================================================
   UKK
========================================================= */

.ps-faq {
    margin: 0 auto;
}

.ps-faq > .ps-glass-panel__title {
    margin: 0;
    color: #fafafa;
    font-family: "Roboto", sans-serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.ps-main:not(.ps-main--front) .ps-faq > .ps-glass-panel__title {
    letter-spacing: 0.01em;
}

.ps-faq > .ps-glass-panel__intro {
    max-width: 1100px;
    margin: 24px 0 0;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65;
}

.ps-faq > .ps-glass-panel__intro > :first-child,
.ps-faq__answer > :first-child {
    margin-top: 0;
}

.ps-faq > .ps-glass-panel__intro > :last-child,
.ps-faq__answer > :last-child {
    margin-bottom: 0;
}

.ps-faq__list {
    display: grid;
    gap: 14px;
    margin-top: 30px;
}

.ps-main:not(.ps-main--front) .ps-faq > .ps-glass-panel__title + .ps-glass-panel__intro {
    margin-top: 24px;
}

.ps-main:not(.ps-main--front) .ps-faq > .ps-glass-panel__title + .ps-faq__list,
.ps-main:not(.ps-main--front) .ps-faq > .ps-glass-panel__intro + .ps-faq__list {
    margin-top: 30px;
}

.ps-faq__item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.ps-faq__question {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    min-height: 60px;
    padding: 15px 22px;
    color: #fafafa;
    background: #1d4c7f;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease;
}

.ps-faq__question::-webkit-details-marker {
    display: none;
}

.ps-faq__question::marker {
    content: "";
}

.ps-faq__marker {
    flex: 0 0 auto;
    margin-left: auto;
    color: #a9c9e8;
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
}

.ps-faq__marker::before {
    content: "+";
}

.ps-faq__question:hover,
.ps-faq__item[open] > .ps-faq__question {
    color: #fafafa;
    background: #3277bd;
}

.ps-faq__question:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid #fff;
    outline-offset: -5px;
}

.ps-faq__item[open] > .ps-faq__question .ps-faq__marker::before {
    content: "−";
}

.ps-faq__answer {
    padding: 22px 24px 24px;
    color: #151515;
    background: #fff;
    font-size: 17px;
    line-height: 1.65;
    text-shadow: none;
}

.ps-faq__answer a {
    color: #06377b;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ps-faq__answer ul,
.ps-faq__answer ol {
    padding-left: 1.4em;
}


/* =========================================================
   PILLERIT
========================================================= */

.ps-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 38px 0 22px;
}

.ps-pill-group--center {
    justify-content: center;
}

.ps-pill-group--right {
    justify-content: flex-end;
}

.ps-pill-group--between {
    justify-content: space-between;
}

.ps-component-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    gap: var(--ps-pill-gap, 14px);
    min-height: var(--ps-pill-min-height, 48px);
    padding: var(--ps-pill-padding-y, 16px) var(--ps-pill-padding-x, 34px);
    color: var(--ps-pill-text, #151515);
    background-color: var(--ps-pill-background, #ffe700);
    border: var(--ps-component-pill-border-width, 0) solid var(--ps-component-pill-border, transparent);
    border-radius: var(--ps-component-pill-radius, 999px);
    font-size: var(--ps-component-pill-font-size, var(--ps-pill-font-size, 18px));
    font-weight: var(--ps-component-pill-font-weight, var(--ps-pill-font-weight, 600));
    text-decoration: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ps-component-pill > span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
    line-height: 1.25;
    text-align: center;
}

.ps-component-pill--small { min-height: 40px; padding: 10px 22px; }
.ps-component-pill--large { min-height: 58px; padding: 19px 42px; }
.ps-component-pill--width-full { width: 100%; }
.ps-component-pill--width-custom { width: min(100%, var(--ps-component-pill-width, 260px)); }
.ps-component-pill--static { cursor: default; }
.ps-component-pill--static:hover,
.ps-component-pill--static:focus-visible {
    background-color: var(--ps-pill-background, #ffe700);
    box-shadow: none;
    transform: none;
}
.ps-component-pill--hide-desktop { display: none; }

.ps-glass-panel a.ps-component-pill,
.ps-glass-panel button.ps-component-pill {
    color: var(--ps-pill-text, #151515);
}

.ps-component-pill:hover,
.ps-component-pill:focus-visible,
.ps-glass-panel a.ps-component-pill:hover,
.ps-glass-panel a.ps-component-pill:focus-visible,
.ps-glass-panel button.ps-component-pill:hover,
.ps-glass-panel button.ps-component-pill:focus-visible {
    color: var(--ps-pill-text, #151515);
    background-color: var(--ps-pill-hover, #ffc300);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.ps-component-pill .ps-component-icon {
    transition: transform 0.2s ease;
}

.ps-component-pill:hover .ps-component-icon,
.ps-component-pill:focus-visible .ps-component-icon {
    transform: translateX(4px);
}

.ps-component-pill--icon-left:hover .ps-component-icon,
.ps-component-pill--icon-left:focus-visible .ps-component-icon {
    transform: translateX(-4px);
}

.ps-component-pill .ps-component-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.ps-component-modal__title {
    margin: 0 56px 24px 0;
    color: var(--ps-modal-title-color, #ffe700);
    font-size: clamp(1.7rem, 4vw, 2.15rem);
    font-weight: 700;
    line-height: 1.2;
}

.ps-component-modal__content {
    color: var(--ps-modal-text-color, #fafafa);
    font-size: 1rem;
    line-height: 1.6;
}


/* =========================================================
   MODAALI
========================================================= */

.ps-component-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    padding: 24px;
    place-items: center;
    background: rgba(0,0,0,.76);
}

.ps-component-modal[hidden] {
    display: none;
}

.ps-component-modal__dialog {
    position: relative;
    width: min(100%, 680px);
    max-height: min(90vh, 900px);
    padding: clamp(28px, 5vw, 48px);
    overflow: auto;
    color: var(--ps-modal-text-color, #fafafa);
    background: var(--ps-modal-background, rgba(7,15,25,.74));
    border: 1px solid var(--ps-modal-border, transparent);
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
    backdrop-filter: blur(var(--ps-modal-blur, 14px)) saturate(85%);
    -webkit-backdrop-filter: blur(var(--ps-modal-blur, 14px)) saturate(85%);
}

.ps-component-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--ps-modal-close-text, #fafafa);
    background: var(--ps-modal-close-background, #27417d);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1;
    transition: background-color .2s ease, transform .2s ease;
}

.ps-component-modal__close:hover { background: var(--ps-modal-close-hover, #375cb2); }
.ps-component-modal__close:focus-visible { outline: 3px solid #ffe700; outline-offset: 3px; }
.ps-component-modal__close:active { transform: scale(.96); }


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
    .ps-video-grid,
    .ps-testimonials__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ps-glass-panel {
        padding: 24px 20px;
    }

    .ps-glass-panel__title {
        font-size: 26px;
    }

    .ps-cv__row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .ps-video-grid,
    .ps-testimonials__grid {
        grid-template-columns: 1fr;
    }

    .ps-social-link {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
    }

    .ps-social-link .ps-component-icon {
        width: 29px;
        height: 29px;
    }

    .ps-pill-group .ps-component-pill {
        width: 100%;
        padding-right: 20px;
        padding-left: 20px;
    }

    .ps-component-pill--hide-desktop { display: inline-flex; }
    .ps-component-pill--hide-mobile { display: none; }
}

@media (max-width: 600px) {
    .ps-component-modal {
        padding: 12px;
        align-items: center;
    }

    .ps-component-modal__dialog {
        width: 100%;
        max-height: 92vh;
        padding: 28px 20px 24px;
        border-radius: 10px;
    }

    .ps-component-modal__title {
        margin-right: 48px;
        margin-bottom: 22px;
        font-size: 1.6rem;
    }

    .ps-component-modal__close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ps-component-pill,
    .ps-social-link,
    .ps-testimonial-card {
        transition: none;
    }

    .ps-testimonial-card:hover {
        transform: none;
    }
}


/* =========================================================
   JUHA UUTISOINNISSA – VAALEA PREMIUM-KORTTI
   Hoverin transform ja transition tulevat edelleen teemasta.
========================================================= */

.ps-main .jj-media-card,
.ps-glass-panel .jj-media-card {
    background: linear-gradient(145deg, #fff 0%, #f7f9fc 46%, #e8eef6 100%);
    border-color: rgba(39,65,125,.24);
    color: #3f4a5a;
    box-shadow:
        0 14px 32px rgba(4,16,38,.16),
        0 2px 6px rgba(4,16,38,.08),
        inset 0 1px 0 rgba(255,255,255,.95);
}

.ps-main .jj-media-card::before,
.ps-glass-panel .jj-media-card::before {
    background: #27417d;
}

.ps-main .jj-media-card::after,
.ps-glass-panel .jj-media-card::after {
    border-color: rgba(39,65,125,.08);
}

.ps-main .jj-media-card:hover,
.ps-glass-panel .jj-media-card:hover {
    background: linear-gradient(145deg, #fff 0%, #f5f8fc 42%, #e2eaf5 100%);
    border-color: rgba(39,65,125,.48);
    box-shadow:
        0 18px 40px rgba(4,16,38,.20),
        0 3px 8px rgba(4,16,38,.09),
        inset 0 1px 0 #fff;
}

.ps-main .jj-media-card:hover::after,
.ps-glass-panel .jj-media-card:hover::after {
    border-color: rgba(39,65,125,.14);
}

.ps-main .jj-media-card__top,
.ps-glass-panel .jj-media-card__top {
    border-bottom-color: rgba(39,65,125,.14);
}

.ps-main .jj-media-card__source,
.ps-glass-panel .jj-media-card__source {
    display: inline-flex;
    align-items: center;
    padding: .22rem .55rem;
    background: rgba(39,65,125,.08);
    border: 1px solid rgba(39,65,125,.14);
    border-radius: 999px;
    color: #27417d;
}

.ps-main .jj-media-card__date,
.ps-glass-panel .jj-media-card__date {
    color: #526078;
}

.ps-main .jj-media-card__title,
.ps-glass-panel .jj-media-card__title {
    color: #172033;
}

.ps-main .jj-media-card__text,
.ps-glass-panel .jj-media-card__text {
    color: #3f4a5a;
}

.ps-main .jj-media-card__action,
.ps-glass-panel .jj-media-card__action {
    border-top-color: rgba(39,65,125,.14);
    color: #27417d;
}

.ps-main .jj-media-card__arrow,
.ps-glass-panel .jj-media-card__arrow {
    background: rgba(39,65,125,.08);
    color: #d5ad00;
}

.ps-main .jj-media-card:hover .jj-media-card__arrow,
.ps-glass-panel .jj-media-card:hover .jj-media-card__arrow {
    background: rgba(39,65,125,.14);
}
