/* ═══════════════════════════════════════════════════════
   SHARED THEME — forexcompare.in
   Enqueued on every page via functions.php.
   Page-specific styles live in each template's <style> block.
   ═══════════════════════════════════════════════════════ */

/* ── FONTS ── */
@font-face { font-family: 'DM Sans'; src: url('fonts/dm-sans-v17-latin-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('fonts/dm-sans-v17-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('fonts/dm-sans-v17-latin-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('fonts/dm-sans-v17-latin-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('fonts/dm-mono-v16-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('fonts/dm-mono-v16-latin-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── VARIABLES ── */
:root {
  --green:        #0E7C5A;
  --green-light:  #E6F4EF;
  --green-mid:    #1D9E75;
  --red:          #C0392B;
  --red-light:    #FDECEA;
  --amber:        #92600A;
  --amber-light:  #FDF3D0;
  --gray-50:      #F7F7F5;
  --gray-100:     #EFEFEC;
  --gray-200:     #DDDDD8;
  --gray-300:     #C8C8C3;
  --gray-400:     #696965;
  --gray-600:     #5C5C57;
  --gray-900:     #1A1A18;
  --border:       1px solid var(--gray-200);
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --radius:       6px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
h1 { font-size: 22px; font-weight: 500; color: var(--gray-900); letter-spacing: -0.01em; }
a { font-weight: 500; }

/* ── BASE ── */
body {
  font-family: var(--font-body);
  background: var(--gray-50);
  color: var(--gray-900);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── HEADER ── */
header {
  background: #fff;
  border-bottom: var(--border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo { font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--gray-900); letter-spacing: -0.02em; text-decoration: none; }
.logo span { color: var(--green); }
nav { display: flex; gap: 1.5rem; align-items: center; }
nav a { font-size: 13px; color: var(--gray-600); text-decoration: none; font-weight: 400; transition: color 0.15s; }
nav a:hover { color: var(--gray-900); }
nav a.active { color: var(--gray-900); font-weight: 500; }
.nav-badge { display: inline-block; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: #fff; background: var(--green); border-radius: 99px; padding: 1px 6px; vertical-align: middle; }

.nav-insights { position: relative; display: inline-block; }
.nav-insights summary { font-size: 13px; color: var(--gray-600); cursor: pointer; list-style: none; transition: color 0.15s; }
.nav-insights summary::-webkit-details-marker { display: none; }
.nav-insights summary:hover, .nav-insights[open] summary { color: var(--gray-900); }
.nav-insights-menu { position: absolute; top: 100%; left: 0; margin-top: 8px; background: #fff; border: var(--border); border-radius: var(--radius); padding: 6px; min-width: 200px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); display: flex; flex-direction: column; z-index: 10; }
.nav-insights-menu a { font-size: 13px; color: var(--gray-600); text-decoration: none; padding: 6px 10px; border-radius: 4px; }
.nav-insights-menu a:hover { background: var(--gray-50); color: var(--gray-900); }

/* ── FOOTER ── */
footer { border-top: var(--border); background: #fff; padding: 1.25rem 1.5rem; margin-top: 1rem; font-size: 11.5px; color: var(--gray-400); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
footer a { color: var(--gray-400); text-decoration: none; }
footer a:hover { color: var(--gray-900); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  header, footer { padding: 0 1rem; }
}

/* ── ARTICLE ── */
.article-wrap { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.article-back { display: inline-block; font-size: 13px; color: var(--gray-600); text-decoration: none; margin-bottom: 2rem; }
.article-back:hover { color: var(--gray-900); }
.article-meta { font-size: 12px; color: var(--gray-400); font-family: var(--font-mono); margin-bottom: 0.75rem; }
.article-title { font-size: 1.75rem; font-weight: 600; color: var(--gray-900); line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 2rem; }

.article-body h2 { font-size: 1.1rem; font-weight: 600; color: var(--gray-900); margin: 2.25rem 0 0.75rem; letter-spacing: -0.01em; }
.article-body p { color: var(--gray-600); margin-bottom: 1rem; line-height: 1.75; }
.article-body ul, .article-body ol { color: var(--gray-600); padding-left: 1.4rem; margin-bottom: 1rem; }
.article-body li { margin-bottom: 0.35rem; line-height: 1.75; }
.article-body a { color: var(--green); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-body strong { color: var(--gray-900); font-weight: 600; }

.finding-box { background: var(--green-light); border: 1px solid #A8D5C5; border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.finding-box p { color: var(--green); margin-bottom: 0; font-size: 14px; }
.finding-box strong { color: var(--green); }

.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 1.25rem 0 1.5rem; background: #fff; border: var(--border); border-radius: var(--radius); overflow: hidden; }
.data-table thead th { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-600); padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--gray-200); background: var(--gray-100); }
.data-table thead th.num { text-align: right; }
.data-table tbody td { padding: 9px 14px; border-bottom: 1px solid var(--gray-200); color: var(--gray-600); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--gray-50); }
.data-table .num { font-family: var(--font-mono); font-size: 13px; text-align: right; }
.data-table .bank-name { font-weight: 500; color: var(--gray-900); white-space: nowrap; }
.badge-best  { display: inline-block; font-size: 10px; font-weight: 500; background: var(--green-light); color: var(--green); border: 1px solid #A8D5C5; padding: 1px 7px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }
.badge-worst { display: inline-block; font-size: 10px; font-weight: 500; background: var(--red-light); color: var(--red); border: 1px solid #F5C6C2; padding: 1px 7px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }

.stat-row { display: flex; gap: 1rem; margin: 1.25rem 0 1.5rem; flex-wrap: wrap; }
.stat-box { flex: 1; min-width: 140px; background: #fff; border: var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.stat-num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500; color: var(--gray-900); display: block; margin-bottom: 0.25rem; }
.stat-label { font-size: 12px; color: var(--gray-400); line-height: 1.4; }

.cta-box { background: #fff; border: var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-top: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.cta-box p { color: var(--gray-600); font-size: 14px; margin: 0; }
.cta-btn { display: inline-block; background: var(--green); color: #fff !important; text-decoration: none; padding: 8px 18px; border-radius: var(--radius); font-size: 13px; font-weight: 500; white-space: nowrap; }
.cta-btn:hover { background: var(--green-mid); color: #fff; }

.article-note { font-size: 12px; color: var(--gray-400); margin-top: 1.5rem; line-height: 1.65; border-top: var(--border); padding-top: 1.25rem; }

@media (max-width: 600px) {
  .article-wrap { padding: 1.5rem 1rem 3rem; }
  .article-title { font-size: 1.4rem; }
  .stat-row { flex-direction: column; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .chart-wrap { margin-left: -1rem; margin-right: -1rem; border-radius: 0; padding-left: 0.5rem; padding-right: 0.5rem; }
}
