/* Blog and Academy share the homepage's Hedvig / Midday dark palette.
   Opt-in scope keeps the rest of the site unchanged. Loaded after public-v1. */
@font-face{font-family:'Hedvig Letters Sans';src:url('/assets/fonts/hedvig-letters-sans-latin.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
html[data-fx-editorial="midday"]{
  color-scheme:dark;
  --p-bg:#0d0d0d;--p-surface:#121212;--p-surface-2:#191919;
  --p-border:#282828;--p-hair:#232323;--p-fg:#f5f5f5;--p-fg-2:#b3b3b3;--p-muted:#969696;
  --p-primary:#f5f5f5;--p-primary-fg:#0d0d0d;
  --p-font:'Hedvig Letters Sans',Arial,sans-serif;--p-mono:var(--p-font);--p-maxw:1360px;
  --fx-nav-font:var(--p-font);--fx-nav-mono:var(--p-font);
  --p-success:var(--p-fg-2);--p-negative:var(--p-fg-2);
}
html[data-fx-editorial="midday"] body{font-synthesis:none}
html[data-fx-editorial="midday"] .wrap{max-width:var(--p-maxw);padding:0 56px}
html[data-fx-editorial="midday"] main{min-width:0}
html[data-fx-editorial="midday"] main :is(h1,h2,h3,p,a){overflow-wrap:anywhere}
html[data-fx-editorial="midday"] :focus-visible{outline:2px solid var(--p-fg);outline-offset:5px}
html[data-fx-editorial="midday"] .editorial-skip{position:fixed;top:8px;left:16px;z-index:3000;padding:12px 18px;background:var(--p-primary);color:var(--p-primary-fg);transform:translateY(-160%)}
html[data-fx-editorial="midday"] .editorial-skip:focus{transform:translateY(0)}

/* Shared navigation and footer use the same dark treatment as the home page. */
html[data-fx-editorial="midday"] header.nav .fxnav-inner{max-width:1360px;padding-left:56px;padding-right:56px}
html[data-fx-editorial="midday"] header.nav .fxnav-logo img.fxnav-logo-ink{display:none}
html[data-fx-editorial="midday"] header.nav .fxnav-logo img.fxnav-logo-white{display:block;height:29px}
html[data-fx-editorial="midday"] .fxmm-head .fxnav-logo img{filter:brightness(0) invert(1)}
html[data-fx-editorial="midday"] :is(.fxnav-trigger,.fxnav-direct,.fxnav-actions .btn){font-weight:400}
html[data-fx-editorial="midday"] .fxft{background:#161616;border-top-color:var(--p-border)}
html[data-fx-editorial="midday"] .fxft-brand>a[aria-label="Forexero home"]{background:none}
html[data-fx-editorial="midday"] .fxft-brand>a[aria-label="Forexero home"] img{opacity:1;height:30px}
html[data-fx-editorial="midday"] .fxft-mark span{color:#2b2b2b}
html[data-fx-editorial="midday"] #fx-tg-fab{border:1px solid var(--p-fg)}
html[data-fx-editorial="midday"] #fx-tg-fab svg{fill:var(--p-bg)}

/* Index introductions. No illustrations, gradients or display typefaces. */
html[data-fx-editorial="midday"] .page-hero{padding:142px 0 64px;background:none;border-bottom:1px solid var(--p-border)}
html[data-fx-editorial="midday"] .editorial-topline{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:44px}
html[data-fx-editorial="midday"] .editorial-topline :is(a,.eyebrow){font-size:13px;line-height:1.5;margin:0;color:var(--p-muted);font-weight:400;letter-spacing:0;text-transform:none}
html[data-fx-editorial="midday"] .editorial-topline a:hover{color:var(--p-fg)}
html[data-fx-editorial="midday"] .editorial-topline a span{margin-left:8px}
html[data-fx-editorial="midday"] .editorial-hero h1{font-size:clamp(36px,4.5vw,62px);line-height:1.09;letter-spacing:-.035em;max-width:22ch}
html[data-fx-editorial="midday"] .page-hero .lead{font-size:18px;line-height:1.65;max-width:68ch;margin-top:26px;color:var(--p-fg-2)}
html[data-fx-editorial="midday"] .editorial-library{padding:48px 0 88px}
html[data-fx-editorial="midday"] .sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:24px;margin:0 0 32px;text-align:left}
html[data-fx-editorial="midday"] .sec-head .eyebrow{font-size:13px;letter-spacing:0;text-transform:none;margin:0;flex-shrink:0}
html[data-fx-editorial="midday"] .sec-head h2{font-size:20px;line-height:1.4;max-width:none;margin:0}

/* Neutral editorial cards. Academy uses numbered rows; the Blog uses a grid. */
html[data-fx-editorial="midday"] .post-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
html[data-fx-editorial="midday"] .post{position:relative;display:flex;flex-direction:column;min-width:0;padding:32px;background:var(--p-bg);border:1px solid var(--p-border);border-radius:0;box-shadow:none;overflow:visible;transition:background .16s,border-color .16s}
html[data-fx-editorial="midday"] .post:hover{background:var(--p-surface);border-color:#555;transform:none}
html[data-fx-editorial="midday"] .post-number{display:none}
html[data-fx-editorial="midday"] .post .pbody{padding:0;display:flex;flex-direction:column;flex:1;min-width:0}
html[data-fx-editorial="midday"] .post-category{font-size:12px;color:var(--p-muted);margin:0 32px 28px 0;line-height:1.5}
html[data-fx-editorial="midday"] .post h3{font-size:25px;font-weight:400;line-height:1.22;letter-spacing:-.022em;margin:0 0 16px;max-width:30ch}
html[data-fx-editorial="midday"] .post p{font-size:15px;line-height:1.65;color:var(--p-fg-2);margin:0 0 28px;max-width:58ch}
html[data-fx-editorial="midday"] .post .meta{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:auto;font-size:12px;color:var(--p-muted);font-family:var(--p-font);line-height:1.5}
html[data-fx-editorial="midday"] .post-arrow{position:absolute;top:29px;right:30px;font-size:22px;line-height:1;color:var(--p-muted)}
html[data-fx-editorial="midday"] .post:hover .post-arrow{color:var(--p-fg)}
html[data-fx-editorial="midday"] .editorial-library[data-section="academy"] .post-grid{grid-template-columns:minmax(0,1fr);gap:0;border-top:1px solid var(--p-border)}
html[data-fx-editorial="midday"] .editorial-library[data-section="academy"] .post{display:grid;grid-template-columns:72px minmax(0,1fr) 36px;gap:24px;padding:32px 16px;border:0;border-bottom:1px solid var(--p-border)}
html[data-fx-editorial="midday"] .editorial-library[data-section="academy"] .post-number{display:block;font-size:24px;line-height:1.2;color:var(--p-muted);font-variant-numeric:tabular-nums}
html[data-fx-editorial="midday"] .editorial-library[data-section="academy"] .post-category{margin:0 0 12px}
html[data-fx-editorial="midday"] .editorial-library[data-section="academy"] .post h3{max-width:42ch;font-size:27px}
html[data-fx-editorial="midday"] .editorial-library[data-section="academy"] .post p{max-width:76ch;margin-bottom:18px}
html[data-fx-editorial="midday"] .editorial-library[data-section="academy"] .post-arrow{position:static;justify-self:end}
html[data-fx-editorial="midday"] .editorial-band{padding:72px 0;text-align:left}
html[data-fx-editorial="midday"] .editorial-band h2{font-size:clamp(28px,3vw,40px);max-width:24ch}
html[data-fx-editorial="midday"] .editorial-band .lead{margin-left:0;text-align:left;max-width:60ch}

/* Article measure, metadata and long-form rhythm. */
html[data-fx-editorial="midday"] .art-wrap{max-width:872px}
html[data-fx-editorial="midday"] .art-hero .art-wrap{max-width:1016px}
html[data-fx-editorial="midday"] .art-hero h1{font-size:clamp(32px,4.1vw,52px);line-height:1.13;letter-spacing:-.03em;max-width:28ch}
html[data-fx-editorial="midday"] .art-hero .lead{max-width:66ch}
html[data-fx-editorial="midday"] .art-meta{display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:30px;color:var(--p-muted);font-size:12px;line-height:1.6}
html[data-fx-editorial="midday"] .art-meta span{max-width:100%}
html[data-fx-editorial="midday"] .art{padding:52px 0 72px}
html[data-fx-editorial="midday"] .art :is(h2,h3,h4){scroll-margin-top:100px}
html[data-fx-editorial="midday"] .art h2{font-size:29px;line-height:1.23;letter-spacing:-.025em;margin:52px 0 20px}
html[data-fx-editorial="midday"] .art h3{font-size:22px;line-height:1.3;margin:32px 0 16px}
html[data-fx-editorial="midday"] .art h4{font-size:19px;line-height:1.4;margin:28px 0 14px}
html[data-fx-editorial="midday"] .art :is(p,ul,ol){font-size:17px;line-height:1.85;color:var(--p-fg-2);margin:0 0 22px}
html[data-fx-editorial="midday"] .art :is(b,strong){color:var(--p-fg);font-weight:400}
html[data-fx-editorial="midday"] .art a{color:var(--p-fg);text-decoration:underline;text-decoration-color:#686868;text-underline-offset:4px}
html[data-fx-editorial="midday"] .art a:hover{text-decoration-color:var(--p-fg)}
html[data-fx-editorial="midday"] .art :is(ul,ol){padding-left:24px}
html[data-fx-editorial="midday"] .art li{padding-left:5px;margin-bottom:10px}
html[data-fx-editorial="midday"] .art li::marker{color:var(--p-muted)}
html[data-fx-editorial="midday"] .art blockquote{margin:30px 0;padding:22px 24px;border-left:2px solid var(--p-muted);background:var(--p-surface);color:var(--p-fg);font-size:18px;line-height:1.75}
html[data-fx-editorial="midday"] .art code{font-family:var(--p-font);font-size:.94em;color:var(--p-fg);background:var(--p-surface-2);padding:2px 5px;overflow-wrap:anywhere}
html[data-fx-editorial="midday"] .art hr{border:0;border-top:1px solid var(--p-border);margin:40px 0}
html[data-fx-editorial="midday"] .art-table{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;margin:30px 0;border:1px solid var(--p-border);scrollbar-color:#555 var(--p-surface);scrollbar-width:thin}
html[data-fx-editorial="midday"] .art table{border-collapse:collapse;width:100%;font-size:14px;line-height:1.6;font-variant-numeric:tabular-nums}
html[data-fx-editorial="midday"] .art :is(th,td){text-align:left;padding:16px;border-bottom:1px solid var(--p-border);color:var(--p-fg-2);vertical-align:top}
html[data-fx-editorial="midday"] .art th{font-weight:400;color:var(--p-fg);background:var(--p-surface-2)}
html[data-fx-editorial="midday"] .art :is(td,th):first-child{min-width:180px}
html[data-fx-editorial="midday"] .art :is(td,th):not(:first-child){white-space:nowrap}
html[data-fx-editorial="midday"] .art tr:last-child td{border-bottom:0}

/* Reading navigation and calls to action stay part of the same surface. */
html[data-fx-editorial="midday"] .art-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:56px 0 0}
html[data-fx-editorial="midday"] .art .art-nav-link{display:block;min-width:0;padding:24px;border:1px solid var(--p-border);text-decoration:none;line-height:1.5}
html[data-fx-editorial="midday"] .art-nav-link:hover{background:var(--p-surface)}
html[data-fx-editorial="midday"] .art-nav-link span{display:block;font-size:12px;color:var(--p-muted);margin-bottom:12px}
html[data-fx-editorial="midday"] .art-nav-link b{font-size:16px;font-weight:400}
html[data-fx-editorial="midday"] .art .art-nav-empty{border:0;background:none}
html[data-fx-editorial="midday"] .art-cta{margin:48px 0 0;padding:32px;border:1px solid var(--p-border);background:var(--p-surface)}
html[data-fx-editorial="midday"] .art-cta h3{margin:0 0 14px;font-size:26px}
html[data-fx-editorial="midday"] .art-cta p{font-size:15px;line-height:1.75;margin:0 0 24px}
html[data-fx-editorial="midday"] .art-cta .row{display:flex;flex-wrap:wrap;gap:12px}
html[data-fx-editorial="midday"] .art-cta :is(.btn-main,.btn-ghost){display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 18px;font-size:14px;font-weight:400;line-height:1.5;border:1px solid var(--p-border);border-radius:0;text-decoration:none;text-align:center}
html[data-fx-editorial="midday"] .art-cta .btn-main{background:var(--p-primary);color:var(--p-primary-fg);border-color:var(--p-primary)}
html[data-fx-editorial="midday"] .art-cta .btn-main:hover{background:#dedede}
html[data-fx-editorial="midday"] .art-cta .btn-ghost:hover{border-color:var(--p-muted)}
html[data-fx-editorial="midday"] .art-more{padding:56px 0 88px;border-top:1px solid var(--p-border)}
html[data-fx-editorial="midday"] .art-more h2{font-size:28px;line-height:1.3;margin:0 0 32px}
html[data-fx-editorial="midday"] .art-more .post-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
html[data-fx-editorial="midday"] .art-more .post{padding:24px}
html[data-fx-editorial="midday"] .art-more .post h3{font-size:21px}
html[data-fx-editorial="midday"] .art-more .post-arrow{top:23px;right:22px}
@media(max-width:1100px){
  html[data-fx-editorial="midday"] .wrap{padding:0 30px}
  html[data-fx-editorial="midday"] header.nav .fxnav-inner{padding-left:30px;padding-right:30px}
  html[data-fx-editorial="midday"] .art-more .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  html[data-fx-editorial="midday"] .wrap{padding:0 24px}
  html[data-fx-editorial="midday"] header.nav .fxnav-inner{padding:0 20px}
  html[data-fx-editorial="midday"] .page-hero{padding:108px 0 40px}
  html[data-fx-editorial="midday"] .editorial-topline{margin-bottom:32px;align-items:flex-start}
  html[data-fx-editorial="midday"] .editorial-topline :is(a,.eyebrow){font-size:12px}
  html[data-fx-editorial="midday"] .page-hero .lead{font-size:16px;margin-top:22px}
  html[data-fx-editorial="midday"] .editorial-library{padding:32px 0 56px}
  html[data-fx-editorial="midday"] .sec-head{display:block;margin-bottom:24px}
  html[data-fx-editorial="midday"] .sec-head .eyebrow{margin-bottom:12px}
  html[data-fx-editorial="midday"] .sec-head h2{font-size:19px}
  html[data-fx-editorial="midday"] :is(.post-grid,.art-more .post-grid){grid-template-columns:minmax(0,1fr);gap:16px}
  html[data-fx-editorial="midday"] .post{padding:24px}
  html[data-fx-editorial="midday"] .post h3{font-size:23px}
  html[data-fx-editorial="midday"] .post-arrow{top:23px;right:22px}
  html[data-fx-editorial="midday"] .editorial-library[data-section="academy"] .post{grid-template-columns:28px minmax(0,1fr);gap:16px;padding:28px 0}
  html[data-fx-editorial="midday"] .editorial-library[data-section="academy"] .post-number{font-size:18px}
  html[data-fx-editorial="midday"] .editorial-library[data-section="academy"] .post h3{font-size:22px}
  html[data-fx-editorial="midday"] .editorial-library[data-section="academy"] .post-category{padding-right:24px}
  html[data-fx-editorial="midday"] .editorial-library[data-section="academy"] .post-arrow{position:absolute;right:0;top:28px;font-size:18px}
  html[data-fx-editorial="midday"] .editorial-band{padding:48px 0}
  html[data-fx-editorial="midday"] .art-meta{gap:8px 16px;margin-top:24px}
  html[data-fx-editorial="midday"] .art{padding:36px 0 48px}
  html[data-fx-editorial="midday"] .art :is(p,ul,ol){font-size:16px;line-height:1.8}
  html[data-fx-editorial="midday"] .art h2{font-size:25px;margin-top:38px}
  html[data-fx-editorial="midday"] .art h3{font-size:21px}
  html[data-fx-editorial="midday"] .art blockquote{padding:18px;font-size:16px}
  html[data-fx-editorial="midday"] .art-nav{grid-template-columns:minmax(0,1fr);gap:12px;margin-top:36px}
  html[data-fx-editorial="midday"] .art .art-nav-empty{display:none}
  html[data-fx-editorial="midday"] .art-cta{padding:24px;margin-top:32px}
  html[data-fx-editorial="midday"] .art-cta h3{font-size:23px}
  html[data-fx-editorial="midday"] .art-cta .row{flex-direction:column}
  html[data-fx-editorial="midday"] .art-more{padding:40px 0 56px}
}
@media(prefers-reduced-motion:reduce){
  html[data-fx-editorial="midday"]{scroll-behavior:auto}
  html[data-fx-editorial="midday"] .post{transition:none}
}
