:root {
  color-scheme: light;
  --navy: #0d1828;
  --navy-panel: #102238;
  --ink: #111d30;
  --gold: #c9a548;
  --gold-light: #e0c575;
  --gold-text: #765a22;
  --cream: #f4eee3;
  --surface: #fcfaf6;
  --line: #ded4be;
  --muted: #615a4c;
  --light: #f6efe3;
  --light-muted: #d0c7b8;
  --serif: Georgia, 'Times New Roman', serif;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='118' height='102' viewBox='0 0 118 102'%3E%3Cpath d='M30 3 57 19v32L30 67 3 51V19ZM89 3l27 16v32L89 67 62 51V19ZM0 55l27 16v32M59 55 32 71v32m27-48 27 16v32m32-48L91 71v32M0 0v15M59 0v15M118 0v15' fill='none' stroke='%239baabd' stroke-opacity='.078' stroke-width='1'/%3E%3C/svg%3E");
  font-family: 'Aptos', 'Segoe UI', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 95px; }
body { margin: 0; line-height: 1.55; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 4.45vw, 4.2rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.15rem); letter-spacing: -.035em; }
h3 { font-size: 1.3rem; letter-spacing: -.015em; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b18539; outline-offset: 4px; }
main:focus { outline: none; }
.wrap { width: min(1230px, calc(100% - 104px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: fixed; z-index: 20; inset: 10px auto auto 10px; color: var(--ink); background: white; padding: 10px; }
.eyebrow { font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.pattern { background: var(--navy) var(--pattern) center top repeat; color: var(--light); }
.pattern .eyebrow { color: var(--gold-light); }
.pattern p:not(.eyebrow) { color: var(--light-muted); }

.site-header { position: sticky; top: 0; z-index: 4; color: var(--light); background: var(--navy); }
.header-inner { min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: clamp(10px, 1.5vw, 22px); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 220px; height: 50px; object-fit: contain; object-position: left center; display: block; }
nav, .header-actions, .actions { display: flex; align-items: center; gap: 12px; }
#main-nav { gap: clamp(13px, 2vw, 30px); }
nav a { white-space: nowrap; font-weight: 600; font-size: .9rem; position: relative; padding-block: 7px; }
nav a:hover, nav a[aria-current="page"] { color: var(--gold-light); }
nav a[aria-current="page"]::after { content: ''; position: absolute; inset: auto 0 1px; border-bottom: 1px solid currentColor; }
.button, .menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; border: 1px solid transparent; border-radius: 5px; font-weight: 700; font-size: .9rem; text-align: center; padding: 9px 18px; transition: background-color .16s, border-color .16s; }
.header-actions .button { min-height: 38px; padding-inline: 12px; white-space: nowrap; }
.primary { background: var(--gold); color: #121a24; }
.primary:hover { background: var(--gold-light); }
.outline, .language-toggle, .menu-toggle { color: var(--gold-light); border-color: #cfad5363; background: transparent; }
.outline:hover, .language-toggle:hover, .menu-toggle:hover { border-color: var(--gold-light); background: #c9a54816; }
.language-toggle { font-family: system-ui, Tahoma, sans-serif; min-width: 58px; }
.secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.secondary:hover { background: #ebdfc2; }
.menu-toggle { display: none; padding: 4px 9px; min-height: 38px; font-size: 1.2rem; }
.actions { flex-wrap: wrap; margin-top: 24px; gap: 14px; }

.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; z-index: -1; inset-block-start: 18%; inset-inline-end: 0; width: 38%; height: 23px; opacity: .22; background: linear-gradient(#8c5735 0 33.3%, #675f53 33.3% 66.6%, #2a694d 66.6%); }
.hero-grid { min-height: max(640px, calc(100svh - 80px)); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(310px, .95fr); align-items: center; gap: clamp(30px, 5vw, 80px); padding-block: 70px; }
.hero-label { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; }
.hero-label i { width: 28px; border-top: 1px solid var(--gold); }
.country-code { font-family: ui-monospace, Consolas, monospace; color: var(--gold-light); letter-spacing: .05em; }
.hero h1 { margin-block: 25px 22px; line-height: 1.01; }
.hero-content > p:not(.eyebrow) { font-size: 1.12rem; line-height: 1.65; max-width: 500px; }
.hero .actions { margin-top: 36px; }
.hero .actions .button { min-height: 50px; padding-inline: 24px; }
.snapshot { max-width: 445px; width: 100%; background: var(--navy-panel); border: 1px solid #223852; border-radius: 17px; padding: 36px 30px 30px; box-shadow: 0 30px 62px #060e193d; }
.snapshot-countries { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; text-align: center; padding-block: 10px 27px; }
.snapshot-countries a { display: grid; gap: 5px; }
.snapshot-countries strong { font-size: 1.8rem; line-height: 1; }
.snapshot-countries small { color: var(--light-muted); font-size: .79rem; line-height: 1.38; }
.snapshot-divider { display: grid; max-width: 70px; text-wrap: balance; padding-block: 6px; border-block: 1px solid #a3843c77; font-size: .63rem; }
.snapshot-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding-block: 13px; border-top: 1px solid #233952; font-size: .82rem; }
.snapshot-row .text-link { text-align: start; padding: 0; color: inherit; background: none; border: 0; font-weight: 700; }
.snapshot-row button:hover { text-decoration: underline; }
.snapshot-row .quantity { color: var(--light-muted); }
.metrics { background: var(--gold); }
.metrics-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding-block: 28px; text-align: center; gap: 15px; }
.metrics-grid div { display: grid; gap: 1px; }
.metrics-grid strong { font: 700 clamp(1.85rem,3.5vw,2.65rem)/1 var(--serif); }
.metrics-grid span { font-size: .77rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }

.section { padding-block: 76px; }
.section-heading { margin-bottom: 24px; }
.section-heading :is(h2,h3) { margin-block: 10px; }
.section-heading > p:not(.eyebrow), .section-heading > div > p:not(.eyebrow) { color: var(--muted); }
.section-heading.heading-row { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.section-heading.heading-row .text-link { flex: none; }
.process-grid { list-style: none; margin: 55px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); counter-reset: process; }
.process-grid li { counter-increment: process; padding: 24px 30px; border-top: 1px solid var(--line); }
.process-grid li+li { border-inline-start: 1px solid var(--line); }
.process-grid li::before { content: counter(process, decimal-leading-zero); font: 700 3.1rem/1 var(--serif); color: #8d6b2b; }
[lang="fa"] .process-grid li::before { content: counter(process, persian); }
.process-grid h3 { margin-block: 17px 9px; }
.process-grid p { color: var(--muted); }
.featured { position: relative; }
.featured .section-heading > div > p:not(.eyebrow) { color: var(--light-muted); }
.featured::before { content: ''; display: block; position: absolute; inset: 0 0 auto; height: 28px; clip-path: polygon(0 0, 100% 0, 0 100%); background: var(--cream); }
.featured::after { content: ''; display: block; position: absolute; inset: auto 0 0; height: 28px; clip-path: polygon(100% 0, 100% 100%, 0 100%); background: var(--cream); }
.text-link { color: var(--gold-text); font-size: .92rem; font-weight: 750; }
.pattern .text-link { color: var(--gold-light); }
.text-link:hover, .site-footer a:not(.brand):hover { text-decoration: underline; text-underline-offset: 4px; }
.advantages { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.advantages article, .tips article, .country-stack article { border-radius: 13px; border: 1px solid var(--line); background: var(--surface); padding: 24px; }
.advantages p, .tips p, .country-stack p, .prose p { color: var(--muted); margin-top: 9px; }
.cream-panel { background: #eee5d2; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(25px, 5vw, 65px); }
.country-stack { display: grid; gap: 14px; }
.country-stack .country-code { color: var(--gold-text); }
.country-stack h3 { margin-top: 7px; }
.checklist { padding-inline-start: 1.25rem; margin-block: 12px 24px; }
.checklist li { margin-bottom: 7px; }
.market-cta { text-align: center; }
.market-cta h2 { margin-bottom: 10px; }
.market-cta .actions { justify-content: center; }

.subhero { padding-block: 61px 67px; }
.subhero .eyebrow { margin-bottom: 13px; }
.subhero h1 { font-size: clamp(2.5rem, 4vw, 3.4rem); }
.subhero p:not(.eyebrow) { margin-top: 10px; max-width: 690px; }
.filter-bar { border-bottom: 1px solid var(--line); }
.filters { padding-block: 16px; display: grid; grid-template-columns: minmax(150px,1fr) repeat(3, minmax(0,max-content)); gap: 10px; }
.search { display: flex; position: relative; align-items: center; }
.search svg { position: absolute; width: 20px; inset-inline-start: 13px; color: var(--gold-text); pointer-events: none; }
.search input { padding-inline-start: 39px; }
input:not([type="radio"]), select, textarea { width: 100%; min-width: 0; min-height: 42px; color: var(--ink); border: 1px solid #dbd0b9; border-radius: 7px; background: white; padding: 9px 11px; }
.search input { padding-inline-start: 39px; }
select { appearance: none; padding-inline-end: 34px; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23111d30' stroke-width='1.5'/%3E%3C/svg%3E") right 10px center / 16px no-repeat; }
[dir="rtl"] select { background-position: left 10px center; }
.catalog { padding-block: 42px 78px; min-height: 51vh; }
.catalog-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 22px; color: var(--muted); }
.listing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; align-items: stretch; border: 1px solid var(--line); background: var(--surface); border-radius: 13px; padding: 20px 23px; min-height: 172px; }
.featured .card { color: var(--light); border-color: #25384c; background: var(--navy-panel); }
.card-top { display: flex; gap: 9px; align-items: center; margin-bottom: 13px; font-size: .8rem; }
.card-top .country-code { color: var(--gold-text); }
.featured .card-top .country-code { color: var(--gold-light); }
.card-top .card-meta { flex: 1; color: var(--muted); font-size: .8rem; }
.featured .card-top .card-meta, .featured .card-quantity { color: var(--light-muted); }
.listing-badge { display: inline-flex; justify-content: center; min-width: 42px; border-radius: 4px; padding: 3px 7px; font-size: .68rem; font-weight: 800; line-height: 1.3; text-transform: uppercase; background: #e9d7a6; color: #3a2b12; white-space: nowrap; }
.listing-badge[data-trade="Buy"] { color: #e2edfb; background: #284870; }
.card h2, .card h3 { font-size: 1.26rem; letter-spacing: -.02em; overflow-wrap: anywhere; }
.card-quantity { margin-top: 8px; font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.card .text-link { display: block; align-self: flex-start; margin-top: auto; padding: 15px 0 0; border: 0; background: transparent; }
.empty { padding: 35px 15px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }
.empty h2 { font-size: 1.6rem; }
.empty p { margin-block: 6px 15px; color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: clamp(20px, 3vw, 34px); }
.post-layout { display: grid; align-items: start; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: clamp(20px, 3vw, 46px); }
.tips h2, .panel h2, .prose h2 { font-size: 1.55rem; }
.tips article { margin-block: 15px; padding: 18px; }
.tips h3 { font-size: 1.08rem; }
.contact-markets { margin-bottom: 28px; }
.contact-markets .country-code { color: var(--gold-text); }
.contact-markets h3 { margin-top: 7px; }
.tips p, .form-hint { font-size: .92rem; }
.form-hint { color: var(--muted); margin-block: 5px 10px; }
.legal-image { width: 100%; aspect-ratio: 1.5; object-fit: cover; border-radius: 15px; }
.prose { max-width: 850px; }
.prose p { margin-bottom: 24px; }
.accordion details { border-bottom: 1px solid #cfc2a5; padding-block: 15px; }
.accordion summary { cursor: pointer; font-weight: 700; }
.accordion p { padding: 11px 0 4px; color: var(--muted); }
.trade-type { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; }
.trade-type legend { margin-bottom: 5px; font-size: .9rem; font-weight: 700; }
.trade-type label { position: relative; }
.trade-type input { position: absolute; opacity: 0; }
.trade-type span { display: block; cursor: pointer; text-align: center; background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 9px; }
.trade-type input:checked + span { color: var(--gold-text); border-color: var(--gold); background: #f8f0d6; font-weight: 700; }
.trade-type input:focus-visible + span { outline: 3px solid #b18539; outline-offset: 2px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-block: 16px; }
.form-grid label { display: grid; gap: 5px; align-content: start; font-size: .9rem; font-weight: 700; }
.form-grid :is(input,select,textarea) { font-weight: 400; font-size: 1rem; }
.full { grid-column: 1 / -1; }
.listing-fields { grid-template-columns: repeat(6,minmax(0,1fr)); }
.listing-fields label { grid-column: span 2; }
.listing-fields .half { grid-column: span 3; }
.listing-fields .full { grid-column: 1 / -1; }
.form-subtitle { border-top: 1px solid var(--line); padding-top: 19px; margin-top: 24px; }
textarea { resize: vertical; }
.feedback { margin-top: 9px; color: #245c49; }
.feedback:empty { display: none; }

dialog { width: min(650px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: 13px; padding: 0; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: #081628b5; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-inner { padding: clamp(20px,5vw,33px); position: relative; overflow-wrap: anywhere; }
.dialog-inner h2 { font-size: clamp(1.85rem,4vw,2.55rem); margin-block: 8px; margin-inline-end: 35px; }
.dialog-inner h3 { margin-top: 14px; }
.dialog-inner .eyebrow { margin-inline-end: 25px; }
.dialog-inner > p:not(.eyebrow) { color: var(--muted); }
.dialog-inner ul { padding-inline-start: 22px; }
.detail-quantity { margin-block: 10px; font-weight: 700; }
.close-form { position: absolute; inset-inline-end: 13px; top: 13px; }
.icon-button { background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; width: 38px; height: 38px; font-size: 1.45rem; line-height: 1; }
#brief { margin-top: 8px; }

.site-footer { background: var(--navy); color: var(--light-muted); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 25px; padding-block: 48px 37px; }
.footer-grid h2 { color: var(--gold-light); font-family: inherit; font-size: .82rem; font-weight: 750; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 13px; }
.footer-grid > div > a:not(.brand) { display: block; margin-block: 7px; font-size: .9rem; }
.footer-grid p { margin-top: 10px; font-size: .91rem; max-width: 310px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid #ffffff26; padding-block: 19px; font-size: .83rem; }

:lang(fa) { --serif: Tahoma, 'Segoe UI', system-ui, sans-serif; }
html[lang="fa"] { font-family: Tahoma, 'Segoe UI', system-ui, sans-serif; }
html[lang="fa"] :is(h1,h2,h3,.eyebrow,.footer-grid h2,.metrics-grid span) { letter-spacing: normal; }
html[lang="fa"] h1 { line-height: 1.35; }
html[lang="fa"] h2 { line-height: 1.35; }
html[lang="fa"] .brand img { object-position: right center; }
html[lang="fa"] .hero-label { align-items: center; }
[dir="auto"] { text-align: start; unicode-bidi: plaintext; }

@media (max-width: 1240px) {
  .wrap { width: calc(100% - 64px); }
  .header-actions .outline { display: none; }
  .brand img { width: 194px; }
}
@media (max-width: 960px) {
  .wrap { width: calc(100% - 46px); }
  .header-inner { min-height: 76px; flex-wrap: wrap; gap: 10px; }
  .brand { margin-inline-end: auto; }
  .header-actions .desktop-action { display: none; }
  .menu-toggle { display: inline-flex; }
  #main-nav { display: none; width: 100%; order: 4; flex-direction: column; gap: 1px; align-items: stretch; padding: 0 0 12px; }
  #main-nav[data-open] { display: flex; }
  #main-nav a[aria-current="page"]::after { display: none; }
  .hero-grid { min-height: 530px; grid-template-columns: minmax(0,1fr); gap: 0; max-width: none; }
  .snapshot { display: none; }
  .hero-content { max-width: 630px; }
  .post-layout { grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 20px; }
}
@media (max-width: 690px) {
  .section { padding-block: 48px; }
  .subhero { padding-block: 44px 48px; }
  .hero-grid { min-height: 520px; padding-block: 45px; }
  .hero-content > p:not(.eyebrow) { font-size: 1rem; }
  .hero h1 { margin-block: 20px 15px; }
  .hero .actions { margin-top: 24px; }
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 22px; }
  .process-grid { grid-template-columns: 1fr; margin-top: 24px; }
  .process-grid li { padding-inline: 0; }
  .process-grid li+li { border-inline-start: 0; }
  .advantages, .split, .post-layout { grid-template-columns: 1fr; }
  .section-heading.heading-row { align-items: start; flex-direction: column; }
  .filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .search { grid-column: 1 / -1; }
  select { padding-inline: 8px 25px; background-position: right 4px center; }
  [dir="rtl"] select { background-position: left 4px center; }
  .listing-grid, .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 34px); }
  .brand img { width: clamp(140px,46vw,183px); }
  .header-inner { min-height: 68px; }
  .hero-label { gap: 7px; }
  .hero .actions .button { padding-inline: 12px; }
  .listing-grid, .form-grid { grid-template-columns: 1fr; }
  .listing-fields label { grid-column: 1 / -1; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filters select:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
