/*
Theme Name: Innohub Native
Author: Innohub Dev
Description: Custom high-performance theme (Light Mode)
Version: 1.6
*/

/* Screen reader only - visually hidden but accessible */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

:root {
    /* --- VÄRIPALETTI: LIGHT MODE --- */
    --bg-body: #E8EEF4;       /* Sävytetty harmaa tausta jotta valkoiset moduulit erottuvat */
    --bg-card: #FFFFFF;       /* Puhtaan valkoiset kortit */
    --text-main: #0D1C2D;     /* Lähes musta leipäteksti */
    --text-muted: #64748B;    /* Tyylikäs harmaa apuväri */
    
    /* --- BRÄNDIVÄRIT --- */
    --brand-blue: #169ECC;
    --brand-blue-text: #0C6597; /* AA-sini tekstille vaalealla (WCAG 4.5+; --brand-blue #169ECC jaa 3,09:1) */
    /* AUD IH-10 (26.9.2026): tekstitokenit vaaleille pohjille. #9DB0C2 (2,23:1 valkoisella)
       jää VAIN tummille pohjille; meta-teksti vaalealla = --text-meta. */
    --text-meta: #64748B;          /* 4,76:1 valkoisella */
    --text-muted-strong: #475569;  /* 7,58:1 valkoisella, 6,7:1 #E8EEF4:llä */
    --success-text: #047857;       /* 5,48:1 valkoisella (ennen #059669 3,77:1) */

    /* --- ETUSIVUN / RUNKOLAYNOUT --- */
    --home-main-col: minmax(0, 1.55fr);   /* pääpalsta */
    --home-side-col: minmax(380px, 1fr);  /* sivupalkki */
    --home-gap: 24px;                     /* palstojen väli */
    
    /* --- HEADER & FOOTER (Tumma teema) --- */
    --bg-header: #0D1C2D;
    --text-header: #FFFFFF;
    
    /* --- TYPOGRAFIA --- */
    /* Montserratissa EI ole kreikkalaisia glyyfejä (todennettu Googlen omasta
       CSS:stä 31.7.2026). Ilman Inter-varaa /el/-sivujen otsikot putoavat
       järjestelmäfonttiin — se oli rikki jo ennen fonttien itse-hostausta.
       Inter kattaa kreikan ja kyrillisen, joten se on oikea vara juuri tässä. */
    --font-heading: 'Montserrat', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Anchor-/sisällysluettelolinkit eivät jää sticky-headerin alle */
html { scroll-padding-top: 100px; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { color: var(--brand-blue); }
img { max-width: 100%; height: auto; display: block; }
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* LAYOUT */
.container {
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 28px;
}

/* --- HEADER (Tumma) --- */
.site-header {
    background: var(--bg-header);
    color: var(--text-header);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }

/* --- LOGO SÄÄDÖT --- */

/* 1. Header Logo (Ylhäällä) */
.site-header .site-logo img {
    height: 42px; 
    width: auto;
    display: block;
}

/* 2. Footer Logo (Alhaalla vasen) */
.footer-logo-link {
    display: inline-block;
    margin-bottom: 8px; 
}
.footer-logo-link img {
    height: 40px; 
    width: auto;
    opacity: 1; 
}

/* 3. Slogan (Logon alla) */
.footer-slogan {
    font-family: var(--font-heading);
    color: var(--brand-blue);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

/* --- VALIKKO --- */
.main-nav ul { display: flex; gap: 18px; list-style: none; }
.main-nav a { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 8px 6px;
    color: rgba(255,255,255,0.85); 
    font-family: var(--font-heading); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; 
}
.main-nav a:hover { color: var(--brand-blue); }

/* --- ETUSIVU (Hero Grid) --- */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

/* Vasen iso kuva */
.hero-main .post-card { 
    position: relative; 
    border-radius: 8px; 
    overflow: hidden; 
    height: 100%; 
    min-height: 450px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    display: block;
}
.hero-main .post-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.hero-main .post-card:hover .post-thumb { transform: scale(1.05); }
.hero-main .post-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    padding: 40px 30px;
    color: #fff;
}
.hero-main h2 { font-family: var(--font-heading); font-size: 32px; margin-bottom: 10px; line-height: 1.2; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero-main p { color: #E8EEF4; font-size: 16px; max-width: 90%; }

/* Oikea palsta */
.hero-sidebar { display: flex; flex-direction: column; gap: 30px; }

/* Keskikokoinen nosto */
.hero-medium .post-card { display: block; }
.hero-medium .post-thumb { height: 200px; width: 100%; object-fit: cover; border-radius: 6px; margin-bottom: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.hero-medium h3 { 
    font-family: var(--font-heading); font-size: 20px; line-height: 1.3; 
    color: var(--text-main); 
}

/* Listat */
.list-item { 
    display: flex; gap: 15px; align-items: center; padding-bottom: 15px; margin-bottom: 15px;
    border-bottom: 1px solid #e5e7eb; 
}
.list-item:last-child { border: none; }
.list-item img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; }
.list-item h4 { 
    font-size: 14px; font-weight: 600; line-height: 1.4; 
    color: var(--text-main); 
    margin: 0;
}
.list-item:hover h4 { color: var(--brand-blue); }

/* --- ETUSIVU (UUSI HERO) --- */
.home-hero {
    margin: 40px auto 60px;
    max-width: 1420px;
}
.home-hero-grid {
    display: grid;
    grid-template-columns: var(--home-main-col) var(--home-side-col);
    gap: var(--home-gap);
    align-items: stretch;
}
.home-hero-grid--with-sidebar {
    grid-template-columns: var(--home-main-col) var(--home-side-col);
}
.home-hero-main { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.home-hero-card {
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(13, 28, 45, 0.08);
}
.home-hero-card--compact .home-hero-body { padding: 20px 22px 24px; }
.home-hero-card--compact .home-hero-title { font-size: 24px; }
.home-hero-card--compact .home-hero-excerpt { font-size: 14px; }
.home-hero-link { display: block; color: inherit; }
.home-hero-media {
    aspect-ratio: 16 / 9;
    background: #E8EEF4;
    overflow: hidden;
}
.home-hero-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.home-hero-link:hover .home-hero-thumb { transform: scale(1.03); }
.home-hero-placeholder { width: 100%; height: 100%; background: #E8EEF4; }
.home-hero-body { padding: 26px 30px 32px; }
.home-hero-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand-blue);
    font-weight: 700;
}
.home-hero-title {
    font-family: var(--font-heading);
    font-size: 28px;
    line-height: 1.2;
    margin: 12px 0 10px;
}
.home-hero-excerpt { font-size: 16px; color: var(--text-muted); }
.home-hero-sidebar { display: flex; flex-direction: column; gap: 20px; }
.home-sidebar-module {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 16px 18px;
    box-shadow: 0 6px 18px rgba(13, 28, 45, 0.05);
}
.home-sidebar-featured { padding: 18px 20px; }
.home-sidebar-featured-link { color: inherit; display: block; }
.home-sidebar-featured-media {
    aspect-ratio: 16 / 9;
    background: #E8EEF4;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}
.home-sidebar-featured-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-sidebar-featured-placeholder { width: 100%; height: 100%; background: #E8EEF4; }
.home-sidebar-featured-title {
    font-family: var(--font-heading);
    font-size: 19px;
    line-height: 1.3;
    margin: 0;
}
.home-sidebar-featured-link:hover .home-sidebar-featured-title { color: var(--brand-blue); }
.home-sidebar-title {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 12px;
}
.home-sidebar-empty { font-size: 13px; color: var(--text-muted); }
.home-sidebar-tabs { padding: 0; overflow: hidden; }
.home-sidebar-tabs .innohub-tabs-container { border-top: 0; padding: 16px 18px 18px; }
.home-sidebar-tabs .innohub-tabs-header { margin-bottom: 14px; }
.home-sidebar-tabs .tab-btn { font-size: 12px; min-height: 36px; padding: 6px 0 10px; }
.home-sidebar-tabs .innohub-list-item {
    padding-bottom: 12px;
    margin-bottom: 12px;
    align-items: stretch;
}
.home-sidebar-tabs .list-thumb {
    width: 72px;
    height: auto;
    min-height: 72px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    align-self: stretch;
}
.home-youtube-top { display: flex; flex-direction: column; gap: 12px; }
.home-youtube-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
}
.home-youtube-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #E8EEF4;
    flex-shrink: 0;
}
.home-youtube-avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-youtube-placeholder { width: 100%; height: 100%; background: #E8EEF4; }
.home-youtube-body { display: flex; flex-direction: column; gap: 2px; }
.home-youtube-name { font-size: 14px; font-weight: 600; }
.home-youtube-votes { font-size: 12px; color: var(--text-muted); }
.home-youtube-rank { margin-right: 6px; font-size: 14px; }
.home-youtube-item.is-ranked {
    background: rgba(13, 28, 45, 0.04);
    padding: 8px;
    border-radius: 10px;
}
.home-youtube-item.is-ranked-1 { border: 1px solid rgba(245, 158, 11, 0.35); }
.home-youtube-item.is-ranked-2 { border: 1px solid rgba(157, 176, 194, 0.45); }
.home-youtube-item.is-ranked-3 { border: 1px solid rgba(249, 115, 22, 0.35); }

.home-editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}
.home-editorial-card {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 14px 16px;
    box-shadow: 0 6px 18px rgba(13, 28, 45, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}
.home-editorial-tag {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand-blue-text);
    font-weight: 700;
}
.home-editorial-link { color: inherit; display: grid; gap: 10px; }
.home-editorial-media {
    aspect-ratio: 16 / 9;
    background: #E8EEF4;
    border-radius: 10px;
    overflow: hidden;
}
.home-editorial-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-editorial-placeholder { width: 100%; height: 100%; background: #E8EEF4; }
.home-editorial-title {
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.35;
}

/* Author + date byline on home article cards (hero, editorial, column, sidebar). */
.home-card-byline {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1;
    color: var(--text-muted);
}
.home-card-byline__author {
    font-weight: 600;
    color: var(--text-main);
}
.home-card-byline__dot {
    flex: 0 0 auto;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: .55;
}
.home-editorial-card .home-card-byline,
.home-sidebar-featured .home-card-byline {
    margin-top: 8px;
}

.home-themes-top-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 30px;
}
.home-themes-top-module {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 6px 18px rgba(13, 28, 45, 0.06);
}
.home-themes-top-module h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 12px;
}
.home-themes-tabs { padding: 0; overflow: hidden; }
.home-themes-tabs .innohub-tabs-container { border-top: 0; padding: 16px 18px 18px; }

/* --- ETUSIVU (TV-TEASER) --- */
.home-tv { margin: 0 0 60px; }
.tv-teaser {
    background: linear-gradient(135deg, #0D1C2D 0%, #0D1C2D 60%, #142838 100%);
    color: #fff;
    padding: 32px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 40px rgba(13, 28, 45, 0.35);
}
.tv-teaser-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}
.tv-teaser-heading { max-width: 640px; }
.tv-teaser-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #7dd3fc;
    margin-bottom: 6px;
}
.tv-teaser-title {
    font-family: var(--font-heading);
    font-size: 28px;
    line-height: 1.15;
    margin: 0;
}
.tv-teaser-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #0C6597;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.tv-teaser-cta:hover { background: #169ECC; color: #fff; }
.tv-teaser-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.tv-teaser-card {
    position: relative;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: none;
}
.tv-teaser-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.35); }
.tv-teaser-card.is-visible { display: block; }
.tv-teaser-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0D1C2D;
    overflow: hidden;
}
.tv-teaser-poster {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.25s ease;
}
.tv-teaser-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.tv-teaser-card.is-playing .tv-teaser-iframe { opacity: 1; }
.tv-teaser-card.is-playing .tv-teaser-poster { opacity: 0.2; }
.tv-teaser-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    background: linear-gradient(180deg, rgba(13, 28, 45,0) 35%, rgba(13, 28, 45,0.75) 100%);
    pointer-events: none;
    z-index: 2;
}
.tv-teaser-topline { display: flex; justify-content: flex-start; }
.tv-teaser-rank {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}
.tv-teaser-channel {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.75);
    margin: 10px 0 6px;
}
.tv-teaser-episode { font-size: 16px; line-height: 1.35; margin: 0 0 12px; color: #fff; }
.tv-teaser-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    pointer-events: auto;
}
.tv-teaser-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #DC2743;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.tv-teaser-play:hover { background: #e02448; color: #fff; }
.tv-teaser-mute {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(13, 28, 45, 0.85);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    pointer-events: auto;
}
.tv-teaser-footer {
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
}

.home-tv-episodes { margin: 10px 0 50px; }
.home-tv-row { margin: 10px 0 60px; }
.home-tv-row-grid {
    display: grid;
    grid-template-columns: var(--home-main-col) var(--home-side-col);
    gap: var(--home-gap);
    align-items: stretch;
}
.home-tv-main { min-width: 0; }
.home-tv-episodes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}
.home-tv-episode-card {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 14px 16px;
    box-shadow: 0 6px 18px rgba(13, 28, 45, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}
.home-tv-episode-link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    height: 100%;
    color: inherit;
}
.home-tv-episode-card .home-tv-episode-media {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    min-height: 0;
    flex-shrink: 1;
    background: #E8EEF4;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    box-shadow: none;
}
.home-tv-episode-card .home-tv-episode-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-tv-episode-placeholder { width: 100%; height: 100%; background: #E8EEF4; }

/* Play button overlay for inline-playable video thumbnails */
.home-tv-episode-play,
.home-editorial-tv-thumb .home-tv-episode-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 46px;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.92);
    display: grid;
    place-items: center;
    pointer-events: none;
    transition: transform 0.15s ease, background 0.15s ease;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}
.home-tv-episode-play::before {
    content: '';
    border-style: solid;
    border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}
.theme-youtube-thumb { cursor: pointer; }
.theme-youtube-thumb:hover .home-tv-episode-play {
    transform: translate(-50%, -50%) scale(1.06);
    background: rgba(220, 38, 38, 1);
}
.home-editorial-tv-thumb { position: relative; }
.home-tv-episode-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}
.home-tv-episode-chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(22, 158, 204, 0.12);
    color: #0C6597;
    font-size: 12px;
    font-weight: 700;
}
.home-tv-episode-title {
    font-family: var(--font-heading);
    font-size: 17px;
    line-height: 1.35;
    margin: 0;
}
.home-tv-episode-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}
.home-tv-episode-excerpt {
    font-size: 14px;
    color: #475569;
    margin: 0;
    margin-top: auto;
}

.home-youtube-top-header h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 12px;
}
.home-tv-sidebar {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 14px 16px;
    box-shadow: 0 6px 18px rgba(13, 28, 45, 0.05);
}
.home-youtube-top-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 440px; /* ~5 cards visible, rest scrollable */
    overflow-y: auto;
    padding-right: 4px;
    scroll-behavior: smooth;
}
.home-youtube-top-grid::-webkit-scrollbar { width: 6px; }
.home-youtube-top-grid::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.home-youtube-top-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 4px 12px rgba(13, 28, 45, 0.04);
    color: inherit;
}
.home-youtube-top-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.home-youtube-top-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: #E8EEF4;
    flex-shrink: 0;
}
.home-youtube-top-avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-youtube-top-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.home-youtube-top-name {
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-youtube-top-votes { font-size: 12px; color: var(--text-muted); }
.home-youtube-top-rank { display: inline-block; font-size: 15px; }
.home-youtube-top-sub {
    margin: 0 0 10px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}
.home-youtube-top-vote {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    background: transparent;
    color: inherit;
    border: 0;
    padding: 6px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 999px;
    transition: transform 0.1s ease, background 0.15s ease, filter 0.15s ease;
}
.home-youtube-top-vote:hover:not(:disabled) {
    transform: translateY(-1px) scale(1.15);
    background: rgba(13, 28, 45, 0.06);
}
.home-youtube-top-vote:disabled {
    cursor: default;
    filter: grayscale(1);
    opacity: 0.55;
}
.home-youtube-top-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}
.home-youtube-top-full {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-blue-text);
    text-decoration: none;
}
.home-youtube-top-full:hover { text-decoration: underline; }
.home-youtube-top-msg {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
}
.home-youtube-top-msg.is-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.home-youtube-top-msg.is-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.home-youtube-top-header h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* --- ETUSIVU (TEEMAT) --- */
.section-heading { margin-bottom: 20px; }
.section-heading h2 { font-family: var(--font-heading); font-size: 28px; }
.home-latest-youtube { margin-bottom: 60px; }

/* --- ETUSIVU: Uusimmat artikkelit (lisatty 24.8.2026) ---
   Etusivulla ei ollut yhtaan artikkelilistaa jonka otsikko lupaisi tuoreutta:
   ainoa "uusin"-otsikko vei YouTube-videoihin. Varit tulevat teeman tokeneista
   (--bg-card / --text-main / --brand-blue-text), jotta osio seuraa palettia. */
.home-latest-posts { margin-bottom: 60px; }
.home-latest-posts-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.home-latest-posts-all { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-blue-text); white-space: nowrap; }
/* AUD-IH-28.08 (WCAG 2.5.8): kosketusalue oli 106x21. Pystypadding kasvattaa osuma-alueen
   >=44 px:iin; vastaava negatiivinen marginaali pitaa otsikkorivin korkeuden ennallaan. */
.home-latest-posts-all { display: inline-block; padding: 12px 0; margin: -12px 0; }
.home-latest-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.home-latest-post { display: flex; flex-direction: column; gap: 10px; background: var(--bg-card); border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 12px 14px; box-shadow: 0 6px 18px rgba(13, 28, 45, 0.06); }
.home-latest-post.is-newest { border-color: var(--brand-blue); }
.home-latest-post-link { display: flex; flex-direction: column; gap: 10px; height: 100%; color: inherit; }
.home-latest-post-media { display: block; aspect-ratio: 16 / 9; background: #E8EEF4; border-radius: 10px; overflow: hidden; }
.home-latest-post-thumb { width: 100%; height: 100%; object-fit: cover; }
.home-latest-post-placeholder { display: block; width: 100%; height: 100%; background: #E8EEF4; }
.home-latest-post-body { display: flex; flex-direction: column; gap: 6px; }
.home-latest-post-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand-blue-text); }
.home-latest-post-title { font-family: var(--font-heading); font-size: 15.5px; line-height: 1.3; font-weight: 800; color: var(--text-main); }
.home-latest-post .home-card-byline { margin-top: auto; }
@media (max-width: 560px) { .home-latest-posts-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

.home-themes { margin-bottom: 80px; }
.theme-section { padding: 36px 0; border-top: 1px solid #e5e7eb; }
.theme-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.theme-header h3 { font-family: var(--font-heading); font-size: 22px; }
.theme-link { font-size: 13px; color: var(--brand-blue-text); text-transform: uppercase; letter-spacing: 0.08em; }
.theme-link:hover { color: #169ECC; }
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}
.theme-col {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 16px 18px;
    box-shadow: 0 8px 22px rgba(13, 28, 45,0.06);
    min-height: 100%;
}
.theme-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.theme-col-eyebrow {
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.theme-article-stack { display: grid; gap: 12px; }
.theme-article-feature {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-shadow: 0 8px 20px rgba(13, 28, 45,0.05);
}
.theme-article-feature-label {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-blue);
    font-weight: 700;
    padding: 12px 14px 0;
}
.theme-article-feature-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    gap: 0;
    height: 100%;
}
.theme-article-feature-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #E8EEF4;
    overflow: hidden;
}
.theme-article-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-article-feature-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.theme-article-feature-body h4 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 17px;
    line-height: 1.35;
}
.theme-article-feature-body p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.theme-split {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 360px);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
    overflow: hidden;
}
.theme-main { min-width: 0; }
.theme-sidebar { display: grid; gap: 12px; width: 100%; min-width: 0; }

.theme-youtube-duo { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.theme-youtube-mini {
    background: #fff;
    border: 1px solid #E8EEF4;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(13, 28, 45,0.05);
    overflow: hidden;
}
.theme-youtube-vertical { display: grid; gap: 8px; color: inherit; text-decoration: none; }
.theme-youtube-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 160px;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
}
.theme-youtube-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-youtube-playbtn {
    position: absolute;
    inset: 0;
    border: none;
    background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.25), rgba(0,0,0,0.6));
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.theme-youtube-thumb:hover .theme-youtube-playbtn { opacity: 1; }

.theme-tabs { width: 100%; }
.theme-tab-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}
.theme-tab-btn {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
    background: #f8fafc;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    cursor: pointer;
    color: #0D1C2D;
}
.theme-tab-btn.is-active {
    background: #0D1C2D;
    color: #fff;
    border-color: #0D1C2D;
}
.theme-tab-panels { position: relative; }
.theme-tab-panel { display: none; }
.theme-tab-panel.is-active { display: block; }
.theme-tab-panel .theme-article-list { margin-top: 4px; }
.theme-tab-panel .theme-article-title { font-size: 14px; }
.theme-mini-tabs { margin-top: 6px; }
.theme-mini-tabs .theme-tab-btn { font-size: 11px; letter-spacing: 0.1em; padding: 7px 8px; }
.theme-mini-tabs .theme-tab-panel .theme-article-title { font-size: 13px; }
.theme-mini-list { display: grid; gap: 10px; }
.theme-mini-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(13, 28, 45,0.05);
}
.theme-mini-item:hover { border-color: var(--brand-blue); }
.theme-mini-thumb img {
    width: 110px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.theme-mini-item--spotify {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}
.theme-mini-item--spotify .theme-mini-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #E8EEF4;
}
.theme-mini-item--spotify .theme-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.theme-mini-item--spotify .theme-mini-text { padding-top: 2px; }
.theme-mini-text h5 {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}
.theme-mini-text p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}
.theme-mini-desc {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-tabs { margin-bottom: 12px; }
.sidebar-tabs { margin-bottom: 12px; }
.theme-mini-tabs {
    margin-top: 6px;
}
.theme-mini-tabs .theme-tab-btn {
    font-size: 11px;
    letter-spacing: 0.1em;
    padding: 7px 8px;
}
.theme-mini-tabs .theme-tab-panel .theme-article-list-card {
    grid-template-columns: 70px 1fr;
}
.theme-mini-tabs .theme-article-title { font-size: 13px; }
.theme-mini-list {
    display: grid;
    gap: 10px;
}
.theme-mini-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(13, 28, 45,0.05);
}
.theme-mini-item:hover { border-color: var(--brand-blue); }
.theme-mini-thumb img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.theme-mini-text h5 {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}
.theme-mini-text p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}
.theme-modules {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.theme-module {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(13, 28, 45, 0.06);
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}
.theme-module > * { max-width: 100%; }
.theme-module h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
}
.theme-module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.theme-link-small {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-blue);
}
.theme-article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.theme-article-card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.theme-article-card:hover { transform: translateY(-3px); border-color: var(--brand-blue); }
.theme-article-media { aspect-ratio: 16 / 9; background: #E8EEF4; overflow: hidden; }
.theme-article-media img { width: 100%; height: 100%; object-fit: cover; }
.theme-article-placeholder { width: 100%; height: 100%; background: #E8EEF4; }
.theme-article-body { padding: 10px 12px 14px; }
.theme-article-date { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-meta); }
.theme-article-title { font-size: 14px; line-height: 1.4; margin-top: 6px; }
.theme-empty { font-size: 14px; color: #64748b; }

/* Uusi 2-palstainen teema-layout */
.theme-split {
    display: grid;
    grid-template-columns: var(--home-main-col) var(--home-side-col);
    gap: var(--home-gap);
    align-items: start;
    margin-bottom: 24px;
    overflow: hidden;
}
.theme-main {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 16px 18px;
    box-shadow: 0 10px 24px rgba(13, 28, 45,0.07);
    display: grid;
    gap: 12px;
    overflow: hidden;
}
/* Text-only fallbacks when an article has no featured image — avoid rendering
 * a black empty hero placeholder on the front page theme sections. */
.theme-main-article--textonly .theme-main-link {
    padding: 20px 22px;
    background: linear-gradient(135deg, #f8fafc, #E8EEF4);
    border-radius: 14px;
    display: block;
    min-height: 180px;
    display: flex;
    align-items: center;
}
.theme-main-article--textonly .theme-main-body { padding: 0; }
.theme-sidebar-feature--textonly .theme-sidebar-link {
    padding: 18px;
    background: linear-gradient(135deg, #f8fafc, #E8EEF4);
    border-radius: 12px;
    display: block;
}

.theme-main-article {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 8px 20px rgba(13, 28, 45,0.05);
    position: relative;
}
.theme-main-link { display: grid; gap: 0; color: inherit; }
.theme-main-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: clamp(220px, 26vw, 360px);
    background: #E8EEF4;
    overflow: hidden;
    border-bottom: 1px solid #e5e7eb;
}
.theme-main-media img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    max-width: none;
}
.theme-main-body { padding: 14px 14px 16px; display: grid; gap: 6px; }
.theme-main-title {
    font-family: var(--font-heading);
    font-size: 20px;
    line-height: 1.3;
    margin: 0;
}
.theme-main-excerpt { color: var(--text-muted); font-size: 14px; margin: 0; }
.theme-youtube-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}
.theme-youtube-mini {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #E8EEF4;
    border-radius: 12px;
    padding: 10px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    align-items: center;
}
.theme-youtube-mini .theme-youtube-thumb { min-height: 140px; }
.theme-sidebar {
    display: grid;
    gap: 12px;
}
.theme-sidebar-feature {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(13, 28, 45,0.05);
}
.theme-sidebar-link { display: grid; gap: 0; color: inherit; }
.theme-sidebar-media { aspect-ratio: 16 / 9; background: #E8EEF4; overflow: hidden; }
.theme-sidebar-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-sidebar-body { padding: 12px 12px 14px; display: grid; gap: 6px; }
.theme-sidebar-body h5 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 16px;
    line-height: 1.3;
}
.theme-sidebar-body p { margin: 0; color: var(--text-muted); font-size: 13px; }
.theme-sidebar-list {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(13, 28, 45,0.05);
    display: grid;
    gap: 10px;
}
.theme-sidebar-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.theme-sidebar-thumb img { width: 100%; height: 52px; object-fit: cover; border-radius: 8px; display: block; }
.theme-sidebar-text h6 { margin: 0; font-size: 14px; line-height: 1.3; color: #0D1C2D; }
.theme-sidebar-item:hover h6 { color: var(--brand-blue); }

/* --- CONTACT PAGE --- */
.contact-page {
    --contact-border: #d7e0eb;
    --contact-error: #b42318;
    --contact-success: #166534;
    margin-bottom: -60px;
}
.contact-page__hero {
    color: #fff;
    background:
        radial-gradient(circle at 84% 18%, rgba(41, 171, 226, 0.28), transparent 29rem),
        linear-gradient(135deg, #0f1623 0%, #16243a 100%);
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.contact-page__hero-inner {
    padding-top: clamp(36px, 7vw, 80px);
    padding-bottom: clamp(48px, 8vw, 92px);
}
.contact-page__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    color: #dbeafe;
    font-size: 14px;
}
.contact-page__breadcrumb a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.contact-page__breadcrumb a:hover { color: #7dd3fc; }
.contact-page__eyebrow {
    margin: 0 0 10px;
    color: #7dd3fc;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.contact-page__hero h1 {
    max-width: 820px;
    margin: 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -.025em;
}
.contact-page__intro {
    max-width: 700px;
    margin: 20px 0 0;
    color: #e2e8f0;
    font-size: clamp(17px, 2.2vw, 20px);
    line-height: 1.65;
}
.contact-page__layout {
    display: grid;
    grid-template-columns: minmax(240px, .7fr) minmax(0, 1.55fr);
    gap: clamp(24px, 4vw, 54px);
    align-items: start;
    padding-top: clamp(36px, 6vw, 72px);
    padding-bottom: clamp(44px, 7vw, 84px);
}
.contact-page__details,
.contact-page__form-card,
.contact-page__additional {
    background: var(--bg-card);
    border: 1px solid var(--contact-border);
    border-radius: 16px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}
.contact-page__details { padding: clamp(24px, 3.5vw, 34px); }
.contact-page__details h2 {
    margin: 0 0 12px;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 1.25;
}
.contact-page__details > p {
    margin: 0;
    color: #475569;
}
.contact-page__detail {
    display: grid;
    gap: 5px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--contact-border);
}
.contact-page__detail-label {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.contact-page__detail a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    width: fit-content;
    color: var(--brand-blue-text);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.contact-page__controller {
    margin-top: 28px !important;
    font-size: 14px;
    line-height: 1.7;
}
.contact-page__form-card { padding: clamp(24px, 4vw, 44px); }
.contact-form__required {
    margin: 0 0 24px;
    color: #475569;
    font-size: 14px;
}
.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 20px;
}
.contact-field { min-width: 0; }
.contact-field--full { grid-column: 1 / -1; }
.contact-field label {
    display: block;
    margin-bottom: 7px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
}
.contact-field input,
.contact-field textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    color: #0f172a;
    background: #fff;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    font: inherit;
    line-height: 1.45;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-field textarea { min-height: 164px; resize: vertical; }
.contact-field input:hover,
.contact-field textarea:hover { border-color: #64748b; }
.contact-field input[aria-invalid="true"],
.contact-field textarea[aria-invalid="true"] { border-color: var(--contact-error); }
.contact-field__error {
    display: block;
    min-height: 21px;
    margin-top: 5px;
    color: var(--contact-error);
    font-size: 13px;
    font-weight: 600;
}
.contact-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}
.contact-consent {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-top: 24px;
}
.contact-consent input {
    width: 22px;
    height: 22px;
    margin: 2px 0 0;
    accent-color: var(--brand-blue-text);
}
.contact-consent label { color: #334155; font-size: 14px; line-height: 1.6; }
.contact-consent a {
    color: var(--brand-blue-text);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.contact-consent__error { margin-left: 36px; }
.contact-form__privacy-note {
    margin: 4px 0 0 36px;
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
}
.contact-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    margin-top: 24px;
}
.contact-form__submit {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 170px;
    min-height: 48px;
    padding: 11px 24px;
    color: #fff;
    background: #0c6597;
    border: 2px solid #0c6597;
    border-radius: 8px;
    font: 700 15px/1.3 var(--font-heading);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.contact-form__submit:hover:not(:disabled) {
    color: #fff;
    background: #084f78;
    border-color: #084f78;
}
.contact-form__submit:active:not(:disabled) { transform: translateY(1px); }
.contact-form__submit:disabled { cursor: wait; opacity: .72; }
.contact-form__submit.is-loading { padding-left: 48px; }
.contact-form__submit.is-loading::before {
    content: '';
    position: absolute;
    left: 22px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.42);
    border-top-color: #fff;
    border-radius: 50%;
    animation: contact-spin .8s linear infinite;
}
.contact-form__status {
    flex: 1 1 260px;
    min-height: 24px;
    padding: 10px 12px;
    border-radius: 7px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}
.contact-form__status:empty { padding: 0; }
.contact-form__status[data-state="loading"] { background: #eff6ff; color: #1e3a8a; }
.contact-form__status[data-state="success"] { background: #f0fdf4; color: var(--contact-success); }
.contact-form__status[data-state="error"] { background: #fef2f2; color: var(--contact-error); }
.contact-page__additional {
    max-width: 900px;
    margin-top: 0;
    margin-bottom: 72px;
    padding: clamp(24px, 4vw, 40px);
}
.contact-page__additional > *:first-child { margin-top: 0; }
.contact-page__additional > *:last-child { margin-bottom: 0; }
.contact-page a:focus-visible,
.contact-page button:focus-visible,
.contact-page input:focus-visible,
.contact-page textarea:focus-visible,
.contact-form__status:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}
.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
    border-color: #0c6597;
    box-shadow: 0 0 0 3px rgba(12, 101, 151, .16);
}
@keyframes contact-spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
    .contact-page__layout { grid-template-columns: 1fr; }
    .contact-page__details { order: 2; }
    .contact-page__form-card { order: 1; }
}
@media (max-width: 560px) {
    .contact-page__hero-inner,
    .contact-page__layout { padding-left: 20px; padding-right: 20px; }
    .contact-form__grid { grid-template-columns: 1fr; gap: 16px; }
    .contact-field--full { grid-column: auto; }
    .contact-page__form-card { padding: 22px 18px; border-radius: 12px; }
    .contact-form__actions { align-items: stretch; }
    .contact-form__submit { width: 100%; }
    .contact-form__status { flex-basis: 100%; }
    .contact-form__privacy-note { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .contact-page *, .contact-page *::before, .contact-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* --- FOOTER (PALAUTETTU HEHKU) --- */

.site-footer { 
    background: var(--bg-header); 
    color: #cbd5e1; 
    padding: 50px 0 20px; 
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container-wide {
    max-width: 1420px !important;
    margin: 0 auto;
    padding: 0 28px;
}

/* 5 Sarakkeen Grid */
.footer-grid { 
    display: grid;
    /* Vasen | Valikot | Oikea */
    grid-template-columns: 20% 15% 15% 15% 35%; 
    gap: 15px; 
    margin-bottom: 40px;
    align-items: start;
}

/* Otsikot */
.footer-col h4 { 
    font-family: var(--font-heading); 
    color: #fff; 
    margin-bottom: 12px; 
    font-size: 13px; 
    text-transform: uppercase; 
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Linkkilistat */
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 4px; }
.footer-col a { 
    color: #9DB0C2; 
    font-size: 13px; 
    text-decoration: none; 
    transition: color 0.2s; 
    display: block; 
}
.footer-col a:hover { color: var(--brand-blue); }

/* Compact links still need a comfortable touch/focus area. */
.innohub-lang-pill,
.home-youtube-top-full,
.statfi-dashboard-link,
.theme-title-link,
.theme-link,
.theme-link-small,
.footer-col a,
.footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
}

.innohub-dynamic-menu a {
    min-width: 36px;
}

.footer-col .menu a,
.footer-bottom .menu a {
    min-width: 36px;
}

.theme-tab-btn,
.theme-mini-tabs .theme-tab-btn,
.search-submit {
    min-height: 36px;
}

/* InnoVisual Logo (HILLITTY HEHKU PALAUTETTU) */
.footer-iv-logo {
    display: block;
    max-width: 160px;
    height: auto;
    margin-bottom: 12px;
    /* Pehmeämpi hehku, ei tuplaefektiä */
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.25));
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.footer-iv-logo:hover {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    opacity: 0.9;
}

/* CTA Nappi (Pidetään kapeana) */
.footer-cta-btn {
    display: inline-block;
    width: 100%;
    max-width: 160px;
    box-sizing: border-box;
    text-align: center;
    background: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.2); 
    color: #fff !important; 
    padding: 8px 0;
    border-radius: 4px; 
    font-weight: 600; 
    font-size: 13px; 
    transition: all 0.2s;
    margin-top: 5px;
}
.footer-cta-btn:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    box-shadow: 0 4px 15px rgba(22, 158, 204, 0.3);
}

/* Footer Copyright */
.footer-bottom { 
    text-align: center; 
    color: #cbd5e1;
    font-size: 12px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 20px; 
}
.footer-bottom span {
    font-size: 12px;
    opacity: 0.9;
    color: #E8EEF4;
    display: block;
    margin-top: 10px;
}

/* --- ARCHIVE / INDEX --- */
.archive-header { margin-bottom: 40px; border-bottom: 1px solid #e5e7eb; padding-bottom: 20px; }
.page-title { font-family: var(--font-heading); font-size: 32px; color: var(--text-main); }
.page-title span { color: var(--brand-blue); }

.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.archive-item {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #e5e7eb; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); 
}
.archive-item:hover { transform: translateY(-5px); border-color: var(--brand-blue); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.archive-thumb-wrap { height: 200px; overflow: hidden; background: #E8EEF4; }
.archive-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.archive-item:hover .archive-thumb { transform: scale(1.1); }
.archive-content { padding: 20px; }
.archive-title { font-family: var(--font-heading); font-size: 18px; margin-bottom: 10px; color: var(--text-main); line-height: 1.4; }
.archive-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.archive-date { color: var(--text-meta); font-size: 12px; text-transform: uppercase; display: block; margin-bottom: 8px; }

/* --- SINGLE ARTICLE --- */
.single-article { max-width: 100%; }

.article-header { text-align: center; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
.article-category { display: inline-block; background: rgba(22, 158, 204, 0.1); color: var(--brand-blue); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; }
.article-title { font-size: 42px; line-height: 1.2; margin-bottom: 20px; color: var(--text-main); }
.article-meta { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.meta-sep { margin: 0 8px; opacity: 0.5; }

.article-featured-image { width: 100%; height: 500px; overflow: hidden; border-radius: 12px; margin-bottom: 50px; }
.article-featured-image img { width: 100%; height: 100%; object-fit: cover; }

.article-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; max-width: 1200px; margin: 0 auto; }

/* Sisältö */
.article-content { font-size: 18px; line-height: 1.8; color: #26405A; }
.article-content p { margin-bottom: 25px; }
.article-content h2 { margin-top: 40px; margin-bottom: 20px; font-size: 28px; color: var(--text-main); }

/* Sisällön lisäelementit */
.article-lead {
    font-size: 20px;
    line-height: 1.6;
    color: #26405A;
    font-weight: 500;
    margin-bottom: 30px;
    border-left: 4px solid var(--brand-blue);
    padding-left: 20px;
    background: rgba(22, 158, 204, 0.05);
}
.article-video-embed { margin: 30px 0; border-radius: 8px; overflow: hidden; background: #000; }
.article-video-embed iframe { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; }
.video-caption { display: block; background: #f1f5f9; padding: 8px 10px; font-size: 12px; color: #64748b; text-align: center; }

/* Author Box */
.author-box { display: flex; gap: 20px; align-items: center; background: #fff; padding: 30px; border-radius: 12px; border: 1px solid #E8EEF4; margin-top: 60px; }
.author-image { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.author-image img { width: 100%; height: 100%; object-fit: cover; }
.author-info h4 { margin: 0 0 5px 0; font-size: 18px; }
.author-info p { margin: 0; font-size: 14px; color: #64748B; }
.author-signature { font-family: 'Cursive', serif; font-size: 20px; color: var(--brand-blue); margin-top: 10px; opacity: 0.8; }
.author-title { color: var(--brand-blue); font-weight: 600; font-size: 12px; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.author-bio { font-size: 14px; color: #64748B; margin-top: 8px; }
.author-email { font-size: 13px; color: #475569; text-decoration: none; border-bottom: 1px dotted #9DB0C2; }
.author-email:hover { color: var(--brand-blue); border-color: var(--brand-blue); }

/* Author Signature Card */
.author-signature-card {
    display: flex;
    gap: 0;
    align-items: stretch;
    background: var(--bg-header);
    border-radius: 16px;
    margin: 48px 0 0;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.author-signature-image {
    flex-shrink: 0;
    width: 200px;
    min-height: 220px;
    background: #142838;
    position: relative;
}
.author-signature-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
}
.author-signature-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 36px;
    gap: 6px;
}
.author-signature-label {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.62); /* AA: 3,78 -> ~6,8:1 tummalla #0d1c2d */
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.author-signature-name {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.author-signature-title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.author-signature-motto {
    margin: 10px 0 4px;
    font-size: 14px;
    font-style: italic;
    color: rgba(255,255,255,0.70);
    line-height: 1.55;
    border-left: 3px solid var(--brand-blue);
    padding-left: 12px;
}
.author-signature-email {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
}
.author-signature-email::before {
    content: '\2709';
    font-size: 15px;
}
.author-signature-email:hover {
    color: var(--brand-blue);
}
@media (max-width: 600px) {
    .author-signature-card { flex-direction: column; }
    .author-signature-image { width: 100%; min-height: 200px; position: relative; }
    .author-signature-info { padding: 22px 20px; text-align: center; }
    .author-signature-motto { border-left: none; padding-left: 0; border-top: 3px solid var(--brand-blue); padding-top: 10px; }
}

/* Sidebar */
.article-sidebar { display: flex; flex-direction: column; gap: 40px; }
.sidebar-widget h3 { font-size: 16px; text-transform: uppercase; border-bottom: 2px solid var(--brand-blue); padding-bottom: 10px; margin-bottom: 20px; display: inline-block; }
.sidebar-video-card { display: flex; gap: 15px; margin-bottom: 15px; text-decoration: none; align-items: center; }
.sidebar-video-card .video-thumb { width: 100px; height: 56px; background-size: cover; background-position: center; border-radius: 6px; flex-shrink: 0; background-color: #0D1C2D; }
.sidebar-video-card .video-thumb--placeholder { background: linear-gradient(135deg, #0D1C2D 0%, #142838 60%, #169ECC 100%); position: relative; }
.sidebar-video-card .video-thumb--placeholder::after { content: ""; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-left: 14px solid rgba(255,255,255,0.9); border-top: 9px solid transparent; border-bottom: 9px solid transparent; transform: translate(-30%, -50%); }
.sidebar-video-card h5 { margin: 0; font-size: 14px; line-height: 1.3; color: var(--text-main); }
.sidebar-video-card:hover h5 { color: var(--brand-blue); }

.sidebar-widget.promo { background: #0D1C2D; color: #fff; padding: 30px; border-radius: 12px; text-align: center; }
.sidebar-widget.promo h3 { border-color: #fff; color: #fff; }
.btn-small { display: inline-block; background: var(--brand-blue); color: #fff; padding: 8px 20px; border-radius: 6px; font-weight: 600; text-decoration: none; margin-top: 15px; }

/* Alapuolen moduulit */
.related-content-modules { margin-top: 80px; border-top: 1px solid #E8EEF4; padding-top: 60px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 30px; }
.related-card { display: block; text-decoration: none; }
.related-card .related-thumb { height: 200px; background-size: cover; border-radius: 8px; margin-bottom: 15px; }
.related-card h4 { font-size: 18px; color: var(--text-main); line-height: 1.4; }

/* --- RESPONSIIVISUUS --- */

/* Läppäri / Tabletti (Alle 1200px) */
@media (max-width: 1200px) {
    .footer-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 30px;
    }
    .branding-col { grid-column: span 1; }
    .menu-col { grid-column: span 1; }
    .cta-col { 
        grid-column: span 3;
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.05);
        padding-top: 20px;
    }
}

/* Mobiili / Pieni Tabletti (Alle 900px) */
@media (max-width: 900px) {
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: minmax(0, 1fr); }
    .related-grid { grid-template-columns: minmax(0, 1fr); }
    .article-title { font-size: 32px; }
    .home-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .home-tv-episodes-grid { grid-template-columns: minmax(0, 1fr); }
    .home-editorial-grid { grid-template-columns: minmax(0, 1fr); }
    .tv-teaser-grid { grid-template-columns: repeat(2, 1fr); }
    .theme-article-grid { grid-template-columns: repeat(2, 1fr); }
    .theme-modules { grid-template-columns: minmax(0, 1fr); }
    .home-themes-top-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Puhelin (Alle 768px) */
@media (max-width: 768px) {
    /* Mobiilissa desktop-navi piilotetaan tässä, mutta perf-mobile.css
       palauttaa sen kapeana vaakavieritettävänä päävalikkorivinä logon alle
       (Innohub TV yhden napautuksen päässä). Koko navigaatio = mega-overlay
       (hampurilainen). */
    .main-nav { display: none; }
    /* Header pysyy nyt yksirivisenä (logo + työkalut), joten korkea
       sarakelayout ei enää tarvita — pidetään pieni scroll-padding sticky-
       headerin alle ankkureita varten. */
    html { scroll-padding-top: 90px; }
    .hero-section { grid-template-columns: minmax(0, 1fr); }
    .header-inner { gap: 16px; }
    .site-header .site-logo img { height: 36px; }
    
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; text-align: center; }
    .branding-col, .menu-col, .cta-col { grid-column: span 1; }
    .footer-logo-link { display: inline-block; }
    .cta-col { align-items: center; }
    .home-hero-body { padding: 22px; }
    .home-hero-side-body { padding: 14px 16px; }
    .home-hero-list-item { align-items: flex-start; }
    .tv-teaser { padding: 24px; }
    .tv-teaser-grid { grid-template-columns: minmax(0, 1fr); }
    .theme-article-grid { grid-template-columns: minmax(0, 1fr); }
    .home-themes-top-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Pieni puhelin (Alle 600px) */
@media (max-width: 600px) {
    .archive-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .home-tv-row-grid { grid-template-columns: minmax(0, 1fr); }
    .home-tv-episodes-grid { grid-template-columns: minmax(0, 1fr); }
}

/* --- Theme-specific hero and video layout --- */
.theme-hero-row {
    display: grid;
    grid-template-columns: var(--home-main-col) var(--home-side-col);
    gap: var(--home-gap);
    margin: 16px 0 10px;
}
.theme-hero-card {
    position: relative;
    background: #0D1C2D;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(13, 28, 45,0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.theme-hero-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(13, 28, 45,0.32); }
.theme-hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-hero-card--primary .theme-hero-media,
.theme-hero-card--secondary .theme-hero-media { height: 320px; }
.theme-hero-body {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.65) 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.theme-hero-title { color: #fff; margin: 0 0 6px; font-size: 20px; line-height: 1.25; }
.theme-hero-excerpt { color: #cbd5e1; margin: 0; font-size: 14px; line-height: 1.45; }
.theme-hero-placeholder { background: #142838; width: 100%; height: 100%; }

.theme-youtube-duo { margin: 10px 0 18px; }
.theme-section-subtitle { font-size: 16px; margin: 0 0 10px; color: #0D1C2D; font-weight: 700; }
.theme-youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.theme-youtube-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #E8EEF4;
}
.theme-youtube-thumb {
    position: relative;
    width: 140px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.theme-youtube-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-youtube-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.18), rgba(0,0,0,0.6));
    color: #fff;
    font-size: 24px;
}
.theme-youtube-body { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.theme-youtube-title { font-weight: 700; color: #0D1C2D; text-decoration: none; }
.theme-youtube-title:hover { color: #225BDE; }
.theme-youtube-meta { margin: 0; color: #64748b; font-size: 13px; }

.theme-youtube-wide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    margin: 10px 0 6px;
}
.theme-youtube-wide {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(13, 28, 45, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.theme-youtube-wide:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(13, 28, 45, 0.08);
}
.theme-youtube-wide-link {
    display: grid;
    grid-template-rows: auto 1fr;
    color: inherit;
}
.theme-youtube-wide-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #E8EEF4;
    overflow: hidden;
}
.theme-youtube-wide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.theme-youtube-wide-play {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}
.theme-youtube-wide-body {
    padding: 12px 14px 14px;
    display: grid;
    gap: 6px;
}
.theme-youtube-wide-chip {
    display: inline-block;
    background: rgba(22, 158, 204, 0.12);
    color: #0C6597;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}
.theme-youtube-wide-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    color: #0D1C2D;
}
.theme-youtube-wide-meta {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.theme-article-list { display: grid; gap: 10px; }
.theme-article-list-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #E8EEF4;
    text-decoration: none;
}
.theme-article-list-media img { width: 100%; height: 60px; object-fit: cover; border-radius: 8px; display: block; }
.theme-article-placeholder.small { height: 60px; }
.theme-article-list-body { display: flex; align-items: center; }
.theme-article-list-body h5 { margin: 0; color: #0D1C2D; font-size: 15px; line-height: 1.35; }
.theme-article-list-card:hover h5 { color: #225BDE; }

.theme-youtube-carousel { margin-top: 18px; }

.theme-video-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.theme-video-modal.is-open { display: flex; }
.theme-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}
.theme-video-frame {
    position: relative;
    width: min(900px, 92vw);
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    z-index: 1;
}
.theme-video-embed { position: absolute; inset: 0; }
.theme-video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.theme-video-close {
    position: absolute;
    top: 10px; right: 10px;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
    width: 34px; height: 34px;
    cursor: pointer;
    z-index: 2;
}

/* --- ETUSIVUN YHTENÄINEN RUNKO --- */
@media (min-width: 901px) {
    .home-hero-grid,
    .home-hero-grid--with-sidebar,
    .home-tv-row-grid,
    .theme-split,
    .theme-hero-row {
        display: grid;
        grid-template-columns: var(--home-main-col) var(--home-side-col);
        gap: var(--home-gap);
        align-items: start;
    }
    .home-sidebar-module,
    .home-tv-sidebar,
    .theme-sidebar {
        height: 100%;
    }
}

@media (max-width: 960px) {
    .theme-hero-row { grid-template-columns: minmax(0, 1fr); }
    .theme-hero-card--primary .theme-hero-media,
    .theme-hero-card--secondary .theme-hero-media { height: 240px; }
    .theme-youtube-card { flex-direction: column; }
    .theme-youtube-thumb { width: 100%; height: 180px; }
    .theme-split { grid-template-columns: minmax(0, 1fr); }
}

/* --- SINGLE LAYOUT 2026 --- */
.single-shell { padding: 36px 0 70px; }
.single-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #0D1C2D 0%, #0D1C2D 60%, #142838 100%);
    aspect-ratio: 16 / 9;
    min-height: 340px;
    margin-bottom: 28px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 20px 40px rgba(13, 28, 45, 0.18);
}
.single-hero-media { position: absolute; inset: 0; }
.single-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,0.75) 100%);
}
.single-hero-body {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 30px 44px 34px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #fff;
}
.single-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.single-channel-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: #E8EEF4;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    flex-shrink: 0;
}
.single-channel-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.single-hero--flat {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    color: var(--text-main);
    box-shadow: 0 10px 24px rgba(13, 28, 45, 0.08);
    aspect-ratio: auto;
    min-height: 240px;
}
.single-hero--flat .single-hero-body { color: var(--text-main); }
.single-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
    margin: 0;
}
.single-title--channel {
    font-size: clamp(24px, 2.1vw, 34px);
}
.single-hero--channel.single-hero--flat {
    min-height: 180px;
}
.single-hero--channel.single-hero--flat .single-hero-body {
    padding: 20px 28px 24px;
}
.single-hero--channel .single-channel-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
}
.single-hero-channel-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    font-size: 14px;
}
.single-hero-stat {
    color: var(--text-muted);
}
.single-hero-stat strong {
    color: var(--text-main);
    font-weight: 700;
}
.single-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: #E8EEF4;
}
.single-hero--flat .single-meta-line { color: var(--text-muted); }
.single-meta-author { display: inline-flex; align-items: center; gap: 8px; }
.single-meta-author-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.single-meta-author-name { font-weight: 600; }
.meta-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.badge-pill { background: rgba(22, 158, 204, 0.16); color: #E8EEF4; border: 1px solid rgba(255,255,255,0.16); }
.single-hero--flat .badge-pill { color: #0C6597; border-color: rgba(22, 158, 204,0.25); }
.badge-soft {
    background: rgba(22, 158, 204, 0.12);
    color: #0C6597;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.single-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
    gap: 28px;
    align-items: start;
}
.single-main {
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px 26px 30px;
    box-shadow: 0 12px 30px rgba(13, 28, 45, 0.08);
}

/* --- Share bar --------------------------------------------------------- */
.single-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 18px;
    margin: 0 0 22px;
    background: linear-gradient(135deg, rgba(22, 158, 204,0.06) 0%, rgba(22, 158, 204,0.02) 100%);
    border: 1px solid rgba(22, 158, 204,0.18);
    border-radius: 14px;
    position: relative;
}
.single-share-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-right: 4px;
}
.single-share-buttons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #475569;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    padding: 0;
}
.share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}
.share-btn:hover,
.share-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(13, 28, 45, 0.12);
    color: #fff;
    outline: none;
}
.share-btn--x:hover,
.share-btn--x:focus-visible           { background: #0D1C2D; border-color: #0D1C2D; }
.share-btn--linkedin:hover,
.share-btn--linkedin:focus-visible    { background: #0A66C2; border-color: #0A66C2; }
.share-btn--facebook:hover,
.share-btn--facebook:focus-visible    { background: #1877F2; border-color: #1877F2; }
.share-btn--whatsapp:hover,
.share-btn--whatsapp:focus-visible    { background: #25D366; border-color: #25D366; }
.share-btn--email:hover,
.share-btn--email:focus-visible       { background: #64748B; border-color: #64748B; }
.share-btn--copy:hover,
.share-btn--copy:focus-visible        { background: var(--brand-blue); border-color: var(--brand-blue); }
.share-btn--copy.is-copied {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}
.single-share-feedback {
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
    margin-left: auto;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.single-share-feedback.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 600px) {
    .single-share { padding: 12px 14px; gap: 10px; }
    .single-share-label { width: 100%; margin: 0; }
    .single-share-feedback { margin-left: 0; width: 100%; }
}

.single-lead {
    font-size: 18px;
    line-height: 1.65;
    color: #26405A;
    padding: 14px 16px;
    background: rgba(22, 158, 204, 0.06);
    border-left: 4px solid var(--brand-blue);
    border-radius: 12px;
    margin-bottom: 18px;
}
.single-content { font-size: 17px; line-height: 1.8; color: #142838; }
.single-content p { margin: 0 0 20px; }
.single-content iframe { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; border-radius: 8px; margin: 24px 0; }
.innohub-embed-facade {
    position: relative;
    width: 100%;
    min-height: 180px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 80% 15%, rgba(22, 158, 204, 0.28), transparent 32%),
        linear-gradient(135deg, #0D1C2D 0%, #142838 100%);
    color: #fff;
    cursor: pointer;
}
.innohub-embed-facade--youtube {
    aspect-ratio: 16 / 9;
}
.innohub-embed-facade--spotify {
    border-radius: 12px;
}
.innohub-embed-facade__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    transform: scale(1.01);
}
.innohub-embed-facade::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 28, 45, 0.08), rgba(13, 28, 45, 0.48));
}
.innohub-embed-facade__button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: rgba(13, 28, 45, 0.68);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(13, 28, 45, 0.25);
}
.innohub-embed-facade:hover .innohub-embed-facade__button,
.innohub-embed-facade__button:focus-visible {
    background: rgba(22, 158, 204, 0.9);
    outline: none;
}
.innohub-embed-facade__icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: #ef4444;
    font-size: 13px;
    line-height: 1;
}
.innohub-embed-facade__icon--spotify {
    background: #1DB954;
}
.innohub-embed-facade iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.single-player {
    background: #0D1C2D;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 18px;
}
.single-player iframe,
.single-player audio {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}
.single-player .spotify-embed {
    aspect-ratio: auto;
    height: 232px;
    min-height: 232px;
}
.spotify-cta-wrap {
    margin: 10px 0 6px;
}
.spotify-cta {
    width: 100%;
    max-width: 260px;
    justify-content: center;
}
.single-empty { color: var(--text-muted); padding: 8px 0; }

.block-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.block-heading h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 22px;
}
.block-sub { margin: 4px 0 0; color: var(--text-muted); }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: var(--brand-blue-text);
    margin: 0 0 4px;
    font-weight: 700;
}

.single-related-block { margin: 26px 0 10px; }
.single-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.single-related-grid .single-related-card { max-width: none; }
.single-related-grid .single-related-thumb { aspect-ratio: unset; height: 105px; overflow: hidden; }
.single-related-grid .single-related-body h4, .single-related-grid .single-related-body h3 { font-size: 13px; }
.single-related-grid .single-related-body p { font-size: 12px; }
.single-related-rail {
    display: grid;
    gap: 12px;
}
.single-related-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(13, 28, 45, 0.05);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.single-related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(13, 28, 45, 0.08); }
.single-related-thumb { width: 100%; aspect-ratio: 16 / 9; background: #E8EEF4; position: relative; overflow: hidden; }
.single-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.single-related-thumb--placeholder {
    background: linear-gradient(135deg, #312e81 0%, #6d28d9 50%, #8b5cf6 100%);
    display: flex; align-items: center; justify-content: center;
}
.single-related-thumb-fallback {
    color: rgba(255, 255, 255, 0.55); font-size: 36px; display: inline-flex;
}
.single-related-playbadge {
    position: absolute; bottom: 8px; right: 8px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0, 0, 0, 0.7); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; padding-left: 2px;
    transition: transform 0.2s ease, background 0.2s ease;
}
.single-related-card:hover .single-related-playbadge { transform: scale(1.15); background: #ef4444; }
.single-related-body { padding: 12px 14px 14px; display: grid; gap: 6px; }
.single-related-body h4, .single-related-body h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.single-related-body p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.single-related-body .meta { font-size: 12px; color: var(--text-meta); }

.single-related-rail .single-related-card { flex-direction: column; align-items: stretch; }
.single-related-rail .single-related-thumb { width: 100%; min-width: 0; aspect-ratio: 16 / 9; }
.single-related-rail .single-related-body { padding: 10px 12px; }
.single-related-rail .single-related-body h4 { font-size: 14px; line-height: 1.35; }
.single-related-rail .single-related-body p { font-size: 12.5px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }

.single-tv-block {
    margin: 30px 0 0;
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px 18px 12px;
    box-shadow: 0 10px 26px rgba(13, 28, 45, 0.08);
}
.tv-carousel { margin-top: 6px; }

.single-rail {
    display: grid;
    gap: 14px;
}
.rail-card {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 16px 18px;
    box-shadow: 0 8px 20px rgba(13, 28, 45, 0.06);
}
.rail-card h3 {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 16px;
}
.rail-related-list {
    display: grid;
    gap: 10px;
}
.rail-related-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(13, 28, 45, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.rail-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(13, 28, 45, 0.08);
    border-color: #E8EEF4;
}
.rail-related-thumb {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    background: #E8EEF4 center/cover no-repeat;
    flex-shrink: 0;
}
.rail-related-body {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.rail-related-body strong {
    font-size: 14px;
    line-height: 1.35;
    color: #0D1C2D;
}
.rail-related-body small {
    color: #64748b;
    font-size: 12px;
}
.rail-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rail-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--text-muted); }
.rail-list strong { color: var(--text-main); font-size: 15px; }
.rail-tags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rail-tags-title {
    flex: 1 0 100%;
    margin: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-weight: 700;
}
.rail-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.2;
    color: #0369a1;
    border: 1px solid #bae6fd;
    background: #E8EEF4;
}
.rail-tag:hover {
    border-color: #7dd3fc;
    color: #075985;
}
.rail-tv-preview .rail-tv-player {
    border-radius: 12px;
    overflow: hidden;
    background: #0D1C2D;
}
.rail-tv-preview .rail-tv-player iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}
.rail-tv-title {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-main);
    font-weight: 700;
}
.rail-tv-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rail-tv-actions .chip-link {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
}
.rail-media-group + .rail-media-group {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}
.rail-media-group h4 {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: 14px;
}
.rail-link-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.rail-link-list li { margin: 0; }
.rail-link-list a {
    color: #0D1C2D;
    text-decoration: none;
    line-height: 1.45;
    font-size: 14px;
}
.rail-link-list a:hover {
    color: var(--brand-blue);
    text-decoration: underline;
}
.rail-cta { text-align: left; }
.rail-cta h4 { margin: 4px 0 6px; font-family: var(--font-heading); }
.rail-promo {
    background: linear-gradient(160deg, #f8fafc 0%, #E8EEF4 100%);
}
.rail-promo p { margin: 0 0 12px; }
.rail-promo-logo-link {
    display: block;
    width: 100%;
    margin-bottom: 14px;
}
.rail-promo-logo {
    max-width: none;
    width: 100%;
    height: auto;
    display: block;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #0C6597; /* IH-13 teemaväri: valkoinen 6,3:1 (AA); --brand-blue #169ECC = 3,08:1 */
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
    transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { background: #0A5580; transform: translateY(-1px); color: #fff !important; }
.chip-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #bae6fd;
    color: #0C6597;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    background: rgba(186, 230, 253, 0.25);
}
.chip-link:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

.video-player iframe { aspect-ratio: 16 / 9; }

.single-grid--youtube {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
}
.single-main--youtube {
    padding-top: 18px;
}
.yt-single-channel-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #E8EEF4;
    border-radius: 12px;
    background: #f8fafc;
    margin-bottom: 16px;
}
.yt-single-channel-thumb {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 6px 14px rgba(13, 28, 45, 0.12);
    flex: 0 0 auto;
}
.yt-single-channel-body {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.yt-single-channel-name {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 20px;
    line-height: 1.2;
    color: #0D1C2D;
}
.yt-single-channel-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #475569;
    font-size: 13px;
}
.yt-single-header {
    margin-bottom: 12px;
}
.single-title--compact {
    color: #0D1C2D;
    font-size: clamp(30px, 3vw, 44px);
}
.single-meta-line--dark {
    color: #64748b;
}
.yt-single-quickfacts {
    margin: -2px 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.yt-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #E8EEF4;
    background: #f8fbff;
    color: #26405A;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.2;
}
.yt-single-description {
    font-size: 17px;
    line-height: 1.8;
    color: #142838;
}
.yt-single-description p {
    margin: 0 0 18px;
}
.single-rail--youtube .single-related-rail .single-related-card {
    align-items: flex-start;
}
.single-rail--youtube .single-related-rail .single-related-thumb {
    width: 104px;
    min-width: 104px;
    aspect-ratio: 16 / 10;
}
.yt-channel-card {
    display: grid;
    gap: 12px;
}
.yt-channel-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.yt-channel-thumb {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 6px 14px rgba(13, 28, 45, 0.14);
    flex: 0 0 auto;
}
.yt-channel-name {
    margin: 0 0 4px;
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.2;
    color: #0D1C2D;
}
.yt-channel-description {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}
.yt-channel-link {
    width: 100%;
    justify-content: center;
}

@media (max-width: 1024px) {
    /* minmax(0,…) — plain 1fr = minmax(auto,1fr) lets an in-content carousel's
       min-content (~2 500 px of cards) widen the whole article on mobile (AUD IH-1). */
    .single-grid { grid-template-columns: minmax(0, 1fr); }
    .single-rail { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 768px) {
    .single-hero {
        min-height: 220px;
        aspect-ratio: auto;
    }
    .single-hero-body { padding: 20px; }
    .single-title { font-size: 28px; }
    .single-title--channel { font-size: 24px; }
    .single-main { padding: 20px; }
    .yt-single-channel-strip {
        flex-direction: column;
        align-items: flex-start;
    }
    .single-related-rail .single-related-card { flex-direction: column; }
    .single-related-rail .single-related-thumb { width: 100%; min-width: 100%; }
}

/* === TOOL CALCULATOR STYLES === */
.innohub-tool-wrapper { max-width: 900px; margin: 0 auto; }
.tool-calculator { background: var(--bg-card); border-radius: 12px; padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin: 24px 0; }
.tool-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tool-calc-section h3 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; color: var(--text-main); }
.tool-calc-section label { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 10px; }
.tool-calc-section input[type="number"],
.tool-calc-section input[type="text"],
.tool-calc-section input[type="week"] { width: 120px; padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.9rem; text-align: right; }
.tool-calc-section input:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 2px rgba(22, 158, 204,0.15); }
.tool-calc-result { margin-top: 18px; padding-top: 14px; border-top: 2px solid #E8EEF4; }
.tool-result-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; }
.tool-result-row span { color: var(--text-muted); }
.tool-result-row strong { color: var(--text-main); }
.tool-result-row.highlight { background: #E8EEF4; margin: 4px -8px; padding: 8px 8px; border-radius: 6px; }
.tool-result-row.highlight strong { color: var(--brand-blue); font-size: 1.05rem; }

/* Shift planner */
.vuoro-controls { margin-bottom: 16px; }
.vuoro-control-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.vuoro-control-row label { font-size: 0.85rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 4px; }
.vuoro-control-row input { padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.9rem; }
.vuoro-btn { padding: 8px 16px; background: var(--brand-blue); color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 0.88rem; font-weight: 600; }
.vuoro-btn:hover { background: #169ECC; }
.vuoro-btn--secondary { background: #64748b; }
.vuoro-btn--secondary:hover { background: #475569; }
.vuoro-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-muted); }
.vuoro-legend-item { display: flex; align-items: center; gap: 4px; }
.vuoro-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.vuoro-table-wrap { overflow-x: auto; margin-bottom: 16px; }
.vuoro-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.vuoro-table th { background: #f1f5f9; padding: 8px 12px; text-align: center; font-weight: 600; font-size: 0.82rem; color: var(--text-muted); }
.vuoro-table td { padding: 8px 12px; text-align: center; border-bottom: 1px solid #E8EEF4; }
.vuoro-cell { min-width: 44px; font-weight: 700; border-radius: 4px; transition: background 0.15s; }
.vuoro-name { text-align: left !important; font-weight: 600; white-space: nowrap; position: relative; padding-right: 24px !important; }
.vuoro-del { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #ef4444; cursor: pointer; font-size: 1rem; opacity: 0; transition: opacity 0.15s; }
.vuoro-table tr:hover .vuoro-del { opacity: 1; }
.vuoro-hours { font-weight: 700; color: var(--brand-blue); }
.vuoro-summary { font-size: 0.88rem; color: var(--text-muted); padding: 12px 0; }
.vuoro-actions { display: flex; gap: 10px; }

/* Front page tool icons strip */
.fp-tools-strip { padding: 36px 0; background: #fff; border-top: 1px solid #E8EEF4; }
.fp-tools-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.fp-tools-title i { color: var(--brand-blue); margin-right: 6px; }
.fp-tools-grid { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.fp-tool-chip { display: flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid #E8EEF4; border-radius: 10px; padding: 10px 16px; white-space: nowrap; font-size: 0.88rem; font-weight: 600; color: var(--text-main); transition: all 0.2s; text-decoration: none; flex-shrink: 0; }
.fp-tool-chip:hover { border-color: var(--brand-blue); box-shadow: 0 2px 8px rgba(22, 158, 204,0.15); color: var(--brand-blue); }
.fp-tool-chip i { font-size: 16px; }
.fp-tool-featured { border-color: #169ECC; background: linear-gradient(135deg, #E8EEF4, #ede9fe); font-weight: 700; }
.fp-tool-featured:hover { background: linear-gradient(135deg, #E8EEF4, #ddd6fe); box-shadow: 0 4px 12px rgba(22, 158, 204,0.25); }
.fp-tool-chip--product {
    border-color: color-mix(in srgb, var(--fp-accent, #169ECC) 44%, #E8EEF4);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--fp-accent, #169ECC) 11%, #fff), #fff 72%);
    box-shadow: 0 6px 16px rgba(13, 28, 45, 0.05);
}
.fp-tool-chip--product:hover {
    border-color: var(--fp-accent, #169ECC);
    color: var(--text-main);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--fp-accent, #169ECC) 18%, transparent);
}

@media (max-width: 768px) {
    .tool-calc-grid { grid-template-columns: minmax(0, 1fr); }
    .vuoro-control-row { flex-direction: column; align-items: stretch; }
}
@media print {
    .site-header, .site-footer, .vuoro-controls, .vuoro-actions, .vuoro-legend { display: none !important; }
    .vuoro-table { font-size: 11px; }
    .tool-calculator { box-shadow: none; border: 1px solid #ccc; }
}

/* ============================================================
   VIDEO & PODCAST PAGE (page-video-podcast.php)
   ============================================================ */
.vp-page { padding-top: 30px; padding-bottom: 60px; }

/* --- Hero featured embed --- */
.vp-hero-featured {
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(13, 28, 45,0.08);
    border: 1px solid #e5e7eb;
}
.vp-hero-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.vp-hero-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.vp-hero-info { padding: 18px 22px 22px; }
.vp-hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FF0000, #CC0000);
    color: #fff;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 10px;
}
.vp-hero-title {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.5vw, 28px);
    line-height: 1.25;
}
.vp-hero-title a { color: inherit; }
.vp-hero-title a:hover { color: var(--brand-blue); }
.vp-hero-meta {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-muted);
}
.vp-hero-excerpt {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.55;
}

/* --- Secondary YouTube cards --- */
.vp-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}
.vp-secondary-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 18px rgba(13, 28, 45,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vp-secondary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(13, 28, 45,0.1);
}
.vp-secondary-link { display: block; color: inherit; }
.vp-secondary-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #E8EEF4;
    overflow: hidden;
}
.vp-secondary-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-play-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 14px;
}
.vp-secondary-body { padding: 10px 12px 12px; }
.vp-secondary-body h3 {
    margin: 0 0 4px;
    font-size: 14px;
    font-family: var(--font-heading);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vp-secondary-meta {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* --- Sidebar modules --- */
.vp-sidebar-heading {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vp-sidebar-spotify {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(13, 28, 45,0.05);
}
.vp-spotify-embed iframe { border-radius: 12px; }
.vp-spotify-meta {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}
.vp-sidebar-tabs-module {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(13, 28, 45,0.05);
}

/* --- Latest episodes section --- */
.vp-latest-section { margin-top: 32px; }
.vp-latest-block { margin-bottom: 24px; }
.vp-latest-block .section-heading {
    margin-bottom: 10px;
}
.vp-latest-block .section-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

/* Vaakakaruselli — 10 jaksoa kompaktissa scrollissa */
.vp-episodes-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c5cad1 transparent;
    padding: 4px 2px 10px;
    margin: 0 -2px;
}
.vp-episodes-carousel::-webkit-scrollbar { height: 6px; }
.vp-episodes-carousel::-webkit-scrollbar-track { background: transparent; }
.vp-episodes-carousel::-webkit-scrollbar-thumb {
    background: #c5cad1;
    border-radius: 4px;
}
.vp-episodes-carousel::-webkit-scrollbar-thumb:hover { background: #9DB0C2; }
.vp-episodes-carousel .vp-episode-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
}

/* Säilytä grid-luokka muille mahdollisille käyttötarkoituksille */
.vp-episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.vp-episode-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 10px rgba(13, 28, 45,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vp-episode-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(13, 28, 45,0.08);
}
.vp-episode-card a { display: block; color: inherit; }
.vp-episode-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #E8EEF4;
    overflow: hidden;
}
.vp-episode-card--spotify .vp-episode-thumb {
    aspect-ratio: 1 / 1;
}
.vp-episode-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-episode-body { padding: 8px 10px 10px; }
.vp-episode-body h4 {
    margin: 0 0 3px;
    font-size: 13px;
    font-family: var(--font-heading);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Rajattu koskemaan vain metatietorivia. Ennen tama osui KAIKKIIN rungon
   <p>-elementteihin, joten uusi monirivinen kuvaus olisi litistynyt yhdelle
   riville (white-space: nowrap voitti luokkasaannon tarkkuudella). */
.vp-episode-body .vp-episode-meta {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Voting section --- */
.vp-voting-section {
    margin-top: 40px;
    padding: 30px 0;
    border-top: 1px solid #e5e7eb;
}
.vp-voting-section .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.vp-voting-section .section-heading h2 {
    font-size: 24px;
    margin: 0;
}
.vp-voting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.vp-voting-block {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(13, 28, 45,0.05);
}
.vp-voting-block h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Laajennettava lista — 3 ensimmäistä näkyy oletuksena, muut piilossa */
.vp-vote-collapsible .home-youtube-top-card.is-extra { display: none; }
.vp-vote-collapsible.is-expanded .home-youtube-top-card.is-extra { display: flex; }

/* Toiminnot-rivi: laajenna-painike + täysi lista -linkki */
.vp-vote-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}
.vp-vote-expand {
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-muted);
    transition: background 0.15s, border-color 0.15s;
}
.vp-vote-expand:hover { background: #f1f5f9; border-color: #9DB0C2; }
.vp-vote-expand .vp-vote-expand-less { display: none; }
.vp-vote-expand[aria-expanded="true"] .vp-vote-expand-more { display: none; }
.vp-vote-expand[aria-expanded="true"] .vp-vote-expand-less { display: inline; }

/* --- Vanhat vp-voting-* säilytetään mahdollisuus käyttää muualla --- */
.vp-voting-list { display: grid; gap: 8px; }
.vp-voting-card {
    display: grid;
    grid-template-columns: 36px 44px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #E8EEF4;
    color: inherit;
    transition: background 0.15s;
}
.vp-voting-card:hover { background: #eef3f8; }
.vp-voting-rank { text-align: center; font-size: 18px; }
.vp-voting-num { font-weight: 700; font-size: 14px; color: var(--text-muted); }
.vp-voting-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.vp-voting-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-voting-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vp-voting-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vp-voting-votes { font-size: 12px; color: var(--text-muted); }

/* --- Theme sections adjustments --- */
.vp-themes { margin-top: 40px; }

/* --- Responsive --- */
@media (max-width: 960px) {
    .vp-secondary-grid { grid-template-columns: minmax(0, 1fr); }
    .vp-voting-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
    .vp-episodes-grid { grid-template-columns: repeat(2, 1fr); }
    .vp-episodes-carousel .vp-episode-card { flex: 0 0 180px; }
}
@media (max-width: 600px) {
    .vp-episodes-grid { grid-template-columns: minmax(0, 1fr); }
    .vp-episodes-carousel .vp-episode-card { flex: 0 0 160px; }
    .vp-latest-block .section-heading h2 { font-size: 16px; }
}

/* ÄÄNESTYS PAGE -tyylit poistettu 2026-07-29 yhdessä page-aanestys.php:n
   kanssa: templatella ei ollut sivua missään ympäristössä eikä .aanestys-*
   -luokilla muita käyttäjiä. Äänestys-UI elää sivuilla joilla data on
   (page-youtube-kanavat.php, page-spotify-podcast.php, page-video-podcast.php). */

/* ============================================================
   TIIMI PAGE (page-tiimi.php)
   ============================================================ */
.tiimi-hero {
    text-align: center;
    padding: 30px 0 24px;
}
.tiimi-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3vw, 38px);
    margin: 0 0 10px;
}
.tiimi-intro {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}
.tiimi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 10px;
}
.tiimi-member {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(13, 28, 45,0.06);
}
.tiimi-member-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}
.tiimi-member-avatar {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(13, 28, 45,0.1);
}
.tiimi-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tiimi-member-info { flex: 1; min-width: 0; }
.tiimi-member-name {
    margin: 0 0 4px;
    font-family: var(--font-heading);
    font-size: 22px;
    line-height: 1.2;
}
.tiimi-member-title {
    margin: 0 0 6px;
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.tiimi-member-motto {
    margin: 0 0 10px;
    font-style: italic;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}
.tiimi-member-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.tiimi-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 999px;
}
.tiimi-stat--email { color: var(--brand-blue); }
.tiimi-stat--email:hover { text-decoration: underline; }

.tiimi-member-articles {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}
.tiimi-articles-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 16px;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.tiimi-articles-toggle:hover {
    background: #eef3f8;
    border-color: var(--brand-blue);
}
.tiimi-toggle-icon {
    transition: transform 0.3s ease;
    font-size: 14px;
    color: var(--brand-blue);
}
.tiimi-articles-toggle[aria-expanded="true"] .tiimi-toggle-icon {
    transform: rotate(180deg);
}
.tiimi-articles-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    opacity: 0;
}
.tiimi-articles-wrap.is-open {
    max-height: 2000px;
    opacity: 1;
    margin-top: 12px;
}
.tiimi-articles-count {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}
.tiimi-articles-list {
    display: grid;
    gap: 8px;
}
.tiimi-article-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #E8EEF4;
    color: inherit;
    transition: background 0.15s;
}
.tiimi-article-item:hover { background: #eef3f8; }
.tiimi-article-thumb { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; }
.tiimi-article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tiimi-article-text h4 {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tiimi-article-text p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}
.tiimi-load-more {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 999px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-blue);
    cursor: pointer;
    transition: all 0.2s;
}
.tiimi-load-more:hover {
    border-color: var(--brand-blue);
    background: rgba(22, 158, 204, 0.06);
}

@media (max-width: 900px) {
    .tiimi-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
    .tiimi-member-avatar { width: 200px; height: 200px; }
}

/* ============================================================
   OPPIMINEN PAGES (opp-* prefix) — Shared across all learning pages
   ============================================================ */

/* ── Breadcrumb ─────────────────────────────────────────────── */
.opp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0 0;
    font-size: 14px;
    color: var(--text-muted-strong);
}
.opp-breadcrumb a { color: var(--brand-blue-text); font-weight: 600; }
.opp-breadcrumb a:hover { text-decoration: underline; }

/* ── Hero ────────────────────────────────────────────────────── */
.opp-hero {
    text-align: center;
    padding: 32px 0 28px;
}
.opp-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 42px);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.opp-hero h1 i { color: var(--hero-accent, var(--brand-blue)); }
.opp-hero--accent { border-bottom: 3px solid var(--hero-accent, var(--brand-blue)); margin-bottom: 8px; }
.opp-hero--xl .opp-hero__lead { max-width: 780px; font-size: 17px; }
.opp-hero__lead {
    color: var(--text-muted-strong);
    font-size: 16px;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}
.opp-hero__lead strong { color: var(--text-main); }
.opp-hero__stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted-strong);
}
.opp-hero__stats span { display: flex; align-items: center; gap: 6px; }
.opp-hero__stats i { color: var(--brand-blue); }
.opp-hero__stat { margin-top: 10px; color: var(--text-muted); font-size: 15px; }
.opp-hero__stat strong { color: var(--text-main); font-size: 22px; }

/* ── Section title (shared) ──────────────────────────────────── */
.opp-section-title {
    font-family: var(--font-heading);
    font-size: 22px;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Section nav (tabs at top) ───────────────────────────────── */
.opp-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
    position: sticky;
    top: 70px;
    z-index: 20;
    background: var(--bg-body);
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}
.opp-section-nav__tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid #E8EEF4;
    color: var(--text-muted);
    transition: all 0.2s;
    cursor: pointer;
}
.opp-section-nav__tab:hover { background: #eef3f8; color: var(--brand-blue); border-color: var(--brand-blue); }

/* ── Search bar ──────────────────────────────────────────────── */
.opp-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--bg-card);
    border: 2px solid #E8EEF4;
    border-radius: 14px;
    margin-bottom: 24px;
    transition: border-color 0.2s;
}
.opp-search-bar:focus-within { border-color: var(--brand-blue); }
.opp-search-bar i { color: var(--text-muted); }
.opp-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    font-family: var(--font-body);
    color: var(--text-main);
}
.opp-search-bar__count { font-size: 13px; color: var(--text-muted); white-space: nowrap; }

/* ── Filter tabs ─────────────────────────────────────────────── */
.opp-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.opp-filter-tab {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid #E8EEF4;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.opp-filter-tab:hover { border-color: var(--tab-color, var(--brand-blue)); color: var(--tab-color, var(--brand-blue)); }
.opp-filter-tab--active {
    background: var(--brand-blue);
    color: #fff;
    border-color: var(--brand-blue);
}

/* ── Alphabetical navigation ─────────────────────────────────── */
.opp-alpha-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}
.opp-alpha-nav__letter {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    background: var(--bg-card);
    border: 1px solid #E8EEF4;
    transition: all 0.15s;
}
.opp-alpha-nav__letter:hover { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.opp-letter-heading {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-blue);
    padding: 20px 0 8px;
    border-bottom: 2px solid var(--brand-blue);
    margin-bottom: 12px;
}

/* ── Block (section wrapper) ─────────────────────────────────── */
.opp-block { margin-bottom: 36px; }
.opp-block__intro { color: var(--text-muted); font-size: 15px; margin: -8px 0 18px; line-height: 1.6; }
.opp-block__intro--multi { max-width: 820px; }
.opp-block__intro--multi p { margin: 0 0 12px; }
.opp-block__intro--multi p:last-child { margin-bottom: 0; }

/* ── Highlight banner ────────────────────────────────────────── */
.opp-highlight-banner {
    background: linear-gradient(135deg, rgba(22, 158, 204,0.06), rgba(139,92,246,0.06));
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 28px;
    border: 1px solid rgba(22, 158, 204,0.15);
}
.opp-highlight-banner--urgent {
    background: linear-gradient(135deg, rgba(239,68,68,0.04), rgba(245,158,11,0.04));
    border-color: rgba(239,68,68,0.15);
}
.opp-highlight-banner__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.opp-highlight-banner__grid--4 { grid-template-columns: repeat(4, 1fr); }
.opp-highlight-banner__item { text-align: center; }
.opp-highlight-banner__item i { font-size: 28px; color: var(--banner-color, var(--brand-blue)); margin-bottom: 10px; display: block; }
.opp-highlight-banner__item h3 { font-family: var(--font-heading); font-size: 16px; margin: 0 0 6px; }
.opp-highlight-banner__item p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ── Accordion ───────────────────────────────────────────────── */
.opp-accordion { display: grid; gap: 8px; }
.opp-accordion__item {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.opp-accordion__item:hover { box-shadow: 0 4px 12px rgba(13, 28, 45,0.06); }
.opp-accordion__trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-main);
}
.opp-accordion__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
    display: grid;
    place-items: center;
    font-size: 16px;
    flex-shrink: 0;
    color: var(--brand-blue);
}
.opp-accordion__title { flex: 1; font-weight: 600; font-family: var(--font-heading); }
.opp-accordion__arrow { font-size: 12px; color: var(--text-muted); transition: transform 0.3s; }
.opp-accordion__item--open .opp-accordion__arrow { transform: rotate(180deg); }
.opp-accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 18px;
}
.opp-accordion__item--open .opp-accordion__content {
    max-height: 600px;
    padding: 0 18px 18px;
}
.opp-accordion__content p { color: var(--text-muted); font-size: 14px; line-height: 1.65; margin: 0 0 10px; }
.opp-accordion__list { margin: 8px 0 12px; padding-left: 22px; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.opp-accordion__list li { margin-bottom: 8px; }
.opp-accordion__list li strong { color: var(--text-main); }
.opp-accordion__tip, .opp-accordion__example {
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}
.opp-accordion__tip strong, .opp-accordion__example strong { color: var(--text-main); }
.opp-accordion__example code {
    display: block;
    margin-top: 4px;
    background: #eef3f8;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #1e40af;
}
.opp-link-sm { font-size: 13px; color: var(--brand-blue); font-weight: 600; margin-top: 8px; display: inline-block; }
.opp-link-sm:hover { text-decoration: underline; }

/* ── Info cards grid ─────────────────────────────────────────── */
.opp-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.opp-info-card {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    border-top: 3px solid var(--card-accent, var(--brand-blue));
    transition: transform 0.2s, box-shadow 0.2s;
}
.opp-info-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13, 28, 45,0.08); }
.opp-info-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f1f5f9;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: var(--card-accent, var(--brand-blue));
    margin-bottom: 12px;
}
.opp-info-card h3 { font-family: var(--font-heading); font-size: 16px; margin: 0 0 8px; }
.opp-info-card p { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin: 0 0 10px; }
.opp-info-card__tip {
    font-size: 12px;
    color: var(--text-muted);
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px 12px;
    line-height: 1.45;
}
.opp-info-card__tip i { color: var(--card-accent, var(--brand-blue)); margin-right: 4px; }

/* ── Metrics dashboard ───────────────────────────────────────── */
.opp-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.opp-metrics-grid--wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.opp-metric-card {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    border-left: 4px solid var(--metric-color, var(--brand-blue));
    transition: transform 0.2s, box-shadow 0.2s;
}
.opp-metric-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(13, 28, 45,0.07); }
.opp-metric-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1f5f9;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: var(--metric-color, var(--brand-blue));
    margin-bottom: 10px;
}
.opp-metric-card h3 { font-family: var(--font-heading); font-size: 15px; margin: 0 0 6px; }
.opp-metric-card__en { font-size: 12px; color: var(--text-muted); font-weight: 400; margin-left: 6px; }
.opp-metric-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.opp-metric-card__formula {
    margin-top: 10px;
    padding: 6px 10px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--metric-color, var(--brand-blue));
}
.opp-metric-card__formula i { margin-right: 4px; }

/* ── YouTube cards ───────────────────────────────────────────── */
.opp-yt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.opp-yt-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
    color: inherit;
    position: relative;
}
.opp-yt-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(13, 28, 45,0.1); color: inherit; }
.opp-yt-card--featured { border-color: #FF0000; border-width: 2px; }
.opp-yt-card__badge {
    position: absolute;
    top: -1px;
    right: 16px;
    background: #FF0000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 0 0 8px 8px;
}
.opp-yt-card__header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.opp-yt-card__play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FF0000;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}
.opp-yt-card h3 { font-family: var(--font-heading); font-size: 15px; margin: 0; }
.opp-yt-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0 0 auto; flex: 1; }
.opp-yt-card__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.opp-yt-card__cta {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #FF0000;
}

/* ── Featured video embeds ───────────────────────────────────── */
.opp-featured-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 20px; }
.opp-featured-video {
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(13, 28, 45,0.04);
}
.opp-featured-video__embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.opp-featured-video__embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}
.opp-featured-video__info { padding: 16px; }
.opp-featured-video__info h3 { font-family: var(--font-heading); font-size: 15px; margin: 0 0 6px; }
.opp-featured-video__info p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ── Tags ────────────────────────────────────────────────────── */
.opp-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--text-muted-strong);
}
.opp-tag--small { font-size: 11px; padding: 3px 8px; }
.opp-tag--link {
    cursor: pointer;
    transition: all 0.15s;
    color: var(--brand-blue);
    border: 1px solid #E8EEF4;
    background: var(--bg-card);
}
.opp-tag--link:hover { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.opp-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Badges ──────────────────────────────────────────────────── */
.opp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

/* ── Concept cards (käsitepankki) ────────────────────────────── */
.opp-concepts-list { display: grid; gap: 8px; }
.opp-concept-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.opp-concept-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(13, 28, 45,0.06); }
.opp-concept-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
    display: grid;
    place-items: center;
    font-size: 16px;
    flex-shrink: 0;
}
.opp-concept-card__body { flex: 1; min-width: 0; }
.opp-concept-card__body h3 { font-family: var(--font-heading); font-size: 15px; margin: 0 0 4px; }
.opp-concept-card__en { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.opp-concept-card__body p { font-size: 13px; color: var(--text-muted); margin: 0 0 8px; line-height: 1.5; }
.opp-concept-card__footer { display: flex; align-items: center; gap: 12px; }

/* ── Funnel (myyntisuppilo) ──────────────────────────────────── */
.opp-funnel { display: grid; gap: 0; }
.opp-funnel__stage {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    padding: 18px 24px;
    position: relative;
    border-left: 4px solid var(--stage-color);
    margin-left: auto;
    margin-right: auto;
    width: var(--stage-width, 100%);
    max-width: 100%;
    transition: transform 0.2s;
}
.opp-funnel__stage:first-child { border-radius: 14px 14px 0 0; }
.opp-funnel__stage:last-child { border-radius: 0 0 14px 14px; }
.opp-funnel__stage:hover { transform: scale(1.01); z-index: 2; box-shadow: 0 4px 12px rgba(13, 28, 45,0.08); }
.opp-funnel__stage-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.opp-funnel__stage-header i { font-size: 18px; color: var(--stage-color); }
.opp-funnel__stage-header h3 { font-family: var(--font-heading); font-size: 15px; margin: 0; }
.opp-funnel__stage-header small { color: var(--text-muted); font-size: 12px; font-weight: 400; }
.opp-funnel__stage p { font-size: 13px; color: var(--text-muted); margin: 0 0 6px; line-height: 1.5; }
.opp-funnel__kpi { font-size: 12px; color: var(--stage-color); font-weight: 600; }

/* ── Callout box ─────────────────────────────────────────────── */
.opp-callout {
    background: linear-gradient(135deg, #fefce8, #fffbeb);
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 24px;
    margin: 28px 0;
}
.opp-callout h3 { font-family: var(--font-heading); font-size: 18px; margin: 0 0 10px; color: #92400e; }
.opp-callout h3 i { color: #f59e0b; margin-right: 6px; }
.opp-callout p { font-size: 14px; color: #78350f; line-height: 1.6; margin: 0 0 8px; }
.opp-callout ul { margin: 8px 0 0; padding-left: 18px; }
.opp-callout li { font-size: 13px; color: #78350f; line-height: 1.6; margin-bottom: 6px; }
.opp-callout li strong { color: #92400e; }

/* ── Oppiminen hub: area cards ───────────────────────────────── */
.opp-areas__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.opp-area-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    border-top: 4px solid var(--card-accent, var(--brand-blue));
    transition: transform 0.25s, box-shadow 0.25s;
    color: inherit;
}
.opp-area-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(13, 28, 45,0.1); color: inherit; }
.opp-area-card__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.opp-area-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #f1f5f9;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: var(--card-accent, var(--brand-blue));
}
.opp-area-card__badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    background: var(--card-accent, var(--brand-blue));
    color: #fff;
}
.opp-area-card h3 { font-family: var(--font-heading); font-size: 18px; margin: 0 0 6px; }
.opp-area-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0 0 12px; flex: 1; }
.opp-area-card__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.opp-area-card__cta { font-size: 14px; font-weight: 600; color: var(--brand-blue-text); }

/* ── Oppiminen hub: tools scroll ─────────────────────────────── */
.opp-tools-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}
.opp-tool-chip {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: transform 0.15s, box-shadow 0.15s;
    color: inherit;
}
.opp-tool-chip:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(13, 28, 45,0.06); color: inherit; }
.opp-tool-chip i { font-size: 18px; flex-shrink: 0; }
.opp-tool-chip strong { font-size: 14px; display: block; font-family: var(--font-heading); }
.opp-tool-chip small { font-size: 12px; color: var(--text-muted); }
.opp-tools-section { margin-bottom: 32px; }

/* ── Oppiminen hub: content grid ─────────────────────────────── */
.opp-content-grid {
    display: grid;
    grid-template-columns: var(--home-main-col) var(--home-side-col);
    gap: var(--home-gap);
    margin-top: 10px;
}
.opp-content-main { min-width: 0; }

/* ── Video cards in main content ─────────────────────────────── */
.opp-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.opp-video-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}
.opp-video-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13, 28, 45,0.08); }
.opp-video-card__thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #f1f5f9; }
.opp-video-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.opp-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s;
}
.opp-video-card:hover .opp-play-btn { opacity: 1; }
.opp-video-card__body { padding: 12px; }
.opp-video-card__body h4 { font-family: var(--font-heading); font-size: 14px; margin: 0 0 4px; }
.opp-video-card__meta { font-size: 12px; color: var(--text-muted); margin: 0; }

/* ── Article cards ───────────────────────────────────────────── */
.opp-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.opp-article-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}
.opp-article-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13, 28, 45,0.08); }
.opp-article-card__thumb { aspect-ratio: 16/9; overflow: hidden; background: #f1f5f9; }
.opp-article-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.opp-article-card__body { padding: 12px; }
.opp-article-card__body h4 { font-family: var(--font-heading); font-size: 14px; margin: 0 0 4px; }
.opp-article-card__meta { font-size: 12px; color: var(--text-muted); margin: 0; }
.opp-view-all { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--brand-blue-text); }
.opp-view-all:hover { text-decoration: underline; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.opp-sidebar { display: grid; gap: 16px; align-content: start; }
.opp-sidebar-module {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
}

/* ══════════════════════════════════════════════════════════════════
   TOOL SHELL — jaetut tyylit kaikille /tyokalut/-sivuille
   (the_content-filterin renderöimä rakenne + custom templatet käyttävät)
   ══════════════════════════════════════════════════════════════════ */
.kl-page-wrapped { background:#f7f9fc; color:#0D1C2D; padding-bottom:60px; overflow-x:clip; }
.kl-page-wrapped * { box-sizing:border-box; }

.kl-page-wrapped .kl-hero {
    position:relative;
    width:100vw;
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
    background:
        linear-gradient(180deg, rgba(13, 28, 45,0) 0%, rgba(13, 28, 45,.55) 65%, rgba(13, 28, 45,.78) 100%),
        radial-gradient(120% 80% at 18% 18%, rgba(34, 91, 222,.55) 0%, rgba(34, 91, 222,0) 60%),
        var(--kl-banner, none),
        linear-gradient(135deg,#142838 0%,#0D1C2D 55%,#1e3a8a 100%);
    background-size:cover; background-position:center; background-repeat:no-repeat;
    color:#fff; aspect-ratio:32/9; min-height:220px; max-height:380px;
    display:flex; align-items:flex-end;
    border-bottom:1px solid rgba(255,255,255,.06); overflow:hidden;
}
.kl-page-wrapped .kl-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(115deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 55%); pointer-events:none; }
.kl-page-wrapped .kl-hero-inner { position:relative; z-index:1; padding-top:24px; padding-bottom:28px; width:100%; }
.kl-page-wrapped .kl-crumb { display:flex; gap:8px; align-items:center; font-size:13px; opacity:.92; margin-bottom:14px; flex-wrap:wrap; }
.kl-page-wrapped .kl-crumb a { color:#fff; text-decoration:none; opacity:.85; }
.kl-page-wrapped .kl-crumb a:hover { opacity:1; text-decoration:underline; }
.kl-page-wrapped .kl-crumb span[aria-hidden] { opacity:.55; }
.kl-page-wrapped .kl-eyebrow { display:inline-flex; align-items:center; gap:8px; padding:6px 12px; border-radius:999px; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22); backdrop-filter:blur(6px); font-size:12px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; }
.kl-page-wrapped .kl-eyebrow i { color:#93c5fd; }
.kl-page-wrapped .kl-title { font-family:var(--font-heading); font-size:clamp(28px, 4.2vw, 50px); line-height:1.05; font-weight:800; letter-spacing:-0.02em; margin:12px 0 8px; text-shadow:0 4px 22px rgba(0,0,0,.35); }
.kl-page-wrapped .kl-lead { font-size:clamp(14.5px, 1.3vw, 17px); line-height:1.55; margin:0 0 14px; max-width:760px; opacity:.95; text-shadow:0 2px 16px rgba(0,0,0,.4); }
.kl-page-wrapped .kl-badges { list-style:none; padding:0; margin:0; display:flex; gap:10px; flex-wrap:wrap; }
.kl-page-wrapped .kl-badges li { display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18); backdrop-filter:blur(6px); padding:6px 12px; border-radius:8px; font-size:12.5px; font-weight:500; }
.kl-page-wrapped .kl-badges i { font-size:11px; opacity:.9; color:#bbf7d0; }

.kl-page-wrapped .kl-body { max-width:1280px; margin:0 auto; padding:36px 20px 0; }

/* 2-col layout: main content + sticky sidebar (320px). Sidebar romahtaa < 960px. */
.kl-page-wrapped .kl-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:32px; align-items:start; }
@media (max-width: 960px) { .kl-page-wrapped .kl-layout { grid-template-columns:minmax(0, 1fr); } }
.kl-page-wrapped .kl-main { min-width:0; }

.kl-page-wrapped .kl-tool { background:#fff; border:1px solid #E8EEF4; border-radius:20px; box-shadow:0 14px 40px rgba(13, 28, 45,.06), 0 2px 6px rgba(13, 28, 45,.04); padding:24px 28px 28px; margin-top:-50px; position:relative; z-index:2; margin-bottom:30px; }

/* === STICKY SIDEBAR — official Inno product media banner === */
.kl-aside { position:sticky; top:96px; align-self:start; margin-top:-30px; z-index:2; }
@media (max-width: 960px) { .kl-aside { position:static; margin-top:0; } }
.kl-page-wrapped .kl-tool-body > p:empty { display:none; }

.kl-page-wrapped .kl-section { background:#fff; border:1px solid #e5e7eb; border-radius:18px; padding:28px 32px 32px; margin-bottom:20px; box-shadow:0 2px 6px rgba(13, 28, 45,.03); }
.kl-page-wrapped .kl-section-head { display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.kl-page-wrapped .kl-section-head h2 { font-family:var(--font-heading); font-size:22px; margin:0; color:#0D1C2D; font-weight:700; letter-spacing:-0.01em; }

.kl-rel-subhead { font-family:var(--font-heading); font-size:14px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-meta); margin:0 0 12px; }

.kl-page-wrapped .kl-related-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:14px; }
.kl-page-wrapped .kl-related-card { display:block; text-decoration:none; color:inherit; background:#fff; border:1px solid #e5e7eb; border-radius:14px; padding:18px 20px; border-left:4px solid var(--kl-acc, #225BDE); transition:transform .15s, box-shadow .15s, border-color .15s; }
.kl-page-wrapped .kl-related-card:hover { transform:translateY(-2px); box-shadow:0 10px 28px rgba(13, 28, 45,.08); color:inherit; }
.kl-page-wrapped .kl-related-card i { font-size:18px; color:var(--kl-acc, #225BDE); margin-bottom:8px; display:block; }
.kl-page-wrapped .kl-related-card h3 { font-family:var(--font-heading); font-size:15.5px; margin:0 0 4px; color:#0D1C2D; font-weight:700; }
.kl-page-wrapped .kl-related-card p { margin:0; font-size:13px; line-height:1.5; color:#64748b; }

/* ==========================================================================
   Yhtenäinen media-/mainosbanneri (im-banner) — InnoVisualin virallinen
   tuotepromoformaatti. Korvaa vanhat kl-ad-card / kl-rel-hero-kortit.
   InnoRenki = hero (~70 %), InnoNPS/InnoDIA/InnoCRM = rail (~10 % kukin).
   Brändipaletti lukittu (BRAND-PALETTE.md): CTA aina brand-blue #225BDE +
   valkoinen teksti — ei koskaan vihreä/teal-täyttöä tummalla tekstillä.
   ========================================================================== */
:root{
    --im-brand-grad: linear-gradient(90deg, #3AAE26 0%, #169ECC 50%, #225BDE 100%);
    --im-cta: #225BDE;          /* brand-blue — CTA-täyttö (valkoinen teksti ~5.4:1) */
    --im-cta-hover: #1A47B0;
    --im-card: #ffffff;
    --im-ink: #0D1C2D;
    --im-ink-soft: #475569;
    --im-line: #E8EEF4;
    --im-line-hover: #E8EEF4;  /* hover-reuna tokenina: kovakoodattuna se jai vaaleaksi myos tummassa tilassa */
}
.im-banner{ margin:0 0 22px; }
.im-banner-head{ margin:0 0 14px; }
.im-banner-eyebrow{ display:inline-block; font-family:var(--font-heading); font-size:12px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; color:#0e7d73; margin:0 0 6px; }
.im-banner-heading{ font-family:var(--font-heading); font-size:clamp(19px,2.4vw,24px); line-height:1.15; font-weight:850; color:var(--im-ink); margin:0; letter-spacing:-0.01em; }

/* Portfolio-layout: hero (iso) + rail (3 laattaa) */
.im-banner-grid{ display:grid; grid-template-columns:minmax(0,1.75fr) minmax(0,1fr); gap:16px; align-items:stretch; }
@media (max-width:860px){ .im-banner-grid{ grid-template-columns:minmax(0, 1fr); } }

/* InnoRenki-hero */
.im-hero{ position:relative; display:flex; flex-direction:column; gap:12px; background:var(--im-card); border:1px solid var(--im-line); border-radius:16px; padding:26px 28px; text-decoration:none; color:inherit; overflow:hidden; min-width:0; box-shadow:0 10px 30px rgba(13, 28, 45,.06); transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.im-hero:hover{ transform:translateY(-2px); box-shadow:0 20px 46px rgba(13, 28, 45,.11); color:inherit; border-color:var(--im-line-hover); }
.im-hero-accent{ position:absolute; inset:0 0 auto 0; height:5px; background:var(--im-brand-grad); }
.im-hero-kicker{ font-family:var(--font-heading); font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#0e7d73; margin-top:4px; }
.im-hero-logo{ display:flex; align-items:center; min-height:34px; }
.im-hero-logo img{ width:auto; max-width:190px; max-height:40px; object-fit:contain; display:block; }
.im-hero-logo strong{ font-family:var(--font-heading); font-size:22px; font-weight:850; color:var(--im-ink); }
.im-hero-title{ font-family:var(--font-heading); font-size:clamp(17px,2vw,21px); line-height:1.25; font-weight:800; color:var(--im-ink); }
.im-hero-desc{ font-size:14.5px; line-height:1.55; color:var(--im-ink-soft); }
.im-hero-features{ list-style:none; margin:2px 0 4px; padding:0; display:flex; flex-wrap:wrap; gap:8px 16px; }
.im-hero-features li{ display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:600; color:var(--im-ink); }
.im-hero-features i{ color:#3AAE26; font-size:12px; }
.im-cta-btn{ margin-top:auto; align-self:flex-start; display:inline-flex; align-items:center; gap:9px; background:var(--im-cta); color:#fff; font-family:var(--font-heading); font-weight:800; font-size:14.5px; padding:12px 20px; border-radius:11px; box-shadow:0 6px 16px rgba(34,91,222,.28); transition:transform .15s ease, box-shadow .15s ease, background .15s ease; }
.im-hero:hover .im-cta-btn{ background:var(--im-cta-hover); transform:translateY(-1px); box-shadow:0 10px 24px rgba(34,91,222,.36); }
.im-cta-btn i{ font-size:12px; }

/* Rail-laatat: InnoNPS / InnoDIA / InnoCRM */
.im-rail{ display:grid; grid-template-columns:minmax(0, 1fr); grid-auto-rows:1fr; gap:12px; min-width:0; }
@media (max-width:860px){ .im-rail{ grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); grid-auto-rows:auto; } }
.im-tile{ position:relative; display:flex; flex-direction:column; gap:7px; background:var(--im-card); border:1px solid var(--im-line); border-left:4px solid var(--im-accent,#225BDE); border-radius:12px; padding:15px 17px; text-decoration:none; color:inherit; min-width:0; box-shadow:0 4px 14px rgba(13, 28, 45,.045); transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.im-tile:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(13, 28, 45,.1); color:inherit; }
.im-tile-top{ display:flex; align-items:center; gap:9px; }
.im-tile-logo{ width:auto; height:20px; max-width:78px; object-fit:contain; display:block; }
.im-tile-name{ font-family:var(--font-heading); font-size:15px; font-weight:850; color:var(--im-ink); }
.im-tile-desc{ font-size:12.75px; line-height:1.45; color:var(--im-ink-soft); }
.im-tile-cta{ margin-top:auto; display:inline-flex; align-items:center; gap:7px; font-family:var(--font-heading); font-weight:800; font-size:12.75px; color:color-mix(in srgb, var(--im-accent) 72%, #0D1C2D); }
.im-tile-cta i{ font-size:10.5px; transition:transform .15s ease; }
.im-tile:hover .im-tile-cta i{ transform:translateX(3px); }

/* Sidebar-variantti: kompakti InnoRenki-hero */
.im-aside{ position:sticky; top:96px; align-self:start; margin-top:-30px; z-index:2; }
@media (max-width:960px){ .im-aside{ position:static; margin-top:0; } }
.im-aside .im-banner{ margin:0; }
.im-hero--sidebar{ padding:22px 22px 24px; }
.im-hero--sidebar .im-hero-title{ font-size:16.5px; }
.im-hero--sidebar .im-cta-btn{ align-self:stretch; justify-content:center; }
@media (max-width:520px){ .im-hero{ padding:22px 20px; } .im-hero-features{ gap:7px 14px; } }

/* Tumman OS-teeman fallback (teema on pääosin light — varmistetaan kontrasti myös darkissa) */
@media (prefers-color-scheme: dark){
    :root{ --im-card:#142838; --im-ink:#E8EEF4; --im-ink-soft:#9DB0C2; --im-line:#26405A; --im-line-hover:#3A5F82; }
    /* SIVUN POHJALLA OLEVA TEKSTI PITAA VAALEAN TEEMAN VARINSA.
       Markus 24.8.2026: "tuossa olisi ehdottomasti pitanyt olla musta fontti
       'Vie yrityksesi eteenpain Inno-tuotteilla' … sen kyllä nakee mutta hyvin
       heikkolaatuista."

       MITATTU SYY: talla lohkolla on hyva aikomus (ks. otsikko yllä) mutta se
       maarittelee --im-ink UUDELLEEN :root-TASOLLA. Se patee koko sivuun, ja
       Innohubin teema on KOVAKOODATUN VAALEA — sivun pohja ei vaihdu tummaksi
       kayttojarjestelman mukana. Kayttajalla jolla on tumma OS-teema:
         --im-ink  #0D1C2D -> #E8EEF4  (lahes valkoinen)
         sivun pohja        valkoinen  (ei muutu)
       eli lahes valkoista tekstia valkoisella.

       Korttien sisalla oleva teksti (.im-hero-title, .im-tile-name jne.) on
       KUNNOSSA, koska niiden tausta --im-card vaihtuu samassa lohkossa
       tummaksi — teksti ja tausta liikkuvat yhdessa. Vain SIVUN POHJALLA
       istuvat elementit rikkoutuvat, ja niita on kaksi.

       Ala poista naita rivejä ilman etta poistat myos :root-ylikirjoituksen. */
    .im-banner-heading{ color:#0D1C2D; }
    .im-banner-eyebrow{ color:#0e7d73; }
    .im-hero-kicker{ color:#5FC74A; }
    .im-tile-cta{ color:#8FB4FF; }
    .im-hero-features i{ color:#5FC74A; }
    .im-cta-btn{ background:#225BDE; box-shadow:0 6px 16px rgba(0,0,0,.35); }
    .im-hero:hover .im-cta-btn{ background:#4F86F0; }
}

@media (max-width: 720px) {
    .kl-page-wrapped .kl-hero { aspect-ratio:auto; min-height:0; max-height:none; padding:18px 0 22px; }
    .kl-page-wrapped .kl-hero-inner { padding-top:16px; padding-bottom:18px; }
    .kl-page-wrapped .kl-body { padding:24px 14px 0; }
    .kl-page-wrapped .kl-tool { padding:20px 18px 22px; margin-top:-30px; border-radius:16px; }
    .kl-page-wrapped .kl-section { padding:22px 20px; border-radius:14px; }
}

/* ══════════════════════════════════════════════════════════════════
   MARKET TICKER STRIP (above site-header)
   ══════════════════════════════════════════════════════════════════ */
.market-ticker-strip {
    background: #000;
    color: #fff;
    overflow: hidden;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-family: var(--font-body);
    font-size: 12px;
    position: relative;
    z-index: 101;
    user-select: none;
}
@keyframes innohub-ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.market-ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: innohub-ticker-scroll 100s linear infinite;
    will-change: transform;
}
.market-ticker-track:hover { animation-play-state: paused; }
.market-ticker-strip.is-paused .market-ticker-track { animation-play-state: paused; }

/* Pause/Play -painike */
.market-ticker-pause-btn {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #d1d5db;
    width: 36px; height: 36px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    z-index: 10;
    transition: background .12s;
    display: flex; align-items: center; justify-content: center;
}
.market-ticker-pause-btn:hover { background: rgba(255,255,255,0.18); color: #fff; }
.market-ticker-pause-btn:focus-visible { outline: 2px solid #6366F1; outline-offset: 1px; }
.market-ticker-strip .ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
}
.market-ticker-strip .ticker-item .label { color: #9DB0C2; font-weight: 500; }
.market-ticker-strip .ticker-item .value { color: #ffffff; font-weight: 600; }
.market-ticker-strip .ticker-item .change.pos { color: #34d399; font-weight: 600; }
.market-ticker-strip .ticker-item .change.neg { color: #f87171; font-weight: 600; }
.market-ticker-strip .ticker-item .ticker-sep { color: #26405A; margin-left: 8px; }
.market-ticker-strip .ticker-item { cursor: help; transition: background .15s; border-radius: 4px; }
.market-ticker-strip .ticker-item:hover { background: rgba(255,255,255,.06); }

/* Ticker tooltip (hover details: 12mo chart, YTD, 12mo %, 24h %, timestamp) */
.market-ticker-tooltip {
    position: absolute;
    z-index: 10000;
    background: #0D1C2D;
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 12px 14px;
    min-width: 260px;
    max-width: 320px;
    box-shadow: 0 12px 36px rgba(0,0,0,.45);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.45;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .12s, transform .12s;
}
.market-ticker-tooltip.visible { opacity: 1; transform: translateY(0); }
.market-ticker-tooltip .tt-head {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-bottom: 8px; margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.market-ticker-tooltip .tt-head strong { color: #fff; font-size: 13px; letter-spacing: .3px; font-weight: 600; }
.market-ticker-tooltip .tt-head .tt-value { color: #fff; font-weight: 700; font-size: 15px; font-family: var(--font-heading); }
.market-ticker-tooltip .tt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.market-ticker-tooltip .tt-stats > div { display: flex; flex-direction: column; gap: 2px; background: rgba(255,255,255,.04); border-radius: 6px; padding: 6px 8px; text-align: center; }
.market-ticker-tooltip .tt-stats .k { font-size: 10px; color: #9DB0C2; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.market-ticker-tooltip .tt-stats .v { font-weight: 700; font-size: 12px; font-family: var(--font-heading); }
.market-ticker-tooltip .tt-stats .v.pos { color: #34d399; }
.market-ticker-tooltip .tt-stats .v.neg { color: #f87171; }
.market-ticker-tooltip .tt-stats .vs { font-size: 10px; font-weight: 600; opacity: .75; font-family: var(--font-heading); }
.market-ticker-tooltip .tt-stats .vs.pos { color: #34d399; }
.market-ticker-tooltip .tt-stats .vs.neg { color: #f87171; }
.market-ticker-tooltip .tt-chart { background: rgba(255,255,255,.03); border-radius: 6px; padding: 6px; }
.market-ticker-tooltip .tt-chart svg.spark { display: block; width: 100%; height: auto; }
.market-ticker-tooltip .tt-chart-label { font-size: 10px; color: #9DB0C2; text-transform: uppercase; letter-spacing: .5px; text-align: center; margin-top: 4px; margin-bottom: 8px; }
.market-ticker-tooltip .tt-foot { font-size: 11px; color: #9DB0C2; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.06); }
.market-ticker-tooltip .tt-foot em { color: #6b7280; font-style: normal; font-size: 10.5px; }

/* ══════════════════════════════════════════════════════════════════
   PAGE: PÖRSSI (page-porssi.php)
   ══════════════════════════════════════════════════════════════════ */
.porssi-hero {
    background: linear-gradient(135deg, #0D1C2D 0%, #142838 100%);
    color: #fff;
    padding: 60px 0 50px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.porssi-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 30%, rgba(22, 158, 204,0.18), transparent 60%);
    pointer-events: none;
}
.porssi-hero .container { position: relative; }
.porssi-hero-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #fff;
}
.porssi-hero-subtitle {
    font-family: var(--font-body);
    font-size: 17px;
    color: #cbd5e1;
    margin: 0;
    max-width: 720px;
}

.porssi-section { margin-bottom: 56px; }
.porssi-section-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.porssi-section-title i { color: var(--brand-blue); font-size: 22px; }
.porssi-section-desc {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-muted-strong);
    margin: 0 0 24px;
    max-width: 720px;
}
.porssi-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.porssi-section-link {
    color: var(--brand-blue-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.porssi-section-link:hover { text-decoration: underline; }

/* Market stat cards */
.porssi-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
@media (max-width: 900px) { .porssi-stats { grid-template-columns: repeat(2, 1fr); } }
.porssi-stat-card {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 6px 18px rgba(13, 28, 45,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.porssi-stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13, 28, 45,0.08); }
.porssi-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.porssi-stat-label .live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #10b981;
    display: inline-block;
    animation: innohub-pulse 2s infinite;
    margin-left: auto;
}
@keyframes innohub-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.porssi-stat-value {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}
.porssi-stat-change { font-size: 13px; font-weight: 600; }
.porssi-stat-change.pos { color: var(--success-text); }
.porssi-stat-change.neg { color: #dc2626; }
.porssi-stat-source { font-size: 11px; color: var(--text-meta); margin-top: 4px; }

/* Chart panel */
.porssi-chart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}
@media (max-width: 900px) { .porssi-chart-grid { grid-template-columns: minmax(0, 1fr); } }
.porssi-panel {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(13, 28, 45,0.06);
}
.porssi-panel h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 4px;
}
.porssi-panel .panel-value {
    font-size: 26px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-main);
}
.porssi-panel .panel-change { font-size: 14px; font-weight: 600; margin-left: 8px; }

/* Chart header KPI row */
.porssi-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.porssi-chart-kpis {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.porssi-chart-kpi {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    min-width: 90px;
}
.porssi-chart-kpi-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.porssi-chart-kpi-val {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.porssi-chart-kpi-val.pos { color: var(--success-text); }
.porssi-chart-kpi-val.neg { color: #dc2626; }
@media (max-width: 700px) {
    .porssi-chart-kpi { min-width: 0; padding: 6px 10px; }
    .porssi-chart-kpi-val { font-size: 13px; }
}
.porssi-chart-svg { width: 100%; height: 220px; display: block; margin-top: 16px; }
.porssi-chart-note { font-size: 11px; color: var(--text-meta); margin: 10px 0 0; }

/* Euribor / Forex panel rows */
.porssi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}
.porssi-row:last-child { border-bottom: 0; }
.porssi-row .label { color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.porssi-row .val { font-weight: 700; color: var(--text-main); }
.porssi-row .delta { font-size: 12px; font-weight: 600; margin-left: 8px; }
.porssi-row .delta.pos { color: var(--success-text); }
.porssi-row .delta.neg { color: #dc2626; }
.porssi-subheading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 20px 0 8px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.porssi-subheading:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Day's biggest movers — tabbed widget */
.porssi-movers { padding: 20px; }
.porssi-movers-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.porssi-movers-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.porssi-movers-title i { color: var(--brand-blue); }
.porssi-movers-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 14px;
}
.porssi-movers-tab {
    background: transparent;
    border: 0;
    padding: 8px 10px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.porssi-movers-tab:hover { color: var(--text-main); }
.porssi-movers-tab.active {
    color: var(--brand-blue-text);
    border-bottom-color: var(--brand-blue);
}
.porssi-movers-pane { display: none; }
.porssi-movers-pane.active { display: block; }
.porssi-movers-group { margin-bottom: 14px; }
.porssi-movers-group:last-child { margin-bottom: 0; }
.porssi-movers-group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.porssi-movers-group-title.pos { color: var(--success-text); }
.porssi-movers-group-title.neg { color: #dc2626; }
.porssi-mover {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.porssi-mover:last-child { border-bottom: 0; }
.porssi-mover:hover { background: #f8fafc; }
.porssi-mover-name {
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.porssi-mover-ticker {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.porssi-mover-pct {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    flex-shrink: 0;
}
.porssi-mover-pct.pos { color: var(--success-text); }
.porssi-mover-pct.neg { color: #dc2626; }
.porssi-mover-vol {
    font-size: 11px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    margin-left: auto;
    margin-right: 10px;
    flex-shrink: 0;
    text-align: right;
}
.porssi-mover-loading {
    justify-content: center;
    color: var(--text-muted);
    font-style: italic;
}

/* Euribor + FX side-by-side grid */
.porssi-rates-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 20px;
}
@media (max-width: 1000px) { .porssi-rates-grid { grid-template-columns: minmax(0, 1fr); } }
.porssi-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Multi-column rate/FX table */
.porssi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}
.porssi-table th {
    text-align: right;
    padding: 8px 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 1px solid #e5e7eb;
}
.porssi-table th:first-child { text-align: left; }
.porssi-table td {
    padding: 10px 4px;
    border-bottom: 1px solid #f1f5f9;
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.porssi-table tr:last-child td { border-bottom: 0; }
.porssi-table td.label {
    text-align: left;
    color: var(--text-muted);
    font-weight: 500;
}
.porssi-table td.label span { margin-right: 4px; }
.porssi-table td.val {
    font-weight: 700;
    color: var(--text-main);
}
.porssi-table td.delta {
    font-size: 12px;
    font-weight: 600;
}
.porssi-table td.delta.pos { color: var(--success-text); }
.porssi-table td.delta.neg { color: #dc2626; }
.porssi-table-note {
    font-size: 10px;
    color: var(--text-meta);
    margin: 6px 0 0;
    text-align: right;
}
@media (max-width: 700px) {
    .porssi-table { font-size: 12px; }
    .porssi-table th, .porssi-table td { padding: 6px 2px; }
}

/* Video / Spotify / Article grids */
.porssi-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) { .porssi-media-grid { grid-template-columns: minmax(0, 1fr); } }

.porssi-video-card, .porssi-article-card {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(13, 28, 45,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.porssi-video-card:hover, .porssi-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(13, 28, 45,0.12);
}
.porssi-video-card iframe, .porssi-article-card img {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border: 0;
    object-fit: cover;
    background: #f1f5f9;
}
.porssi-video-card .meta, .porssi-article-card .meta { padding: 14px 16px; }
.porssi-video-card .meta h4, .porssi-article-card .meta h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.porssi-video-card .meta .channel,
.porssi-article-card .meta .excerpt {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}
.porssi-article-card .meta .excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}
.porssi-article-card .meta .date { font-size: 11px; color: #9DB0C2; }

/* ══════════════════════════════════════════════════════════════════════
   Porssi videot: 2 featured + 18 karuselli
   ══════════════════════════════════════════════════════════════════════ */
.porssi-videos-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}
@media (max-width: 900px) {
    .porssi-videos-featured { grid-template-columns: minmax(0, 1fr); }
}

.porssi-video-card--featured {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(13, 28, 45, 0.08);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.porssi-video-card__player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.porssi-video-card__player iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
}
.porssi-video-card__duration {
    position: absolute;
    right: 10px; bottom: 10px;
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
}
.porssi-video-card__body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.porssi-video-card--featured .porssi-video-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.porssi-video-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    font-size: 12.5px;
    color: var(--text-muted);
}
.porssi-video-card__channel { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #26405A; }
.porssi-video-card__channel .fa-youtube { color: #ff0000; }
.porssi-video-card__date,
.porssi-video-card__views { color: #6b7280; }
.porssi-video-card__desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Karuselli */
.porssi-videos-carousel-wrap {
    position: relative;
    margin-top: 4px;
}
.porssi-videos-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 280px);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 8px;
    padding-bottom: 12px;
    scrollbar-width: thin;
}
.porssi-videos-carousel::-webkit-scrollbar { height: 8px; }
.porssi-videos-carousel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.porssi-videos-carousel::-webkit-scrollbar-track { background: transparent; }

.porssi-video-card--mini {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(13, 28, 45, 0.06);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    transition: transform 0.18s, box-shadow 0.18s;
}
.porssi-video-card--mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(13, 28, 45, 0.12);
}
.porssi-video-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
}
.porssi-video-card__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.porssi-video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
    opacity: 0.9;
    transition: opacity 0.15s, transform 0.15s;
}
.porssi-video-card--mini:hover .porssi-video-card__play { opacity: 1; transform: scale(1.08); }

.porssi-video-card--mini .porssi-video-card__body { padding: 12px 14px 14px; gap: 6px; }
.porssi-video-card--mini .porssi-video-card__title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.porssi-video-card--mini .porssi-video-card__meta { font-size: 11.5px; gap: 6px 10px; }

/* Karusellin nuolinapit */
.porssi-carousel-btn {
    position: absolute;
    top: calc(50% - 38px);
    transform: translateY(-50%);
    z-index: 2;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #0D1C2D;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(13, 28, 45, 0.14);
    display: flex; align-items: center; justify-content: center;
}
.porssi-carousel-btn:hover { background: #f8fafc; }
.porssi-carousel-btn--prev { left: -14px; }
.porssi-carousel-btn--next { right: -14px; }
@media (max-width: 680px) {
    .porssi-carousel-btn { display: none; }
}

.porssi-video-card .meta .desc {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 6px 0 0;
}
.porssi-video-card .meta .desc-full { display: none; }
.porssi-video-card.expanded .meta .desc-short { display: none; }
.porssi-video-card.expanded .meta .desc-full { display: block; }
.porssi-video-card .meta .desc-toggle {
    background: none;
    border: 0;
    padding: 6px 0 0;
    color: #169ECC;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
}
.porssi-video-card .meta .desc-toggle:hover { text-decoration: underline; }

.porssi-movers-meta {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 400;
}
.porssi-panel-meta {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: rgba(22, 158, 204, 0.08);
    color: var(--brand-blue-text);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.porssi-spotify-card {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(13, 28, 45,0.06);
}
.porssi-spotify-card iframe { display: block; width: 100%; border: 0; }

/* Article feed — source-grouped cards */
.porssi-source-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 900px) { .porssi-source-grid { grid-template-columns: minmax(0, 1fr); } }
.porssi-source-card {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(13, 28, 45,0.06);
}
.porssi-source-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-blue);
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #E8EEF4 0%, #f8fafc 100%);
}
.porssi-source-header i { font-size: 13px; }
.porssi-feed-item {
    display: flex;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}
.porssi-feed-item:last-child { border-bottom: 0; }
.porssi-feed-item:hover { background: #f8fafc; }
.porssi-feed-thumb {
    width: 90px;
    min-width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    background: #f1f5f9;
}
.porssi-feed-body { flex: 1; min-width: 0; }
.porssi-feed-body h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 3px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.porssi-feed-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.porssi-feed-date { font-size: 11px; color: var(--text-meta); }
@media (max-width: 600px) {
    .porssi-feed-thumb { width: 70px; min-width: 70px; height: 48px; }
    .porssi-feed-item { padding: 10px 14px; gap: 10px; }
}

/* Twitter / X — module cards with server-rendered post previews */
.porssi-twitter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 1100px) { .porssi-twitter-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .porssi-twitter-grid { grid-template-columns: minmax(0, 1fr); } }
.porssi-twitter-card {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(13, 28, 45,0.06);
    display: flex;
    flex-direction: column;
}
.porssi-twitter-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.porssi-twitter-header:hover { background: #f8fafc; }
.porssi-twitter-header i {
    font-size: 18px;
    width: 34px;
    height: 34px;
    background: #0f1419;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.porssi-twitter-identity { display: flex; flex-direction: column; min-width: 0; }
.porssi-twitter-name {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}
.porssi-twitter-handle {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
}
.porssi-twitter-posts {
    display: flex;
    flex-direction: column;
}
.porssi-tweet {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.porssi-tweet:last-child { border-bottom: 0; }
.porssi-tweet:hover { background: #f8fafc; }
.porssi-tweet-text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-main);
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.porssi-tweet-img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin: 6px 0;
    background: #f1f5f9;
}
.porssi-tweet-date {
    font-size: 11px;
    color: #9DB0C2;
}
.porssi-tweet-empty {
    padding: 18px 16px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.5;
}
.porssi-tweet-empty i { color: #cbd5e1; margin-top: 2px; }
.porssi-tweet-empty a { color: var(--brand-blue-text); font-weight: 600; }

.porssi-empty {
    background: var(--bg-card);
    border: 1px dashed #e5e7eb;
    border-radius: 14px;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}
.porssi-empty i { font-size: 36px; margin-bottom: 10px; color: #cbd5e1; }
.porssi-skeleton {
    background: linear-gradient(90deg, #f1f5f9 0%, #E8EEF4 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: innohub-skeleton 1.5s infinite;
    border-radius: 8px;
}
@keyframes innohub-skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.opp-sidebar-module h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.opp-sidebar-list { display: grid; gap: 8px; }
.opp-sidebar-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    transition: background 0.15s;
    color: inherit;
}
.opp-sidebar-item:hover { background: #f8fafc; }
.opp-sidebar-item__thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}
.opp-sidebar-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.opp-sidebar-item__text h5 { font-size: 13px; margin: 0 0 2px; font-family: var(--font-heading); }
.opp-sidebar-item__text p { font-size: 12px; color: var(--text-muted); margin: 0; }

.opp-sidebar-nav { display: grid; gap: 6px; }
.opp-sidebar-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #E8EEF4;
    font-weight: 600;
    font-size: 13px;
    color: inherit;
    transition: all 0.15s;
}
.opp-sidebar-nav__link:hover { background: #eef3f8; border-color: var(--nav-color, var(--brand-blue)); }
.opp-sidebar-nav__link i { color: var(--nav-color, var(--brand-blue)); width: 16px; text-align: center; }
.opp-sidebar-nav__link--all {
    justify-content: center;
    color: var(--brand-blue-text);
    border-color: var(--brand-blue);
    background: rgba(22, 158, 204,0.04);
}

/* ── Related articles (inline in concept cards) ──────────────── */
.opp-related-articles {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
.opp-related-articles__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}
.opp-related-articles__label i { color: var(--brand-blue); margin-right: 4px; }
.opp-related-articles__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-main);
    transition: background 0.15s;
    line-height: 1.35;
}
.opp-related-articles__item:hover { background: #f1f5f9; color: var(--brand-blue); }
.opp-related-articles__item img.opp-related-articles__thumb {
    width: 40px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.opp-related-articles__item span {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.opp-tag--has-articles {
    border-color: var(--brand-blue);
    background: rgba(22, 158, 204,0.06);
}

/* ── Back link ───────────────────────────────────────────────── */
.opp-back-link { padding: 24px 0 8px; }
.opp-back-link a { font-size: 14px; font-weight: 600; color: var(--brand-blue-text); display: inline-flex; align-items: center; gap: 6px; }
.opp-back-link a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .opp-content-grid { grid-template-columns: minmax(0, 1fr); }
    .opp-highlight-banner__grid { grid-template-columns: repeat(2, 1fr); }
    .opp-highlight-banner__grid--4 { grid-template-columns: repeat(2, 1fr); }
    .opp-featured-videos { grid-template-columns: minmax(0, 1fr); }
    .opp-funnel__stage { width: 100% !important; }
}
@media (max-width: 600px) {
    .opp-areas__grid, .opp-cards-grid, .opp-yt-grid, .opp-metrics-grid, .opp-tools-scroll,
    .opp-video-grid, .opp-articles-grid { grid-template-columns: minmax(0, 1fr); }
    .opp-highlight-banner__grid, .opp-highlight-banner__grid--4 { grid-template-columns: minmax(0, 1fr); }
    .opp-section-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .opp-section-nav__tab { white-space: nowrap; flex-shrink: 0; }
    .opp-hero__stats { flex-direction: column; gap: 8px; }
    .opp-alpha-nav { gap: 2px; }
    .opp-alpha-nav__letter { width: 30px; height: 30px; font-size: 12px; }
}

/* ═══ Oppiminen long-form articles (Prompt Engineering & sisarsivut) ═══ */
/* Set --pe-accent on the wrapper to recolor an entire article. Default: violet (AI/Prompt). */
.pe-article-layout { --pe-accent: #8B5CF6; --pe-accent-dark: #6d28d9; --pe-accent-soft: #ede9fe; --pe-accent-bg: #f8f5ff; }
.pe-hero { position: relative; overflow: hidden; }
.pe-hero__image { margin: -32px -32px 24px; aspect-ratio: 16/9; overflow: hidden; border-radius: 16px 16px 0 0; }
.pe-hero__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-article-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; margin-top: 32px; }
.pe-toc { position: sticky; top: 100px; }
.pe-toc__inner { background: #f8fafc; border: 1px solid #E8EEF4; border-radius: 12px; padding: 20px; }
.pe-toc__title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; color: #64748b; }
.pe-toc__title i { color: var(--pe-accent); margin-right: 6px; }
.pe-toc__list { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; color: #475569; }
.pe-toc__list li { margin-bottom: 6px; }
.pe-toc__list a { color: #26405A; text-decoration: none; transition: color .15s ease; }
.pe-toc__list a:hover { color: var(--pe-accent); }
.pe-article { font-size: 17px; line-height: 1.75; color: #142838; max-width: 760px; }
.pe-article h2 { margin-top: 56px; margin-bottom: 18px; font-size: 26px; line-height: 1.3; color: #0D1C2D; padding-bottom: 8px; border-bottom: 2px solid var(--pe-accent-soft); }
.pe-article h2:first-of-type { margin-top: 8px; }
.pe-article h3 { margin-top: 32px; margin-bottom: 12px; font-size: 19px; line-height: 1.35; color: #26405A; }
.pe-article h4 { margin-top: 22px; margin-bottom: 8px; font-size: 16px; line-height: 1.35; color: var(--pe-accent-dark); }
.pe-video { position: relative; margin: 24px 0 28px; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #0D1C2D; }
.pe-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.pe-article p { margin: 0 0 18px; }
.pe-article ul, .pe-article ol { margin: 0 0 22px; padding-left: 26px; }
.pe-article li { margin-bottom: 6px; }
.pe-article blockquote { margin: 18px 0; padding: 16px 22px; background: var(--pe-accent-bg); border-left: 4px solid var(--pe-accent); border-radius: 0 8px 8px 0; color: #142838; font-style: italic; }
.pe-article blockquote p { margin: 0; }
.pe-article blockquote p + p { margin-top: 8px; }
.pe-article hr { margin: 36px 0; border: 0; border-top: 1px solid #E8EEF4; }
.pe-article .pe-outro { font-size: 18px; color: #142838; }
.pe-article sup a { color: var(--pe-accent); text-decoration: none; font-size: 0.75em; padding: 0 2px; }
.pe-article sup a:hover { text-decoration: underline; }
.pe-article a { color: var(--pe-accent-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.pe-article a:hover { color: var(--pe-accent-dark); filter: brightness(0.8); }
.pe-table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.pe-table th, .pe-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #E8EEF4; vertical-align: top; }
.pe-table thead th { background: var(--pe-accent-bg); color: #0D1C2D; font-weight: 700; border-bottom: 2px solid var(--pe-accent-soft); }
.pe-table tbody tr:last-child td { border-bottom: 0; }
.pe-sources { font-size: 14px; color: #475569; }
.pe-sources li { margin-bottom: 8px; }
.pe-sources a { color: var(--pe-accent-dark); }
.opp-link-sm--primary { display: inline-flex; align-items: center; gap: 6px; background: #8B5CF6; color: #fff !important; padding: 8px 14px; border-radius: 8px; font-weight: 600; margin-right: 12px; }
.opp-link-sm--primary:hover { background: #7c3aed; }

@media (max-width: 960px) {
    .pe-article-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .pe-toc { position: static; }
    .pe-hero__image { margin: -24px -24px 20px; }
}
@media (max-width: 640px) {
    .pe-article { font-size: 16px; }
    .pe-article h2 { font-size: 22px; margin-top: 40px; }
    .pe-article h3 { font-size: 17px; }
}

/* ==================================================================== */
/* VIDEOKORTIN KAKSI KOHDETTA (Markus 23.8.2026)                        */
/* ==================================================================== */
/*
   Kortissa on kaksi eri klikkikohdetta:
     - kuva / toistopainike -> video aukeaa popupissa
     - otsikko / kuvaus     -> jakson oma sivu
   Siksi korttia EI enaa kaarita yhteen <a>-elementtiin: toistopainike ei saa
   olla linkin sisalla, koska sisakkaiset interaktiiviset elementit rikkovat
   nappaimistokayton (Tab ei paase painikkeeseen, Enter seuraa linkkia).

   TEKSTIPITUUDET: rajaus tehdaan CSS:n line-clampilla, ei merkkimaaralla.
   MIKSI: clamp mittaa oikeasti renderoityja RIVEJA, joten se mukautuu kieleen
   itsestaan. Merkkiraja ei voi mukautua — sama 60 merkkia on saksaksi ja
   bulgariaksi aivan eri levyinen kuin suomeksi ("Tekoaly" 7 merkkia vs.
   "Kuenstliche Intelligenz" 22 merkkia tarkoittavat samaa). PHP:n
   innohub_video_excerpt() on pelkka varmistus, joka estaa 3 000 merkin raa'an
   YouTube-kuvauksen vuotamisen DOMiin ja ruudunlukijalle; se on mitoitettu
   selvasti clampin nayttaman rivimaaran ylapuolelle, jotta PHP-katkaisu ei
   nay kaytannossa millaan kielella.
     otsikko  = 2 rivia
     kuvaus   = 3 rivia
*/

/* --- Jaettu toistopainike (innohub_video_thumb) --- */
.theme-youtube-thumb { position: relative; cursor: pointer; }
/* Teemalohkon iso kortti ja sivupalkin nosto saavat popup-sopimuksen vuoksi
   luokan .theme-youtube-thumb, jolloin listakortin `width: 140px` kutisti ne
   ~1/5-leveyteen (Markus 5.10., /sv/video-podcast/). Nämä täyttävät aina korttinsa. */
.theme-main-media.theme-youtube-thumb,
.theme-sidebar-media.theme-youtube-thumb {
    width: 100%;
    flex-shrink: 1;
    border-radius: 0;
    box-shadow: none;
}
.theme-sidebar-media.theme-youtube-thumb { height: auto; min-height: 0; }

.theme-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.92);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, background 0.15s ease;
}
.theme-video-play span { display: block; margin-left: 2px; }
.theme-youtube-thumb:hover .theme-video-play {
    transform: translate(-50%, -50%) scale(1.06);
    background: rgba(220, 38, 38, 1);
}
/* Fokusrengas on pakollinen: painike on nyt oikea nappaimistokohde. */
.theme-video-play:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.65);
}
/* Kapeissa karusellikorteissa taysikokoinen merkki peittaisi koko kuvan. */
.vp-episode-thumb .theme-video-play,
.vp-secondary-thumb .theme-video-play,
.theme-sidebar-media .theme-video-play {
    width: 44px;
    height: 31px;
    font-size: 12px;
    border-radius: 8px;
}

/* --- Otsikkolinkki + venytetty klikkialue --- */
/*
   Markus pyysi etta myos KUVAUSTEKSTIN painaminen vie jakson sivulle. Se
   hoidetaan pseudoelementilla, joka venyttaa otsikkolinkin peittamaan kortin
   RUNGON — mutta ei pikkukuvaa, joka kuuluu popupille. Nain kortissa sailyy
   vain yksi tabulaattoripysakki (otsikkolinkki) eika ylimaaraisia linkkeja
   tarvita ruudunlukijalle.
*/
.vp-card-link {
    color: inherit;
    text-decoration: none;
}
.vp-card-link:hover { text-decoration: underline; }
.vp-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
}
.vp-card-link:focus-visible {
    outline: 2px solid var(--brand, #0C6597);
    outline-offset: 2px;
}
.vp-episode-body,
.vp-secondary-body,
.theme-youtube-wide-body,
.theme-main-body,
.theme-sidebar-body,
.home-tv-episode-body,
.home-editorial-tv-body {
    position: relative; /* rajaa venytetyn linkin tahan runkoon */
}

/* --- Rivirajat: otsikko 2, kuvaus 3 --- */
.vp-episode-body h4,
.vp-secondary-body h3,
.theme-youtube-wide-title,
.theme-main-title,
.theme-sidebar-title,
.home-tv-episode-title,
.home-editorial-tv-heading,
.vp-episode-desc,
.vp-secondary-desc,
.theme-youtube-wide-desc,
.theme-main-desc,
.theme-sidebar-desc,
.home-tv-episode-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vp-secondary-body h3,
.theme-youtube-wide-title,
.theme-main-title,
.theme-sidebar-title,
.home-tv-episode-title,
.home-editorial-tv-heading {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
/* POIKKEUS: kapea karusellikortti saa otsikolle kolme rivia.
   MITATTU 1440 px:ssa: rungon leveys 198 px, otsikko Montserrat 13 px =>
   noin 21 merkkia/rivi, joten kaksi rivia kantaa vain ~42 merkkia. Sivun
   oikeat jaksonimet ovat 21-139 merkkia, eli kahden rivin raja katkaisisi
   valtaosan. Kolme rivia (~63 merkkia) kattaa mediaanin. Leveammissa
   korteissa kaksi rivia riittaa (353 px => ~31 merkkia/rivi = ~62 merkkia). */
.vp-episode-body h4 {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}
.vp-episode-desc,
.vp-secondary-desc,
.theme-youtube-wide-desc,
.theme-main-desc,
.theme-sidebar-desc,
.home-tv-episode-excerpt {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* --- Kuvaustekstin ulkoasu per korttikoko --- */
.vp-episode-desc {
    margin: 0 0 4px;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--text-muted);
}
.vp-secondary-desc {
    margin: 0 0 5px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-muted);
}
.theme-youtube-wide-desc,
.theme-sidebar-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}
.theme-main-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Meta-rivi oli aiemmin `.vp-episode-body p` (nowrap). Kuvaus tarvitsee
   monta rivia, joten nowrap rajataan nyt vain metatietoriville. */
.vp-episode-meta {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Spotify-kortin kuvalinkki on aria-hidden-koriste; se tarvitsee vain lohkon. */
.vp-episode-card > a.vp-episode-thumb { display: block; }

/* ==================================================================== */
/* TYHJA AUKKO SIVUN ALAOSASSA (Markus 23.8.2026)                        */
/* ==================================================================== */
/*
   Mitattu /fi/video-podcast/: viimeisen kortin ja footerin valissa oli 236 px
   tyhjaa. Se ei ollut rikkinainen elementti vaan nelja pinoutuvaa saantoa:
     .theme-section padding-bottom 36 + .home-themes margin-bottom 80
     + .vp-page padding-bottom 60 + .site-footer margin-top 60.
   Naista .home-themes margin-bottom on talla sivulla KUOLLUT: lohko on
   .container.vp-page:n viimeinen lapsi, joten marginaali ei erota sita
   mistaan. Etusivulla saanto on perusteltu, koska siella lohkon alla on
   lisaa sisaltoa — siksi nollaus rajataan viimeiseen lapseen.
*/
.home-themes:last-child { margin-bottom: 0; }
/* Sivun oma alapehmuste on turha kun footerilla on jo 60 px margin-top. */
.vp-page:has(> .home-themes:last-child) { padding-bottom: 0; }

/* Mediabanneri ilman rail-laattoja: hero koko leveydelle. Ilman tätä
   piilotetut tuotekortit jättäisivät sivulle tyhjän oikean sarakkeen. */
.im-banner-grid--yksin{ grid-template-columns:minmax(0, 1fr); }

/* Skip link (AUD-IH-28 A3): piilossa kunnes fokus. */
.skip-link {
    position: absolute;
    left: 8px;
    top: -100px;
    z-index: 100000;
    padding: 10px 16px;
    background: #0D1C2D;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
}
.skip-link:focus { top: 8px; color: #fff; outline: 2px solid #fff; outline-offset: 2px; }

/* IH-CWV-1005: kosketuskohteet >=24px sisällysluettelo-/ankkurilistoissa (WCAG 2.5.8) */
.single-content ul.wp-block-list li > a[href^="#"],
.single-content ol.wp-block-list li > a[href^="#"] { display: inline-block; min-height: 24px; line-height: 24px; }

/* IH-CWV-1005 (CLS): Font Awesome -ikonit hero-badgeissa saavat kiinteän leveyden,
   ettei rivitys muutu kun ikonifontti latautuu (/tyokalut/ 0,12 CLS). */
.kl-badges i, .kl-eyebrow i { display: inline-block; width: 1.25em; text-align: center; }
