
/* Shared Trade2 top navigation — 2026 */
.trade2-shared-header{
  display:block!important;padding:0!important;gap:0!important;
  position:sticky;top:0;z-index:1000;width:100%;height:64px;
  background:#fff;border-bottom:1px solid #dcecf2;
  box-shadow:0 3px 16px rgba(19,70,98,.05);
  direction:rtl;font-family:"Segoe UI",Arial,sans-serif;
}
.trade2-shared-header *{box-sizing:border-box}
.trade2-shared-header .t2h-inner{
  width:100%;height:100%;padding:0 24px;display:flex;align-items:center;gap:18px;
}
.trade2-shared-header .t2h-brand{
  flex:0 0 auto;display:flex;align-items:center;gap:10px;color:#0b2b55;text-decoration:none;font-weight:900;
}
.trade2-shared-header .t2h-bars{display:flex;align-items:flex-end;gap:3px;height:30px}
.trade2-shared-header .t2h-bars i{display:block;width:5px;border-radius:4px;background:linear-gradient(180deg,#26c7cf,#0d79d8)}
.trade2-shared-header .t2h-bars i:nth-child(1){height:12px}.trade2-shared-header .t2h-bars i:nth-child(2){height:20px}.trade2-shared-header .t2h-bars i:nth-child(3){height:27px}.trade2-shared-header .t2h-bars i:nth-child(4){height:17px}
.trade2-shared-header .t2h-brand-main{font-size:23px;line-height:1;letter-spacing:-.02em}
.trade2-shared-header .t2h-brand-main b{color:#12a6ad}
.trade2-shared-header .t2h-brand small{display:block;font-size:8px;color:#8295aa;font-weight:600;margin-top:3px;text-align:center}
.trade2-shared-header .t2h-nav{display:flex;align-items:center;gap:3px;white-space:nowrap}
.trade2-shared-header .t2h-nav a,.trade2-shared-header .t2h-nav button{
  appearance:none;border:0;background:transparent;color:#17375d;text-decoration:none;
  height:42px;padding:0 11px;border-radius:11px;display:flex;align-items:center;gap:7px;
  font:600 13px/1 "Segoe UI",Arial,sans-serif;cursor:pointer;transition:.15s ease;
}
.trade2-shared-header .t2h-nav a:hover,.trade2-shared-header .t2h-nav button:hover{background:#f0fafb;color:#087e9f}
.trade2-shared-header .t2h-nav .active{background:#def5f7;color:#08779b}
.trade2-shared-header .t2h-ico{width:18px;height:18px;display:inline-grid;place-items:center;font-size:16px;color:#0a6c98}
.trade2-shared-header .t2h-spacer{flex:1;min-width:12px}
.trade2-shared-header .t2h-search{
  position:relative;flex:0 1 320px;min-width:210px;height:42px;border:1px solid #d6e6ee;
  border-radius:12px;background:#f8fbfd;display:flex;align-items:center;padding:0 12px;gap:8px;
}
.trade2-shared-header .t2h-search:focus-within{border-color:#6dcbd4;box-shadow:0 0 0 3px rgba(17,174,183,.08)}
.trade2-shared-header .t2h-search span{color:#0a6c98;font-size:18px}
.trade2-shared-header .t2h-search input{width:100%;border:0;outline:0;background:transparent;color:#19385e;font:400 13px "Segoe UI",Arial,sans-serif;text-align:right}
.trade2-shared-header .t2h-search input::placeholder{color:#8a9eb3}
.trade2-shared-header .t2h-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.trade2-shared-header .t2h-icon{
  width:38px;height:38px;border:0;background:transparent;border-radius:10px;display:grid;place-items:center;
  color:#163a61;font-size:18px;cursor:pointer;position:relative
}
.trade2-shared-header .t2h-icon:hover{background:#f1f8fb}
.trade2-shared-header .t2h-notify-dot{position:absolute;top:5px;right:6px;width:7px;height:7px;border-radius:50%;background:#f25a67;box-shadow:0 0 0 2px #fff}
.trade2-shared-header .t2h-account{display:flex;align-items:center;gap:9px;padding-right:2px;color:#17375d}
.trade2-shared-header .t2h-avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#1bb4bd,#175798);color:#fff;font-weight:800;border:0}
.trade2-shared-header .t2h-account b{display:block;font-size:13px}.trade2-shared-header .t2h-account small{display:block;color:#8397ac;font-size:10px;margin-top:2px}
.trade2-shared-header .t2h-menu{display:none;width:40px;height:40px;border:0;background:transparent;color:#17375d;font-size:22px;border-radius:10px}
@media(max-width:1300px){
  .trade2-shared-header .t2h-nav a,.trade2-shared-header .t2h-nav button{padding:0 7px;font-size:12px}
  .trade2-shared-header .t2h-search{flex-basis:260px}
  .trade2-shared-header .t2h-account .t2h-name{display:none}
}
@media(max-width:1040px){
  .trade2-shared-header{height:auto;min-height:64px}
  .trade2-shared-header .t2h-inner{min-height:64px;padding:0 14px;flex-wrap:wrap}
  .trade2-shared-header .t2h-menu{display:grid;place-items:center}
  .trade2-shared-header .t2h-nav{
    display:none;order:20;width:100%;padding:8px 0 12px;border-top:1px solid #e5eff3;
    flex-wrap:wrap;background:#fff
  }
  .trade2-shared-header .t2h-nav.open{display:flex}
  .trade2-shared-header .t2h-search{margin-right:auto;flex:1 1 260px;max-width:420px}
  .trade2-shared-header .t2h-spacer{display:none}
}
@media(max-width:650px){
  .trade2-shared-header .t2h-inner{gap:7px;padding:0 9px}
  .trade2-shared-header .t2h-brand-main{font-size:19px}
  .trade2-shared-header .t2h-brand small{display:none}
  .trade2-shared-header .t2h-bars{height:25px}.trade2-shared-header .t2h-bars i{width:4px}
  .trade2-shared-header .t2h-search{order:30;flex:1 0 100%;max-width:none;margin:0 0 8px;height:38px}
  .trade2-shared-header .t2h-account .t2h-name{display:none}
  .trade2-shared-header .t2h-avatar{width:34px;height:34px}
  .trade2-shared-header .t2h-icon{width:34px;height:34px}
}

/* Keep page-level header/nav rules from changing the shared navigation. */
header.trade2-shared-header{
  box-sizing:border-box;height:64px!important;min-height:64px;flex:0 0 auto!important;
  margin:0;line-height:normal;letter-spacing:normal;
}
.trade2-shared-header,.trade2-shared-header *{
  font-family:"Segoe UI",Arial,sans-serif;
}
.trade2-shared-header .t2h-nav{
  flex:0 0 auto;position:static;inset:auto;margin:0;
  padding:0;border:0;box-shadow:none;flex-wrap:nowrap;
}
.trade2-shared-header .t2h-nav .t2h-ico{
  margin:0;line-height:1;flex:0 0 18px;
}
.trade2-shared-header .t2h-search input{
  padding:0;margin:0;border-radius:0;box-shadow:none;
}
@media(max-width:1040px){
  header.trade2-shared-header{height:auto!important}
  .trade2-shared-header .t2h-nav{
    flex:0 0 100%;flex-wrap:wrap;padding:8px 0 12px;border-top:1px solid #e5eff3;
  }
}

/* Shared header geometry must not inherit the page's base text metrics. */
header.trade2-shared-header{
  font-size:14px;font-weight:400;line-height:1.5;font-style:normal;text-align:right;
}
.trade2-shared-header .t2h-nav{font-size:14px;line-height:1.5}
.trade2-shared-header .t2h-avatar{font-size:14px;line-height:1}
@media(min-width:1050px){
  /* Reserve the same scrollbar space on scrolling course pages and the fitted dashboard. */
  html{scrollbar-gutter:stable}
}


/* Keep unknown authentication state neutral from the very first paint. */
.t2h-account .t2h-name{min-width:108px}
.t2h-account:not([data-auth-ready]) .t2h-name,
.t2h-account:not([data-auth-ready]) .t2h-avatar,
#dashboard-screen>header:not(.trade2-shared-header) .account .name,
#dashboard-screen>header:not(.trade2-shared-header) .account .avatar{visibility:hidden}

/* Additional site pages, grouped without changing the dashboard layout. */
.trade2-shared-header .t2h-more{position:relative;flex:none;text-align:right}
.trade2-shared-header .t2h-more summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:7px;color:#17375d;font:600 13px/1.4 "Segoe UI",Arial,sans-serif;border-radius:11px}
.trade2-shared-header .t2h-more summary::-webkit-details-marker{display:none}
.trade2-shared-header .t2h-more>summary{height:42px;padding:0 11px}
.trade2-shared-header .t2h-more summary:hover,.trade2-shared-header .t2h-more[open]>summary{background:#f0fafb;color:#087e9f}
.trade2-shared-header .t2h-more summary:focus-visible{outline:3px solid #20b6bf;outline-offset:2px}
.trade2-shared-header .t2h-chevron{margin-inline-start:auto;transition:transform .15s}
.trade2-shared-header details[open]>summary>.t2h-chevron{transform:rotate(180deg)}
.trade2-shared-header .t2h-more-panel{position:absolute;inset-inline-start:0;top:calc(100% + 8px);width:270px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 92px);overflow-y:auto;overscroll-behavior:contain;padding:8px;background:#fff;border:1px solid #dcecf2;border-top:3px solid #12a6ad;border-radius:14px;box-shadow:0 14px 40px #10295722;white-space:normal}
.trade2-shared-header .t2h-more-panel>a,.trade2-shared-header .t2h-more-group>summary{height:auto;min-height:42px;padding:11px 12px;font-size:13px;line-height:1.5;border-radius:8px;width:100%}
.trade2-shared-header .t2h-more-group[open]>summary{color:#087e9f;background:#effafb}
.trade2-shared-header .t2h-more-links{margin:2px 12px 7px 0;padding-inline-start:9px;border-inline-start:2px solid #c9edf0}
.trade2-shared-header .t2h-more-links>a{height:auto;min-height:40px;padding:9px 12px;font-size:12px;line-height:1.5;white-space:normal}
@media(min-width:1041px) and (max-width:1300px){.trade2-shared-header .t2h-more>summary{padding:0 7px;font-size:12px}.trade2-shared-header .t2h-search{min-width:150px;flex-basis:210px}}
@media(max-width:1040px){
 .trade2-shared-header .t2h-more{width:100%}
 .trade2-shared-header .t2h-more>summary{width:100%}
 .trade2-shared-header .t2h-more-panel{position:static;width:100%;max-width:none;max-height:50dvh;margin-top:4px;box-shadow:none}
}

@media(min-width:1041px) and (max-width:1440px){
 .trade2-shared-header .t2h-inner{gap:12px;padding:0 20px}
 .trade2-shared-header .t2h-nav a,.trade2-shared-header .t2h-nav button,.trade2-shared-header .t2h-more>summary{padding-inline:7px;font-size:12px}
 .trade2-shared-header .t2h-search{min-width:150px;flex-basis:200px}
 .trade2-shared-header .t2h-account .t2h-name{display:none}
}
@media(min-width:1041px) and (max-width:1200px){.trade2-shared-header .t2h-search{display:none}}


/* Final shared geometry: independent of course, catalog and learning-path themes. */
header.trade2-shared-header .t2h-inner{padding-inline:24px!important;gap:18px!important}
header.trade2-shared-header .t2h-nav a,header.trade2-shared-header .t2h-nav button,header.trade2-shared-header .t2h-more>summary{font:600 13px/1.4 "Segoe UI",Arial,sans-serif!important;letter-spacing:normal!important;text-transform:none!important;padding-inline:11px!important}
header.trade2-shared-header .t2h-search{min-width:210px!important;flex-basis:320px!important}
header.trade2-shared-header .t2h-search input{font:400 13px/1.4 "Segoe UI",Arial,sans-serif!important}
header.trade2-shared-header .t2h-nav .t2h-ico{display:inline-grid!important;vertical-align:middle;letter-spacing:normal}
header.trade2-shared-header .t2h-account b{font:700 13px/1.4 "Segoe UI",Arial,sans-serif!important}
header.trade2-shared-header .t2h-account small{font:400 10px/1.4 "Segoe UI",Arial,sans-serif!important}
@media(min-width:1041px) and (max-width:1440px){
 header.trade2-shared-header .t2h-inner{gap:12px!important;padding-inline:20px!important}
 header.trade2-shared-header .t2h-nav a,header.trade2-shared-header .t2h-nav button,header.trade2-shared-header .t2h-more>summary{font-size:12px!important;padding-inline:7px!important}
 header.trade2-shared-header .t2h-search{min-width:150px!important;flex-basis:200px!important}
}
@media(max-width:1040px){header.trade2-shared-header .t2h-inner{padding-inline:14px!important;gap:12px!important}header.trade2-shared-header .t2h-search{min-width:150px!important;flex-basis:260px!important}}
@media(max-width:650px){header.trade2-shared-header .t2h-inner{gap:7px!important;padding-inline:9px!important}header.trade2-shared-header .t2h-search{min-width:0!important;flex-basis:100%!important}}

/* Balanced mobile masthead — 20261022-mobile4 */
@media(max-width:650px){
 header.trade2-shared-header .t2h-inner{
  position:relative;display:grid;grid-template-columns:1fr auto 1fr;
  grid-template-rows:60px auto;align-items:center;
  gap:0 10px!important;padding:0 14px 10px!important;min-height:0;
 }
 header.trade2-shared-header .t2h-brand{grid-column:2;grid-row:1;justify-self:center;gap:7px}
 header.trade2-shared-header .t2h-brand-main{font-size:21px}
 header.trade2-shared-header .t2h-bars{height:26px;gap:3px}
 header.trade2-shared-header .t2h-actions{grid-column:3;grid-row:1;justify-self:end;gap:3px}
 header.trade2-shared-header .t2h-menu{
  position:absolute;inset-inline-start:9px;top:8px;width:44px;height:44px;
  display:grid;place-items:center;padding:0;cursor:pointer;
  background:#f1f7fa;border:1px solid #e0edf2;border-radius:12px;font-size:23px;
 }
 header.trade2-shared-header .t2h-avatar{width:36px;height:36px;cursor:pointer}
 header.trade2-shared-header .t2h-icon{width:34px;height:40px;padding:7px}
 header.trade2-shared-header .t2h-icon svg{width:21px;height:21px;display:block}
 header.trade2-shared-header .t2h-notify-dot{top:6px;right:5px;width:6px;height:6px}
 header.trade2-shared-header .t2h-search{
  grid-column:1/-1;grid-row:2;width:100%;height:42px;max-width:none;
  margin:0;padding-inline:12px;border-radius:12px;background:#f5f9fc;
 }
 header.trade2-shared-header .t2h-search input{min-width:0;font-size:12px!important}
 header.trade2-shared-header .t2h-nav{
  grid-column:1/-1;grid-row:3;margin-top:10px;gap:5px;
  max-height:calc(100dvh - 130px);overflow-y:auto;overscroll-behavior:contain;
 }
 header.trade2-shared-header .t2h-nav>a,header.trade2-shared-header .t2h-nav>button{
  flex:1 1 42%;min-height:44px;justify-content:flex-start;background:#f5f9fc;
 }
 header.trade2-shared-header .t2h-nav:not(.open){margin:0}
}
@media(max-width:360px){
 header.trade2-shared-header .t2h-inner{padding-inline:10px!important;column-gap:5px!important}
 header.trade2-shared-header .t2h-brand-main{font-size:19px}
 header.trade2-shared-header .t2h-brand{gap:5px}
 header.trade2-shared-header .t2h-icon{width:29px}
}

/* Stable first paint: reserve account geometry before authentication resolves. */
.trade2-shared-header .t2h-name{flex:0 0 108px;width:108px;max-width:108px}
.trade2-shared-header .t2h-name b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trade2-shared-header .t2h-brand{line-height:1}
.trade2-shared-header .t2h-brand small{line-height:12px}

/* Reserve space for the shared membership action before its script loads. */
header.trade2-shared-header .t2h-spacer{display:flex;align-items:center;justify-content:center;min-width:98px}
header.trade2-shared-header .t2h-membership{appearance:none;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-height:36px;padding:8px 12px;border:1px solid #9ddcd6;border-radius:10px;background:#e5f8f3;color:#067c81;font:700 12px/1.3 "Segoe UI",Arial,sans-serif;cursor:pointer}
header.trade2-shared-header .t2h-membership:hover{background:#cef0e9}
header.trade2-shared-header .t2h-membership:focus-visible{outline:3px solid #137fba;outline-offset:3px}
@media(min-width:1041px) and (max-width:1340px){header.trade2-shared-header .t2h-search{display:none}}
@media(min-width:651px) and (max-width:1040px){header.trade2-shared-header .t2h-spacer{display:flex;flex:0 0 98px;margin-inline-start:auto}header.trade2-shared-header .t2h-search{flex-basis:170px!important}}
@media(max-width:650px){
 header.trade2-shared-header .t2h-spacer{display:flex;grid-column:1/-1;grid-row:2;justify-self:end;justify-content:flex-end;width:88px;min-width:88px;z-index:1}
 header.trade2-shared-header .t2h-membership{min-height:42px;padding:8px 10px;font-size:11px}
 header.trade2-shared-header .t2h-search{width:calc(100% - 98px);justify-self:start}
}

/* Compact mobile navigation without a membership purchase row. */
@media(max-width:700px){header.trade2-shared-header .t2h-spacer,header.trade2-shared-header .t2h-membership{display:none!important}header.trade2-shared-header .t2h-search{width:100%}}
