/* Tharu Sky Events — inherits the theme's fonts and text colours; only the accent is set. */
.tse,.tse-block{--tse-accent:#4db2ec;--tse-line:rgba(127,127,127,.22);--tse-soft:rgba(127,127,127,.08)}
.tse{font-family:inherit;line-height:1.5}
.tse *{box-sizing:border-box}
.tse-list{list-style:none!important;margin:0!important;padding:0!important}
.tse-item{margin:0!important;padding:0!important;list-style:none!important}
.tse-item::before,.tse-item::marker{content:none!important;display:none!important}
.tse-link{display:flex;gap:12px;align-items:flex-start;color:inherit!important;text-decoration:none!important;padding:12px 0;border-bottom:1px dashed var(--tse-line)}
.tse-item:last-child .tse-link{border-bottom:0}
.tse-date{flex:0 0 58px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:56px;border-radius:6px;background:var(--tse-accent);color:#fff;text-align:center;line-height:1.1;padding:6px 2px}
.tse-day{font-size:22px;font-weight:700}
.tse-mon{font-size:10px;margin-top:3px;max-width:100%;word-break:break-word}
.tse-body{display:flex;flex-direction:column;min-width:0;flex:1}
.tse-meta{display:flex;align-items:center;gap:6px;font-size:12px;margin-bottom:2px}
.tse-icon{font-size:14px;line-height:1}
.tse-when{font-weight:700;color:var(--tse-accent)}
.tse-when.is-now{color:#fff;background:#e14d43;border-radius:3px;padding:0 6px}
.tse-sl{font-size:12px;margin-left:auto}
.tse-title{font-weight:600;font-size:15px;line-height:1.4;transition:color .15s}
.tse-link:hover .tse-title,.tse-link:focus .tse-title{color:var(--tse-accent)}
.tse-time{font-size:12px;opacity:.7;margin-top:2px}
.tse-desc{font-size:13px;opacity:.85;margin-top:5px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tse-read{font-size:12px;font-weight:600;color:var(--tse-accent);margin-top:6px}
.tse-thumb{flex:0 0 72px;height:56px;border-radius:6px;background:var(--tse-soft) center/cover no-repeat}
.tse-more{display:inline-block;margin-top:10px;font-size:13px;font-weight:600;color:var(--tse-accent)!important;text-decoration:none!important}
.tse--empty p{margin:0;font-size:13px;opacity:.7}

/* Cards — home page block */
.tse--cards .tse-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:20px}
.tse--cards .tse-link{position:relative;flex-direction:column;gap:0;padding:0;border:1px solid var(--tse-line);border-radius:8px;overflow:hidden;height:100%}
.tse--cards .tse-item:last-child .tse-link{border-bottom:1px solid var(--tse-line)}
.tse--cards .tse-thumb{flex:none;width:100%;height:auto;aspect-ratio:16/9;border-radius:0}
.tse--cards .tse-date{position:absolute;top:10px;left:10px;min-height:0;flex:none;width:58px;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.tse--cards .tse-body{padding:14px 16px 16px}
.tse--cards .tse-item:not(:has(.tse-thumb)) .tse-date{position:static;margin:14px 16px 0}
.tse--cards .tse-title{font-size:16px}
.tse--cards .tse-read{margin-top:auto;padding-top:10px}

/* Compact — inside an article */
.tse-inpost{margin:32px 0;padding:16px 18px;border:1px solid var(--tse-line);border-left:4px solid var(--tse-accent,#4db2ec);border-radius:6px;background:var(--tse-soft)}
.tse-inpost .td-block-title-wrap{margin-bottom:6px}
.tse--compact .tse-link{padding:9px 0;gap:10px}
.tse--compact .tse-date{flex-basis:54px;min-height:46px}
.tse--compact .tse-day{font-size:18px}
.tse--compact .tse-title{font-size:14.5px}
.tse--compact .tse-desc{-webkit-line-clamp:2}
.tse-heading{margin:0 0 10px}

@media (max-width:767px){
	.tse--cards .tse-list{grid-template-columns:1fr}
	.tse-inpost{padding:12px 14px}
}

/* Floating 🌌 button + popup */
.tse-fab-wrap{position:fixed;bottom:20px;z-index:9990;font-family:inherit}
.tse-fab--left{left:20px}
.tse-fab--right{right:20px}
.tse-fab{position:relative;display:inline-flex;align-items:center;gap:8px;height:48px;min-width:48px;padding:0 16px 0 12px;border:0;border-radius:24px;background:var(--tse-accent);color:#fff;font:inherit;font-size:14px;font-weight:600;line-height:1;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.28);transition:transform .15s,box-shadow .15s}
.tse-fab:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.32)}
.tse-fab:focus-visible{outline:3px solid rgba(0,0,0,.35);outline-offset:2px}
.tse-fab-icon{font-size:22px;line-height:1}
.tse-fab-badge{position:absolute;top:-5px;right:-5px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#e14d43;color:#fff;font-size:11px;font-weight:700;line-height:20px;text-align:center;box-shadow:0 0 0 2px #fff}
.tse-fab[aria-expanded="true"] .tse-fab-badge{display:none}
.tse-pop{position:absolute;bottom:62px;width:360px;max-width:calc(100vw - 40px);max-height:min(70vh,560px);display:flex;flex-direction:column;background:#fff;color:#111;border-radius:10px;box-shadow:0 12px 40px rgba(0,0,0,.3);overflow:hidden;transform-origin:bottom left;animation:tse-in .16s ease-out}
.tse-pop[hidden]{display:none}
.tse-fab--left .tse-pop{left:0}
.tse-fab--right .tse-pop{right:0;transform-origin:bottom right}
.tse-pop-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px 12px 16px;background:var(--tse-accent);color:#fff}
.tse-pop-title{font-weight:700;font-size:15px}
.tse-pop-close{width:32px;height:32px;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:22px;line-height:1;cursor:pointer;padding:0}
.tse-pop-close:hover{background:rgba(255,255,255,.3)}
.tse-pop-body{overflow-y:auto;padding:4px 16px;overscroll-behavior:contain}
.tse-pop-more{display:block;padding:11px 16px;border-top:1px solid var(--tse-line);font-size:13px;font-weight:600;color:var(--tse-accent)!important;text-decoration:none!important}
@keyframes tse-in{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
@media (max-width:767px){
	.tse-fab-wrap{bottom:14px}
	.tse-fab--left{left:14px}
	.tse-fab--right{right:14px}
	.tse-fab{padding:0;width:52px;height:52px;justify-content:center}
	.tse-fab-label{display:none}
	.tse-pop{position:fixed;left:8px!important;right:8px!important;bottom:76px;width:auto;max-width:none;max-height:72vh}
}
@media (prefers-reduced-motion:reduce){.tse-pop{animation:none}.tse-fab{transition:none}}
