/* tebp.css v1.4.0 (scoped + theme-friendly + ultra front layer) */
.tebp-root{position:relative;z-index:9999;isolation:isolate}
.tebp-root *{box-sizing:border-box}
.tebp-root img{max-width:100%;height:auto}

/* Standalone button shortcode */
.tebp-btnlauncher{all:unset!important;display:inline-flex!important;align-items:center!important;gap:10px!important;padding:10px 14px!important;border-radius:9999px!important;cursor:pointer!important;user-select:none!important;background:rgba(12,12,14,.88)!important;color:#fff!important;border:1px solid rgba(255,255,255,.18)!important;box-shadow:0 12px 26px rgba(0,0,0,.25)!important;line-height:1!important;-webkit-appearance:none!important;appearance:none!important}
.tebp-btnlauncher:hover{transform:translateY(-1px)}
.tebp-btnlauncher:active{transform:translateY(0)}
.tebp-btnlauncher:focus{outline:2px solid rgba(255,215,119,.55);outline-offset:2px}
.tebp-btn-icon{display:block!important;border-radius:9999px!important;object-fit:cover!important}
.tebp-btn-fallback{width:28px;height:28px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.10);font-weight:900}
.tebp-btn-label{font-weight:900;font-size:13.5px;letter-spacing:.2px}

/* Floating launcher */
.tebp-launcher{all:unset!important;position:fixed!important;right:16px!important;bottom:72px!important;width:22px!important;height:22px!important;border-radius:9999px!important;padding:0!important;margin:0!important;cursor:pointer!important;user-select:none!important;display:none!important;align-items:center!important;justify-content:center!important;background:rgba(12,12,14,.88)!important;color:#fff!important;border:1px solid rgba(255,255,255,.18)!important;box-shadow:0 12px 26px rgba(0,0,0,.35)!important;line-height:1!important;overflow:hidden!important;z-index:9998!important;-webkit-appearance:none!important;appearance:none!important}
.tebp-launcher:hover{transform:translateY(-1px)}
.tebp-launcher:active{transform:translateY(0)}
.tebp-launcher-icon{width:14px!important;height:14px!important;border-radius:9999px!important;object-fit:cover!important;display:block!important}
.tebp-launcher-fallback{font-weight:900!important;font-size:12px!important;line-height:1!important}
.tebp-root.tebp-has-launcher .tebp-launcher{display:flex!important}

/* Overlay + modal */
.tebp-overlay{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.62);backdrop-filter:saturate(120%) blur(3px);z-index:2147483647}
.tebp-root.tebp-open{z-index:2147483647}
.tebp-root.tebp-open .tebp-overlay{display:flex!important}

/* Theme vars from JS:
   --tebp-surface, --tebp-text, --tebp-link, --tebp-line, --tebp-chip, --tebp-chip2
*/
.tebp-modal{z-index:2147483647;width:min(var(--tebp-wd,60vw),var(--tebp-maxw,980px));max-height:var(--tebp-maxh-d,86vh);border-radius:18px;overflow:hidden;border:1px solid var(--tebp-line,rgba(0,0,0,.14));background:var(--tebp-surface,#fff);color:var(--tebp-text,#111);box-shadow:0 26px 70px rgba(0,0,0,.55);position:relative;display:flex;flex-direction:column}
@media (max-width:1023px){.tebp-modal{width:min(var(--tebp-wt,80vw),96vw);max-height:var(--tebp-maxh-t,90vh);border-radius:16px}}
@media (max-width:720px){.tebp-modal{width:min(var(--tebp-wm,92vw),96vw);max-height:var(--tebp-maxh-m,92vh);border-radius:16px}}
.tebp-modal::before{content:"";display:block;width:100%;aspect-ratio:var(--tebp-ar,4 / 3)}

/* Header: navy + Cinzel title */
.tebp-header{position:absolute;top:0;left:0;right:0;height:52px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;padding:8px 10px;background:#0b1f3a;z-index:3;border-bottom:1px solid rgba(255,255,255,.12)}
.tebp-brand{display:flex;align-items:center;justify-content:flex-start;justify-self:start;min-width:0}
.tebp-brand-logo{height:22px;width:auto;max-width:180px;display:block;filter:drop-shadow(0 6px 14px rgba(0,0,0,.35))}
@media (max-width:720px){.tebp-brand-logo{height:18px;max-width:140px}}
.tebp-header-title{justify-self:center;color:#fff;font-weight:700;font-size:15px;text-align:center;padding:0 10px;max-width:62vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:"Cinzel",ui-serif,Georgia,"Times New Roman",serif;letter-spacing:.2px}
@media (max-width:720px){.tebp-header-title{max-width:52vw}}
.tebp-close{all:unset;justify-self:end;width:38px;height:38px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.10);color:#fff;font-size:22px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.tebp-close:hover{background:rgba(255,255,255,.16)}

/* Body area */
.tebp-inner{position:absolute;inset:0;padding-top:52px;padding-bottom:var(--tebp-footpad,0px);overflow:hidden;display:flex;flex-direction:column}
.tebp-scrollarea{flex:1 1 auto;min-height:0;overflow:hidden;contain:content}
.tebp-inner.tebp-scroll .tebp-scrollarea{overflow:auto;-webkit-overflow-scrolling:touch}

/* Footer */
.tebp-footer{position:absolute;left:0;right:0;bottom:0;padding:10px 14px;border-top:1px solid var(--tebp-line,rgba(0,0,0,.14));background:rgba(0,0,0,.04);color:inherit;font-size:12.8px;line-height:1.4;z-index:2}
.tebp-footer p{margin:0}
.tebp-footer a{color:var(--tebp-link,currentColor);text-decoration:underline}

/* Content blocks */
.tebp-media{width:100%}
.tebp-thumb{width:100%;height:220px;object-fit:cover;display:block}
@media (max-width:720px){.tebp-thumb{height:170px}}
.tebp-body{padding:16px 16px 14px;display:flex;flex-direction:column;gap:10px;min-height:0}
.tebp-title{margin:0;font-size:18px;line-height:1.25;color:inherit}
.tebp-content{color:inherit;font-size:14.5px;line-height:1.55;overflow-wrap:anywhere}
.tebp-content p{margin:0 0 10px}
.tebp-content a{color:var(--tebp-link,currentColor);text-decoration:underline}
.tebp-content img{max-width:100%;height:auto}
.tebp-content table{max-width:100%;overflow:auto;display:block}

/* CTAs */
.tebp-cta{margin-top:auto;padding-top:6px}
.tebp-btn{all:unset;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:999px;border:1px solid var(--tebp-line,rgba(0,0,0,.14));background:var(--tebp-chip,rgba(0,0,0,.05));color:inherit;text-decoration:none;font-weight:900;cursor:pointer}
.tebp-btn:hover{filter:brightness(1.03)}
.tebp-btn-ghost{background:transparent}

/* Tabs (follow theme surface/text) */
.tebp-tabs{display:flex;flex-direction:column;min-height:0}
.tebp-tabs-nav{display:flex;gap:8px;padding:10px 12px 0;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.tebp-tab{all:unset;flex:0 0 auto;cursor:pointer;user-select:none;padding:8px 12px;border-radius:999px;border:1px solid var(--tebp-line,rgba(0,0,0,.14));color:inherit;background:var(--tebp-chip,rgba(0,0,0,.05));font-weight:900;font-size:12.6px;white-space:nowrap}
.tebp-tab.tebp-active{border-color:rgba(11,31,58,.45);background:var(--tebp-chip2,rgba(11,31,58,.12))}
.tebp-tabs-panels{padding:12px;min-height:0}
.tebp-panel{display:none}
.tebp-panel.tebp-active{display:block}
.tebp-panel,.tebp-panel *{max-width:100%}

/* Scroll lock */
.tebp-no-scroll{overflow:hidden!important}

/* Inline circular button shortcode */
.tebp-iconbtn{all:unset!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:40px!important;height:40px!important;border-radius:9999px!important;padding:0!important;margin:0!important;cursor:pointer!important;user-select:none!important;background:rgba(12,12,14,.88)!important;color:#fff!important;border:1px solid rgba(255,255,255,.18)!important;box-shadow:0 10px 22px rgba(0,0,0,.22)!important;line-height:1!important;overflow:hidden!important;-webkit-appearance:none!important;appearance:none!important}
.tebp-iconbtn:hover{transform:translateY(-1px)}
.tebp-iconbtn:active{transform:translateY(0)}
.tebp-iconbtn:focus{outline:2px solid rgba(255,215,119,.55);outline-offset:2px}
.tebp-iconbtn .tebp-btn-icon{display:block!important;border-radius:9999px!important;object-fit:cover!important}
.tebp-iconbtn .tebp-btn-fallback{width:22px;height:22px;font-size:12px}
