/* ProMarkets: Modern International. Logical properties throughout so RTL locales mirror. */
:root {
  --ink: #161A22; --graphite: #2B303B; --muted: #5E6573; --rule: #E3E6EC;
  --paper: #FFFFFF; --soft: #F4F6FA; --cobalt: #2457E8; --cobalt-dark: #1C45BA;
  --ok: #1E7B4F; --err: #B42318; --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang HK", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans SC", "Noto Sans Devanagari", "Nirmala UI", "Noto Sans Bengali", "Noto Sans Telugu", "Noto Naskh Arabic", "Noto Nastaliq Urdu", "Yu Gothic", "Hiragino Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.55; font-size: 16px; }
img, svg { max-inline-size: 100%; block-size: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-dark); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin-block: 0 .5em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin-block: 0 1em; }
table { border-collapse: collapse; inline-size: 100%; }
.wrap { inline-size: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { inline-size: min(520px, 100% - 32px); }
.page { padding-block: 40px 64px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.accent { color: var(--cobalt); display: block; }
.sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; inset-block-start: -40px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { inset-block-start: 8px; }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-block-size: 44px; padding: 10px 18px; border-radius: 8px; border: 0; background: var(--cobalt); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--cobalt-dark); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--soft); color: var(--ink); }
.btn-block { inline-size: 100%; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--graphite); cursor: pointer; min-block-size: 44px; }
form.inline { display: inline; }
.form { display: grid; gap: 16px; margin-block: 20px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.field small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid #C9CED8; border-radius: 8px; padding: 10px 12px; min-block-size: 44px; inline-size: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--cobalt); outline: 2px solid rgba(36, 87, 232, .25); }
.flash { padding: 12px 16px; border-radius: 8px; margin-block: 16px; border-inline-start: 4px solid; }
.flash-ok { background: #ECF7F1; border-color: var(--ok); }
.flash-error { background: #FDF0EF; border-color: var(--err); }
main > .flash { inline-size: min(1200px, 100% - 32px); margin-inline: auto; }
.cf-turnstile { min-block-size: 65px; }

/* header & footer */
.topline { background: var(--soft); color: var(--muted); font-size: .8rem; }
.topline .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-block-size: 40px; flex-wrap: wrap; }
.lang { display: flex; align-items: center; gap: 8px; }
.lang select { min-block-size: 32px; padding: 4px 8px; inline-size: auto; font-size: .85rem; }
header.site { border-block-end: 1px solid var(--rule); background: #fff; }
header.site .wrap { display: flex; align-items: center; gap: 24px; min-block-size: 72px; flex-wrap: wrap; }
.logo { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.logo span { color: var(--cobalt); }
header.site nav { display: flex; gap: 20px; margin-inline-start: auto; }
header.site nav a, .acct > a:not(.btn) { color: var(--graphite); text-decoration: none; font-size: .95rem; padding-block: 12px; }
header.site nav a[aria-current="page"] { color: var(--cobalt); box-shadow: inset 0 -2px var(--cobalt); }
.acct { display: flex; align-items: center; gap: 16px; }
footer.site { background: var(--ink); color: #C7CCD6; padding-block: 40px; margin-block-start: 40px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.site .logo { color: #fff; }
footer.site .muted { color: #8F97A6; font-size: .85rem; margin: 0; }
.powered { letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; color: #fff; }

/* Arabic-script languages: a little more line height for diacritics and Nastaliq. */
[dir="rtl"] body { line-height: 1.8; }
[dir="rtl"] .back-arrow { display: inline-block; transform: scaleX(-1); }
.logo { unicode-bidi: isolate; }

/* home */
.hero { background: linear-gradient(180deg, var(--soft), #fff); padding-block: 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--cobalt); }
.lead { font-size: 1.1rem; color: var(--muted); max-inline-size: 52ch; }
.hero-art { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); background: linear-gradient(135deg, #E4E9F2, #F7F8FB); overflow: hidden; }
.hero-art .ring { position: absolute; inset-inline-start: 36%; inset-block-start: 16%; inline-size: 30%; aspect-ratio: .78; border: 26px solid #4A5160; border-radius: 50%; transform: rotate(-18deg); }
.hero-art .plinth { position: absolute; inset-inline-start: 30%; inset-block-end: 0; inline-size: 40%; block-size: 22%; background: #D5DAE3; }
.markets { padding-block: 48px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: block; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; background: #fff; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 8px 24px rgba(22, 26, 34, .08); color: var(--ink); }
.card .media { aspect-ratio: 400 / 260; overflow: hidden; background: var(--soft); }
.card .media img, .card .media svg { inline-size: 100%; block-size: 100%; object-fit: cover; }
.card-body { padding: 16px; }
.sell-band { background: var(--graphite); color: #fff; padding-block: 48px; }
.sell-band p { color: #C7CCD6; }

/* equipment */
.eq-head { background: var(--soft); padding-block: 32px; }
.crumbs { font-size: .85rem; color: var(--muted); }
.search { display: flex; gap: 8px; margin-block-start: 16px; }
.search input { flex: 1; }
.eq-grid { display: grid; grid-template-columns: 250px 1fr; gap: 32px; padding-block: 32px; }
.filters { display: grid; gap: 14px; position: sticky; inset-block-start: 16px; }
.filters-head { display: flex; justify-content: space-between; align-items: baseline; }
.filters-head h2 { font-size: 1rem; margin: 0; }
.count { font-weight: 600; }
.group { font-size: 1.2rem; margin-block: 24px 8px; }
.note { padding: 16px; background: var(--soft); border-radius: var(--radius); }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-block: 12px 20px; }
.lcard { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.lcard .media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--soft); }
.lcard .media img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.badge { position: absolute; inset-inline-start: 10px; inset-block-start: 10px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 8px; border-radius: 4px; }
.badge.static { position: static; display: inline-block; }
.lcard-body { padding: 16px; display: grid; gap: 6px; }
.lcard-body h3 { margin: 0; }
.lcard-body h3 a { color: var(--ink); text-decoration: none; }
.kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--muted); margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: .92rem; }
.status { font-weight: 700; margin: 0; }
.seller { border-block-start: 1px solid var(--rule); padding-block-start: 10px; font-size: .9rem; display: grid; gap: 4px; }
.seller .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
/* A generic placeholder: no real seller data is ever present behind it. */
.redacted { display: block; inline-size: 70%; block-size: 12px; border-radius: 6px; background: linear-gradient(90deg, #DDE2EA, #EEF1F5, #DDE2EA); }
.more { font-weight: 600; text-decoration: none; }
.empty { border: 1px dashed #C9CED8; border-radius: var(--radius); padding: 32px; text-align: center; margin-block: 24px; }

/* listing */
.listing-head h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.listing-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.gallery { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.gallery img { inline-size: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-block-start: 10px; }
.thumbs a { border-radius: 6px; overflow: hidden; border: 2px solid transparent; }
.thumbs a[aria-current="true"] { border-color: var(--cobalt); }
.thumbs img { aspect-ratio: 4 / 3; object-fit: cover; inline-size: 100%; }
.facts-box { border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; position: sticky; inset-block-start: 16px; }
.facts-box dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.facts-box dt { color: var(--muted); }
.facts-box dd { margin: 0; font-weight: 600; text-align: end; }
.block { margin-block-start: 36px; }
.spec th, .spec td, .scope th, .scope td { text-align: start; padding: 10px 12px; border-block-end: 1px solid var(--rule); vertical-align: top; }
.spec th { color: var(--muted); font-weight: 500; inline-size: 40%; }
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); }
.scope { min-inline-size: 720px; font-size: .92rem; }
.scope thead th { background: var(--soft); font-size: .8rem; }
.scope .num { text-align: end; font-variant-numeric: tabular-nums; }
.scope tfoot th, .scope tfoot td { font-weight: 700; border-block-end: 0; }
.steps { padding-inline-start: 20px; display: grid; gap: 6px; margin-block: 16px 28px; }

@media (max-width: 900px) {
  .hero-grid, .listing-grid, .eq-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .cards { grid-template-columns: 1fr; }
  .filters, .facts-box { position: static; }
  header.site nav { order: 3; inline-size: 100%; margin-inline-start: 0; overflow-x: auto; }
  .acct { margin-inline-start: auto; }
}
@media (max-width: 480px) {
  .acct .btn { min-block-size: 36px; padding: 6px 10px; font-size: .85rem; }
  .acct { gap: 10px; }
  .search { flex-direction: column; }
}

/* feedback */
.fb-link { color: var(--graphite); }
.choices { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.choices legend { font-weight: 600; font-size: .95rem; margin-block-end: 8px; padding: 0; }
.choice { display: flex; align-items: center; gap: 10px; border: 1px solid #C9CED8; border-radius: 8px; padding: 10px 12px; min-block-size: 44px; cursor: pointer; background: #fff; }
.choice input { inline-size: auto; min-block-size: 0; margin: 0; accent-color: var(--cobalt); }
.choice:has(input:checked) { border-color: var(--cobalt); box-shadow: 0 0 0 1px var(--cobalt); }
.hp { position: absolute; inset-inline-start: -10000px; inline-size: 1px; block-size: 1px; overflow: hidden; }

/* terms & disclaimers */
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
.foot-links a { color: #fff; font-weight: 600; }
.notice { border: 1px solid var(--rule); border-inline-start: 4px solid var(--cobalt); border-radius: 8px; padding: 12px 16px; margin-block-start: 16px; background: var(--soft); font-size: .9rem; }
.notice p { margin-block: 6px; }
.notice h2 { font-size: 1.05rem; margin-block: 0 6px; }
.terms h2 { font-size: 1.15rem; margin-block-start: 28px; }
.terms li { margin-block: 6px; }

/* privacy centre */
.pcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-block: 24px; }
.pcard { display: block; border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px; color: inherit; text-decoration: none; background: #fff; }
.pcard:hover, .pcard:focus-visible { border-color: var(--cobalt); }
.pcard h2 { font-size: 1.1rem; margin: 0 0 8px; color: var(--ink); }
.pcard p { margin: 0; color: var(--muted); font-size: .92rem; }
table.doc { border-collapse: collapse; inline-size: 100%; font-size: .92rem; margin-block: 8px 16px; }
table.doc th, table.doc td { text-align: start; vertical-align: top; padding: 8px 10px; border-block-end: 1px solid var(--rule); }
table.doc th { background: var(--soft); }
