/* ==========================================================================
   Jäsensivut: Holvi (Sisäpiiri), Tulostulva® T5 -ländäri, kurssin
   sisällysluettelo ja oppitunti. Ladataan vain näillä sivuilla site.css:n ja
   sub.css:n jälkeen. Kaikki luokat m-etuliitteellä, ettei mikään törmää
   yhteisiin tyyleihin.
   ========================================================================== */

/* --- yhteiset ------------------------------------------------------------- */
body.sub .m-h2{font-family:'Bebas Neue',Impact,sans-serif;font-weight:400;font-size:clamp(2.4rem,4.6vw,3.8rem);line-height:.92;letter-spacing:.01em;color:var(--ink)}
body.sub .m-h3{font-family:'DM Serif Display',Georgia,serif;font-weight:400;font-size:clamp(1.5rem,2.2vw,1.9rem);line-height:1.12;color:var(--ink)}
body.sub .m-note{font-size:.95rem;line-height:1.6;color:var(--ink2);max-width:40rem}
body.sub .m-note em{font-style:italic}
body.sub .m-lead{font-size:1.08rem;line-height:1.65;max-width:38rem;color:var(--ink)}
body.sub .m-sec{padding-bottom:0;padding-top:clamp(48px,5vw,72px);margin-top:clamp(48px,5vw,72px);border-top:1px solid var(--prule);scroll-margin-top:96px}
body.sub .m-sec:first-child{border-top:0;padding-top:0;margin-top:0}
body.sub .m-sec-h{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap;margin-bottom:1.4rem}
body.sub .m-sec-h .kicker{margin-bottom:.7rem}
body.sub .m-tag{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:.18em .55em;border:1px solid var(--prule);color:var(--ink2);line-height:1.4;white-space:nowrap}
body.sub .m-tag.r{border-color:var(--red2);color:var(--red2)}
body.sub .m-tag.f{background:var(--red2);border-color:var(--red2);color:#fff}
body.sub .m-tag.d{border-color:var(--line);color:rgba(240,230,211,.8)}

/* Jäsenpalkki kannen yläreunassa */
body.sub .m-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;font-size:.88rem;color:rgba(240,230,211,.78)}
body.sub .m-bar .dot{display:inline-flex;align-items:center;gap:.55em;color:var(--cream);font-weight:700}
body.sub .m-bar .dot:before{content:"";width:8px;height:8px;border-radius:50%;background:#3fb27f;box-shadow:0 0 0 3px rgba(63,178,127,.18)}
body.sub .m-bar a{color:rgba(240,230,211,.78);text-decoration:none}
body.sub .m-bar a:hover{color:var(--red);text-decoration:underline;text-underline-offset:.2em}

/* Konseptin esikatselukytkin (jäsen / vierailija) */
body.sub .m-switch{display:inline-flex;border:1px solid var(--line);margin-top:1.6rem;font-size:.8rem;font-weight:700}
body.sub .m-switch span{padding:.55em .9em;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}
body.sub .m-switch button{background:none;border:0;border-left:1px solid var(--line);color:rgba(240,230,211,.8);font:inherit;padding:.55em 1em;cursor:pointer}
body.sub .m-switch button[aria-pressed=true]{background:var(--cream);color:var(--bg)}
body.sub .m-switch button:hover:not([aria-pressed=true]){color:var(--red)}

/* Laskuririvi kannessa */
body.sub .m-count{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));max-width:40rem;margin-top:2.2rem;border-top:1px solid var(--line)}
body.sub .m-count div{padding:16px 14px 0 14px;border-left:1px solid var(--line)}
body.sub .m-count div:first-child{border-left:0;padding-left:0}
body.sub .m-count b{display:block;font-family:'Bebas Neue';font-weight:400;font-size:clamp(2.4rem,4vw,3.4rem);line-height:.9;color:var(--red)}
body.sub .m-count span{display:block;font-size:.86rem;line-height:1.35;color:rgba(240,230,211,.75);margin-top:.35rem}

/* --- HOLVI ---------------------------------------------------------------- */
body.sub .m-vault{display:grid;grid-template-columns:200px minmax(0,1fr);gap:clamp(36px,5vw,72px);align-items:start}
body.sub .m-drawers{position:sticky;top:110px;font-size:.92rem;line-height:1.35}
body.sub .m-drawers b{display:block;font-size:.8rem;color:var(--ink2);margin-bottom:.9em}
body.sub .m-drawers ol{list-style:none;border-top:2px solid var(--ink)}
body.sub .m-drawers li{border-bottom:1px solid var(--prule)}
body.sub .m-drawers a{display:flex;justify-content:space-between;gap:10px;padding:11px 0;color:var(--ink);text-decoration:none;font-weight:500}
body.sub .m-drawers a i{font-style:normal;font-family:'Bebas Neue';font-size:1.25rem;line-height:1;color:var(--red2)}
body.sub .m-drawers a:hover span{text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px;text-underline-offset:.2em}
body.sub .m-drawers a.on{font-weight:700}
body.sub .m-drawers a.on span{box-shadow:inset 0 -2px 0 var(--red2)}

/* Kurssikortti: musteinen laatikko paperilla */
body.sub .m-course{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(24px,3vw,48px);background:var(--ink);color:var(--cream);padding:clamp(26px,3.4vw,44px);position:relative;overflow:hidden}
body.sub .m-course .kicker{color:#ff6b77}
body.sub .m-course .kicker:before{background:#ff6b77}
body.sub .m-course h3{font-family:'Bebas Neue';font-weight:400;font-size:clamp(2.2rem,4vw,3.4rem);line-height:.92;margin:.8rem 0 .9rem}
body.sub .m-course h3 small{display:block;color:#ff6b77;font-size:.62em;margin-top:.15em}
body.sub .m-course p{font-size:1rem;line-height:1.6;color:rgba(240,230,211,.84);max-width:30rem}
body.sub .m-course .btn{margin-top:1.4rem}
body.sub .m-course .own{display:inline-flex;align-items:center;gap:.5em;font-size:.82rem;font-weight:700;color:#7fd3ac;margin-top:1rem}
body.sub .m-course .own:before{content:"";width:12px;height:7px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg) translateY(-2px)}
/* portaat T1 -> Lopuksi: palkit pitenevät kuin portaikko */
body.sub .m-steps{display:flex;flex-direction:column;justify-content:flex-end;gap:4px;align-self:end}
body.sub .m-steps a{display:flex;align-items:baseline;gap:10px;background:#1f3440;color:var(--cream);text-decoration:none;padding:9px 12px;transition:background .2s;margin-left:auto}
body.sub .m-steps a:hover{background:var(--red2)}
body.sub .m-steps a b{font-family:'Bebas Neue';font-weight:400;font-size:1.45rem;line-height:1;min-width:1.6em}
body.sub .m-steps a span{font-size:.86rem;line-height:1.3;color:rgba(240,230,211,.86)}
body.sub .m-steps a:hover span{color:#fff}
body.sub .m-steps a:nth-child(1){width:50%}body.sub .m-steps a:nth-child(2){width:60%}body.sub .m-steps a:nth-child(3){width:70%}
body.sub .m-steps a:nth-child(4){width:80%}body.sub .m-steps a:nth-child(5){width:90%}body.sub .m-steps a:nth-child(6){width:100%;background:var(--red2)}

/* Kirjan työkalut: tiedostorivit */
body.sub .m-book{display:grid;grid-template-columns:120px minmax(0,1fr);gap:clamp(20px,3vw,40px);align-items:start}
body.sub .m-book>img{width:120px;box-shadow:8px 10px 22px rgba(11,27,36,.25)}
body.sub .m-files{list-style:none;border-top:2px solid var(--ink);margin-top:1.2rem}
body.sub .m-files li{border-bottom:1px solid var(--prule)}
body.sub .m-files a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center;padding:14px 0;color:var(--ink);text-decoration:none}
body.sub .m-files .ic{width:30px;height:36px;background:var(--paper2);border:1px solid var(--prule);position:relative}
body.sub .m-files .ic:before,body.sub .m-files .ic:after{content:"";position:absolute;left:7px;right:7px;height:2px;background:#1e8e55;top:12px}
body.sub .m-files .ic:after{top:19px;box-shadow:0 7px 0 #1e8e55}
body.sub .m-files .nm{font-weight:700;font-size:1.02rem;line-height:1.35}
body.sub .m-files .go2{font-size:.88rem;font-weight:700;color:var(--red2);white-space:nowrap}
body.sub .m-files a:hover .nm{text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px;text-underline-offset:.2em}

/* Työkalukortit */
body.sub .m-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(20px,2.4vw,32px)}
body.sub .m-tools a{display:flex;flex-direction:column;background:transparent;border:1px solid var(--prule);color:var(--ink);text-decoration:none;transition:background .2s}
body.sub .m-tools a:hover{border-color:rgba(11,27,36,.4)}
body.sub .m-tools .thumb{aspect-ratio:16/8;overflow:hidden;background:var(--ink)}
body.sub .m-tools .thumb img{width:100%;height:100%;object-fit:cover;object-position:50% 0}
body.sub .m-tools .tx{padding:18px 20px 22px}
body.sub .m-tools h3{font-family:'DM Serif Display',serif;font-weight:400;font-size:1.4rem;line-height:1.15;margin:.5rem 0 .4rem}
body.sub .m-tools p{font-size:.92rem;line-height:1.55;color:var(--ink2);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
body.sub .m-tools a:hover h3{text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px;text-underline-offset:.15em}

/* Oppaat */
body.sub .m-guides{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(24px,2.6vw,36px) clamp(16px,2vw,28px);list-style:none}
body.sub .m-guides a{display:block;color:var(--ink);text-decoration:none}
body.sub .m-guides img{width:100%;aspect-ratio:250/353;object-fit:cover;box-shadow:6px 8px 18px rgba(11,27,36,.24);transition:transform .3s cubic-bezier(.2,.7,.2,1)}
body.sub .m-guides a:hover img{transform:translateY(-6px)}
body.sub .m-guides h3{font-size:.95rem;font-weight:700;line-height:1.3;margin-top:.9rem}
body.sub .m-guides p{font-size:.84rem;line-height:1.45;color:var(--ink2);margin-top:.3rem}
body.sub .m-guides .m-tag{margin-top:.55rem}
body.sub .m-guides a:hover h3{text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px;text-underline-offset:.15em}

/* Lukulista */
body.sub .m-reads{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:22px 16px;list-style:none}
body.sub .m-reads a{display:block;color:var(--ink);text-decoration:none}
body.sub .m-reads img{width:100%;aspect-ratio:2/3;object-fit:cover;box-shadow:4px 6px 12px rgba(11,27,36,.22)}
body.sub .m-reads span{display:block;font-size:.76rem;line-height:1.3;margin-top:.55rem;color:var(--ink2);overflow-wrap:break-word}
body.sub .m-reads a:hover span{color:var(--ink);text-decoration:underline;text-decoration-color:var(--red);text-underline-offset:.15em}

/* Lukittu tila (vierailija) */
body.sub .m-guest-only{display:none}
body.sub.m-guest .m-guest-only{display:block}
body.sub.m-guest .m-member-only{display:none}
body.sub .m-lock{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5vw,80px);align-items:start}
body.sub .m-lock .m-h2{margin:.8rem 0 1rem}
body.sub .m-lock .cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:1.6rem}
body.sub .m-lock-list{list-style:none;border-top:2px solid var(--ink)}
body.sub .m-lock-list li{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--prule);font-size:1rem;line-height:1.4}
body.sub .m-lock-list li i{font-style:normal;font-family:'Bebas Neue';font-size:1.4rem;line-height:1;color:var(--red2);text-align:right}
body.sub .m-lock-list svg{width:18px;height:18px;stroke:var(--ink2);fill:none;stroke-width:2}
body.sub .m-peek{position:relative;margin-top:clamp(36px,4vw,56px);overflow:hidden}
body.sub .m-peek .row{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:12px;filter:blur(7px) grayscale(.4);opacity:.7;pointer-events:none;user-select:none}
body.sub .m-peek .row img{width:100%;aspect-ratio:250/353;object-fit:cover}
body.sub .m-peek .lockmsg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
body.sub .m-peek .lockmsg span{background:var(--ink);color:var(--cream);font-size:.9rem;font-weight:700;padding:.7em 1.1em;display:inline-flex;gap:.6em;align-items:center}
body.sub .m-peek .lockmsg svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2}

/* --- T5-LÄNDÄRI ------------------------------------------------------------ */
body.sub .m-t5h{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(32px,5vw,72px);align-items:center;padding-top:clamp(120px,12vw,160px);padding-bottom:clamp(150px,15vw,230px)}
body.sub .m-t5h h1{font-family:'Bebas Neue';font-weight:400;font-size:clamp(3.6rem,9vw,8rem);line-height:.86;margin:1rem 0 1.1rem;letter-spacing:.005em}
body.sub .m-t5h h1 small{display:block;color:var(--red);font-size:.5em;line-height:1;margin-top:.12em}
body.sub .m-t5h .sub-lead{max-width:31rem}
body.sub .m-t5h .cta{opacity:1;animation:none;margin-top:1.8rem}
body.sub .m-t5h-img img{width:100%;aspect-ratio:4/3;object-fit:cover;object-position:50% 30%}
body.sub .m-vid{max-width:1000px;margin:calc(-1 * clamp(110px,12vw,190px)) auto 0;padding:0 clamp(20px,4vw,48px);position:relative;z-index:4}
body.sub .m-vid .fr{position:relative;aspect-ratio:16/9;background:#05141c;box-shadow:0 30px 70px rgba(0,0,0,.5);overflow:hidden}
body.sub .m-vid iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
body.sub .m-vid figcaption{font-size:.84rem;color:var(--muted);margin-top:.7rem}
body.sub .m-vid-sheet{margin-top:calc(-1 * clamp(150px,14vw,240px))}
body.sub .m-vid-sheet>.sheet-in{padding-top:calc(clamp(150px,14vw,240px) + clamp(40px,5vw,64px))}
/* videon paikka jäsenvideoille (oikeassa sivussa Vimeo-upotus) */
body.sub .m-play{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;padding:clamp(18px,3vw,36px);background:radial-gradient(120% 90% at 70% 30%,#16323f 0%,#05141c 70%);color:var(--cream)}
body.sub .m-play:before{content:"";position:absolute;left:50%;top:46%;width:clamp(64px,8vw,92px);height:clamp(64px,8vw,92px);margin:calc(-1 * clamp(32px,4vw,46px)) 0 0 calc(-1 * clamp(32px,4vw,46px));border-radius:50%;background:var(--red)}
body.sub .m-play:after{content:"";position:absolute;left:50%;top:46%;margin:-14px 0 0 -8px;border-left:26px solid #fff;border-top:15px solid transparent;border-bottom:15px solid transparent}
body.sub .m-play b{font-family:'Bebas Neue';font-weight:400;font-size:clamp(1.6rem,3vw,2.4rem);line-height:1;position:relative}
body.sub .m-play span{font-size:.85rem;color:rgba(240,230,211,.7);position:relative;margin-top:.3rem}

body.sub .m-qs{list-style:none;border-top:2px solid var(--ink);margin-top:1.4rem;counter-reset:q}
body.sub .m-qs li{display:grid;grid-template-columns:2.6rem minmax(0,1fr);gap:12px;padding:14px 0;border-bottom:1px solid var(--prule);font-size:1.08rem;line-height:1.55}
body.sub .m-qs li:before{content:"";width:22px;height:22px;border:2px solid var(--red2);border-radius:50%;margin-top:.15em;background:radial-gradient(circle,var(--red2) 0 3px,transparent 4px)}
body.sub .m-qs b{font-weight:700}
body.sub .m-big{font-family:'DM Serif Display',serif;font-size:clamp(1.9rem,3.6vw,3rem);line-height:1.12;max-width:26ch;margin-top:clamp(36px,4vw,56px)}
body.sub .m-big b{font-weight:400;color:inherit}
body.sub .m-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5vw,80px);align-items:start}
body.sub .m-fit h3{font-family:'DM Serif Display',serif;font-weight:400;font-size:clamp(1.5rem,2.4vw,2rem);line-height:1.12;margin-bottom:.4rem}
body.sub .m-fit p{color:var(--ink2);font-size:.98rem;margin-bottom:.6rem}
body.sub .m-fit .chk li{font-size:1rem}
body.sub .m-fit.no .chk li:before{width:12px;height:12px;background:none;border:2px solid var(--ink2);border-radius:50%;top:1.05em}
body.sub .m-mods{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;background:var(--prule);border:1px solid var(--prule);margin-top:1.6rem}
body.sub .m-mods>div{background:var(--paper);padding:18px 14px 20px}
body.sub .m-mods b{display:block;font-family:'Bebas Neue';font-weight:400;font-size:2.2rem;line-height:.9;color:var(--red2)}
body.sub .m-mods h3{font-size:1rem;font-weight:700;line-height:1.25;margin:.35rem 0 .7rem}
body.sub .m-mods ol{list-style:none;font-size:.84rem;line-height:1.35;color:var(--ink2)}
body.sub .m-mods li+li{margin-top:.45em}
body.sub .m-mods .tl2{color:var(--ink);font-weight:700}
body.sub .m-incl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(18px,2.4vw,32px);margin-top:clamp(28px,3vw,40px)}
body.sub .m-incl div{border-top:2px solid var(--ink);padding-top:12px;font-size:.95rem;line-height:1.55}
body.sub .m-incl b{display:block;font-size:1.02rem;margin-bottom:.3rem}
body.sub .m-incl em{color:var(--ink2)}
body.sub .m-why{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(32px,5vw,80px);align-items:center}
body.sub .m-why img{width:100%;aspect-ratio:4/3;object-fit:cover;object-position:50% 30%}
body.sub .m-why .h2{margin-top:.8rem}
body.sub .m-why p{font-size:1.1rem;color:rgba(240,230,211,.86);max-width:34rem}
body.sub .m-why p em{font-style:italic;color:var(--cream)}
body.sub .m-proof{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(32px,5vw,72px);align-items:start}
body.sub .m-q{margin-bottom:clamp(32px,4vw,48px)}
body.sub .m-q blockquote{font-family:'DM Serif Display',serif;font-size:clamp(1.2rem,1.8vw,1.45rem);line-height:1.4}
body.sub .m-q blockquote p+p{margin-top:.8em}
body.sub .m-q figcaption{display:flex;gap:14px;align-items:center;margin-top:1.1rem;font-size:.92rem;line-height:1.4;color:var(--ink2)}
body.sub .m-q figcaption img{width:56px;height:56px;border-radius:50%;object-fit:cover;filter:grayscale(1);flex:none}
body.sub .m-q figcaption b{color:var(--ink)}
body.sub .m-shots img{width:100%;box-shadow:10px 14px 30px rgba(11,27,36,.25)}
body.sub .m-shots figcaption{font-size:.84rem;color:var(--ink2);margin-top:.7rem}

body.sub .gtee.m-gtee{align-items:start}
body.sub .gtee.m-gtee h2{margin-top:-.2em}

/* --- SISÄLLYSLUETTELO (kurssin sisältösivu) --------------------------------- */
body.sub .m-ch{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(32px,5vw,72px);align-items:center;padding-top:clamp(120px,12vw,160px);padding-bottom:clamp(150px,15vw,230px)}
body.sub .m-ch h1{font-family:'Bebas Neue';font-weight:400;font-size:clamp(3.6rem,9vw,7.8rem);line-height:.86;margin:1rem 0 1.1rem}
body.sub .m-ch h1 small{display:block;color:var(--red);font-size:.44em;line-height:1;margin-bottom:.12em}
body.sub .m-ch-img img{width:100%;max-width:440px;margin-left:auto;aspect-ratio:4/5;object-fit:cover;object-position:50% 30%}
body.sub .m-toc-grid{display:grid;grid-template-columns:220px minmax(0,1fr);gap:clamp(36px,5vw,80px);align-items:start}
body.sub .m-toc{position:sticky;top:110px;font-size:.92rem;line-height:1.35}
body.sub .m-toc>b{display:block;font-size:.8rem;color:var(--ink2);margin-bottom:.9em}
body.sub .m-toc ol{list-style:none;border-top:2px solid var(--ink)}
body.sub .m-toc li{border-bottom:1px solid var(--prule)}
body.sub .m-toc a{display:grid;grid-template-columns:2.6rem minmax(0,1fr) auto;gap:8px;align-items:baseline;padding:10px 0;color:var(--ink);text-decoration:none}
body.sub .m-toc a i{font-style:normal;font-family:'Bebas Neue';font-size:1.35rem;line-height:1;color:var(--red2)}
body.sub .m-toc a em{font-style:normal;font-size:.78rem;color:var(--ink2)}
body.sub .m-toc a:hover span{text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px;text-underline-offset:.2em}
body.sub .m-toc a.on span{font-weight:700;box-shadow:inset 0 -2px 0 var(--red2)}
body.sub .m-toc .m-pdf{display:block;margin-top:1.4rem;font-size:.88rem;font-weight:700}
body.sub .m-mod{scroll-margin-top:96px;padding:clamp(32px,4vw,48px) 0 clamp(8px,1vw,12px);border-top:2px solid var(--ink)}
body.sub .m-mod:first-of-type{padding-top:clamp(20px,2vw,28px)}
body.sub .m-mod-h{display:grid;grid-template-columns:5.2rem minmax(0,1fr) auto;gap:16px;align-items:start}
body.sub .m-mod-h .no{font-family:'Bebas Neue';font-size:clamp(3.2rem,5vw,4.4rem);line-height:.82;color:var(--red2)}
body.sub .m-mod-h h2{font-family:'Bebas Neue';font-weight:400;font-size:clamp(2.2rem,3.8vw,3.2rem);line-height:.9;color:var(--ink)}
body.sub .m-mod-h .meta2{font-size:.85rem;color:var(--ink2);padding-top:.3em;white-space:nowrap}
body.sub .m-les{list-style:none;margin:1.2rem 0 0 calc(5.2rem + 16px);counter-reset:l}
body.sub .m-les li{counter-increment:l}
body.sub .m-les a{display:grid;grid-template-columns:2.2rem minmax(0,1fr) auto;gap:12px;align-items:baseline;padding:13px 0;border-bottom:1px solid var(--prule);color:var(--ink);text-decoration:none}
body.sub .m-les a:before{content:counter(l,decimal-leading-zero);font-family:'Bebas Neue';font-size:1.2rem;line-height:1;color:var(--ink2)}
body.sub .m-les .t{font-size:1.08rem;font-weight:500;line-height:1.35}
body.sub .m-les .tg{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
body.sub .m-les a:hover .t{text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px;text-underline-offset:.2em}
body.sub .m-les a.here .t{font-weight:700}
body.sub .m-les a.here{box-shadow:inset 3px 0 0 var(--red2)}
body.sub .m-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,3vw,40px);align-items:start;margin-bottom:clamp(28px,3vw,40px)}
body.sub .m-legend{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;font-size:.9rem;color:var(--ink2);margin-top:clamp(28px,3vw,40px);padding-top:18px;border-top:1px solid var(--prule)}
body.sub .m-help{margin-top:1.2rem;font-size:.98rem;line-height:1.6;max-width:40rem}

/* --- OPPITUNTI ------------------------------------------------------------ */
body.sub .m-lh{padding:clamp(120px,13vw,170px) 0 0}
body.sub .m-lh .wrap{max-width:calc(1000px + 2 * clamp(20px,4vw,48px))}
body.sub .m-lh h1{font-family:'DM Serif Display',Georgia,serif;font-weight:400;font-size:clamp(2.4rem,5.4vw,4.6rem);line-height:1.04;margin:.9rem 0 1.1rem;max-width:18ch;letter-spacing:-.01em}
body.sub .m-lh .facts{margin-top:1.2rem}
body.sub .m-lvid{max-width:1000px;margin:clamp(36px,4vw,56px) auto 0;padding:0 clamp(20px,4vw,48px);position:relative;z-index:4}
body.sub .m-lvid .fr{position:relative;aspect-ratio:16/9;box-shadow:0 30px 70px rgba(0,0,0,.5);overflow:hidden}
body.sub .m-l-sheet{margin-top:calc(-1 * clamp(150px,16vw,260px))}
body.sub .m-l-sheet>.sheet-in{padding-top:calc(clamp(150px,16vw,260px) + clamp(40px,5vw,64px))}
body.sub .m-lgrid{display:grid;grid-template-columns:240px minmax(0,1fr);gap:clamp(40px,5vw,80px);max-width:1000px;margin:0 auto;align-items:start}
body.sub .m-cnav{position:sticky;top:110px;font-size:.88rem;line-height:1.35;max-height:calc(100vh - 140px);overflow:auto;padding-right:4px}
body.sub .m-cnav>b{display:block;font-size:.8rem;color:var(--ink2);margin-bottom:.9em}
body.sub .m-cnav>ol{list-style:none;border-top:2px solid var(--ink)}
body.sub .m-cnav>ol>li{border-bottom:1px solid var(--prule)}
body.sub .m-cnav details>summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:2.4rem minmax(0,1fr) 14px;gap:6px;align-items:baseline;padding:10px 0;font-weight:700}
body.sub .m-cnav details>summary::-webkit-details-marker{display:none}
body.sub .m-cnav summary i{font-style:normal;font-family:'Bebas Neue';font-weight:400;font-size:1.3rem;line-height:1;color:var(--red2)}
body.sub .m-cnav summary:after{content:"";width:7px;height:7px;border-right:2px solid var(--ink2);border-bottom:2px solid var(--ink2);transform:rotate(45deg);align-self:center;transition:transform .2s}
body.sub .m-cnav details[open]>summary:after{transform:rotate(-135deg)}
body.sub .m-cnav summary:hover span{text-decoration:underline;text-decoration-color:var(--red);text-underline-offset:.2em}
body.sub .m-cnav details ol{list-style:none;padding:0 0 10px 2.8rem}
body.sub .m-cnav details li{padding:4px 0}
body.sub .m-cnav details a{color:var(--ink2);text-decoration:none}
body.sub .m-cnav details a:hover{color:var(--ink);text-decoration:underline;text-decoration-color:var(--red);text-underline-offset:.15em}
body.sub .m-cnav a.cur{color:var(--ink);font-weight:700;display:block;border-left:3px solid var(--red2);padding-left:.55em;margin-left:calc(-.55em - 3px)}
body.sub .m-cnav ul.sub2{list-style:none;margin:.45em 0 .1em .8em;border-left:1px solid var(--prule);padding-left:.8em}
body.sub .m-cnav ul.sub2 li{padding:3px 0}
body.sub .m-cnav ul.sub2 a{font-size:.84rem}
body.sub .m-cnav ul.sub2 a.on{color:var(--ink);font-weight:700}
body.sub .m-cnav .back{display:block;margin-top:1.2rem;font-weight:700}
body.sub .m-meter{border-top:2px solid var(--ink);border-bottom:1px solid var(--prule);padding:clamp(18px,2vw,22px) 0;margin:1.8em 0}
body.sub .m-meter>b{display:block;font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;color:var(--red2);margin-bottom:.9em}
body.sub .m-meter label{display:grid;grid-template-columns:26px minmax(0,1fr);gap:12px;padding:12px 0;border-top:1px solid var(--prule);font-size:17px;line-height:1.55;cursor:pointer}
body.sub .m-meter input{width:20px;height:20px;margin-top:.2em;accent-color:var(--red2)}
body.sub .m-meter .res{display:flex;align-items:baseline;gap:14px;margin-top:12px;padding-top:14px;border-top:2px solid var(--ink)}
body.sub .m-meter .res b{font-family:'Bebas Neue';font-weight:400;font-size:3rem;line-height:.8;color:var(--red2)}
body.sub .m-tbl{width:100%;border-collapse:collapse;font-size:.92em;margin-top:.8em}
body.sub .m-tbl th,body.sub .m-tbl td{text-align:left;padding:.75em .8em;border-bottom:1px solid var(--prule);vertical-align:top;line-height:1.5}
body.sub .m-tbl thead th{background:var(--ink);color:var(--cream);font-size:.82rem;letter-spacing:.06em}
body.sub .m-tbl td:first-child{font-family:'Bebas Neue';font-size:1.8rem;line-height:1;text-align:center;width:3.6rem;color:var(--ink)}
body.sub .m-tbl tr.hit td{background:var(--ink);color:var(--cream)}
body.sub .m-tbl tr.hit td:first-child{color:#ff6b77}
body.sub .m-pn{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--prule);border:1px solid var(--prule);margin-top:clamp(40px,5vw,64px)}
body.sub .m-pn a{background:var(--paper);padding:20px 22px;color:var(--ink);text-decoration:none;display:flex;flex-direction:column;gap:4px}
body.sub .m-pn a:hover{background:var(--paper2)}
body.sub .m-pn a.nx{text-align:right;background:var(--ink);color:var(--cream)}
body.sub .m-pn a.nx:hover{background:#13303d}
body.sub .m-pn span{font-size:.8rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--ink2)}
body.sub .m-pn a.nx span{color:#ff6b77}
body.sub .m-pn b{font-family:'DM Serif Display',serif;font-weight:400;font-size:1.35rem;line-height:1.2}
body.sub .m-pn a:hover b{text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px;text-underline-offset:.15em}
body.sub .m-extra{padding-bottom:0;max-width:1000px;margin:clamp(48px,6vw,80px) auto 0;border-top:2px solid var(--ink);padding-top:18px}
body.sub .m-extra-g{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 clamp(20px,3vw,36px);margin-top:1rem}
body.sub .m-extra-g .kg-bookmark-card{margin:.8rem 0}

/* --- RESPONSIIVISUUS ------------------------------------------------------ */
@media(max-width:1100px){
 body.sub .m-guides{grid-template-columns:repeat(4,minmax(0,1fr))}
 body.sub .m-reads{grid-template-columns:repeat(6,minmax(0,1fr))}
 body.sub .m-mods{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.sub .m-lgrid{grid-template-columns:minmax(0,1fr);max-width:var(--measure)}
 body.sub .m-cnav{position:static;max-height:none;order:2;margin-top:clamp(36px,4vw,48px)}
}
@media(max-width:900px){
 body.sub .m-vault,body.sub .m-toc-grid{grid-template-columns:minmax(0,1fr)}
 body.sub .m-drawers,body.sub .m-toc{position:static}
 body.sub .m-drawers ol,body.sub .m-toc ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}
 body.sub .m-course,body.sub .m-lock,body.sub .m-two,body.sub .m-why,body.sub .m-proof,body.sub .m-intro{grid-template-columns:minmax(0,1fr)}
 body.sub .m-t5h,body.sub .m-ch{grid-template-columns:minmax(0,1fr);padding-top:110px}
 body.sub .m-ch-img img{max-width:none;aspect-ratio:3/2}
 body.sub .m-incl{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.sub .m-extra-g{grid-template-columns:minmax(0,1fr)}
 body.sub .m-peek .row{grid-template-columns:repeat(5,minmax(0,1fr))}
 body.sub .m-peek .row img:nth-child(n+6){display:none}
}
@media(max-width:760px){
 body.sub .m-count{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.sub .m-count div:nth-child(3){border-left:0;padding-left:0}
 body.sub .m-count div:nth-child(n+3){border-top:1px solid var(--line);margin-top:14px}
 body.sub .m-guides{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.sub .m-reads{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 12px}
 body.sub .m-tools{grid-template-columns:minmax(0,1fr)}
 body.sub .m-book{grid-template-columns:72px minmax(0,1fr);gap:16px}
 body.sub .m-book>img{width:72px}
 body.sub .m-files a{grid-template-columns:auto minmax(0,1fr);gap:4px 14px}
 body.sub .m-files .go2{grid-column:2}
 body.sub .m-mods{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.sub .m-incl{grid-template-columns:minmax(0,1fr)}
 body.sub .m-vid{margin-top:-90px}
 body.sub .m-t5h,body.sub .m-ch{padding-bottom:150px}
 body.sub .m-vid-sheet{margin-top:-120px}
 body.sub .m-vid-sheet>.sheet-in{padding-top:calc(120px + 40px)}
 body.sub .m-l-sheet{margin-top:-110px}
 body.sub .m-l-sheet>.sheet-in{padding-top:150px}
 body.sub .m-mod-h{grid-template-columns:3.4rem minmax(0,1fr);gap:12px}
 body.sub .m-mod-h .meta2{grid-column:2;padding-top:0}
 body.sub .m-les{margin-left:0}
 body.sub .m-les a{grid-template-columns:1.8rem minmax(0,1fr);gap:4px 10px}
 body.sub .m-les .tg{grid-column:2;justify-content:flex-start}
 body.sub .m-drawers ol,body.sub .m-toc ol{grid-template-columns:minmax(0,1fr)}
 body.sub .m-pn{grid-template-columns:minmax(0,1fr)}
 body.sub .m-tbl td:first-child{width:2.6rem;font-size:1.5rem}
 body.sub .m-tbl th,body.sub .m-tbl td{padding:.6em .5em}
}
@media(prefers-reduced-motion:reduce){
 body.sub .m-guides img,body.sub .m-cnav summary:after{transition:none}
}

/* --- ILMAISET OPPAAT: rauhallinen kirjasto, kortti = kansi, nimi, lupaus, linkki --- */
body.sub .m-member{font-size:1.02rem;line-height:1.6;max-width:44rem;color:var(--ink);padding-bottom:clamp(28px,3vw,40px);margin-bottom:clamp(36px,4vw,56px);border-bottom:1px solid var(--prule)}
body.sub .m-glib{list-style:none;display:grid;max-width:760px;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(36px,4.4vw,64px) clamp(18px,3vw,44px)}
/* 10 opasta: 5 saraketta = 2 täyttä riviä, muuten 2 saraketta = 5 täyttä riviä (ei vajaita rivejä) */
@media(min-width:1200px){body.sub .m-glib{max-width:none;grid-template-columns:repeat(5,minmax(0,1fr));column-gap:28px}}
body.sub .m-glib a{display:flex;flex-direction:column;height:100%;color:var(--ink)}
body.sub .m-glib .cv{display:block;margin-bottom:1.1rem}
body.sub .m-glib img{width:100%;aspect-ratio:250/353;object-fit:cover;box-shadow:6px 8px 18px rgba(11,27,36,.2);transition:transform .35s cubic-bezier(.2,.7,.2,1)}
body.sub .m-glib a:hover img{transform:translateY(-6px)}
body.sub .m-glib h2{font-family:'DM Serif Display',Georgia,serif;font-weight:400;font-size:1.3rem;line-height:1.18}
body.sub .m-glib p{font-size:.95rem;line-height:1.55;color:var(--ink2);margin:.5rem 0 .9rem}
body.sub .m-glib .go3{margin-top:auto;font-weight:700;font-size:.92rem;color:var(--red2)}
@media(max-width:760px){
 body.sub .m-glib h2{font-size:1.1rem}
 body.sub .m-glib p{font-size:.88rem}
}

/* --- Mobiili: otsikot ja leipäteksti samaan vasempaan linjaan ------------------ */
@media(max-width:760px){
 /* sisällysluettelon oppituntirivit alkavat samasta kohdasta kuin osion otsikko */
 body.sub .m-les a{grid-template-columns:3.4rem minmax(0,1fr);gap:4px 12px}
 /* lainauspalkki riippuu marginaalissa, teksti pysyy linjassa */
 body.sub .monolog{border-left:0;padding-left:0;position:relative}
 body.sub .monolog:before{content:"";position:absolute;left:-12px;top:.3em;bottom:.3em;width:3px;background:var(--red2)}
}

/* --- Jannen palaute 19.10.2026 ------------------------------------------------ */
/* Holvi: ei sivupalkkia, sisältö paperin keskelle */
body.sub .m-vault.m-vault1{display:block;max-width:1000px;margin:0 auto}
/* Holvi: kansikuva alkaa navin alta, jotta kasvot eivät jää navin taakse */
body.sub .cover-ph.m-ph-top{top:calc(76px + var(--sat,0px))}
@media(max-width:900px){body.sub .cover-ph.m-ph-top{top:auto}}
/* T5: otsikko aina yhdellä rivillä 390–1920; koko skaalautuu sarakkeen leveyden mukaan */
body.sub .m-t5h>div:first-child{container-type:inline-size}
body.sub .m-t5h h1.m-one{white-space:nowrap;font-size:min(8rem,17cqi);margin-bottom:.15em}
body.sub .m-h1sub{font-family:'Bebas Neue',Impact,sans-serif;font-size:min(4rem,8.5cqi);line-height:.95;color:var(--red);margin-bottom:1.1rem}
body.sub .m-glib h2{hyphens:manual;-webkit-hyphens:manual}

/* --- Jannen palaute 19.10.2026 b: sisällysluettelon merkit ja aktiivinen oppitunti -----------
   1) Aktiivisen oppitunnin punainen palkki ei saa osua numeroon ("01"): palkki on rivin
      ulkopuolella vasemmassa marginaalissa (::after, left -14px), ei inset-varjona rivin päällä.
   2) Navigaatiossa kaikilla kohdilla sama merkki (pieni pallo); osion koodi (T1–T5) on osa
      nimeä, Lopuksi ilman koodia. Aktiivinen kohta = lihavoitu nimi + punainen pallo, ei alleviivausta. */
body.sub .m-les a.here{box-shadow:none;position:relative}
body.sub .m-les a.here:after{content:"";position:absolute;left:-14px;top:10px;bottom:10px;width:3px;background:var(--red2)}
body.sub .m-toc a{grid-template-columns:14px minmax(0,1fr) auto;gap:10px;align-items:center}
body.sub .m-toc a.on span{box-shadow:none;font-weight:700}
body.sub .m-toc span b,body.sub .m-cnav summary span b{font-family:'Bebas Neue',Impact,sans-serif;font-weight:400;font-size:1.25em;line-height:1;color:var(--red2);margin-right:.2em}
body.sub .mk{display:block;width:7px;height:7px;border-radius:50%;background:rgba(11,27,36,.3);justify-self:start}
body.sub .m-toc a.on .mk{background:var(--red2)}
body.sub .m-cnav details>summary{grid-template-columns:14px minmax(0,1fr) 14px;gap:10px;align-items:center}
body.sub .m-cnav details[open]>summary .mk{background:var(--red2)}
body.sub .m-cnav details ol{padding-left:24px}
/* 3) Sisällysluettelon linkki vie osion otsikon navin alle (html scroll-padding 84 px + 16 px);
      aktiivisen kohdan raja (160 px) on sen alapuolella, joten klikattu osio on aina aktiivinen. */
body.sub .m-mod{scroll-margin-top:16px}

/* === TEEMAN SOVITUKSET (konseptin members.css:n jälkeen; synkattaessa konseptista nämä lohkot säilytetään lopussa) === */
/* == RYHMÄ C holvi == */
/* == /C == */

/* == RYHMÄ D tulostulva-t5, kurssin sisällys, oppitunti == */
/* Turva-alue (iOS) kansien yläpehmusteeseen kuten sub.css:n TEEMAAN SOVITUS -lohkossa */
body.sub .m-lh{padding-top:calc(clamp(120px,13vw,170px) + var(--sat))}
body.sub .m-t5h,body.sub .m-ch{padding-top:calc(clamp(120px,12vw,160px) + var(--sat))}
@media(max-width:900px){body.sub .m-t5h,body.sub .m-ch{padding-top:calc(110px + var(--sat))}}
/* Oppitunti (custom-posts-t5.hbs): Ghostin sisällön ensimmäinen kappale "← Palaa sisällysluetteloon" on jo
   sisällysluettelon alla, piilotetaan */
body.sub .m-lprose>p:first-child:has(>a:only-child[href*="tulostulva-t5-yrittajan-pelikirja"]){display:none}
body.sub .m-lprose>p:empty{display:none}
/* Ilman videota (vierailija tai oppitunti ilman upotusta) paperi ei nouse otsakkeen päälle */
body.sub .m-l-sheet.m-l-novid{margin-top:clamp(36px,4vw,56px)}
body.sub .m-l-sheet.m-l-novid>.sheet-in{padding-top:clamp(48px,6vw,96px)}
body.sub .m-pn.m-pn1{grid-template-columns:minmax(0,1fr)}
body.sub .m-lvid iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
/* Jäsensisällön lukko (partials/content-cta.hbs) paperilla: musteinen laatikko kuten konseptin kurssikortti */
body.sub .prose .gh-post-upgrade-cta{margin:0}
body.sub .prose .gh-post-upgrade-cta-content{background:var(--ink)!important;border:0;border-radius:0;color:var(--cream);text-align:left;padding:clamp(26px,3.4vw,44px)}
body.sub .prose .gh-post-upgrade-cta-content>*{text-align:left}
html.jkj body.sub .prose .gh-post-upgrade-cta-content h2{font-family:var(--bebas);font-weight:400;font-size:clamp(2rem,3.6vw,2.8rem);line-height:.95;margin:0 0 .6em;color:var(--cream)}
body.sub .prose .gh-post-upgrade-cta-content p{color:rgba(240,230,211,.84);font-size:1rem;line-height:1.6;margin:0;max-width:34rem}
body.sub .prose .gh-post-upgrade-cta-content a{color:var(--cream);text-decoration-color:var(--red)}
body.sub .prose .gh-post-upgrade-cta-content a:hover{color:#ff6b77}
body.sub .prose .gh-post-upgrade-cta-content .gh-btn{display:inline-flex;margin-top:1.4em;background:var(--red);color:#fff!important;text-decoration:none;padding:.95em 1.5em;font-weight:700;font-size:.95rem;border-radius:2px}
body.sub .prose .gh-post-upgrade-cta-content .gh-btn:hover{background:var(--red2);color:#fff}
body.sub .prose .gh-post-upgrade-cta-content small{display:block;margin-top:1.2em;font-size:.88rem;color:rgba(240,230,211,.7)}
/* Kurssin sisällysluettelo (page-tulostulva-t5-yrittajan-pelikirja.hbs): Ghostin sisällöstä näytetään vain
   johdantovideo (siirretään skriptillä) ja vierailijan lukkolaatikko; muu sisältö on taitettu templateen */
body.sub .m-cbody>:not(.kg-embed-card,.gh-post-upgrade-cta){display:none}
body.sub .m-cbody:has(.gh-post-upgrade-cta){margin-bottom:clamp(40px,5vw,64px)}
body.sub .m-vid-sheet.m-l-novid{margin-top:clamp(36px,4vw,56px)}
body.sub .m-vid-sheet.m-l-novid>.sheet-in{padding-top:clamp(48px,6vw,96px)}
/* == /D == */
/* Holvin kansikuva: ovikuva (Jannen päätös 20.10.2026). Kasvot (kuvassa x 48–64 %, y 7–21 %) kokonaan näkyvissä
   valikon alla 1440 ja 390 px leveydellä, mitattu holvi_face.py:llä. */
body.sub .cover-ph.holvi-ph{background-size:cover;background-position:50% 4%}
@media(max-width:900px){body.sub .cover-ph.holvi-ph{background-size:cover;background-position:50% 6%}}
/* Jäsenpalkki puhelimessa: tila omalle rivilleen ja linkit sen alle samalle riville (ei "Kirjaudu ulos" yksin kolmannelle) */
@media(max-width:520px){body.sub .m-bar .dot{flex-basis:100%}}
/* Kurssin sisällysluettelon pdf-linkki: .m-toc a -sääntö vei .pl-linkiltä alleviivauksen ja hover-käänteen */
body.sub .m-toc a.m-pdf{display:block;text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px;text-underline-offset:.26em}
body.sub .m-toc a.m-pdf:hover{color:var(--red2);text-decoration-color:transparent}
/* Kurssin sisällysluettelo vierailijalle: lukkolaatikko koko lukualueen levyiseksi (Ghostin flex-keskitys kutisti
   sen sisältönsä levyiseksi irralliseksi laatikoksi sisällysluettelon yläpuolelle) */
body.sub .m-cbody:has(.gh-post-upgrade-cta){max-width:none}
body.sub .prose .gh-post-upgrade-cta{align-items:stretch}
/* Puhelimessa: oppitunnin otsikko mahtuu riville myös pisimmällä yhdyssanalla ("Asiakaskannattavuuden" leveni ennen
   sivun yli), ja allekkain pinottu "Seuraavaksi"-linkki samaan vasempaan linjaan kuin muu teksti */
@media(max-width:760px){
 body.sub .m-lh h1{font-size:clamp(1.9rem,8.2vw,2.6rem)}
 body.sub .m-pn a.nx{text-align:left}
}
/* T5-ländärin "Työkalupohjat": pitkä yhdyssana (tervehdyttämissuunnitelmaesitys) valui viereiseen sarakkeeseen 1024 px
   leveydellä; tavutus sallittu ja kursiivi pois, jotta sarake näyttää samalta kuin muut kolme */
body.sub .m-incl div{hyphens:manual;-webkit-hyphens:manual;overflow-wrap:break-word}
body.sub .m-incl em{font-style:normal}
/* T5-ländärin osioruudukko: alle 480 px yksi palsta, jotta pitkät oppituntien nimet (Asiakaskannattavuuden
   selvittäminen) eivät katkea kesken sanan */
@media(max-width:480px){body.sub .m-mods{grid-template-columns:minmax(0,1fr)}}
