/*
Theme Name: Tempest
Theme URI:
Author: Tempest Grid
Author URI:
Description: A dark storm-grid crypto prop-trading theme with a mega-dropdown markets menu, magazine-lead hero, outline cards, a live market console and a sky-blue / slate palette.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tempest
Tags: dark, finance, storm, one-column, custom-logo
*/

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* === TOKENS === */
:root{
	--tem-bg:#0c1218;
	--tem-panel:#16202b;
	--tem-panel-2:#101822;
	--tem-line:rgba(56,189,248,.16);
	--tem-line-soft:rgba(56,189,248,.08);
	--tem-acc1:#38bdf8;
	--tem-acc2:#94a3b8;
	--tem-text:#e4ecf3;
	--tem-muted:#9fb0c0;
	--tem-up:#34d399;
	--tem-down:#fb7185;
	--tem-grad:linear-gradient(120deg,#38bdf8,#0ea5e9);
	--tem-font-display:'Chakra Petch','PingFang SC','Microsoft YaHei','Noto Sans CJK SC',sans-serif;
	--tem-font-body:'Source Sans 3','PingFang SC','Microsoft YaHei','Noto Sans CJK SC',sans-serif;
	--tem-radius:14px;
	--tem-glow:rgba(56,189,248,.22);
}

/* === RESET & BASE === */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body.tem-body{font-family:var(--tem-font-body);background:var(--tem-bg);color:var(--tem-text);line-height:1.65;min-height:100vh;overflow-x:hidden;-webkit-font-smoothing:antialiased}
/* storm-grid atmosphere: fixed grid mesh + drifting cloud wash */
body.tem-body::before{content:'';position:fixed;inset:0;z-index:0;pointer-events:none;
	background-image:linear-gradient(rgba(56,189,248,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(56,189,248,.045) 1px,transparent 1px);
	background-size:64px 64px;opacity:.7}
body.tem-body::after{content:'';position:fixed;inset:0;z-index:0;pointer-events:none;
	background:radial-gradient(ellipse 62% 44% at 82% 4%,rgba(56,189,248,.13),transparent 70%),radial-gradient(ellipse 54% 46% at 8% 92%,rgba(148,163,184,.12),transparent 72%)}
img{max-width:100%;height:auto;display:block}
a{color:var(--tem-acc1);text-decoration:none;transition:color .2s}
a:hover{color:var(--tem-text)}
ul,ol{list-style:none}
button{cursor:pointer;border:none;background:none;font:inherit;color:inherit}

/* === LAYOUT === */
.tem-container{width:100%;max-width:1220px;margin:0 auto;padding:0 24px}
.tem-site{position:relative;z-index:1}
.tem-main{padding:56px 0 84px}

/* === SKIP LINK === */
.tem-skip{position:absolute;top:-100%;left:16px;z-index:9999;padding:8px 16px;background:var(--tem-acc1);color:#0c1218;border-radius:4px;font-size:14px;font-weight:600}
.tem-skip:focus{top:8px}

/* === KEYFRAMES === */
@keyframes tem-glowpulse{0%,100%{opacity:.5}50%{opacity:1}}
@keyframes tem-drift{0%{transform:translateY(0)}50%{transform:translateY(-12px)}100%{transform:translateY(0)}}
@keyframes tem-rowflash{0%{background:rgba(56,189,248,.16)}100%{background:transparent}}
@keyframes tem-blink{0%,100%{opacity:1}50%{opacity:.2}}
@keyframes tem-flicker{0%,100%{opacity:.16}45%{opacity:.5}55%{opacity:.2}}

/* === UTILITY === */
.tem-grad-text{background:var(--tem-grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
.tem-up{color:var(--tem-up)}
.tem-down{color:var(--tem-down)}
.tem-dot{width:7px;height:7px;border-radius:50%;background:var(--tem-up);box-shadow:0 0 10px var(--tem-up);animation:tem-glowpulse 1.8s ease-in-out infinite;flex-shrink:0;display:inline-block}

/* outline cards (card style C3): 1px border, accent on hover, no gradient border */
.tem-postcard,.tem-feat-card,.tem-prod-card,.tem-price-card,.tem-data__item,.tem-content-card{border:1px solid var(--tem-line);transition:border-color .3s,transform .3s,box-shadow .3s}
.tem-postcard:hover,.tem-feat-card:hover,.tem-prod-card:hover,.tem-price-card:hover{border-color:var(--tem-acc1)}

/* === REVEAL === */
.tem-reveal{opacity:0;transform:translateY(22px);transition:opacity .6s ease,transform .6s ease}
.tem-reveal--visible{opacity:1;transform:translateY(0)}

/* === HEADER / NAV === */
.tem-header{position:sticky;top:0;z-index:1000;padding:14px 0;background:rgba(12,18,24,.66);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid transparent;transition:background .3s,border-color .3s}
.tem-header--scrolled{background:rgba(12,18,24,.92);border-bottom-color:var(--tem-line)}
.tem-header__inner{display:flex;align-items:center;justify-content:space-between;gap:24px}

/* Brand */
.tem-brand{display:flex;align-items:center;gap:11px;text-decoration:none}
.tem-brand__mark{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;background:var(--tem-grad);color:#0c1218;box-shadow:0 0 18px var(--tem-glow)}
.tem-brand__mark .tem-icon{width:21px;height:21px}
.tem-brand__name{color:var(--tem-text);font-family:var(--tem-font-display);font-size:19px;font-weight:700;letter-spacing:.2px}

/* Inline nav + mega trigger */
.tem-nav{display:flex;align-items:center;gap:26px}
.tem-nav__list{display:flex;align-items:center;gap:26px}
.tem-nav__list li a,.tem-nav__item a{color:var(--tem-text);font-size:14.5px;font-weight:600;opacity:.82;transition:opacity .2s,color .2s}
.tem-nav__list li a:hover,.tem-nav__item a:hover{opacity:1;color:var(--tem-acc1)}

/* === MEGA DROPDOWN (nav N7) === */
.tem-megawrap{position:static}
.tem-megawrap__trigger{display:inline-flex;align-items:center;gap:7px;color:var(--tem-text);font-family:var(--tem-font-body);font-size:14.5px;font-weight:600;padding:8px 4px;opacity:.82;transition:opacity .2s,color .2s}
.tem-megawrap__trigger .tem-icon{width:16px;height:16px;transition:transform .3s}
.tem-megawrap--open .tem-megawrap__trigger{opacity:1;color:var(--tem-acc1)}
.tem-megawrap--open .tem-megawrap__trigger .tem-icon{transform:rotate(180deg)}
.tem-mega{position:absolute;left:0;right:0;top:100%;background:var(--tem-panel);border-top:1px solid var(--tem-line);border-bottom:1px solid var(--tem-line);box-shadow:0 26px 64px rgba(0,0,0,.5);opacity:0;visibility:hidden;transform:translateY(-10px);transition:opacity .28s ease,transform .28s ease,visibility .28s}
.tem-megawrap--open .tem-mega{opacity:1;visibility:visible;transform:translateY(0)}
.tem-mega__inner{display:grid;grid-template-columns:repeat(3,1fr) 1.25fr;gap:34px;padding:34px 24px}
.tem-mega__heading{display:flex;align-items:center;gap:9px;font-family:var(--tem-font-display);font-size:13px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--tem-acc1);margin-bottom:16px}
.tem-mega__ic{display:flex}
.tem-mega__ic .tem-icon{width:17px;height:17px}
.tem-mega__links li{margin-bottom:11px}
.tem-mega__links a{font-size:14px;color:var(--tem-muted);transition:color .2s,padding-left .2s}
.tem-mega__links a:hover{color:var(--tem-text);padding-left:5px}
.tem-mega__feat{background:var(--tem-panel-2);border:1px solid var(--tem-line);border-radius:var(--tem-radius);padding:24px}
.tem-mega__feat-kicker{font-size:11px;letter-spacing:1.6px;text-transform:uppercase;color:var(--tem-acc2);margin-bottom:10px;display:block}
.tem-mega__feat-title{font-family:var(--tem-font-display);font-size:19px;font-weight:700;color:var(--tem-text);margin-bottom:10px}
.tem-mega__feat-desc{font-size:13.5px;color:var(--tem-muted);line-height:1.7;margin-bottom:18px}

/* Header actions */
.tem-header__actions{display:flex;align-items:center;gap:12px}
.tem-header__search{color:var(--tem-text);opacity:.7;transition:opacity .2s;display:flex;padding:6px;border-radius:9px;border:1px solid var(--tem-line)}
.tem-header__search:hover{opacity:1;color:var(--tem-acc1);border-color:var(--tem-acc1)}
.tem-header__search .tem-icon{width:18px;height:18px}

/* Buttons */
.tem-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 22px;border-radius:10px;font-family:var(--tem-font-display);font-size:14px;font-weight:600;text-decoration:none;transition:transform .18s,box-shadow .18s,background .18s,border-color .18s,color .18s;white-space:nowrap;border:1px solid transparent}
.tem-btn:hover{transform:translateY(-2px)}
.tem-btn--cta,.tem-btn--pill{background:var(--tem-grad);color:#0c1218;box-shadow:0 6px 20px var(--tem-glow)}
.tem-btn--cta:hover,.tem-btn--pill:hover{box-shadow:0 10px 30px rgba(56,189,248,.4);color:#0c1218}
.tem-btn--ghost{border-color:var(--tem-line);color:var(--tem-text);background:rgba(22,32,43,.55)}
.tem-btn--ghost:hover{border-color:var(--tem-acc1);color:var(--tem-acc1)}
.tem-btn--outline{border:1px solid var(--tem-line);color:var(--tem-text)}
.tem-btn--outline:hover{border-color:var(--tem-acc1);color:var(--tem-acc1)}
.tem-btn--xs{padding:6px 14px;font-size:12.5px;border-radius:8px}
.tem-btn--sm{padding:8px 16px;font-size:13px;border-radius:9px}
.tem-btn--lg{padding:15px 32px;font-size:16px}
.tem-btn--block{width:100%}
.tem-btn .tem-icon{width:17px;height:17px}

/* Burger (3 bars) */
.tem-burger{display:none;flex-direction:column;gap:5px;padding:8px}
.tem-burger__bar{display:block;width:24px;height:2px;background:var(--tem-text);border-radius:2px;transition:transform .3s,opacity .3s}
.tem-burger--active .tem-burger__bar:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.tem-burger--active .tem-burger__bar:nth-child(2){opacity:0}
.tem-burger--active .tem-burger__bar:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}

/* === MOBILE DRAWER === */
.tem-drawer{position:fixed;top:0;right:0;bottom:0;width:min(88vw,360px);z-index:1300;background:var(--tem-panel-2);border-left:1px solid var(--tem-line);transform:translateX(100%);transition:transform .34s ease,visibility .34s;overflow-y:auto;padding:84px 24px 34px;visibility:hidden}
.tem-drawer--open{transform:translateX(0);visibility:visible}
.tem-nav__list--drawer,.tem-drawer .tem-nav__list--fallback{flex-direction:column;align-items:stretch;gap:0;margin-bottom:20px}
.tem-nav__list--drawer li,.tem-drawer .tem-nav__list--fallback li{border-bottom:1px solid var(--tem-line-soft)}
.tem-nav__list--drawer li a,.tem-drawer .tem-nav__list--fallback li a{display:block;padding:14px 2px;font-family:var(--tem-font-display);font-size:18px;font-weight:600;color:var(--tem-text);opacity:1}
.tem-drawer__mega{display:flex;flex-direction:column;gap:22px;padding:20px 0;border-top:1px solid var(--tem-line);border-bottom:1px solid var(--tem-line);margin-bottom:22px}
.tem-drawer__heading{font-family:var(--tem-font-display);font-size:12px;letter-spacing:1px;text-transform:uppercase;color:var(--tem-acc1);margin-bottom:12px}
.tem-drawer__links{display:grid;grid-template-columns:1fr 1fr;gap:9px 14px}
.tem-drawer__links a{font-size:13.5px;color:var(--tem-muted)}
.tem-drawer__links a:hover{color:var(--tem-text)}
.tem-drawer__foot{display:flex;flex-direction:column;gap:12px}

/* === HERO (magazine lead H3) === */
.tem-hero{position:relative;border-bottom:1px solid var(--tem-line)}
.tem-hero__media{position:relative;background-size:cover;background-position:center;min-height:clamp(420px,62vh,600px);display:flex;align-items:center;overflow:hidden}
.tem-hero__scrim{position:absolute;inset:0;background:linear-gradient(90deg,rgba(12,18,24,.92),rgba(12,18,24,.6) 55%,rgba(12,18,24,.24))}
.tem-hero__scrim::after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 40% 60% at 88% 30%,rgba(56,189,248,.14),transparent 70%);animation:tem-flicker 6s ease-in-out infinite}
.tem-hero__content{position:relative;z-index:2;padding:64px 24px;width:100%}
.tem-hero__badge{display:inline-flex;align-items:center;gap:9px;font-size:12px;letter-spacing:1.6px;text-transform:uppercase;color:var(--tem-acc1);background:rgba(56,189,248,.1);border:1px solid var(--tem-line);border-radius:999px;padding:6px 15px;margin-bottom:22px}
.tem-hero__dot{width:7px;height:7px;border-radius:50%;background:var(--tem-up);box-shadow:0 0 9px var(--tem-up);animation:tem-glowpulse 1.8s ease-in-out infinite;flex-shrink:0;display:inline-block}
.tem-hero__title{font-family:var(--tem-font-display);font-size:clamp(34px,6vw,66px);font-weight:700;line-height:1.08;letter-spacing:-.5px;margin-bottom:26px;max-width:16ch}
.tem-hero__cols{display:grid;grid-template-columns:1.4fr 1fr;gap:40px;align-items:start;max-width:1000px}
.tem-hero__lead{font-size:16.5px;color:var(--tem-muted);line-height:1.8}
.tem-hero__side{display:flex;flex-direction:column;gap:22px}
.tem-hero__ctas{display:flex;gap:14px;flex-wrap:wrap}
.tem-hero__trust{display:flex;flex-direction:column;gap:12px}
.tem-hero__trust li{display:flex;align-items:center;gap:10px;font-size:13.5px;color:var(--tem-text);opacity:.9}
.tem-hero__trust .tem-icon{width:18px;height:18px;color:var(--tem-acc1);flex-shrink:0}
.tem-hero__strip{background:var(--tem-panel-2);border-top:1px solid var(--tem-line)}
.tem-hero__strip-inner{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px}
.tem-heroline{display:flex;flex-direction:column;gap:3px;padding:18px 0;flex:1;min-width:120px}
.tem-heroline b{font-family:var(--tem-font-display);font-size:clamp(22px,3vw,30px);font-weight:700;color:var(--tem-text);letter-spacing:-.5px;line-height:1}
.tem-heroline span{font-size:12px;color:var(--tem-muted);letter-spacing:.4px}

/* === SECTION COMMON === */
.tem-section{padding:88px 0;position:relative}
.tem-section--alt{background:var(--tem-panel-2)}
.tem-section__eyebrow{font-size:12.5px;letter-spacing:2px;text-transform:uppercase;color:var(--tem-acc1);margin-bottom:12px;font-family:var(--tem-font-display)}
.tem-section__title{font-family:var(--tem-font-display);font-size:clamp(27px,3.8vw,40px);font-weight:700;letter-spacing:-.4px;margin-bottom:14px}
.tem-section__lead{font-size:16px;color:var(--tem-muted);max-width:620px;line-height:1.7}
.tem-section__head{margin-bottom:44px}
.tem-section__head--center{text-align:center}
.tem-section__head--center .tem-section__lead{margin:0 auto}

/* === FEATURES === */
.tem-features__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.tem-feat-card{padding:28px 24px;background:var(--tem-panel);border-radius:var(--tem-radius)}
.tem-feat-card:hover{transform:translateY(-6px);box-shadow:0 16px 40px rgba(0,0,0,.35)}
.tem-feat-card__img{width:56px;height:56px;border-radius:12px;object-fit:cover;margin-bottom:18px;background:var(--tem-panel-2);border:1px solid var(--tem-line)}
.tem-feat-card__title{font-family:var(--tem-font-display);font-size:17px;font-weight:700;margin-bottom:10px;color:var(--tem-text)}
.tem-feat-card__desc{font-size:13.5px;color:var(--tem-muted);line-height:1.7}

/* === DATA METRICS === */
.tem-data__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.tem-data__item{padding:34px 22px;text-align:center;background:var(--tem-panel);border-radius:var(--tem-radius)}
.tem-data__val{display:block;font-family:var(--tem-font-display);font-size:clamp(30px,4.2vw,44px);font-weight:700;letter-spacing:-1px;margin-bottom:8px;color:var(--tem-acc1)}
.tem-data__label{font-size:13.5px;color:var(--tem-muted)}

/* === MARKET CONSOLE === */
.tem-market{padding:88px 0}
.tem-console{border:1px solid var(--tem-line);border-radius:var(--tem-radius);background:var(--tem-panel);overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.45)}
.tem-console__bar{display:flex;align-items:center;gap:14px;padding:12px 18px;background:var(--tem-panel-2);border-bottom:1px solid var(--tem-line)}
.tem-console__tag{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--tem-muted);font-family:var(--tem-font-display)}
.tem-console__tag .tem-icon{width:15px;height:15px;color:var(--tem-acc1)}
.tem-console__live{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:11.5px;color:var(--tem-up);letter-spacing:1px}
.tem-console__scroll{overflow-x:auto}
.tem-ticker{width:100%;border-collapse:collapse}
.tem-ticker th{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:var(--tem-muted);text-align:left;padding:12px 18px;border-bottom:1px solid var(--tem-line);font-weight:600}
.tem-ticker td{padding:14px 18px;border-bottom:1px solid var(--tem-line-soft);font-size:14px;vertical-align:middle}
.tem-ticker tr:last-child td{border-bottom:none}
.tem-ticker tbody tr{transition:background .2s}
.tem-ticker tbody tr:hover{background:rgba(56,189,248,.06)}
.tem-ticker tbody tr.tem-ticker__row--flash{animation:tem-rowflash .9s ease}
.tem-ticker__sym{display:flex;align-items:center;gap:11px;font-family:var(--tem-font-display);font-weight:600;color:var(--tem-text)}
.tem-ticker__badge{width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;background:rgba(56,189,248,.14);color:var(--tem-acc1);border:1px solid var(--tem-line)}
.tem-ticker__name{display:block;font-family:var(--tem-font-body);font-size:11.5px;color:var(--tem-muted);font-weight:400}
.tem-ticker__num{font-weight:600;color:var(--tem-text)}
.tem-ticker__chg{font-weight:700}
.tem-ticker__cta .tem-btn{padding:7px 15px;font-size:12.5px}
.tem-ticker td.tem-ticker__cta{text-align:right}
.tem-market__foot{text-align:center;margin-top:30px}

/* === INSTRUMENTS === */
.tem-prod__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.tem-prod-card{background:var(--tem-panel);border-radius:var(--tem-radius);padding:30px 26px}
.tem-prod-card:hover{transform:translateY(-5px);box-shadow:0 16px 40px rgba(0,0,0,.35)}
.tem-prod-card__icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:rgba(56,189,248,.12);color:var(--tem-acc1);border:1px solid var(--tem-line);margin-bottom:18px}
.tem-prod-card__icon .tem-icon{width:24px;height:24px}
.tem-prod-card__tag{font-size:11px;letter-spacing:1.4px;text-transform:uppercase;color:var(--tem-acc2);margin-bottom:8px;display:block}
.tem-prod-card__title{font-family:var(--tem-font-display);font-size:20px;font-weight:700;margin-bottom:10px;color:var(--tem-text)}
.tem-prod-card__desc{font-size:14px;color:var(--tem-muted);line-height:1.7;margin-bottom:18px}
.tem-prod-card__list{margin-bottom:22px}
.tem-prod-card__list li{display:flex;align-items:center;gap:10px;font-size:13.5px;color:var(--tem-text);opacity:.86;margin-bottom:9px}
.tem-prod-card__check{color:var(--tem-up);display:flex;flex-shrink:0}
.tem-prod-card__check .tem-icon{width:17px;height:17px}

/* === PRICING === */
.tem-price__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;align-items:stretch}
.tem-price-card{position:relative;background:var(--tem-panel);border-radius:16px;padding:34px 28px;display:flex;flex-direction:column}
.tem-price-card:hover{transform:translateY(-6px);box-shadow:0 18px 46px rgba(0,0,0,.38)}
.tem-price-card--featured{border-color:var(--tem-acc1);box-shadow:0 20px 50px rgba(56,189,248,.16)}
.tem-price-card__flag{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:var(--tem-grad);color:#0c1218;font-family:var(--tem-font-display);font-size:11px;font-weight:700;letter-spacing:.6px;padding:5px 14px;border-radius:999px;white-space:nowrap;z-index:4}
.tem-price-card__name{font-family:var(--tem-font-display);font-size:16px;font-weight:600;color:var(--tem-muted);margin-bottom:14px;letter-spacing:.4px}
.tem-price-card__amount{font-family:var(--tem-font-display);font-size:42px;font-weight:700;color:var(--tem-text);letter-spacing:-1px;margin-bottom:4px}
.tem-price-card__cap{font-size:13px;color:var(--tem-acc1);margin-bottom:22px}
.tem-price-card__list{margin-bottom:26px;flex:1}
.tem-price-card__list li{display:flex;align-items:flex-start;gap:10px;font-size:13.5px;color:var(--tem-text);opacity:.86;margin-bottom:11px;line-height:1.5}
.tem-price-card__check{color:var(--tem-up);display:flex;flex-shrink:0;margin-top:2px}
.tem-price-card__check .tem-icon{width:16px;height:16px}

/* === POSTS === */
.tem-posts__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.tem-posts__more{text-align:center;margin-top:40px}
.tem-postcard{background:var(--tem-panel);border-radius:var(--tem-radius);overflow:hidden}
.tem-postcard:hover{transform:translateY(-5px);box-shadow:0 16px 40px rgba(0,0,0,.4)}
.tem-postcard__thumb{display:block;overflow:hidden;aspect-ratio:16/9}
.tem-postcard__thumb img{width:100%;height:100%;object-fit:cover;transition:transform .45s}
.tem-postcard:hover .tem-postcard__thumb img{transform:scale(1.05)}
.tem-postcard__body{padding:22px 24px}
.tem-postcard__cat{display:inline-block;font-size:11px;letter-spacing:1px;text-transform:uppercase;color:var(--tem-acc1);margin-bottom:10px}
.tem-postcard__title{font-family:var(--tem-font-display);font-size:18px;font-weight:700;margin-bottom:10px;line-height:1.4}
.tem-postcard__title a{color:var(--tem-text)}
.tem-postcard__title a:hover{color:var(--tem-acc1)}
.tem-postcard__excerpt{font-size:13.5px;color:var(--tem-muted);line-height:1.65;margin-bottom:16px}
.tem-postcard__meta{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--tem-muted)}
.tem-postcard__author{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;background:var(--tem-grad);color:#0c1218;font-size:10px;font-weight:700;font-family:var(--tem-font-display)}

/* === FAQ === */
.tem-faq__list{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.tem-faq__item{background:var(--tem-panel);border:1px solid var(--tem-line);border-radius:12px;overflow:hidden;transition:border-color .3s}
.tem-faq__item--open{border-color:var(--tem-acc1)}
.tem-faq__q{display:flex;align-items:center;justify-content:space-between;width:100%;padding:20px 24px;font-family:var(--tem-font-display);font-size:16px;font-weight:600;color:var(--tem-text);text-align:left;gap:16px}
.tem-faq__icon{display:flex;color:var(--tem-acc1);transition:transform .3s;flex-shrink:0}
.tem-faq__item--open .tem-faq__icon{transform:rotate(180deg)}
.tem-faq__a{max-height:0;overflow:hidden;transition:max-height .4s ease}
.tem-faq__a p{padding:0 24px 20px;font-size:14px;color:var(--tem-muted);line-height:1.75}

/* === CTA BAND === */
.tem-cta-band{position:relative;overflow:hidden;padding:82px 0;text-align:center;background:linear-gradient(120deg,rgba(56,189,248,.14),rgba(148,163,184,.1));border-top:1px solid var(--tem-line);border-bottom:1px solid var(--tem-line)}
.tem-cta-band__bolt{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:var(--tem-acc1);opacity:.1;pointer-events:none;animation:tem-drift 9s ease-in-out infinite}
.tem-cta-band__bolt .tem-icon{width:340px;height:340px}
.tem-cta-band__inner{position:relative;z-index:2}
.tem-cta-band__title{font-family:var(--tem-font-display);font-size:clamp(27px,4vw,42px);font-weight:700;letter-spacing:-.4px;margin-bottom:14px;color:var(--tem-text)}
.tem-cta-band__sub{font-size:16px;color:var(--tem-muted);max-width:540px;margin:0 auto 34px;line-height:1.7}
.tem-cta-band__btns{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

/* === PAGE HEAD (banner, mask never near-opaque) === */
.tem-pagehead{position:relative;padding:80px 0 56px;border-bottom:1px solid var(--tem-line);overflow:hidden;background-size:cover;background-position:center}
.tem-pagehead::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(12,18,24,.9),rgba(12,18,24,.52) 46%,rgba(12,18,24,.28))}
.tem-pagehead::after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--tem-grad);opacity:.6}
.tem-pagehead .tem-container{position:relative;z-index:2}
.tem-pagehead__kicker{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:var(--tem-acc1);margin-bottom:12px;font-family:var(--tem-font-display)}
.tem-pagehead__title{font-family:var(--tem-font-display);font-size:clamp(28px,4.2vw,44px);font-weight:700;letter-spacing:-.6px}
.tem-pagehead__desc{font-size:15px;color:var(--tem-muted);margin-top:12px;max-width:640px;line-height:1.7}
.tem-pagehead__meta{display:flex;align-items:center;gap:18px;margin-top:16px;font-size:13px;color:var(--tem-muted)}
.tem-pagehead__meta .tem-hero__dot{width:6px;height:6px}

/* === BREADCRUMB === */
.tem-crumb-bar{padding:16px 0;border-bottom:1px solid var(--tem-line-soft)}
.tem-crumb{display:flex;align-items:center;flex-wrap:wrap;gap:9px;font-size:13px;color:var(--tem-muted)}
.tem-crumb a{color:var(--tem-muted)}
.tem-crumb a:hover{color:var(--tem-acc1)}
.tem-crumb__sep{color:rgba(56,189,248,.55);font-size:13px}
.tem-crumb__current{color:var(--tem-text)}

/* === CONTENT CARD === */
.tem-content-card{padding:38px;background:var(--tem-panel);border-radius:var(--tem-radius)}

/* === SINGLE LAYOUT (S3: full width, no sidebar) === */
.tem-single__wrap{max-width:860px}
.tem-single__body{position:relative}

/* Entry */
.tem-entry{font-size:16px;line-height:1.85;color:rgba(228,236,243,.86)}
.tem-entry h2{font-family:var(--tem-font-display);font-size:24px;font-weight:700;color:var(--tem-text);margin:36px 0 16px;padding-bottom:10px;border-bottom:1px solid var(--tem-line-soft)}
.tem-entry h3{font-family:var(--tem-font-display);font-size:19px;font-weight:600;color:var(--tem-text);margin:28px 0 12px}
.tem-entry p{margin-bottom:16px}
.tem-entry ul,.tem-entry ol{margin:0 0 16px 22px;list-style:disc}
.tem-entry ol{list-style:decimal}
.tem-entry li{margin-bottom:8px}
.tem-entry blockquote{border-left:3px solid var(--tem-acc1);padding:14px 20px;margin:22px 0;background:rgba(56,189,248,.07);border-radius:0 10px 10px 0;color:var(--tem-text)}
.tem-entry a{color:var(--tem-acc1);text-decoration:underline}
.tem-entry img{border-radius:12px;margin:22px 0;border:1px solid var(--tem-line)}
.tem-entry code{background:var(--tem-panel-2);padding:2px 7px;border-radius:5px;font-size:14px;color:var(--tem-acc1)}
.tem-entry pre{background:var(--tem-panel-2);padding:20px;border-radius:12px;overflow-x:auto;margin:22px 0;border:1px solid var(--tem-line)}
.tem-entry pre code{background:none;padding:0}
.tem-entry table{width:100%;border-collapse:collapse;margin:22px 0;font-size:14px}
.tem-entry th,.tem-entry td{border:1px solid var(--tem-line);padding:10px 12px;text-align:left}
.tem-entry th{background:var(--tem-panel-2);font-family:var(--tem-font-display)}

/* Single thumb */
.tem-single__thumb{margin:-38px -38px 30px;overflow:hidden;border-radius:var(--tem-radius) var(--tem-radius) 0 0;border-bottom:1px solid var(--tem-line)}
.tem-single__thumb img{width:100%;height:auto}

/* Tags */
.tem-single__tags{display:flex;flex-wrap:wrap;gap:9px;margin-top:34px;padding-top:24px;border-top:1px solid var(--tem-line)}
.tem-tag{padding:5px 13px;border-radius:8px;font-size:12px;background:rgba(56,189,248,.12);color:var(--tem-acc1);border:1px solid var(--tem-line);transition:background .2s}
.tem-tag:hover{background:rgba(56,189,248,.22);color:var(--tem-text)}

/* Post nav */
.tem-single__nav{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:32px;padding-top:24px;border-top:1px solid var(--tem-line)}
.tem-single__prev,.tem-single__next{padding:16px 18px;border-radius:12px;background:var(--tem-panel-2);border:1px solid var(--tem-line);transition:border-color .2s}
.tem-single__prev:hover,.tem-single__next:hover{border-color:var(--tem-acc1)}
.tem-single__next{text-align:right}
.tem-single__navlabel{display:block;font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--tem-muted);margin-bottom:6px}
.tem-single__navtitle{font-size:14px;color:var(--tem-text);font-weight:600;font-family:var(--tem-font-display)}

/* Comments */
.tem-single__comments{margin-top:40px;padding-top:24px;border-top:1px solid var(--tem-line)}

/* === ARCHIVE === */
.tem-archive__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.tem-archive__empty{text-align:center;padding:48px 0}
.tem-archive__empty p{color:var(--tem-muted);margin-bottom:24px}

/* Pagination */
.tem-pagination{margin-top:40px;text-align:center}
.tem-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;border-radius:10px;font-size:14px;color:var(--tem-text);margin:0 4px;border:1px solid var(--tem-line);transition:background .2s,border-color .2s}
.tem-pagination .page-numbers:hover{border-color:var(--tem-acc1);color:var(--tem-acc1)}
.tem-pagination .page-numbers.current{background:var(--tem-grad);color:#0c1218;border-color:transparent;font-weight:700}

/* === SEARCH FORM === */
.tem-searchform{display:flex;gap:12px;margin-bottom:30px}
.tem-searchform__input{flex:1;padding:12px 18px;border-radius:10px;border:1px solid var(--tem-line);background:var(--tem-panel-2);color:var(--tem-text);font-size:14px;font-family:var(--tem-font-body);outline:none;transition:border-color .2s}
.tem-searchform__input:focus{border-color:var(--tem-acc1)}
.tem-searchform__input::placeholder{color:rgba(159,176,192,.6)}
.tem-searchform__btn{white-space:nowrap}
.tem-searchform__label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

/* === 404 === */
.tem-404{text-align:center;padding:70px 40px}
.tem-404__icon{margin-bottom:20px;color:var(--tem-acc1);display:flex;justify-content:center}
.tem-404__icon .tem-icon{width:58px;height:58px}
.tem-404__code{font-size:13px;letter-spacing:3px;color:var(--tem-muted);margin-bottom:10px}
.tem-404__title{font-family:var(--tem-font-display);font-size:28px;font-weight:700;margin-bottom:12px;color:var(--tem-text)}
.tem-404__text{font-size:15px;color:var(--tem-muted);margin-bottom:28px;max-width:420px;margin-left:auto;margin-right:auto;line-height:1.7}
.tem-404 .tem-searchform{max-width:420px;margin:28px auto 0}

/* === FOOTER (3 columns: brand + 2 link columns) === */
.tem-footer{padding:70px 0 0;border-top:1px solid var(--tem-line);background:var(--tem-panel-2);position:relative;z-index:1}
.tem-footer__grid{display:grid;grid-template-columns:1.9fr 1fr 1fr;gap:36px;margin-bottom:48px}
.tem-brand--footer{margin-bottom:4px}
.tem-footer__about{font-size:14px;color:var(--tem-muted);max-width:360px;line-height:1.75;margin:16px 0 20px}
.tem-footer__social{display:flex;gap:10px}
.tem-footer__social a{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;border:1px solid var(--tem-line);color:var(--tem-muted);transition:color .2s,border-color .2s}
.tem-footer__social a:hover{color:var(--tem-acc1);border-color:var(--tem-acc1)}
.tem-footer__social .tem-icon{width:18px;height:18px}
.tem-footer__heading{font-family:var(--tem-font-display);font-size:14px;font-weight:700;color:var(--tem-text);margin-bottom:18px;letter-spacing:.3px}
.tem-footer__links li{margin-bottom:11px}
.tem-footer__links a{font-size:13.5px;color:var(--tem-muted);transition:color .2s,padding-left .2s}
.tem-footer__links a:hover{color:var(--tem-acc1);padding-left:4px}
.tem-footer__risk{font-size:12px;color:rgba(159,176,192,.62);padding:20px 0;border-top:1px solid var(--tem-line-soft);line-height:1.7}
.tem-footer__bar{display:flex;align-items:center;justify-content:space-between;padding:20px 0;border-top:1px solid var(--tem-line-soft);font-size:12px;color:var(--tem-muted)}
.tem-footer__pulse{display:flex;gap:6px;align-items:center}
.tem-footer__pulse i{width:4px;height:4px;border-radius:50%;background:var(--tem-acc1);animation:tem-blink 2.4s ease-in-out infinite}
.tem-footer__pulse i:nth-child(2){animation-delay:.4s}
.tem-footer__pulse i:nth-child(3){animation-delay:.8s}

/* === ICON === */
.tem-icon{display:inline-block;vertical-align:middle;flex-shrink:0}

/* === BODY LOCKED === */
.tem-body--locked{overflow:hidden}

/* =========================================================
 * RESPONSIVE – @media at very end
 * ========================================================= */
@media(max-width:1024px){
	/* inline nav -> drawer switch on tablets */
	.tem-nav{display:none}
	.tem-burger{display:flex}
	.tem-header__actions{flex:0 0 auto}
	.tem-header__inner{gap:14px}
	/* hero cols stack */
	.tem-hero__cols{grid-template-columns:1fr;gap:26px}
	.tem-hero__title{max-width:none}
	/* grids step down */
	.tem-features__grid{grid-template-columns:repeat(2,1fr)}
	.tem-data__grid{grid-template-columns:repeat(2,1fr)}
	.tem-prod__grid{grid-template-columns:repeat(2,1fr)}
	.tem-price__grid{grid-template-columns:1fr;max-width:480px;margin:0 auto}
	.tem-posts__grid{grid-template-columns:repeat(2,1fr)}
	/* mega panel collapses to 2 columns */
	.tem-mega__inner{grid-template-columns:repeat(2,1fr);gap:26px}
	.tem-mega__feat{grid-column:1 / -1}
	/* footer 2-col on tablet */
	.tem-footer__grid{grid-template-columns:1fr 1fr;gap:32px}
	.tem-footer__col--brand{grid-column:1 / -1}
	/* market table: horizontal scroll instead of squishing */
	.tem-console__scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
}
@media(max-width:768px){
	/* header actions */
	.tem-header__actions{gap:8px}
	.tem-brand{min-width:0;flex:0 1 auto}
	.tem-brand__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
	.tem-header__actions .tem-header__search{display:none}
	.tem-header__actions .tem-btn--ghost{display:none}
	/* hero + titles: shrink type, tighten spacing */
	.tem-hero__media{min-height:clamp(380px,58vh,520px)}
	.tem-hero__content{padding:44px 24px}
	.tem-hero__title{font-size:clamp(28px,8vw,42px);letter-spacing:-.3px}
	.tem-hero__lead{font-size:15px}
	.tem-hero__strip-inner{gap:8px}
	.tem-heroline{min-width:44%;padding:14px 0}
	.tem-section{padding:60px 0}
	.tem-market{padding:60px 0}
	.tem-section__title{font-size:clamp(24px,6.4vw,30px)}
	.tem-pagehead{padding:52px 0 34px}
	.tem-pagehead__title{font-size:clamp(24px,6.6vw,32px)}
	.tem-pagehead__desc{font-size:14px}
	/* single-column stacking */
	.tem-posts__grid{grid-template-columns:1fr}
	.tem-archive__grid{grid-template-columns:1fr}
	.tem-features__grid{grid-template-columns:1fr}
	.tem-prod__grid{grid-template-columns:1fr}
	.tem-data__grid{grid-template-columns:repeat(2,1fr)}
	/* content + entry typography */
	.tem-content-card{padding:24px}
	.tem-single__nav{grid-template-columns:1fr}
	.tem-single__thumb{margin:-24px -24px 24px}
	.tem-entry{font-size:15.5px}
	.tem-entry h2{font-size:21px;margin:28px 0 14px}
	.tem-entry h3{font-size:17.5px}
	.tem-entry table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
	/* searchform stack */
	.tem-searchform{flex-direction:column}
	.tem-searchform__btn{width:100%}
	/* market table: scroll + drop the spread column */
	.tem-ticker{min-width:600px}
	.tem-ticker th,.tem-ticker td{padding:11px 12px;font-size:13px}
	.tem-ticker__spread,.tem-ticker th.tem-ticker__spread{display:none}
	/* mega panel single column inside drawer-only mode */
	.tem-mega__inner{grid-template-columns:1fr}
	.tem-drawer__links{grid-template-columns:1fr 1fr}
	/* breadcrumb wraps */
	.tem-crumb{gap:7px;font-size:12.5px;line-height:1.6}
	/* cta band + faq spacing */
	.tem-cta-band{padding:60px 0}
	.tem-cta-band__title{font-size:clamp(24px,6.6vw,32px)}
	.tem-cta-band__bolt .tem-icon{width:220px;height:220px}
	.tem-faq__q{padding:17px 18px;font-size:15px}
	.tem-faq__a p{padding:0 18px 18px}
	/* buttons */
	.tem-btn{padding:10px 18px;font-size:13.5px}
	/* footer – 3-column, brand full width, tight rhythm */
	.tem-footer{padding:44px 0 0}
	.tem-footer__grid{grid-template-columns:repeat(3,1fr);gap:24px 18px;margin-bottom:30px}
	.tem-footer__col--brand{grid-column:1 / -1}
	.tem-footer__about{max-width:none;font-size:13px;line-height:1.6;margin:12px 0 16px}
	.tem-footer__social{gap:8px}
	.tem-footer__social a{width:34px;height:34px}
	.tem-footer__heading{font-size:12.5px;margin-bottom:11px}
	.tem-footer__links li{margin-bottom:8px;line-height:1.5}
	.tem-footer__links a{font-size:12.5px;overflow-wrap:break-word}
	.tem-footer__risk{font-size:11.5px;padding:16px 0;line-height:1.6}
	.tem-footer__bar{padding:16px 0;font-size:11.5px}
	.tem-footer__pulse{display:none}
	/* long titles wrap instead of overflowing */
	.tem-hero__title,.tem-pagehead__title,.tem-section__title,.tem-postcard__title,.tem-cta-band__title{overflow-wrap:break-word}
}
@media(max-width:480px){
	.tem-container{padding:0 16px}
	/* header */
	.tem-header{padding:11px 0}
	.tem-brand__name{font-size:17px}
	/* hero single column */
	.tem-hero__media{min-height:clamp(360px,64vh,480px)}
	.tem-hero__content{padding:36px 16px}
	.tem-hero__badge{font-size:11px;margin-bottom:16px}
	.tem-hero__title{font-size:clamp(26px,9vw,34px)}
	.tem-hero__lead{font-size:14.5px}
	.tem-hero__ctas{flex-direction:column;align-items:stretch;gap:12px}
	.tem-hero__ctas .tem-btn{width:100%}
	.tem-heroline{min-width:100%;padding:12px 0;border-bottom:1px solid var(--tem-line-soft)}
	/* sections */
	.tem-section{padding:52px 0}
	.tem-market{padding:52px 0}
	.tem-section__head{margin-bottom:32px}
	.tem-section__title{font-size:clamp(22px,7vw,27px)}
	.tem-section__lead{font-size:15px}
	/* metrics single column */
	.tem-data__grid{grid-template-columns:1fr;gap:14px}
	.tem-data__item{padding:26px 18px}
	/* pagehead */
	.tem-pagehead{padding:44px 0 28px}
	.tem-pagehead__title{font-size:clamp(22px,7vw,28px)}
	.tem-pagehead__meta{flex-wrap:wrap;gap:10px 16px;font-size:12px}
	/* cards */
	.tem-feat-card{padding:24px 20px}
	.tem-prod-card{padding:26px 20px}
	.tem-price-card{padding:28px 22px}
	.tem-price-card__amount{font-size:36px}
	.tem-postcard__body{padding:18px 20px}
	.tem-postcard__title{font-size:17px}
	/* single */
	.tem-content-card{padding:20px}
	.tem-single__thumb{margin:-20px -20px 22px}
	.tem-single__nav{gap:12px}
	.tem-single__prev,.tem-single__next{padding:14px}
	.tem-entry{font-size:15px}
	/* market table: drop change column too */
	.tem-ticker{min-width:440px}
	.tem-ticker__chg,.tem-ticker thead th:nth-child(3){display:none}
	/* cta band */
	.tem-cta-band{padding:52px 0}
	.tem-cta-band__btns{flex-direction:column;align-items:stretch}
	.tem-cta-band__sub{font-size:15px;margin-bottom:26px}
	.tem-cta-band__bolt .tem-icon{width:170px;height:170px}
	/* drawer */
	.tem-drawer{padding:78px 18px 28px}
	.tem-drawer__links{grid-template-columns:1fr}
	/* footer – keep 3 columns, tighter */
	.tem-footer{padding:38px 0 0}
	.tem-footer__grid{grid-template-columns:repeat(3,1fr);gap:20px 14px;margin-bottom:26px}
	.tem-footer__col--brand{grid-column:1 / -1}
	.tem-footer__about{font-size:12.5px;line-height:1.55;margin:10px 0 14px}
	.tem-footer__heading{font-size:12.5px;margin-bottom:9px}
	.tem-footer__links li{margin-bottom:7px;line-height:1.45}
	.tem-footer__links a{font-size:12.5px;overflow-wrap:break-word}
	.tem-footer__risk{font-size:11px;padding:14px 0;line-height:1.55;text-align:center}
	.tem-footer__bar{flex-direction:column;gap:8px;text-align:center;padding:14px 0;font-size:11px}
	.tem-footer__bar span{overflow-wrap:break-word}
	/* 404 */
	.tem-404{padding:52px 20px}
	.tem-404__title{font-size:24px}
}

/* SEO title scaling (2026-11-24) */
.tem-hero__title{font-size:clamp(1.75rem,3.2vw,2.75rem)!important;line-height:1.22!important;letter-spacing:-0.01em!important;}

/* SEO title scaling (2026-11-24) */
.tem-hero__title{font-size:clamp(1.75rem,3.2vw,2.75rem)!important;line-height:1.22!important;letter-spacing:-0.01em!important;}
