/* v412 — Online Teacher Training member area: visual refresh (Rich, 12.11.2026).
   Design only. Applies to the member hub (ttc.html) and the workshop / anatomy catalogues (ttc-section.html).
   Uses only the new .ttc412-* markup from ttc.v412.js, so the public course page and lesson workspaces are untouched.
   Colours follow the site and the course workspace hero (deep green #213c33, sage #4a7c6f, terracotta #d97757). */
:root{--ttc412-deep:#1f3a31;--ttc412-deep-2:#2b4c40;--ttc412-sage:#4a7c6f;--ttc412-terra:#d97757;--ttc412-paper:#fffdf8;--ttc412-line:#e3e1d8}

/* back link above the hero */
.ttc412-back{display:inline-block;margin:0 0 18px}

/* hero panel — same family as the course workspace hero */
.ttc412-hero{max-width:none;margin:0 0 40px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:0;
 background:var(--ttc412-deep);color:#f4f1ea;border-radius:22px;overflow:hidden;box-shadow:0 18px 40px -24px rgba(20,40,32,.55)}
.ttc412-hero__copy{padding:clamp(28px,4.2vw,56px);display:flex;flex-direction:column;justify-content:center}
.ttc412-hero .eyebrow{color:#cfe1d6;letter-spacing:.14em;margin:0}
.ttc412-hero h1{color:#fffaf2;font-size:clamp(2.3rem,4.6vw,4rem);line-height:1.04;margin:14px 0 16px}
.ttc412-hero .lede{color:rgba(244,241,234,.86);max-width:46ch;margin:0}
.ttc412-hero__stat{margin:26px 0 0;display:flex;align-items:baseline;gap:10px;color:rgba(244,241,234,.8);font-size:.95rem}
.ttc412-hero__stat strong{font-family:var(--font-display);font-size:2.4rem;line-height:1;color:var(--ttc412-terra);font-weight:600}
.ttc412-hero__mosaic{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:3px;min-height:100%;background:var(--ttc412-deep)}
.ttc412-hero__mosaic img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(.92)}

/* cards */
.ttc412-card{position:relative;border:1px solid var(--ttc412-line);background:var(--ttc412-paper);border-radius:18px;overflow:hidden;
 transition:transform .35s var(--ease),box-shadow .35s var(--ease),border-color .35s var(--ease)}
.ttc412-card:hover,.ttc412-card:focus-visible{transform:translateY(-4px);box-shadow:0 22px 40px -26px rgba(31,58,49,.55);border-color:#c9d3cb}
.ttc412-photo{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--ttc412-deep)}
.ttc412-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease)}
.ttc412-card:hover .ttc412-photo img,.ttc412-card:focus-visible .ttc412-photo img{transform:scale(1.045)}
.ttc412-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(18,32,27,0) 34%,rgba(18,32,27,.55) 62%,rgba(18,32,27,.9) 100%);pointer-events:none}
.ttc412-photo h2{position:absolute;left:22px;right:22px;bottom:18px;z-index:1;margin:0;color:#fffaf2;
 font-size:clamp(1.45rem,2.1vw,1.9rem);line-height:1.12;text-shadow:0 1px 14px rgba(0,0,0,.35)}
.ttc412-num{position:absolute;top:16px;left:18px;z-index:1;font-family:var(--font-mono);font-size:.78rem;letter-spacing:.08em;
 color:#fffaf2;background:rgba(18,32,27,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border-radius:999px;padding:5px 10px}
.ttc412-card .ttc-card__copy{padding:20px 22px 22px;gap:14px}
.ttc412-card .ttc-card__copy p{color:var(--ink-soft);line-height:1.55}
.ttc412-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.ttc412-chips li{font-size:.78rem;line-height:1;padding:7px 10px;border-radius:999px;background:#eef2ec;color:#38584c}
.ttc412-go{margin-top:auto;display:inline-flex;align-items:center;gap:8px;font-weight:600;color:var(--ttc412-sage)}
.ttc412-go span{transition:transform .3s var(--ease)}
.ttc412-card:hover .ttc412-go span,.ttc412-card:focus-visible .ttc412-go span{transform:translateX(5px)}
.ttc412-card:hover .ttc412-go,.ttc412-card:focus-visible .ttc412-go{color:var(--ttc412-deep);text-decoration:none}

/* hub grid: 7 sections as 2 + 3 + 2 */
[data-ttc-hub] > .ttc-cards{grid-template-columns:repeat(6,minmax(0,1fr));gap:22px}
[data-ttc-hub] > .ttc-cards > .ttc412-card{grid-column:span 2}
[data-ttc-hub] > .ttc-cards > .ttc412-card:nth-child(1),
[data-ttc-hub] > .ttc-cards > .ttc412-card:nth-child(2),
[data-ttc-hub] > .ttc-cards > .ttc412-card:nth-child(6),
[data-ttc-hub] > .ttc-cards > .ttc412-card:nth-child(7){grid-column:span 3}
[data-ttc-hub] > .ttc-cards > .ttc412-card:nth-child(1) .ttc412-photo,
[data-ttc-hub] > .ttc-cards > .ttc412-card:nth-child(2) .ttc412-photo,
[data-ttc-hub] > .ttc-cards > .ttc412-card:nth-child(6) .ttc412-photo,
[data-ttc-hub] > .ttc-cards > .ttc412-card:nth-child(7) .ttc412-photo{aspect-ratio:16/9}

/* workshop catalogue keeps its own photo framing */
.ttc-workshop-card.ttc412-card .ttc-workshop-card__photo{aspect-ratio:16/10}

@media (max-width:960px){
 .ttc412-hero{grid-template-columns:1fr}
 .ttc412-hero__mosaic{grid-template-columns:repeat(4,1fr);grid-template-rows:none;height:120px}
 [data-ttc-hub] > .ttc-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 [data-ttc-hub] > .ttc-cards > .ttc412-card,
 [data-ttc-hub] > .ttc-cards > .ttc412-card:nth-child(n){grid-column:span 1}
 [data-ttc-hub] > .ttc-cards > .ttc412-card:last-child:nth-child(odd){grid-column:1 / -1}
 [data-ttc-hub] > .ttc-cards > .ttc412-card:nth-child(n) .ttc412-photo{aspect-ratio:16/10}
}
@media (max-width:640px){
 .ttc412-hero{border-radius:18px;margin-bottom:28px}
 .ttc412-hero__mosaic{height:88px}
 [data-ttc-hub] > .ttc-cards{grid-template-columns:1fr;gap:16px}
 [data-ttc-hub] > .ttc-cards > .ttc412-card:last-child:nth-child(odd){grid-column:auto}
 .ttc412-photo h2{left:18px;right:18px;bottom:14px}
}
@media (prefers-reduced-motion:reduce){
 .ttc412-card,.ttc412-photo img,.ttc412-go span{transition:none}
 .ttc412-card:hover,.ttc412-card:focus-visible{transform:none}
 .ttc412-card:hover .ttc412-photo img{transform:none}
}
