/*
Theme Name: FXSB Theme
Theme URI: https://fxsignupbroker.com
Description: Lightweight theme for fxsignupbroker.com. Layout, header and footer only; broker components come from the FXSB Core plugin.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: fxsb-theme
*/
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--fx-bg, #f8fafc); color: var(--fx-ink, #0f172a); font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 1rem; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--fx-navy, #1e3a8a); text-underline-offset: 2px; }
a:hover { color: #172554; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); margin: 0 0 .5rem; }
h2 { font-size: 1.375rem; margin: 2rem 0 .6rem; }
h3 { font-size: 1.0625rem; margin: 1.25rem 0 .4rem; }
table { border-collapse: collapse; }
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2rem, 46rem); }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; padding: .6rem 1rem; background: #fff; }
.skip-link:focus { left: .5rem; top: .5rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--fx-line, #e2e8f0); }
.site-header__bar { display: flex; align-items: center; gap: 1rem; min-height: 60px; }
.site-brand { font-weight: 700; font-size: 1.125rem; color: var(--fx-ink, #0f172a); text-decoration: none; white-space: nowrap; }
.site-brand span { color: var(--fx-accent, #a16207); }
.site-nav { flex: 1; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .1rem .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .55rem .7rem; border-radius: 8px; color: var(--fx-ink-2, #334155); font-weight: 500; font-size: .9375rem; text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item > a { background: var(--fx-bg, #f8fafc); color: var(--fx-navy, #1e3a8a); }
.nav-toggle { display: none; min-width: 44px; min-height: 44px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font: inherit; cursor: pointer; }
.site-notice { margin: 0; padding: .6rem 1rem; background: #fef3c7; color: #78350f; font-size: .875rem; text-align: center; }
@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
	.site-nav { display: none; flex-basis: 100%; order: 3; padding-bottom: .75rem; }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; }
	.site-nav a { padding: .75rem .5rem; }
	.site-header__bar { flex-wrap: wrap; }
	.fxsb-country select { max-width: 9.5rem; }
}

/* content */
.site-main { padding: 1.5rem 0 3rem; }
.page-lead { color: var(--fx-ink-2, #334155); font-size: 1.0625rem; max-width: 46rem; }
.fxsb-prose, .entry-content { max-width: 46rem; }
.entry-content--wide { max-width: none; }
.entry-content table:not(.fxsb-table), .fxsb-prose table:not(.fxsb-table) { width: 100%; margin: 1rem 0; font-size: .9375rem; background: #fff; border: 1px solid var(--fx-line, #e2e8f0); }
.entry-content table:not(.fxsb-table) th, .entry-content table:not(.fxsb-table) td, .fxsb-prose table:not(.fxsb-table) th, .fxsb-prose table:not(.fxsb-table) td { padding: .6rem .75rem; border-bottom: 1px solid var(--fx-line, #e2e8f0); text-align: left; vertical-align: top; }
.entry-content table:not(.fxsb-table) thead th, .fxsb-prose table:not(.fxsb-table) thead th { background: var(--fx-bg, #f8fafc); font-size: .8125rem; }
.entry-meta { color: var(--fx-muted, #475569); font-size: .8125rem; }
.card-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); list-style: none; margin: 1rem 0; padding: 0; }
.card-grid a { display: block; height: 100%; padding: 1rem; border: 1px solid var(--fx-line, #e2e8f0); border-radius: 10px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s; }
.card-grid a:hover { border-color: var(--fx-navy, #1e3a8a); }
.card-grid b { display: block; margin-bottom: .25rem; }
.card-grid span { color: var(--fx-muted, #475569); font-size: .875rem; }
.pagination { display: flex; gap: .5rem; margin: 2rem 0; }

/* footer */
.site-footer { background: var(--fx-ink, #0f172a); color: #cbd5e1; font-size: .875rem; padding: 2.5rem 0 2rem; }
.site-footer a { color: #e2e8f0; }
.site-footer__cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.site-footer h2 { margin: 0 0 .5rem; font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .2rem 0; }
.site-footer__legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #334155; color: #94a3b8; font-size: .8125rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
