/* oilpricetoday.org: the roadside price sign.
   Ground is cool concrete white; numbers live in sign-black windows; each fuel owns one colour everywhere. */
@font-face { font-family: 'Sign'; src: url(/assets/fonts/barlow-c-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Sign'; src: url(/assets/fonts/barlow-c-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Sign'; src: url(/assets/fonts/barlow-c-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Kufi'; src: url(/assets/fonts/kufi-ar.woff2) format('woff2'); font-weight: 600 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'Kufi'; src: url(/assets/fonts/kufi-lat.woff2) format('woff2'); font-weight: 600 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Text'; src: url(/assets/fonts/sans-ar.woff2) format('woff2'); font-weight: 400 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'Text'; src: url(/assets/fonts/sans-lat.woff2) format('woff2'); font-weight: 400 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --ground: #f2f3f1;
  --paper: #ffffff;
  --ink: #151616;
  --ink-2: #4b504d;
  --line: #d5d8d4;
  --line-2: #e6e8e5;
  --sign: #141414;
  --sign-line: #2c2e2d;
  --sign-dim: #3a3d3b;
  --sign-sub: #b4b9b5;
  --brand: #c81f18;
  --brand-ink: #ffffff;
  --link: #a3170f;
  --up: #b3261e;
  --down: #0b6b37;
  --up-lit: #ff8277;
  --down-lit: #63d897;
  /* the fuel colour language */
  --f-petrol: #0a7d3e;
  --f-premium: #c81f18;
  --f-diesel: #e8a500;
  --f-kerosene: #6a4aa5;
  --f-lpg: #1f5fbf;
  --f-cng: #0f7f86;
  --f-fueloil: #5b4636;
  --f-other: #5a605c;
  --f-crude: #141414;
  /* type */
  --t-meta: 0.875rem;   /* 14 */
  --t-body: 1.0625rem;  /* 17 */
  --t-h2: 1.3125rem;    /* 21 */
  --t-h1: 1.75rem;      /* 28 */
  --t-num: 2.75rem;     /* 44 */
  --t-tag: 1.0625rem;   /* 17 */
  /* numerals (Barlow Condensed) share the heading steps: 21 / 28 / 36, then 44 / 56 on the sign */
  --n-s: 1.3125rem;
  --n-m: 1.75rem;
  --n-l: 2.25rem;
  --f-text: 'Text', 'Segoe UI', Tahoma, sans-serif;
  --f-head: 'Kufi', 'Text', 'Segoe UI', Tahoma, sans-serif;
  --f-num: 'Sign', 'Arial Narrow', sans-serif;
  /* rhythm */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --r: 4px;
  --gutter: 16px;
}
@media (min-width: 900px) {
  :root { --t-h1: 2.25rem; --t-h2: 1.75rem; --t-num: 3.5rem; --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #b4b9b5 var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--t-body)/1.75 var(--f-text); text-rendering: optimizeLegibility; }
::selection { background: #f6c9c5; color: var(--ink); }
input, select, textarea, button { font: inherit; color: inherit; caret-color: var(--brand); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.4; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
p { margin: 0 0 var(--s3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: var(--s4); top: -60px; background: var(--paper); padding: var(--s2) var(--s4); z-index: 10; }
.skip:focus { top: var(--s2); }
svg { width: 1em; height: 1em; flex: none; }

/* ---------- header: the pylon head, its menus, and the country price rail ---------- */
.hd { background: var(--brand); color: var(--brand-ink); position: relative; z-index: 20; }
.hd-in { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: var(--s4); min-height: 64px; }
.logo { display: flex; align-items: center; gap: var(--s3); color: inherit; text-decoration: none; margin-inline-end: auto; min-width: 0; padding: var(--s2) 0; }
.logo-mark { width: 28px; height: 36px; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25)); }
.hd .logo-mark rect:first-child { fill: #1b1b1b; }
.logo-t { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.logo-t b { font: 700 var(--t-body)/1.3 var(--f-head); }
.logo-t small { font-size: var(--t-meta); opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flag { width: 24px; height: 18px; flex: none; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); background: var(--line); }
.nav { display: flex; align-items: stretch; gap: var(--s1); align-self: stretch; }
.nav summary, .nav-a { display: flex; align-items: center; gap: var(--s2); height: 100%; min-height: 64px; padding: 0 var(--s3); color: #fff; text-decoration: none; font-weight: 600; font-size: var(--t-body); cursor: pointer; list-style: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary svg, .nav-a svg { width: 18px; height: 18px; opacity: .9; }
.nav summary::after { content: ''; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.nav details[open] summary::after { transform: rotate(180deg); }
.nav summary:hover, .nav-a:hover, .nav details[open] summary { background: rgba(0, 0, 0, .14); }
.nav details[data-on] summary, .nav-a[aria-current="page"] { border-bottom-color: #fff; }
.nav details { position: static; }
.menu { position: absolute; top: 100%; z-index: 30; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); box-shadow: 0 10px 22px -12px rgba(20, 20, 20, .35); }
.mega { inset-inline: max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter))); padding: var(--s5); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4) var(--s6); }
.mega .cg:nth-child(1) { grid-row: span 2; }
.ml { display: grid; gap: var(--s1); }
.menu.ml { min-width: 320px; padding: var(--s2); margin-inline-start: calc(-1 * var(--s3)); }
.ml a { display: grid; grid-template-columns: 36px 1fr; grid-template-areas: "i t" "i d"; column-gap: var(--s3); align-items: center; padding: var(--s2) var(--s3); border-radius: var(--r); color: var(--ink); text-decoration: none; }
.ml a:hover, .ml a[aria-current="page"] { background: var(--ground); }
.ml-ic { grid-area: i; width: 36px; height: 36px; display: grid; place-items: center; background: var(--sign); color: #fff; border-radius: 3px; }
.ml-ic svg { width: 20px; height: 20px; }
.ml-t { grid-area: t; font-weight: 600; }
.ml-d { grid-area: d; font-size: var(--t-meta); color: var(--ink-2); line-height: 1.5; }
.mega-all { grid-column: 1 / -1; justify-self: start; font-weight: 600; padding-top: var(--s2); }
.menu.ml .mega-all { padding: var(--s2) var(--s3); }
.cg-h { font: 700 var(--t-meta)/1.4 var(--f-head); color: var(--ink-2); margin: 0 0 var(--s2); padding-bottom: var(--s2); border-bottom: 1px solid var(--line-2); }
.cg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cg a { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: var(--s3); min-height: 44px; padding: var(--s1) var(--s2); border-radius: var(--r); color: var(--ink); text-decoration: none; }
.cg a:hover, .cg a[aria-current="page"] { background: var(--ground); }
.cg-n { font-weight: 600; }
.cg-p { font-size: var(--t-meta); color: var(--ink-2); white-space: nowrap; }
/* the rail: every Arab country's main petrol price, flag first, under the pylon head */
.rail { background: var(--sign); }
.rail ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 1200px; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px); mask-image: linear-gradient(to right, transparent 0, #000 40px); }
.rail ul::-webkit-scrollbar { display: none; }
.rail a { display: flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s3); color: #e9ebe9; text-decoration: none; white-space: nowrap; font-size: var(--t-meta); font-weight: 600; border-inline-end: 1px solid var(--sign-line); }
.rail a b { font: 700 var(--t-body)/1 var(--f-num); color: #fff; direction: ltr; }
.rail a small { font-size: var(--t-meta); font-weight: 400; color: var(--sign-sub); }
.rail a:hover { background: #222423; }
.rail a[aria-current="page"] { background: #2a2c2b; color: #fff; }
.rail .flag { width: 20px; height: 15px; }
.nav-btn { display: none; align-items: center; gap: var(--s2); background: transparent; border: 1px solid rgba(255, 255, 255, .6); color: inherit; border-radius: var(--r); height: 44px; padding: 0 var(--s3); font-weight: 600; cursor: pointer; }
.nav-btn svg { width: 22px; height: 22px; }
.nav-btn:hover { background: rgba(0, 0, 0, .14); }
.drawer { background: var(--paper); border-bottom: 1px solid var(--line); }
.drawer-in { max-width: 1200px; margin: 0 auto; padding: var(--s4) var(--gutter) var(--s6); display: grid; gap: var(--s4); }
.drawer-h { font: 700 var(--t-body)/1.4 var(--f-head); margin: var(--s3) 0 0; }
.drawer .cg ul { grid-template-columns: 1fr; }
.drawer-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-weight: 600; }
.drawer-links a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 1023px) {
  .nav { display: none; }
  .nav-btn { display: inline-flex; }
  .logo-t small { display: none; }
}
@media (min-width: 1024px) { .drawer { display: none; } }

/* ---------- page ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: var(--s4) var(--gutter) var(--s8); }
.crumbs ol { list-style: none; margin: 0 0 var(--s4); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); font-size: var(--t-meta); color: var(--ink-2); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: ''; width: 12px; height: 12px; margin-inline-end: var(--s2); background: #8a908c; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 6-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 6-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.crumbs a { color: var(--ink-2); }
.page-h { margin-bottom: var(--s5); max-width: 860px; }
.page-h h1 { margin-bottom: var(--s3); }
.answer { font-size: var(--t-body); font-weight: 500; line-height: 1.85; color: var(--ink); margin: 0; }
.note { font-size: var(--t-meta); color: var(--ink-2); line-height: 1.7; margin: var(--s3) 0 0; }
.more { margin-top: var(--s3); font-weight: 600; }

/* ---------- hub grid ---------- */
.hub { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 960px) { .hub { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s6); } }
.hub-side { display: grid; gap: var(--s4); }

/* ---------- the price sign ---------- */
.sign { margin: 0; background: var(--sign); color: #fff; border-radius: var(--r); overflow: hidden; }
.sign-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); background: var(--brand); color: #fff; padding: var(--s3) var(--s4); font: 700 1.0625rem/1.4 var(--f-head); }
.sign-head time { font: 600 var(--t-meta)/1.4 var(--f-text); opacity: .95; white-space: nowrap; }
.sign-rows { list-style: none; margin: 0; padding: var(--s2); display: grid; gap: var(--s2); }
.pl { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); grid-template-areas: "tag win" "tag chg"; align-items: stretch; background: #1c1d1c; border: 1px solid var(--sign-line); border-radius: 3px; min-height: 76px; overflow: hidden; }
.pl-tag { grid-area: tag; display: flex; flex-direction: column; justify-content: center; padding: var(--s3) var(--s4); background: var(--fc, var(--f-other)); color: #fff; min-width: 0; }
.pl-tag b { font: 700 var(--t-tag)/1.35 var(--f-text); }
.pl-tag small { font-size: var(--t-meta); opacity: .9; line-height: 1.4; }
.pl[data-fuel="diesel"] .pl-tag { color: #1d1500; }
.pl-win { grid-area: win; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding: var(--s2) var(--s4) 0; direction: ltr; text-align: right; }
.pl-num { font: 700 var(--t-num)/1 var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: .01em; color: #fff; }
.pl-unit { direction: rtl; font-size: var(--t-meta); color: var(--sign-sub); line-height: 1.5; margin-top: var(--s1); }
.pl-chg { grid-area: chg; display: flex; align-items: center; justify-content: flex-end; gap: var(--s1); padding: 0 var(--s4) var(--s2); font: 600 var(--t-body)/1.4 var(--f-num); direction: ltr; }
.pl-chg svg { width: 10px; height: 10px; }
.pl-up { color: var(--up-lit); } .pl-down { color: var(--down-lit); } .pl-flat { color: var(--sign-sub); }
.pl-chg s { color: #8f9591; margin-left: var(--s2); text-decoration-thickness: 1.5px; }
[data-fuel="petrol"] { --fc: var(--f-petrol); } [data-fuel="premium"] { --fc: var(--f-premium); } [data-fuel="diesel"] { --fc: var(--f-diesel); }
[data-fuel="kerosene"] { --fc: var(--f-kerosene); } [data-fuel="lpg"] { --fc: var(--f-lpg); } [data-fuel="cng"] { --fc: var(--f-cng); }
[data-fuel="fueloil"] { --fc: var(--f-fueloil); } [data-fuel="crude"] { --fc: var(--f-crude); }
@media (min-width: 900px) {
  .pl { grid-template-columns: 210px minmax(0, 1fr) auto auto; grid-template-areas: "tag . chg win"; min-height: 84px; }
  .pl-win { padding: var(--s2) var(--s5); }
  .pl-chg { padding: 0 var(--s3); align-self: center; }
}
/* the signature move: numerals light once on load */
@media (prefers-reduced-motion: no-preference) {
  .js .pl-num { animation: lit 240ms steps(2, jump-none) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
  @keyframes lit { from { color: var(--sign-dim); } to { color: #fff; } }
}
.sign-strip { background: var(--paper); color: var(--ink); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s5); padding: var(--s4); border-top: 4px solid var(--brand); }
.sign-strip p { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.ss-k { font-size: var(--t-meta); color: var(--ink-2); }
.ss-v { font-weight: 600; line-height: 1.55; }
.sign-strip .ss-src { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line-2); }
.ss-src a { display: inline-flex; align-items: center; gap: var(--s1); font-weight: 600; font-size: var(--t-meta); }
.ss-src a svg { width: 14px; height: 14px; }
.rule { display: flex; gap: var(--s2); align-items: flex-start; color: var(--ink-2); font-size: var(--t-meta); margin: var(--s4) 0 0; }
.rule svg { width: 18px; height: 18px; margin-top: 5px; color: var(--ink); }

/* ---------- stamps ---------- */
.stamp { display: inline-flex; align-items: center; gap: var(--s1); font-size: var(--t-meta); font-weight: 600; line-height: 1.4; padding: 2px var(--s2); border-radius: 2px; border: 1px solid currentColor; white-space: nowrap; }
.stamp-verified, .stamp-high { color: var(--down); }
.stamp-reported, .stamp-medium { color: #8a5a00; }
.stamp-low { color: var(--up); }
.stamp-calculated { color: var(--ink-2); }

/* ---------- boxes (aside) ---------- */
.box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4) var(--s4) var(--s4); }
.box h2 { font-size: var(--t-body); margin-bottom: var(--s3); }
.cost-f { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.cost-f label { display: flex; flex-direction: column; gap: var(--s1); font-size: var(--t-meta); color: var(--ink-2); font-weight: 600; }
.cost-f label:first-child { grid-column: 1 / -1; }
.cost-f input, .cost-f select, .field { height: 44px; border: 1px solid #b9beba; border-radius: var(--r); background: var(--paper); padding: 0 var(--s3); color: var(--ink); font-weight: 600; font-size: var(--t-body); width: 100%; }
.cost-f input { font-family: var(--f-num); font-size: var(--n-s); direction: ltr; text-align: right; }
.cost-f input:hover, .cost-f select:hover { border-color: var(--ink-2); }
.cost-f input:focus, .cost-f select:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.cost-out { margin: var(--s4) 0 0; display: grid; gap: 1px; background: var(--sign-line); border-radius: 3px; overflow: hidden; }
.cost-out div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); background: var(--sign); color: #fff; padding: var(--s2) var(--s3); }
.cost-out dt { font-size: var(--t-meta); color: var(--sign-sub); }
.cost-out dd { margin: 0; font: 700 var(--n-m)/1.25 var(--f-num); direction: ltr; white-space: nowrap; }
.cost-out dd small { font: 400 var(--t-meta) var(--f-text); color: var(--sign-sub); margin-left: var(--s1); }
.cm-usd, .cm-local { margin: 0; color: var(--ink-2); }
.cm-usd b { font: 700 var(--n-l)/1.15 var(--f-num); color: var(--ink); margin-inline-end: var(--s1); }
.cm-local b { font: 700 var(--n-m)/1.25 var(--f-num); color: var(--ink); margin-inline-end: var(--s1); }

/* ---------- sections ---------- */
.sec { max-width: 860px; margin-top: var(--s7); }
.sec h2 { margin-bottom: var(--s3); }
.sec p { max-width: 70ch; }
.fdot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--fc, var(--f-other)); margin-inline-end: var(--s2); vertical-align: 1px; }
.uses { margin: 0; display: grid; gap: var(--s3); }
.uses div { display: grid; gap: var(--s1); }
.uses dt { font-weight: 600; }
.uses dd { margin: 0; color: var(--ink-2); }
@media (min-width: 700px) { .uses div { grid-template-columns: 240px 1fr; gap: var(--s4); } }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--t-meta); }
.tbl th, .tbl td { padding: var(--s2) var(--s3); text-align: start; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl thead th { font-size: var(--t-meta); color: var(--ink-2); font-weight: 600; background: #f7f8f6; white-space: nowrap; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody th { font-weight: 600; white-space: nowrap; }
.tbl tbody th small { display: block; font-weight: 400; color: var(--ink-2); font-size: var(--t-meta); }
.tbl .num { font: 600 var(--n-s)/1.3 var(--f-num); font-variant-numeric: tabular-nums; direction: ltr; text-align: right; white-space: nowrap; }
.dl-d { display: inline-flex; align-items: center; gap: 2px; font-size: 0.875rem; margin-left: var(--s2); }
.dl-d svg { width: 9px; height: 9px; }
.dl-up { color: var(--up); } .dl-down { color: var(--down); } .dl-flat { color: var(--ink-2); }

/* ---------- FAQ, sources ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: var(--s3) 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--s3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 18px; height: 18px; margin-top: 6px; background: var(--ink-2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:hover { color: var(--link); }
.faq details p { color: var(--ink-2); padding-bottom: var(--s3); }
.src { padding-inline-start: var(--s5); margin: var(--s3) 0; }
.src li { margin-bottom: var(--s2); }
.src-meta { display: block; font-size: var(--t-meta); color: var(--ink-2); }

/* ---------- footer ---------- */
.ft { background: var(--sign); color: #d9dcd9; margin-top: var(--s8); }
.ft-in { max-width: 1200px; margin: 0 auto; padding: var(--s6) var(--gutter); display: grid; gap: var(--s5); }
.ft-brand { display: flex; gap: var(--s3); align-items: flex-start; }
.ft-brand p { margin: 0; font-size: var(--t-meta); max-width: 60ch; }
.ft-brand b { color: #fff; font-family: var(--f-head); }
.ft-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.ft a { color: #fff; }
.ft-note { font-size: var(--t-meta); color: #aeb3af; margin: 0; }

/* ---------- home ---------- */
.wrap-wide .sec-wide { max-width: none; }
.home-top { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 960px) { .home-top { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s6); } }
.home-feed h2 { margin-bottom: var(--s3); }
.feed { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.feed li { display: grid; grid-template-columns: 112px 96px minmax(0, 1fr); gap: var(--s3); align-items: baseline; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line-2); }
.feed li:last-child { border-bottom: 0; }
.feed time { font-size: var(--t-meta); color: var(--ink-2); white-space: nowrap; }
.feed a { font-weight: 600; }
.feed-t { display: inline-flex; gap: var(--s2); align-items: baseline; color: var(--ink); }
.feed-t svg { width: 10px; height: 10px; }
.feed-t.dl-up svg { color: var(--up); } .feed-t.dl-down svg { color: var(--down); }
@media (max-width: 600px) { .feed li { grid-template-columns: 1fr auto; } .feed time { grid-column: 2; grid-row: 1; } .feed-t { grid-column: 1 / -1; } }
.crude-strip { background: var(--sign); color: #fff; border-radius: var(--r); padding: var(--s2); display: grid; gap: var(--s2); }
.crude-strip a { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "n v d" "n u d"; align-items: center; column-gap: var(--s3); color: #fff; text-decoration: none; background: #1c1d1c; border: 1px solid var(--sign-line); border-radius: 3px; padding: var(--s3) var(--s4); }
.crude-strip a:hover { border-color: #555; }
.crude-strip a > span:first-child { grid-area: n; font-weight: 600; }
.crude-strip b { grid-area: v; font: 700 var(--n-l)/1 var(--f-num); direction: ltr; }
.crude-strip small { grid-area: u; color: var(--sign-sub); font-size: var(--t-meta); text-align: end; }
.crude-strip a > span:last-child:not(:first-child) { grid-area: d; }
.crude-strip .dl-up { color: var(--up-lit); } .crude-strip .dl-down { color: var(--down-lit); }
.crude-strip svg { width: 12px; height: 12px; }
.crude-strip .note { color: var(--sign-sub); margin: 0; padding: var(--s1) var(--s2) var(--s2); }
.bd th small, .bd td small { display: block; font: 400 var(--t-meta)/1.4 var(--f-text); color: var(--ink-2); direction: rtl; text-align: start; }
.bd td.num small { text-align: right; }
.bd tbody th a { font-weight: 600; }
.bd .bd-usd { color: var(--ink-2); }
.bd .bd-date { font-size: var(--t-meta); color: var(--ink-2); white-space: nowrap; }
.bd .bd-chg { display: inline-flex; margin-left: var(--s1); }
.bd .bd-chg svg { width: 9px; height: 9px; }
.bd-group th { background: var(--ground); font: 700 var(--t-meta)/1.4 var(--f-head); padding-top: var(--s3); }
.th-sort { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }
.th-sort::after { content: ''; width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; margin-top: 5px; opacity: .5; }
th[aria-sort="ascending"] .th-sort::after { border-top-color: transparent; border-bottom-color: currentColor; margin-top: -4px; opacity: 1; }
th[aria-sort="descending"] .th-sort::after { opacity: 1; }
.th-sort:hover { color: var(--ink); }
.clist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.clist a { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s3) var(--s4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.clist a:hover { border-color: var(--ink-2); }
.clist b { font: 700 1.0625rem/1.4 var(--f-head); }
.clist-p { font-size: var(--t-meta); color: var(--ink-2); display: flex; align-items: baseline; gap: var(--s1); }
.clist-n { font: 700 var(--n-s)/1 var(--f-num); color: var(--ink); direction: ltr; margin-inline-start: auto; }
.two { display: grid; gap: 0 var(--s6); }
@media (min-width: 960px) { .two { grid-template-columns: 1fr 1fr; } }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.bars a { display: grid; grid-template-columns: 28px 110px minmax(0, 1fr) 52px; gap: var(--s2); align-items: center; padding: var(--s1) 0; color: var(--ink); text-decoration: none; }
.bars a:hover .bars-c { text-decoration: underline; }
.bars-n { font: 600 var(--t-body)/1 var(--f-num); color: var(--ink-2); }
.bars-c { font-weight: 600; font-size: var(--t-meta); }
.bars-track { height: 14px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.bars-fill { display: block; height: 100%; width: var(--w); background: var(--fc); border-radius: 2px; }
.bars-v { font: 700 var(--n-s)/1 var(--f-num); direction: ltr; text-align: left; }

/* ---------- charts ---------- */
.chart { margin: var(--s4) 0 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s3) var(--s2); }
.ch-svg { width: 100%; height: auto; display: block; direction: ltr; }
.ch-s { display: none; }
@media (max-width: 599px) { .chart .ch-l { display: none; } .chart .ch-s { display: block; } }
.ch-grid { stroke: var(--line-2); stroke-width: 1; }
.ch-vgrid { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 4; }
.ch-y, .ch-x { font: 500 12px var(--f-num); fill: var(--ink-2); }
.ch-x { text-anchor: middle; }
.ch-line { fill: none; stroke: var(--fc, var(--f-crude)); stroke-width: 2.25; stroke-linejoin: round; }
.ch-legend { list-style: none; margin: var(--s2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); font-size: var(--t-meta); }
.chart .note { margin-top: var(--s2); }

/* ---------- interactive crude chart ---------- */
.hc { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); }
.hc-ctl { display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s3); }
@media (max-width: 599px) { .hc-ctl { display: grid; grid-template-columns: repeat(3, 1fr); } }
.hc-ctl button { height: 44px; padding: 0 var(--s3); border: 1px solid var(--line); background: var(--paper); border-radius: 3px; font-size: var(--t-meta); font-weight: 600; color: var(--ink-2); cursor: pointer; }
.hc-ctl button:hover { border-color: var(--ink-2); color: var(--ink); }
.hc-ctl button[aria-pressed="true"] { background: var(--sign); border-color: var(--sign); color: #fff; }
.hc-read { margin-bottom: var(--s2); }
.hc-v { margin: 0; color: var(--ink-2); }
.hc-v b { font: 700 var(--t-num)/1.05 var(--f-num); color: var(--ink); margin-inline-end: var(--s2); }
.hc-meta { margin: var(--s1) 0 0; font-size: var(--t-meta); color: var(--ink-2); min-height: 1.75em; }
.hc-plot { touch-action: pan-y; }
.ch-cross { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.ch-dot { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.kv { margin: 0; display: grid; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; }
.kv div { display: flex; justify-content: space-between; background: var(--paper); padding: var(--s2) var(--s3); }
.kv dt { color: var(--ink-2); font-size: var(--t-meta); }
.kv dd { margin: 0; font: 700 var(--n-s)/1.3 var(--f-num); direction: ltr; }
.dl-up { color: var(--up); } .dl-down { color: var(--down); }
.ms { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); }
.ms li { display: grid; gap: var(--s1); padding: 0 var(--s4) var(--s4); position: relative; }
.ms li::before { content: ''; position: absolute; inset-inline-start: -6px; top: 8px; width: 10px; height: 10px; background: var(--fc, var(--brand)); border-radius: 1px; }
.ms time { font-size: var(--t-meta); color: var(--ink-2); font-weight: 600; }
.dl-full .dl-src { font-size: var(--t-meta); white-space: nowrap; }
.dl-full .dl-src small { display: block; color: #8a5a00; }
.bd-na { color: #9aa09c; }

/* ---------- tools ---------- */
.tool { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 960px) { .tool { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s6); } }
.tool-f { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); }
.tool-f label { display: flex; flex-direction: column; gap: var(--s1); font-size: var(--t-meta); font-weight: 600; color: var(--ink-2); }
.tool-f label.chk { flex-direction: row; align-items: center; gap: var(--s2); font-size: var(--t-body); color: var(--ink); align-self: end; min-height: 44px; }
.tool-f .chk input { width: 20px; height: 20px; accent-color: var(--brand); }
.tool-f input:not([type="checkbox"]), .tool-f select { height: 48px; border: 1px solid #b9beba; border-radius: var(--r); background: var(--paper); padding: 0 var(--s3); color: var(--ink); font-weight: 600; font-size: var(--t-body); width: 100%; }
.tool-f input[type="number"] { font: 700 var(--n-s) var(--f-num); direction: ltr; text-align: right; }
.tool-f input:hover, .tool-f select:hover { border-color: var(--ink-2); }
.tool-f input:focus, .tool-f select:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.tool-f fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.tool-f legend { font: 700 1.0625rem var(--f-head); margin-bottom: var(--s3); padding: 0; }
@media (max-width: 560px) { .tool-f, .tool-f fieldset { grid-template-columns: 1fr; padding: var(--s4); } .tool-f fieldset { padding: 0; } }
.tool-out { background: var(--sign); border-radius: var(--r); padding: var(--s2); position: sticky; top: var(--s4); }
.tool-out .cost-out { margin: 0; }
.tool-out .cost-out dd { font-size: var(--n-m); }
.tool-price { color: #e9ebe9; font-size: var(--t-meta); margin: 0; padding: var(--s3) var(--s3) var(--s3); }
.tool-price:empty { display: none; }
.tool-price a { color: #fff; }
.tlist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tlist a { display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s3); padding: var(--s4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; }
.tlist a:hover { border-color: var(--ink-2); }
.tlist svg { width: 28px; height: 28px; grid-row: span 2; color: var(--brand); }
.tlist b { font: 700 1.0625rem var(--f-head); }
.tlist span { color: var(--ink-2); font-size: var(--t-meta); }
.sub ul { list-style: none; margin: var(--s4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.sub a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--t-meta); }
.sub a:hover { border-color: var(--ink-2); }
.sub svg { width: 18px; height: 18px; color: var(--brand); }

/* wide tables on phones: the first column stays put, and a hint says the rest scrolls */
.tbl th:first-child, .tbl td:first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--paper); box-shadow: -1px 0 0 var(--line-2); }
.tbl thead th:first-child { background: #f7f8f6; }
.bd-group th { position: static; }
.tbl-hint { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-meta); color: var(--ink-2); margin: 0 0 var(--s2); }
.tbl-hint svg { width: 16px; height: 16px; }
.tbl-wrap.fade { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 56px); mask-image: linear-gradient(to right, transparent 0, #000 56px); }
.tl li::before { background: var(--fc, #8a908c); }

/* a country name always comes with its flag */
.cn { display: inline-flex; align-items: center; gap: var(--s2); }
.h1-flag { display: flex; align-items: center; gap: var(--s3); }
.flag-lg { width: 40px; height: 30px; border-radius: 3px; }
@media (max-width: 599px) { .flag-lg { width: 32px; height: 24px; } }
.bars a { grid-template-columns: 28px 140px minmax(0, 1fr) 52px; }

/* share row */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s5); }
.share-h { font-size: var(--t-meta); font-weight: 600; color: var(--ink-2); margin-inline-end: var(--s2); }
.share a, .share button { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s3); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; font: 600 var(--t-meta) var(--f-text); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--ink-2); }
.share svg { width: 18px; height: 18px; }
/* summary table: dates under the high and low */
.sum td small { display: block; font: 400 var(--t-meta)/1.4 var(--f-text); color: var(--ink-2); direction: rtl; text-align: right; }
/* pump price chart readout */
.pc-read { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); align-items: baseline; min-height: 3.5em; margin-bottom: var(--s2); font-size: var(--t-meta); color: var(--ink-2); }
.pc-read b { font-weight: 600; color: var(--ink); width: 100%; }
.pc-read span { display: inline-flex; align-items: center; gap: var(--s1); }
.pc-read bdi { font: 700 var(--t-body)/1 var(--f-num); color: var(--ink); }
.pc-read .fdot { margin: 0; }
.pc .hc-plot .chart { border: 0; padding: 0; margin: 0; }
.pc .hc-plot .chart .note { display: none; }

/* month decision pages */
.dec-why { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s4); }
.dec-src { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); margin-top: var(--s3); font-size: var(--t-meta); }
.dec-src a { display: inline-flex; align-items: center; gap: var(--s1); font-weight: 600; }
.dec-src svg { width: 14px; height: 14px; }
.dec-src span { color: var(--ink-2); }
.olist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.olist a { min-height: 44px; padding: 0 var(--s3); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); font-weight: 600; text-decoration: none; color: var(--ink); }
.olist a:hover { border-color: var(--ink-2); }
.mnav { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s6); }
.mnav a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; font-weight: 600; }
.mnav svg { width: 18px; height: 18px; }
.mnav a:first-child svg { transform: rotate(-90deg); }
.mnav a:last-child svg { transform: rotate(90deg); }

/* Arab ranking controls */
.aw-ctl { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s2); }
.aw-tabs { display: flex; flex-wrap: wrap; gap: var(--s1); }
.aw-tabs button { min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--line); background: var(--paper); border-radius: 3px; font-weight: 600; font-size: var(--t-meta); color: var(--ink-2); cursor: pointer; }
.aw-tabs button:hover { border-color: var(--ink-2); color: var(--ink); }
.aw-tabs button[aria-selected="true"] { background: var(--sign); border-color: var(--sign); color: #fff; }
.aw-cur { display: flex; flex-direction: column; gap: var(--s1); font-size: var(--t-meta); font-weight: 600; color: var(--ink-2); }
.aw-cur select { height: 44px; border: 1px solid #b9beba; border-radius: var(--r); background: var(--paper); padding: 0 var(--s3); font-weight: 600; font-size: var(--t-body); color: var(--ink); min-width: 220px; }
.bars-c small { display: block; font-size: var(--t-meta); font-weight: 400; color: var(--ink-2); }
.bars a { grid-template-columns: 28px 170px minmax(0, 1fr) 64px; padding: var(--s1) 0; }
@media (max-width: 599px) { .bars a { grid-template-columns: 24px 128px minmax(0, 1fr) 56px; } .aw-cur select { min-width: 0; width: 100%; } .aw-cur { flex: 1 1 100%; } }

.trust { display: flex; gap: var(--s2); align-items: flex-start; margin: var(--s3) 0 0; font-size: var(--t-meta); color: var(--ink-2); }
.trust svg { width: 18px; height: 18px; margin-top: 3px; color: var(--ink); }
.feed-p { font-weight: 600; direction: ltr; unicode-bidi: isolate; }
/* tap targets: text links that stand alone get a 44px hit area without changing their look */
.crumbs a, .feed a.cn, .more a, .mnav a, .dec-src a, .src a, .cg a, .ft-links a, .ss-src a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs ol { align-items: center; }

/* install: a small black sign panel at the foot of the screen, plus a permanent button in the share row and drawer */
.ib { position: fixed; inset-inline: var(--s3); bottom: max(var(--s3), env(safe-area-inset-bottom)); z-index: 50; display: flex; align-items: center; gap: var(--s3); max-width: 560px; margin-inline: auto; padding: var(--s3); background: var(--sign); color: #fff; border-radius: var(--r); border-top: 4px solid var(--brand); box-shadow: 0 10px 22px -12px rgba(20, 20, 20, .45); transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .35s cubic-bezier(.16, 1, .3, 1); }
.ib.enter { transform: translateY(16px); opacity: 0; }
.ib img { width: 44px; height: 44px; border-radius: 3px; flex: none; }
.ib-text { flex: 1; min-width: 0; line-height: 1.5; }
.ib-text b { display: block; font-size: var(--t-body); }
.ib-text span { font-size: var(--t-meta); color: var(--sign-sub); }
.ib-text svg { width: 16px; height: 16px; vertical-align: -3px; color: #fff; }
.ib-go { flex: none; min-height: 44px; padding: 0 var(--s4); background: var(--brand); color: #fff; border: 0; border-radius: var(--r); font-weight: 600; font-size: var(--t-body); cursor: pointer; }
.ib-go:hover { background: #a91a14; }
.ib-close { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--sign-sub); border-radius: var(--r); cursor: pointer; }
.ib-close:hover { background: #2a2c2b; color: #fff; }
.ib-close svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .ib { transition: none; } }
.share .share-install, .drawer-install { background: var(--sign); color: #fff; border-color: var(--sign); }
.share .share-install:hover, .drawer-install:hover { background: #2a2c2b; }
.share .share-install[hidden], .drawer-install[hidden], .install-ios[hidden] { display: none; }
.drawer-install { display: inline-flex; align-items: center; gap: var(--s2); justify-self: start; min-height: 44px; padding: 0 var(--s4); border: 0; border-radius: var(--r); font-weight: 600; cursor: pointer; }
.drawer-install svg, .install-ios svg { width: 18px; height: 18px; flex: none; }
.install-ios { display: flex; gap: var(--s2); align-items: flex-start; flex-basis: 100%; margin: var(--s1) 0 0; font-size: var(--t-meta); color: var(--ink-2); }
@media print { .ib, .share { display: none !important; } }

/* reading pages: guides and stories */
.art { max-width: 860px; }
.art .sec { max-width: none; }
.art .sec p { max-width: 70ch; }
.byline { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-meta); color: var(--ink-2); margin: var(--s2) 0 0; }
.byline svg { width: 16px; height: 16px; }
.qa { background: var(--sign); color: #fff; border-radius: var(--r); border-top: 4px solid var(--brand); padding: var(--s4) var(--s5); margin-top: var(--s4); }
.qa p { margin: 0; line-height: 1.85; }
.qa .qa-h { font: 700 var(--t-meta)/1.4 var(--f-head); color: var(--sign-sub); margin-bottom: var(--s2); }
.toc { margin-top: var(--s5); padding: var(--s4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.toc-h { font: 700 var(--t-meta) var(--f-head); color: var(--ink-2); margin: 0 0 var(--s2); }
.toc ol { margin: 0; padding-inline-start: var(--s5); display: grid; gap: 0; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; }
.tbl-cap { caption-side: top; text-align: start; padding: var(--s3); font-weight: 600; font-size: var(--t-meta); color: var(--ink-2); }
.glist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.glist a { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; padding: var(--s4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; height: 100%; }
.glist a:hover { border-color: var(--ink-2); }
.glist b { display: block; font: 700 var(--t-body)/1.5 var(--f-head); }
.glist small { display: block; margin-top: var(--s1); font-size: var(--t-meta); color: var(--ink-2); line-height: 1.6; }
.glist .flag { margin-top: 4px; }
.aff-who { font-size: var(--t-meta); min-width: 220px; }
.aff-who a { display: block; margin-bottom: var(--s1); }
.ol-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-inline-start: var(--s2); padding: 0 6px; background: var(--sign); color: #fff; border-radius: 3px; font: 700 var(--t-meta)/1 var(--f-num); }
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.why li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s4); }
.why p { margin: var(--s1) 0 0; color: var(--ink-2); }
.tbl td.num small { display: block; font: 400 var(--t-meta)/1.4 var(--f-text); color: var(--ink-2); direction: rtl; text-align: right; }

/* ---------- /widgets/: embed builder ---------- */
.wg { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: start; }
.wg > * { min-width: 0; }
@media (min-width: 960px) { .wg { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); } }
.wg-f .wg-wide { grid-column: 1 / -1; }
.wg-f fieldset.wg-wide { display: block; }
.wg-f fieldset legend { font: 600 var(--t-meta) var(--f-text); color: var(--ink-2); margin-bottom: var(--s1); }
.wg-f textarea { width: 100%; border: 1px solid #b9beba; border-radius: var(--r); background: #f7f8f6; padding: var(--s3); font: 400 var(--t-meta)/1.6 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: var(--ink); resize: vertical; }
.wg-f textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.seg { display: flex; gap: var(--s1); }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: 3px; background: var(--paper); font-size: var(--t-meta); font-weight: 600; color: var(--ink-2); cursor: pointer; text-align: center; }
.seg span:hover { border-color: var(--ink-2); color: var(--ink); }
.seg input:checked + span { background: var(--sign); border-color: var(--sign); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.wg-act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.btn-main { display: inline-flex; align-items: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border: 0; border-radius: var(--r); background: var(--brand); color: #fff; font: 700 var(--t-body) var(--f-text); cursor: pointer; }
.btn-main svg { width: 20px; height: 20px; }
a.btn-main { text-decoration: none; }
a.btn-main:hover { color: #fff; }
.btn-main:hover { background: #a3170f; }
.btn-main:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wg-note { font-size: var(--t-meta); color: var(--ink-2); }
.wg-prev { background: var(--ground); border: 1px dashed #b9beba; border-radius: var(--r); padding: var(--s4); }
.wg-prev-h { margin: 0 0 var(--s3); font-size: var(--t-meta); font-weight: 600; color: var(--ink-2); }
.wg-stage { margin-inline: auto; transition: max-width .25s cubic-bezier(.2,.8,.2,1); }
.wg-stage iframe { display: block; width: 100%; border: 0; }
.steps { margin: 0; padding-inline-start: var(--s5); display: grid; gap: var(--s3); max-width: 70ch; }

/* ---------- /developers/ ---------- */
.dev-grid { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .dev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dev-card h2 { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-body); }
.dev-card h2 svg { width: 22px; height: 22px; color: var(--brand); }
.dev-card p { margin: 0 0 var(--s3); font-size: var(--t-meta); color: var(--ink-2); }
.dev-card p:last-child { margin-bottom: 0; }
.dev-url { background: var(--sign); color: #fff !important; border-radius: 3px; padding: var(--s2) var(--s3); font: 600 var(--t-meta)/1.5 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; overflow-wrap: anywhere; text-align: left; user-select: all; }
.code { margin: var(--s4) 0 0; max-width: 860px; }
.code figcaption { font-size: var(--t-meta); font-weight: 600; color: var(--ink-2); margin-bottom: var(--s1); }
.code pre { margin: 0; background: var(--sign); color: #e9ebe9; border-radius: var(--r); padding: var(--s4); overflow-x: auto; font: 400 var(--t-meta)/1.6 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; text-align: left; }
.dev-tbl code { font: 600 var(--t-meta) ui-monospace, 'SF Mono', Menlo, Consolas, monospace; white-space: nowrap; }
.dev-tools { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; gap: var(--s2); max-width: 860px; }
.dev-tools li { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: var(--s3); align-items: baseline; padding: var(--s2) 0; border-bottom: 1px solid var(--line-2); }
.dev-tools code { font: 600 var(--t-meta) ui-monospace, 'SF Mono', Menlo, Consolas, monospace; direction: ltr; text-align: left; }
.sec h3 { font-size: var(--t-body); margin: var(--s5) 0 var(--s2); }
.dev-csv { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s2); max-width: 860px; }
.dev-csv a { display: flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s3); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--t-meta); }
.dev-csv a:hover { border-color: var(--ink-2); }
.dev-csv .flag { width: 24px; height: 18px; border-radius: 2px; }
.rk { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-inline-end: var(--s2); border-radius: 3px; background: var(--sign); color: #fff; font: 600 0.875rem/1 var(--f-num); vertical-align: 1px; }
.tool-f label.wide { grid-column: 1 / -1; }
.tool-f [hidden] { display: none !important; }

.cg-x { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: var(--s3); min-height: 44px; padding: var(--s1) var(--s2); color: var(--ink-2); }
