/* TF Tapahtumat – tapahtumakortti luonnoksen index.html:stä (.ev-card), täydentää tf.css:ää */
.tfe [hidden]{display:none!important}
.tfe-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}
.tfe .ev-card{display:flex;flex-direction:column;background:#FFFFFF;border:1.5px solid #111111;border-radius:6px;overflow:hidden;text-decoration:none;color:#111111;transition:transform .2s ease,box-shadow .2s ease;height:100%}
.tfe .ev-card:hover{color:#111111;transform:translate(-3px,-3px);box-shadow:6px 6px 0 #111111}
.tfe .ev-card:focus-visible{outline:3px solid #FFC954;outline-offset:3px}
.tfe .ev-media{position:relative;aspect-ratio:4/3;border-bottom:1.5px solid #111111;overflow:hidden;background:#222}
.tfe .ev-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.tfe .ev-card:hover .ev-media img{transform:scale(1.04)}
.tfe .ev-date{position:absolute;top:14px;left:14px;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:58px;padding:8px 10px 7px;background:#FFC954;border:1.5px solid #111111;border-radius:3px;font-family:Anton,'Arial Narrow',sans-serif;line-height:1;text-transform:uppercase;color:#111}
.tfe .ev-date b{font-weight:400;font-size:13px;letter-spacing:1.5px}
.tfe .ev-date span{font-size:24px}
.tfe .ev-body{display:flex;flex-direction:column;gap:10px;flex-grow:1;padding:18px 20px 20px}
.tfe .ev-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px;font-weight:700}
.tfe .ev-tag{padding:4px 10px;border:1.5px solid #111111;border-radius:30px}
.tfe .ev-time{color:#3F3A34;text-align:right}
.tfe .ev-title{margin:0;font-family:Anton,'Arial Narrow',sans-serif;font-weight:400;font-size:28px;line-height:1.05;text-transform:uppercase}
.tfe .ev-desc{margin:0;flex-grow:1;font-size:15px;line-height:1.5;color:#3F3A34}
.tfe .ev-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:14px;border-top:1px solid #E4DED5;font-size:14px}
.tfe .ev-place{color:#3F3A34}
.tfe .ev-cta{font-weight:700;white-space:nowrap}
.tfe .ev-cta i{display:inline-block;font-style:normal;transition:transform .2s ease}
.tfe .ev-card:hover .ev-cta i{transform:translateX(4px)}
.tfe a.chip{display:inline-block;line-height:1.3}
.tfe a.chip.on{color:#F2EDE6}
.tfe .tcard .chip{cursor:inherit}
.tfe-empty{margin:0;font-size:15px}
.tfe-item{display:flex}
.tfe-item>.ev-card{flex:1}
.tfe-ohjelma-lista{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:15px}
.tfe-past{margin:0;padding:10px 12px;background:#fff;border:1.5px solid #111;border-radius:4px;font-weight:600}
@media (prefers-reduced-motion:reduce){
  .tfe .ev-card,.tfe .ev-card:hover,.tfe .ev-card:hover .ev-media img,.tfe .ev-card:hover .ev-cta i{transform:none;transition:none}
}
@media (max-width:640px){.tfe .lunchbar{flex-direction:column;align-items:flex-start}}
/* Elementor-widgetit täyteen leveyteen; päivän ohjelma perii laatan fontin */
.elementor-widget[class*="elementor-widget-tfe_tapahtuma"]{width:100%;max-width:100%}
.elementor-widget-tfe_paivan_ohjelma{font:inherit;color:inherit}
