
/* v1.2.0 — top-of-template hardening */
#main-container > .tmd-gfe,
.site-main > .tmd-gfe,
body > .tmd-gfe{
    margin-top:0 !important;
}
.tmd-gfe{
    clear:both;
    float:none;
    align-self:stretch;
    isolation:isolate;
}
.tmd-gfe + *{
    clear:both;
}

.tmd-gfe{
    --tmd-gold:#d3a32d;
    --tmd-gold-2:#f0c85d;
    --tmd-dark:#120d09;
    --tmd-dark-2:#241911;
    --tmd-cream:#fffaf0;
    --tmd-text:#181818;
    --tmd-muted:#6f6a62;
    --tmd-border:rgba(197,145,34,.28);
    width:100vw;
    max-width:100vw;
    margin:0 calc(50% - 50vw) 40px;
    padding:0;
    box-sizing:border-box;
    font-family:inherit;
    background:#fff;
    position:relative;
}
.tmd-gfe *{box-sizing:border-box}
.tmd-gfe__hero{
    position:relative;
    min-height:540px;
    padding:88px 0 76px;
    background:
        radial-gradient(circle at 12% 12%,rgba(226,178,57,.18),transparent 32%),
        linear-gradient(135deg,#120d09 0%,#1a120d 55%,#2a1d11 100%);
    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
    overflow:hidden;
}
.tmd-gfe__hero-overlay{
    position:absolute;
    inset:0;
    background:
        linear-gradient(180deg,rgba(8,6,5,.58),rgba(8,6,5,.82)),
        radial-gradient(circle at 20% 18%,rgba(222,173,52,.12),transparent 28%);
}
.tmd-gfe__hero::after{
    content:"";
    position:absolute;
    inset:auto auto -120px -120px;
    width:320px;
    height:320px;
    border-radius:50%;
    border:1px solid rgba(219,168,46,.14);
    box-shadow:0 0 0 36px rgba(219,168,46,.035),0 0 0 72px rgba(219,168,46,.02);
    pointer-events:none;
}
.tmd-gfe__shell{max-width:1180px;margin:0 auto;padding:0 18px;position:relative;z-index:1}
.tmd-gfe__shell--last{margin-top:28px;z-index:3}
.tmd-gfe__next{
    position:relative;
    overflow:hidden;
    border:1px solid rgba(230,188,81,.30);
    border-radius:30px;
    padding:36px;
    color:#fff;
    background:linear-gradient(180deg,rgba(17,12,9,.62),rgba(17,12,9,.80));
    backdrop-filter:blur(6px);
    box-shadow:0 20px 55px rgba(40,28,12,.18);
}
.tmd-gfe__next:before{content:none;display:none;}
.tmd-gfe__next-head{position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:26px}
.tmd-gfe__heading-wrap{min-width:0;flex:1}
.tmd-gfe__eyebrow{display:inline-flex;align-items:center;gap:9px;font-size:14px;font-weight:800;color:#f0c85d;margin-bottom:12px}
.tmd-gfe__eyebrow--dark{color:#a97608;margin-bottom:9px}
.tmd-gfe__pulse{width:9px;height:9px;border-radius:50%;background:#e24848;box-shadow:0 0 0 0 rgba(226,72,72,.55);animation:tmdGfePulse 1.8s infinite}
@keyframes tmdGfePulse{0%{box-shadow:0 0 0 0 rgba(226,72,72,.5)}70%{box-shadow:0 0 0 10px rgba(226,72,72,0)}100%{box-shadow:0 0 0 0 rgba(226,72,72,0)}}
.tmd-gfe__title{margin:0;color:#fff;font-size:clamp(28px,3vw,42px);line-height:1.33;font-weight:900;letter-spacing:-.02em}
.tmd-gfe__meta-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:17px}
.tmd-gfe__meta-pill{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid rgba(255,255,255,.11);border-radius:999px;color:#ded8d0;background:rgba(255,255,255,.055);font-size:13px;font-weight:700}
.tmd-gfe__meta-pill--date{color:#fff4d0;border-color:rgba(226,178,57,.22);background:rgba(226,178,57,.08)}
.tmd-gfe__icon{color:var(--tmd-gold-2);font-size:15px}
.tmd-gfe__chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-start;max-width:350px}
.tmd-gfe__chip{display:inline-flex;align-items:center;justify-content:center;padding:8px 11px;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap;border:1px solid transparent}
.tmd-gfe__chip--impact.is-high{background:rgba(205,57,57,.12);border-color:rgba(233,85,85,.25);color:#ffaaaa}
.tmd-gfe__chip--impact.is-medium{background:rgba(219,154,31,.12);border-color:rgba(239,180,57,.25);color:#ffd98a}
.tmd-gfe__chip--impact.is-low{background:rgba(78,157,116,.12);border-color:rgba(94,184,137,.25);color:#b8efd1}
.tmd-gfe__chip.is-up{background:rgba(56,160,103,.13);border-color:rgba(74,194,129,.25);color:#aef0c9}
.tmd-gfe__chip.is-down{background:rgba(205,57,57,.12);border-color:rgba(233,85,85,.25);color:#ffaaaa}
.tmd-gfe__chip.is-volatility{background:rgba(211,163,45,.12);border-color:rgba(240,200,93,.24);color:#f7dc8f}
.tmd-gfe__chip.is-neutral{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.1);color:#ddd}
.tmd-gfe__summary{position:relative;z-index:1;max-width:900px;margin:23px 0 0;color:#e7e0d9;font-size:15px;line-height:1.95}
.tmd-gfe__countdown-wrap{position:relative;z-index:1;margin-top:28px;padding-top:22px;border-top:1px solid rgba(255,255,255,.09)}
.tmd-gfe__countdown-label{margin-bottom:12px;color:#ddd1bc;font-size:13px;font-weight:800}
.tmd-gfe__countdown{display:flex;align-items:stretch;gap:10px;direction:ltr;justify-content:flex-end}
.tmd-gfe__time-box{min-width:112px;padding:14px 12px 12px;border-radius:17px;text-align:center;border:1px solid rgba(240,200,93,.22);background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035));box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.tmd-gfe__time-box strong{display:block;color:#f4cb60;font-size:31px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums}
.tmd-gfe__time-box span{display:block;margin-top:7px;color:#c8c0b7;font-size:12px;font-weight:700;direction:rtl}
.tmd-gfe__time-sep{display:flex;align-items:center;color:#876c36;font-size:24px;font-weight:900}
.tmd-gfe__expired{padding:15px 17px;border:1px solid rgba(240,200,93,.22);border-radius:14px;background:rgba(240,200,93,.08);color:#f6d983;font-weight:800;text-align:center}
.tmd-gfe__last{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:22px;padding:29px 31px;border:1px solid var(--tmd-border);border-radius:26px;background:linear-gradient(180deg,#fffdf8,#fff9ed);box-shadow:0 18px 40px rgba(78,55,14,.08)}
.tmd-gfe__last-main{min-width:0}
.tmd-gfe__last-title{margin:0;color:#1d1a17;font-size:24px;line-height:1.45;font-weight:900}
.tmd-gfe__last-date{margin-top:7px;color:#8b7b60;font-size:12px;font-weight:800}
.tmd-gfe__last-summary{margin:14px 0 0;color:#625d56;font-size:14.5px;line-height:1.9}
.tmd-gfe__reaction{display:inline-flex;align-items:center;gap:9px;margin-top:15px;padding:9px 12px;border-radius:12px;font-size:13px}
.tmd-gfe__reaction span{font-size:20px;font-weight:900}
.tmd-gfe__reaction.is-up{background:#ecf8f1;color:#1a7947}
.tmd-gfe__reaction.is-down{background:#fff0f0;color:#a63a3a}
.tmd-gfe__reaction.is-neutral{background:#f1f1ef;color:#66625c}
.tmd-gfe__metrics{display:grid;grid-template-columns:1fr;gap:9px;align-content:center}
.tmd-gfe__metric{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 16px;border:1px solid rgba(199,150,47,.18);border-radius:15px;background:#fff;box-shadow:0 5px 15px rgba(80,55,10,.035)}
.tmd-gfe__metric span{color:#777066;font-size:12px;font-weight:800}
.tmd-gfe__metric strong{color:#151515;font-size:18px;font-weight:900;direction:ltr;font-variant-numeric:tabular-nums}
@media (max-width:820px){
    .tmd-gfe{margin-bottom:24px}
    .tmd-gfe__hero{min-height:0;padding:62px 0 48px}
    .tmd-gfe__shell{padding:0 12px}
    .tmd-gfe__shell--last{margin-top:20px}
    .tmd-gfe__next{padding:25px 20px;border-radius:22px}
    .tmd-gfe__next-head{display:block}
    .tmd-gfe__chips{margin-top:18px;max-width:none}
    .tmd-gfe__countdown{gap:6px;justify-content:space-between;width:100%}
    .tmd-gfe__time-box{min-width:0;flex:1;padding:12px 5px 10px;border-radius:13px}
    .tmd-gfe__time-box strong{font-size:24px}
    .tmd-gfe__time-sep{font-size:17px}
    .tmd-gfe__last{grid-template-columns:1fr;padding:22px 19px;border-radius:20px}
}
@media (max-width:470px){
    .tmd-gfe__hero{padding-top:46px}
    .tmd-gfe__title{font-size:25px}
    .tmd-gfe__meta-pill{width:100%;justify-content:flex-start;border-radius:12px}
    .tmd-gfe__chip{white-space:normal;text-align:center}
    .tmd-gfe__time-box strong{font-size:21px}
    .tmd-gfe__time-box span{font-size:10px}
    .tmd-gfe__time-sep{display:none}
    .tmd-gfe__countdown{gap:5px}
    .tmd-gfe__last-title{font-size:20px}
}
@media (prefers-reduced-motion:reduce){.tmd-gfe__pulse{animation:none}}

/* v1.4.0 — requested visual refinements */
.tmd-gfe__countdown-wrap{
    text-align:center;
}

.tmd-gfe__countdown-label{
    text-align:center;
}

.tmd-gfe__countdown{
    justify-content:center;
    margin-inline:auto;
}

.tmd-gfe__last-title{
    color:#fff;
}

.tmd-gfe__eyebrow--dark{
    color:#f0c85d;
}

.tmd-gfe__last-date{
    color:#f7dc8f;
}

.tmd-gfe__last-summary{
    color:#e7e0d9;
}

.tmd-gfe__metric{
    background:#00000000;
}

.tmd-gfe__metric span{
    color:#ffffff;
}

.tmd-gfe__metric strong{
    color:#ffd052;
}

.tmd-gfe__last{
    background:#0000ff00;
}

/* v1.5.0 — reaction indicator refinements */
.tmd-gfe__reaction{
    display:inline-flex;
    align-items:center;
    gap:9px;
    margin-top:-4px;
    padding:0;
    border-radius:0;
    font-size:13px;
}

.tmd-gfe__reaction.is-up{
    background:#ecf8f100;
    color:#1a7947;
}

.tmd-gfe__reaction.is-down{
    background:transparent;
    color:#a63a3a;
}

.tmd-gfe__reaction.is-neutral{
    background:transparent;
    color:#f0c85d;
}

/* v1.6.0 — unified reaction styling + wavy fluctuation icon */
.tmd-gfe__reaction{
    display:inline-flex;
    align-items:center;
    gap:9px;
    margin-top:-4px;
    padding:0;
    border-radius:0;
    font-size:13px;
}

.tmd-gfe__reaction.is-up{
    background:#ecf8f100;
    color:#1a7947;
}

.tmd-gfe__reaction.is-down{
    background:transparent;
    color:#a63a3a;
}

.tmd-gfe__reaction.is-neutral{
    background:transparent;
    color:#f0c85d;
}

.tmd-gfe__reaction.is-neutral span,
.tmd-gfe__reaction.is-neutral strong{
    color:#f0c85d;
}

.tmd-gfe__reaction.is-neutral span{
    font-size:24px;
    line-height:1;
    font-weight:900;
}

/* v1.7.0 — fluctuation icon only */
.tmd-gfe__reaction.is-neutral span{
    margin-left:1px;
    margin-top:-19px;
    font-size:32px;
}

/* v1.9.0 — rise/fall colors */
.tmd-gfe__reaction.is-up,
.tmd-gfe__reaction.is-up span,
.tmd-gfe__reaction.is-up strong{
    color:#00d766;
}

.tmd-gfe__reaction.is-down,
.tmd-gfe__reaction.is-down span,
.tmd-gfe__reaction.is-down strong{
    color:#ff0000;
}

/* v1.12.0 — pending-results state + safe rich-description links */
.tmd-gfe__pending-message{
    position:relative;
    z-index:1;
    margin:18px auto 0;
    max-width:760px;
    padding:13px 16px;
    border:1px solid rgba(240,200,93,.24);
    border-radius:14px;
    background:rgba(211,163,45,.09);
    color:#f7dc8f;
    font-size:14px;
    font-weight:800;
    line-height:1.8;
    text-align:center;
}

.tmd-gfe__pending-message[hidden],
.tmd-gfe__countdown-wrap[hidden]{
    display:none !important;
}

.tmd-gfe__summary p,
.tmd-gfe__last-summary p{
    margin:0 0 8px;
}

.tmd-gfe__summary p:last-child,
.tmd-gfe__last-summary p:last-child{
    margin-bottom:0;
}

.tmd-gfe__summary ul,
.tmd-gfe__summary ol,
.tmd-gfe__last-summary ul,
.tmd-gfe__last-summary ol{
    margin:8px 0;
    padding-inline-start:22px;
}

.tmd-gfe__summary a,
.tmd-gfe__last-summary a{
    color:#f0c85d;
    font-weight:800;
    text-decoration:underline;
    text-underline-offset:3px;
}

.tmd-gfe__summary a:hover,
.tmd-gfe__summary a:focus,
.tmd-gfe__last-summary a:hover,
.tmd-gfe__last-summary a:focus{
    color:#ffd86c;
    text-decoration-thickness:2px;
}
