@font-face {
  font-family: Souq Arabic;
  src: url('/noto-sans-arabic.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Souq Arabic;
  src: url('/noto-sans-arabic-bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 650 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --page: #f5f6f0;
  --surface: #fff;
  --ink: #192c24;
  --ink-strong: #10261b;
  --muted: #56655c;
  --green: #236247;
  --green-dark: #163d30;
  --green-light: #e8f3ea;
  --line: #dfe6dc;
  --lime: #d7ee87;
  --numeric: 'Segoe UI', Arial, sans-serif;
  font-family: var(--numeric);
  background: var(--page);
  color: var(--ink);
  font-synthesis: none;
  line-height: 1.5;
  scroll-padding-top: 94px;
}
:root[lang='ar'] { font-family: Souq Arabic, 'Tahoma', Arial, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid #2b7755; outline-offset: 4px; }
:disabled { opacity: .65; cursor: default; }
.page-width { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { display: block; width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; inset-block-start: 10px; inset-inline-start: 10px; z-index: 30; padding: 8px 16px; background: var(--green-dark); color: white; border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 10; background: #fbfcf8; border-bottom: 1px solid var(--line); }
.header-content { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { background: var(--green-dark); color: var(--lime); border-radius: 13px; height: 43px; width: 43px; display: grid; place-items: center; }
.brand-mark .icon { width: 35px; height: 35px; }
.brand-text { display: grid; gap: 3px; }
.brand-text strong { color: var(--ink-strong); font-size: 21px; line-height: 1.1; font-weight: 800; white-space: nowrap; }
.brand-text small { color: var(--muted); font: 700 9px/1 var(--numeric); letter-spacing: .145em; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 5px; }
.nav-link { border-radius: 9px; padding: 8px 15px; color: var(--muted); font-size: 13px; font-weight: 650; white-space: nowrap; }
.nav-link:hover, .nav-link.is-active, .nav-link[aria-current='location'] { color: var(--green-dark); background: var(--green-light); }
.header-actions { min-width: 120px; display: flex; justify-content: end; }
.language-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--green-dark); font-weight: 650; padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px; white-space: nowrap; background: white; }
.language-switch .icon { width: 16px; height: 16px; }
.language-switch:hover { border-color: #a0b7a5; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 43px 0 35px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 13px; line-height: 1.4; font-weight: 750; }
.eyebrow-line { height: 2px; width: 22px; background: #67a180; border-radius: 5px; }
:root[lang='en'] .eyebrow { letter-spacing: .11em; font-size: 11px; }
.intro h1 { color: var(--ink-strong); font-size: clamp(36px, 4.3vw, 61px); font-weight: 800; line-height: 1.22; margin: 9px 0 6px; }
:root[lang='en'] .intro h1 { letter-spacing: -.052em; }
.intro-copy { font-size: 15px; color: var(--muted); line-height: 1.7; }
.market-control { width: 265px; max-width: 100%; flex-shrink: 0; }
.market-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-inline: 1px; margin-bottom: 7px; }
.market-caption label { font-size: 12px; font-weight: 750; color: var(--ink); }
.market-badge { color: var(--green); font-size: 11px; line-height: 1.3; display: inline-flex; align-items: center; gap: 5px; text-align: end; }
.market-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #57a674; box-shadow: 0 0 0 3px #deeee0; flex: 0 0 auto; }
.market-control-row { display: flex; gap: 7px; }
.market-input { position: relative; flex: 1; min-width: 0; }
.market-input select { width: 100%; min-height: 46px; appearance: none; border: 1px solid #d7e3d6; border-radius: 11px; color: var(--ink); background: white; padding: 4px 40px; font-size: 14px; font-weight: 700; }
.market-flag { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); font-size: 19px; line-height: 1; pointer-events: none; color: var(--green); }
.market-flag .icon { width: 17px; height: 17px; }
.select-chevron { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.locate-button { display: grid; place-items: center; width: 46px; border: 1px solid #d7e3d6; border-radius: 11px; color: var(--green); background: white; }
.locate-button:hover, .locate-button[aria-pressed='true'] { background: var(--green-light); }
.section-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.summary-heading { margin-bottom: 11px; }
.summary-heading h2 { display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 750; line-height: 1.4; }
.heading-divider { height: 15px; width: 1px; background: #cbd6cb; }
.summary-market { color: var(--green); font-weight: 700; font-size: 13px; }
.freshness { color: var(--muted); display: inline-flex; align-items: center; gap: 7px; font-size: 11px; line-height: 1.4; }
.freshness .icon { width: 15px; height: 15px; }
#market-refresh { padding: 4px; display: grid; place-items: center; color: var(--green); border: 0; border-radius: 6px; background: #e5eee4; }
#market-refresh:hover { background: #d9e9da; }
#market-refresh .icon { width: 13px; height: 13px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; min-width: 0; padding: 14px 16px; display: grid; gap: 12px; }
.quote-head { display: flex; align-items: center; gap: 10px; }
.quote-head h3 { font-size: 14px; line-height: 1.35; font-weight: 750; }
.quote-icon { width: 37px; height: 37px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; }
.quote-icon--currency { background: var(--green-light); color: var(--green); font: 700 21px/1 var(--numeric); }
.quote-icon--gold { background: #f7edd4; color: #8a5b18; }
.quote-icon--gold .icon { width: 21px; height: 21px; }
.quote-code { color: var(--muted); font-size: 10px; font-weight: 650; }
.quote-bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 8px; flex-wrap: wrap; }
.quote-number { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 7px; }
.quote-number strong { color: var(--ink-strong); font: 750 clamp(23px, 2.1vw, 33px)/1.06 var(--numeric); font-variant-numeric: tabular-nums; letter-spacing: -.055em; direction: ltr; unicode-bidi: isolate; }
.quote-number span { color: var(--muted); font: 700 10px/1.3 var(--numeric); direction: ltr; unicode-bidi: isolate; }
.quote-change { font: 700 10px/1.15 var(--numeric); padding: 4px 6px; border-radius: 6px; background: #f0f3ed; color: var(--muted); direction: ltr; unicode-bidi: isolate; }
.quote-change:empty { display: none; }
.up { color: #176343; }
.down { color: #a63239; }
.flat, .muted { color: var(--muted); }
.quote-change.up { background: #e8f3eb; }
.quote-change.down { background: #faeeee; }
.analysis-grid { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(265px, 1fr); gap: 15px; margin-top: 16px; }
.chart-panel { min-width: 0; display: flex; flex-direction: column; padding: 20px 22px 15px; border: 1px solid #24513f; border-radius: 17px; color: #f1f7e9; background: radial-gradient(ellipse at 98% 100%, #234e3d, transparent 64%), #15392d; }
.chart-header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.chart-eyebrow { color: #bdd9bd; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 650; }
.chart-eyebrow .icon { width: 15px; height: 15px; }
:root[lang='en'] .chart-eyebrow { letter-spacing: .12em; font-size: 10px; }
.chart-header h2 { color: #fcfdf6; margin-top: 3px; font-size: 26px; line-height: 1.2; font-weight: 750; }
.chart-periods { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #4c6b5d; background: #244639; border-radius: 8px; }
.chart-periods button, .chart-key button { padding: 5px 8px; border: 0; border-radius: 5px; background: transparent; color: #d9e8d9; font-size: 11px; font-weight: 650; white-space: nowrap; }
.chart-periods button:hover, .chart-key button:hover { background: #406354; }
.chart-periods button.is-active, .chart-periods button[aria-pressed='true'] { background: var(--lime); color: #233b2f; }
.chart-panel :focus-visible { outline-color: var(--lime); }
.chart-key { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.chart-key button { padding: 3px 9px; border: 1px solid #577567; }
.chart-key button.is-active, .chart-key button[aria-pressed='true'] { background: #355849; color: #ecf7d9; border-color: #92ad79; }
.chart-surface { flex: 1; width: 100%; min-height: 143px; margin-top: 6px; display: grid; align-items: center; }
.chart-surface > svg { display: block; width: 100%; height: auto; max-height: 190px; overflow: visible; direction: ltr; }
.chart-placeholder { height: 139px; display: flex; flex-direction: column; justify-content: space-around; }
.chart-placeholder i { display: block; border-top: 1px dashed #58776a; }
.chart-empty { align-self: center; text-align: center; font-size: 12px; color: #d3e7d3; }
.chart-grid { stroke: #527365; }
.chart-axis-label, .chart-point-label { fill: #d4e7d4; font-family: var(--numeric); }
.chart-line { stroke: #d8ef87; }
.chart-marker { fill: #d8ef87; }
.chart-focus { stroke: #e0f0b3; }
.chart-footer { color: #d3e7d3; border-top: 1px solid #4d6c5e; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 10px; line-height: 1.4; }
.chart-legend { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; }
.chart-legend > span:first-child { width: 12px; height: 2px; background: var(--lime); border-radius: 4px; }
#chart-status { text-align: end; }
.tools-panel, .table-panel { border: 1px solid var(--line); border-radius: 17px; background: white; min-width: 0; }
.tools-panel { padding: 18px 19px 14px; }
.tool-header, .table-heading, .directory-head { display: flex; align-items: center; gap: 11px; }
.tool-icon { display: grid; place-items: center; background: var(--green-light); color: var(--green); border-radius: 11px; height: 39px; width: 39px; flex: 0 0 auto; }
.tool-icon--gold { background: #f7edd4; color: #8a5b18; }
.tool-eyebrow { color: var(--green); font-size: 10px; font-weight: 750; }
:root[lang='en'] .tool-eyebrow { letter-spacing: .10em; }
.tool-header h2, .table-heading h2, .directory-head h2 { color: var(--ink-strong); font-size: 21px; line-height: 1.3; font-weight: 750; }
.converter-form { margin-top: 13px; }
.converter-form label, .gold-calc label { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; color: var(--muted); }
.converter-form input, .converter-form select, .gold-calc input, .gold-calc select { display: block; width: 100%; min-height: 38px; background: #f9faf7; border: 1px solid #dfe6dc; border-radius: 8px; padding: 4px 9px; color: var(--ink); font-size: 13px; }
.converter-form input, .gold-calc input { font: 700 15px/1.2 var(--numeric); }
.conversion-row { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); align-items: end; gap: 8px; margin-top: 8px; }
.converter-form select { font: 650 12px/1.2 var(--numeric); }
.swap-button { display: grid; place-items: center; border: 0; width: 34px; height: 34px; margin-bottom: 2px; border-radius: 8px; background: var(--green-light); color: var(--green); }
.swap-button:hover { background: #d9eddd; }
.swap-button .icon { width: 17px; height: 17px; }
.conversion-result { margin-top: 10px; min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #edf5e8; color: var(--green-dark); border-radius: 8px; padding: 5px 10px; }
.conversion-result > span { font-size: 11px; font-weight: 700; }
.conversion-result output { font: 750 clamp(14px,1.65vw,21px)/1.2 var(--numeric); font-variant-numeric: tabular-nums; text-align: end; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.tool-note { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; margin-top: 9px; }
.tool-note .icon { width: 13px; height: 13px; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 16px; align-items: start; }
.table-panel { overflow: hidden; }
.table-heading { padding: 17px 18px; }
.table-scroll { overflow-x: auto; }
.table-panel table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-panel th, .table-panel td { text-align: start; padding: 9px 15px; }
.table-panel thead th { color: #4d6255; background: #f4f7f1; font-size: 11px; font-weight: 750; white-space: nowrap; }
.table-panel tbody th { border-bottom: 1px solid #edf0eb; }
.table-panel td { border-bottom: 1px solid #edf0eb; }
.table-panel tbody tr:hover { background: #f9faf7; }
.table-panel th:first-child, .table-panel td:first-child { padding-inline-start: 18px; }
.table-panel th:last-child, .table-panel td:last-child { padding-inline-end: 18px; text-align: end; }
.table-panel .table-empty, .table-panel tbody td[colspan] { padding: 22px 18px; text-align: center; color: var(--muted); }
.rate-identity { display: inline-flex; align-items: center; gap: 6px; }
.rate-code { font: 700 10px/1.2 var(--numeric); color: var(--muted); padding: 3px 5px; border-radius: 4px; background: #f0f3ed; }
.rate-name { font-size: 12px; font-weight: 700; }
.rate-flag { font-size: 16px; line-height: 1; }
.number { font-family: var(--numeric); font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.source-info { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 8px; padding: 10px 18px; color: var(--muted); font-size: 10px; }
.source-info > span:first-child { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; }
.source-info a[href] { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.source-dot { height: 3px; width: 3px; background: #8ca091; border-radius: 50%; }
.source-info:has(time:empty) .source-dot { display: none; }
.gold-calc { margin: 0 13px 13px; background: #f8f9f5; border: 1px solid #e8ede3; border-radius: 11px; padding: 11px; }
.gold-calc h3 { display: flex; align-items: center; gap: 6px; color: var(--ink-strong); font-size: 14px; }
.gold-calc h3 .icon { color: var(--green); width: 17px; height: 17px; }
.gold-calc-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.market-directory { border: 1px solid var(--line); background: white; border-radius: 16px; margin-top: 16px; padding: 17px 18px; }
.directory-head p { color: var(--muted); font-size: 11px; margin-top: 2px; }
.market-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.market-links a { display: flex; align-items: center; gap: 6px; border: 1px solid #e4e9e1; padding: 6px 10px; border-radius: 7px; font-weight: 650; font-size: 12px; background: #f9faf7; }
.market-links a:hover, .market-links a.is-active { border-color: #aac5ad; background: var(--green-light); }
.market-links a > [aria-hidden] { font-size: 15px; line-height: 1; }
.methodology { display: flex; align-items: start; gap: 7px; color: var(--muted); font-size: 11px; padding: 14px 4px 19px; }
.methodology .icon { width: 15px; height: 15px; }
.site-footer { border-top: 1px solid var(--line); background: #edf0e7; }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 73px; padding-block: 9px; }
.footer-content p, .back-to-top { color: var(--muted); font-size: 12px; }
.brand--footer .brand-mark { width: 35px; height: 35px; border-radius: 10px; }
.brand--footer .brand-mark .icon { width: 28px; height: 28px; }
.brand--footer .brand-text strong { font-size: 16px; }
.brand--footer .brand-text small { font-weight: 400; font-size: 9px; letter-spacing: 0; }
.back-to-top { display: flex; align-items: center; gap: 5px; }
.back-to-top:hover { color: var(--green); }
.back-to-top .icon { width: 14px; height: 14px; transform: rotate(-90deg); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 5px 12px; font-size: 12px; color: var(--muted); }
.footer-links a:hover { color: var(--green); }

@media (max-width: 1040px) {
  .page-width { width: calc(100% - 48px); }
  .quote-card { padding-inline: 12px; }
  .chart-panel { padding-inline: 17px; }
}
@media (max-width: 780px) {
  .page-width { width: calc(100% - 36px); }
  .header-content { gap: 10px; }
  .nav-link { padding-inline: 9px; }
  .header-actions { min-width: 0; }
  .intro { padding-top: 31px; padding-bottom: 26px; }
  .intro-copy { font-size: 13px; }
  .market-control { width: 210px; }
  .analysis-grid { grid-template-columns: minmax(0, 1.6fr) minmax(215px, 1fr); }
  .tools-panel { padding-inline: 13px; }
  .summary-grid { gap: 8px; }
  .quote-card { padding: 11px; }
  .quote-head { gap: 6px; }
  .quote-icon { width: 31px; height: 31px; }
  .quote-head h3 { font-size: 12px; }
}
@media (max-width: 630px) {
  :root { scroll-padding-top: 115px; }
  .page-width { width: calc(100% - 28px); }
  .header-content { display: grid; grid-template-columns: 1fr auto; gap: 7px; padding-block: 9px 5px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand-mark .icon { width: 29px; height: 29px; }
  .brand-text strong { font-size: 19px; }
  .main-nav { grid-row: 2; grid-column: 1/-1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); width: 100%; }
  .nav-link { text-align: center; padding: 5px 2px; font-size: 12px; }
  .intro { display: grid; justify-content: stretch; gap: 16px; padding-top: 25px; padding-bottom: 24px; }
  .intro h1 { margin-block: 4px; font-size: clamp(35px, 9.4vw, 48px); }
  .market-control { width: 100%; }
  .market-input select { min-height: 41px; }
  .locate-button { width: 42px; }
  .summary-heading h2 { font-size: 15px; gap: 7px; }
  .summary-market { font-size: 11px; }
  .freshness { font-size: 9px; gap: 3px; max-width: 43%; }
  .freshness .icon { width: 12px; height: 12px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-card { gap: 8px; }
  .quote-head h3 { font-size: 13px; }
  .quote-number strong { font-size: 25px; }
  .analysis-grid, .details-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
  .chart-panel { min-height: 280px; padding: 16px 13px 12px; }
  .chart-header h2 { font-size: 23px; }
  .chart-periods button { padding: 4px 6px; font-size: 10px; }
  .tools-panel { padding: 14px; }
  .table-panel th, .table-panel td { padding-inline: 8px; }
  .table-panel th:first-child, .table-panel td:first-child { padding-inline-start: 12px; }
  .table-panel th:last-child, .table-panel td:last-child { padding-inline-end: 12px; }
  .rate-identity { gap: 4px; }
  .footer-content > p { display: none; }
}
@media (prefers-reduced-motion: no-preference) { :root { scroll-behavior: smooth; } }

.legal-page { max-width: 760px; padding-block: 32px 50px; }
.legal-nav { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 28px; font-weight: 700; }
.legal-page h1 { font-size: clamp(30px, 7vw, 44px); line-height: 1.25; margin-bottom: 16px; }
.legal-page h2 { font-size: 20px; margin-top: 24px; margin-bottom: 5px; }
.legal-page p { line-height: 1.75; }
.legal-page a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
