/*
Theme Name: Forex Info
Theme URI: https://forex-info.com
Description: Trading-terminal theme for Forex-Info.com. Pairs with the Forex Info Core plugin for rates, news, watchlists, strategies, pair pages and the economic calendar.
Version: 2.0.1
Author: Forex-Info.com
License: GPL-2.0-or-later
Text Domain: forex-info
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
  --bg: #0D141B;
  --panel: #131C25;
  --panel-2: #18232E;
  --rule: #22303C;
  --rule-strong: #314250;
  --ink: #E3EBF0;
  --muted: #8EA0AE;
  --brand: #2EC4A6;
  --brand-ink: #04130F;
  --s1: #2A9C88;
  --s2: #7383E0;
  --s3: #BC842A;
  --up: #33D18F;
  --down: #FF6B6B;
  --warn: #F2B84B;
  --focus: #8C9BF0;
  --tint: rgba(46, 196, 166, 0.10);
  --surface: var(--panel);
  --paper: var(--bg);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --serif: var(--font);
  --wrap: 1320px;
  --gutter: 16px;
  --radius: 8px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-variation-settings: "wdth" 110; font-weight: 750; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
::selection { background: rgba(46, 196, 166, 0.35); }

.fxt-sr, .fxi-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fxt-skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; z-index: 100; }
.fxt-skip:focus { left: 8px; }

.fxt-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 24px; } }

/* Header */
.fxt-header { background: var(--panel); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 40; }
.fxt-header__inner { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.fxt-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.fxt-logo__mark { width: 30px; height: 30px; flex: none; border-radius: 7px; }
.fxt-logo__word { font-weight: 800; font-size: 1.2rem; font-variation-settings: "wdth" 115; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.fxt-logo__word span { color: var(--muted); font-weight: 500; }
.fxt-nav { margin-left: auto; order: 2; }
.fxt-watch { order: 3; }
.fxt-navtoggle { order: 4; }
.fxt-menu { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; align-items: center; }
.fxt-menu a { display: block; padding: 8px 11px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; border-radius: 6px; }
.fxt-menu a:hover { color: var(--ink); background: var(--panel-2); }
.fxt-menu .current-menu-item > a, .fxt-menu .current_page_item > a, .fxt-menu .current-page-ancestor > a { color: var(--ink); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 6px 6px 0 0; }
.fxt-menu .fxt-menu__pro > a { background: var(--brand); color: var(--brand-ink); margin-left: 6px; box-shadow: none; border-radius: 6px; }
.fxt-menu .fxt-menu__pro > a:hover { filter: brightness(1.1); background: var(--brand); color: var(--brand-ink); }
.fxt-watch { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 10px; border-radius: 6px; flex: none; }
.fxt-watch:hover { color: var(--ink); background: var(--panel-2); }
.fxt-watch svg { width: 18px; height: 18px; fill: var(--warn); }
.fxt-navtoggle { display: none; background: none; border: 1px solid var(--rule-strong); border-radius: 6px; width: 44px; height: 40px; color: var(--ink); cursor: pointer; flex: none; }
.fxt-navtoggle__bars, .fxt-navtoggle__bars::before, .fxt-navtoggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; content: ""; }
.fxt-navtoggle__bars::before { position: absolute; top: -6px; }
.fxt-navtoggle__bars::after { position: absolute; top: 6px; }
@media (max-width: 1020px) {
  .fxt-navtoggle { display: block; }
  .fxt-watch { margin-left: auto; }
  .fxt-watch span { display: none; }
  .fxt-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px; }
  .fxt-nav.is-open { display: block; }
  .fxt-menu { flex-direction: column; align-items: stretch; }
  .fxt-menu a { padding: 12px 8px; color: var(--ink); }
  .fxt-menu .current-menu-item > a, .fxt-menu .current_page_item > a { border-radius: 6px; box-shadow: inset 3px 0 0 var(--brand); }
  .fxt-menu .fxt-menu__pro > a { margin: 8px 0 0; text-align: center; }
}

/* Main */
.fxt-main { min-height: 60vh; }
.fxt-front { padding-top: 20px; padding-bottom: 56px; }
.fxt-page { padding-top: 32px; padding-bottom: 64px; }
.fxt-page__head { max-width: 900px; margin-bottom: 24px; }
.fxt-crumb { margin: 0 0 8px; font-weight: 600; font-size: 0.9rem; }
.fxt-crumb a { text-decoration: none; color: var(--muted); }
.fxt-crumb a:hover { color: var(--brand); }
.fxt-crumb a::before { content: "‹ "; }
.fxt-content > * { max-width: 860px; }
.fxt-content > .wp-block-shortcode, .fxt-content > div[class^="fxi-"], .fxt-content > div[class*=" fxi-"], .fxt-content > ol.fxi-strategies, .fxt-content > ul.fxi-learnlist, .fxt-content > aside.fxi-procta, .fxt-content > section.fxi-sessions { max-width: none; }
.fxt-content > p, .fxt-content > ul, .fxt-content > ol { color: #C9D5DC; }
.fxt-content--article > p, .fxt-content--article > ul, .fxt-content--article > ol { font-size: 1.075rem; line-height: 1.75; max-width: 70ch; }
.fxt-content--article > h2 { margin-top: 1.8em; }
.fxt-content strong { color: var(--ink); }
.fxt-content ul, .fxt-content ol { padding-left: 1.25em; }
.fxt-content li { margin-bottom: 0.45em; }

.fxt-siblings { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); }
.fxt-siblings h2 { font-size: 1rem; color: var(--muted); }
.fxt-siblings ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fxt-siblings a { display: inline-block; padding: 8px 12px; border: 1px solid var(--rule-strong); border-radius: 6px; text-decoration: none; font-weight: 600; color: var(--ink); }
.fxt-siblings a:hover { border-color: var(--brand); color: var(--brand); }

.fxt-postlist { list-style: none; padding: 0; }
.fxt-postlist li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.fxt-postlist time { color: var(--muted); font-size: 0.9rem; margin-left: 8px; }

/* Footer */
.fxt-footer { background: var(--panel); border-top: 1px solid var(--rule); padding: 40px 0 28px; color: var(--muted); font-size: 0.925rem; }
.fxt-footer__inner { display: grid; gap: 24px 48px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .fxt-footer__inner { grid-template-columns: 1fr 2fr; } .fxt-footer__risk, .fxt-footer__copy { grid-column: 1 / -1; } }
.fxt-footer__brand .fxt-logo__word { margin-bottom: 6px; }
.fxt-footer__nav ul { list-style: none; margin: 0; padding: 0; columns: 3 150px; column-gap: 32px; }
.fxt-footer__nav li { margin-bottom: 8px; break-inside: avoid; }
.fxt-footer__nav a { color: var(--ink); text-decoration: none; }
.fxt-footer__nav a:hover { color: var(--brand); }
.fxt-footer__risk { font-size: 0.825rem; line-height: 1.55; max-width: 100ch; border-top: 1px solid var(--rule); padding-top: 18px; margin: 0; }
.fxt-footer__copy { font-size: 0.825rem; margin: 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
