/* Shared styles for the Trade90X pages. The homepage (index.html) is self-contained. */
:root { --ink:#0B1A1E; --paper:#FFFFFF; --canvas:#F4F6F6; --text:#0B1A1E; --mute:#55666B; --line:#DCE3E5; --lime:#BEE825; --lime-ink:#4A6600; --navy:#1E3360; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16.5px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--navy); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 6px 10px; z-index: 10; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.site-header { background: var(--ink); color: #fff; }
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.site-header .logo img { display: block; }
.site-header .nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.site-header .nav a { color: #E9EDEE; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-header .nav a.btn { background: var(--lime); color: var(--ink); border-radius: 8px; padding: 10px 16px; font-weight: 600; }

.page { padding-block: 40px 64px; min-height: 60vh; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 24px; }
h2 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 8px; }
.rich h2 { font-size: 1.4rem; margin: 32px 0 10px; }
.rich p, .rich li { margin: 0 0 14px; }
.rich ul, .rich ol { padding-left: 22px; }
.rich a { overflow-wrap: anywhere; }
.embed { display: block; margin: 24px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.meta { color: var(--mute); font-size: 14px; margin: 0 0 8px; }

.cards { display: grid; gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.card h2 a { color: var(--text); text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; }
.pager a { min-height: 44px; display: inline-flex; align-items: center; }
.post .rich { margin-top: 12px; }
.post figure { margin: 24px 0; }
.post img { border-radius: 8px; }
.post .button { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 8px; background: var(--lime); color: var(--ink); text-decoration: none; font-weight: 600; }

.site-footer { background: var(--ink); color: #C9D3D6; padding-block: 40px 56px; font-size: 14.5px; }
.site-footer a { color: #E9EDEE; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer .foot-logo { margin-bottom: 20px; }
.subscribe { margin-bottom: 20px; max-width: 460px; }
.subscribe label { display: block; font-weight: 600; color: #fff; margin-bottom: 8px; }
.subscribe .row { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe input { flex: 1 1 220px; min-height: 44px; padding: 10px 12px; border-radius: 8px; border: 1px solid #3A4F55; background: #fff; color: var(--text); font: inherit; }
.subscribe button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 8px; background: var(--lime); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.subscribe .form-msg { margin: 8px 0 0; min-height: 1.5em; color: #fff; }
.contact { margin: 0 0 16px; }
.social, .legal { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0; margin: 0 0 16px; }
.legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.legal a { min-height: 44px; }
.disclaimer { margin: 0 0 12px; color: #A9B6BA; font-size: 13.5px; }
.copy { margin: 16px 0 0; color: #A9B6BA; font-size: 13.5px; }

/* Free tools */
.btn-lime, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.kit-box { margin: 32px 0 8px; padding: 18px 20px; border: 1.5px solid var(--lime); border-radius: 10px; background: #F7FBE6; }
.kit-box p { margin: 0 0 12px; }
.kit-box .kit-box-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.tool-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 8px; }
.tool-card { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.tool-card p { margin: 0 0 14px; }

/* Tap targets at least 44px. */
.site-header .logo { display: inline-flex; align-items: center; min-height: 44px; }
.site-header .nav a, .site-footer a { min-width: 44px; justify-content: center; }
.back { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 540px) {
  body { font-size: 16px; }
  .site-header .bar { padding-block: 8px; }
  .site-header .nav { gap: 0 14px; }
  .pager { flex-direction: column; }
}
