/* SRT-9 / FXCIPI v27 final polish */
:root{--v27-gold:#f1c75b;--v27-gold2:#fff0aa;--v27-blue:#45b8ff;--v27-mint:#32e0aa;--v27-deep:#07090d;--v27-panel:#11151d;--v27-line:rgba(255,255,255,.10)}

/* shared richer blocks */
.promo-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.promo-tile{position:relative;min-height:260px;border-radius:22px;overflow:hidden;border:1px solid var(--line);background:#0d1118;box-shadow:0 18px 42px rgba(0,0,0,.28)}
.promo-tile img{width:100%;height:100%;min-height:260px;object-fit:cover;transition:transform .45s ease,filter .45s ease}
.promo-tile::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 32%,rgba(2,4,8,.92));pointer-events:none}
.promo-tile .promo-copy{position:absolute;z-index:2;left:18px;right:18px;bottom:18px}
.promo-tile .promo-copy span{display:inline-flex;padding:6px 9px;border-radius:999px;background:rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.14);font-size:10px;font-weight:900;letter-spacing:.08em}
.promo-tile .promo-copy strong{display:block;margin-top:8px;font-size:19px;line-height:1.25}
.promo-tile:hover img{transform:scale(1.045);filter:brightness(1.08)}
.dashboard-grid{display:grid;grid-template-columns:1.15fr .85fr .85fr;gap:14px}
.dashboard-card{padding:20px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018))}
.dashboard-card h3{margin:0 0 12px;font-size:20px}.dashboard-card p{margin:0;color:var(--muted);font-size:14px;line-height:1.7}
.dashboard-links{display:grid;gap:9px;margin-top:14px}.dashboard-links a{display:flex;justify-content:space-between;gap:12px;padding:12px 13px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.025);font-size:13px;font-weight:800}.dashboard-links a span{color:var(--muted);font-weight:600}
.education-hub{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.edu-card{padding:20px;border-radius:21px;border:1px solid var(--line);background:linear-gradient(180deg,rgba(10,29,54,.92),rgba(5,12,22,.98));min-height:190px}.edu-card .edu-no{font-size:30px;font-weight:950;color:rgba(69,184,255,.45)}.edu-card h3{margin:8px 0 8px;font-size:19px}.edu-card p{margin:0 0 16px;color:var(--muted);font-size:13px;line-height:1.7}
.popup-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px;background:rgba(5,7,10,.95);border-top:1px solid rgba(255,255,255,.12)}.popup-actions button{min-height:42px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.06);color:#fff;font:inherit;font-size:13px;font-weight:850;cursor:pointer}.popup-actions button.primary{background:linear-gradient(135deg,#f7d97d,#c7972b);color:#1d1404;border:0}

/* legacy SRT board/article pages: match premium gold dashboard */
body.srt-legacy-page{--green:var(--v27-gold);--gold:var(--v27-gold);--blue:#80cfff;--panel:#12100d;--panel2:#19140d;--muted:#b7ad9d;background:radial-gradient(circle at 10% 0,rgba(241,199,91,.13),transparent 25%),radial-gradient(circle at 92% 4%,rgba(145,87,27,.11),transparent 24%),linear-gradient(180deg,#060605,#0c0a08 44%,#060605)}
body.srt-legacy-page .topbar{background:linear-gradient(90deg,rgba(241,199,91,.20),rgba(118,76,22,.08),rgba(241,199,91,.12))}
body.srt-legacy-page .notice .flow b,body.srt-legacy-page .inline-link{color:#ffe39a}
body.srt-legacy-page header{background:rgba(8,7,5,.91);border-bottom-color:rgba(241,199,91,.13)}
body.srt-legacy-page .menu a:hover,body.srt-legacy-page .menu a.active{color:#ffdf85}
body.srt-legacy-page .btn-main,body.srt-legacy-page .mobilebar a.join,body.srt-legacy-page .quick a.join{background:linear-gradient(135deg,#fff0aa,#d9a735);color:#201503}
body.srt-legacy-page .board-hero .box,body.srt-legacy-page .board-list,body.srt-legacy-page .sidebar-box,body.srt-legacy-page .sidebar-join,body.srt-legacy-page .article,body.srt-legacy-page .board-content-intro{background:linear-gradient(180deg,rgba(28,22,13,.96),rgba(11,10,8,.99));border-color:rgba(241,199,91,.15)}
body.srt-legacy-page .board-hero .tag,body.srt-legacy-page .eyebrow{color:#ffdf85;background:rgba(241,199,91,.10);border-color:rgba(241,199,91,.23)}
body.srt-legacy-page .board-content-intro h2,body.srt-legacy-page .rich-gold h2{color:#ffdc78}
body.srt-legacy-page .board-table th{color:#d7bd7b}body.srt-legacy-page .board-table tr:hover td{background:rgba(241,199,91,.035)}
body.srt-legacy-page .tab,body.srt-legacy-page .searchbox input,body.srt-legacy-page .pager a{border-color:rgba(241,199,91,.13)}
body.srt-legacy-page .quick a{background:rgba(15,12,8,.95);border-color:rgba(241,199,91,.14)}
body.srt-legacy-page .footer{border-top-color:rgba(241,199,91,.12)}
body.srt-legacy-page .nav-actions:empty{display:none}

/* legacy FX pages: denser blue research dashboard */
body.fx-legacy-page{background:radial-gradient(circle at 12% 0,rgba(40,143,255,.12),transparent 25%),linear-gradient(180deg,#040914,#07101c 46%,#030811)}
body.fx-legacy-page .fx-r-header,body.fx-legacy-page .fx-research-header{box-shadow:0 10px 35px rgba(0,0,0,.22)}
body.fx-legacy-page .fx-r-panel,body.fx-legacy-page .fx-r-item,body.fx-legacy-page .fx-article,body.fx-legacy-page .board-content-intro{box-shadow:0 16px 42px rgba(0,0,0,.16)}

/* header cleanup after login/signup removal */
.nav-wrap .nav-actions.only-controls,.fx-r-actions.only-controls{margin-left:auto}

/* mobile refinements */
@media(max-width:980px){.promo-gallery,.education-hub{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr 1fr}.dashboard-grid .dashboard-card:first-child{grid-column:1/-1}}
@media(max-width:720px){.promo-gallery,.education-hub,.dashboard-grid{grid-template-columns:1fr}.dashboard-grid .dashboard-card:first-child{grid-column:auto}.promo-tile,.promo-tile img{min-height:220px}.popup-card{max-height:90vh;overflow:auto}.popup-actions{position:sticky;bottom:0}.board-table{display:block;overflow-x:auto;white-space:nowrap}.board-toolbar{align-items:stretch}.searchbox{width:100%}.searchbox input{flex:1}.board-content-points{grid-template-columns:1fr!important}.fx-r-hero-side{grid-template-columns:1fr!important}}
@media(max-width:420px){.popup-actions{grid-template-columns:1fr}.brand-sub{display:none}.headline{font-size:35px!important}.headline .accent{font-size:24px!important}}

/* v27.1 image-ratio and responsive corrections */
.srt-body .hero-poster-card{height:auto;padding:0;align-self:stretch;display:flex;flex-direction:column;gap:14px}
.srt-body .hero-poster-frame{width:100%;aspect-ratio:2/3;max-height:540px;background:#090909}
.srt-body .hero-poster-frame img{width:100%;height:100%;object-fit:contain;object-position:center}
.srt-body .hero-poster-card .info-list{grid-template-columns:1fr 1fr;margin-top:0}
.quick-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.quick-feature-grid .feature-card img{height:170px;object-fit:contain;background:#090909}
.promo-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.promo-tile{min-height:0;aspect-ratio:3/1;background:#080808}
.promo-tile picture{display:block;width:100%;height:100%}
.promo-tile img{width:100%;height:100%;min-height:0;object-fit:contain;object-position:center;transition:transform .35s ease,filter .35s ease}
.promo-tile::after{display:none}
.promo-tile:hover img{transform:scale(1.015);filter:brightness(1.04)}
.event-feature-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.event-feature-grid .feature-card img{height:180px;object-fit:contain;background:#080808}
.fx-body .brand img{height:38px;background:#f7fbff;padding:7px 10px;border-radius:10px;box-shadow:0 5px 18px rgba(0,0,0,.22)}
.fx-platform-preview{width:100%;aspect-ratio:3/2;background:#040912}
.fx-platform-preview img{width:100%;height:100%;object-fit:contain;object-position:center}
.fx-market-grid{grid-template-columns:1.05fr .95fr .72fr}
.fx-product-cards .product-card img{height:auto;aspect-ratio:16/9;object-fit:cover;background:#040912;display:block}
.popup-card{max-height:90vh;max-width:min(680px,92vw);display:flex;flex-direction:column;background:#05070a}
.popup-card>a{display:flex;align-items:center;justify-content:center;min-height:0;overflow:hidden}
.popup-card>a img{width:auto;max-width:100%;height:auto;max-height:calc(90vh - 64px);object-fit:contain;margin:auto}
.popup-card>.popup-close{z-index:5}
.popup-actions{flex:0 0 auto}
@media(max-width:1200px){
  .fx-market-grid{grid-template-columns:1fr!important}
  .event-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:980px){
  .srt-body .hero-poster-card{max-width:560px;width:100%;margin:0 auto}
  .srt-body .hero-poster-card .info-list{grid-template-columns:1fr 1fr}
}
@media(max-width:720px){
  .promo-gallery{grid-template-columns:1fr}
  .promo-tile{aspect-ratio:2/3;border-radius:18px}
  .quick-feature-grid,.event-feature-grid{grid-template-columns:1fr!important}
  .quick-feature-grid .feature-card img{height:240px}
  .event-feature-grid .feature-card img{height:250px}
  .srt-body .hero-poster-frame{max-height:none}
  .srt-body .hero-poster-card .info-list{grid-template-columns:1fr}
  .fx-market-grid{display:grid!important;grid-template-columns:1fr!important}
  .fx-product-cards .product-card img{aspect-ratio:16/9}
  .popup-overlay{padding:12px}
  .popup-card{max-width:96vw;max-height:94vh}
  .popup-card>a img{max-height:calc(94vh - 108px)}
}

.fx-body .news-card img{aspect-ratio:16/9;height:auto;object-fit:cover;display:block;background:#040912}
.fx-body .product-card img,.fx-body .news-card img{border-bottom:1px solid rgba(226,174,61,.16)}
