/* چند تومنه؟ — site styles (design v5, 2026-11-25). No framework; RTL first. */
@font-face {
  font-family: "Vazirmatn"; src: url("/fonts/vazirmatn/vazirmatn-nl.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
:root {
  --bg: #f2f3f5; --card: #ffffff; --ink: #1a1c20; --muted: #6b7079; --line: #e4e6ea; --soft: #f7f8fa;
  --gold: #e9a400; --gold-ink: #a26f00; --gold-soft: #fdf1d3; --dark: #17171a; --dark-2: #222226; --on-dark: #f3efe6; --on-dark-muted: #a9a49a;
  --up: #1d8a4b; --up-bg: #e2f4e8; --down: #cf3a2c; --down-bg: #fde7e4; --off: #6b7079; --off-bg: #eceef1;
  --ct-grid: #ece3d2; --ct-cross: #8a8070; --ct-closed: rgba(107,99,88,.07);
  --a-gold: #b98300; --a-usd: #0e9f6e; --a-coin: #a0522d; --a-eur: #2563eb; --a-btc: #d96a00; --a-idx: #7c3aed;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 20px rgba(16,24,40,.06);
  --text: var(--ink); --live: var(--up); --live-bg: var(--up-bg); --warn: #8a5a00; --warn-bg: #fdf1d8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121214; --card: #1c1c1f; --ink: #eeeae2; --muted: #a39d92; --line: #2c2b2f; --soft: #222225;
    --gold: #f0b429; --gold-ink: #f0b429; --gold-soft: #3a2f14; --dark: #0c0c0e; --dark-2: #19191c;
    --up: #5fd08b; --up-bg: #163325; --down: #ff8576; --down-bg: #3a1b18; --off: #b3ada3; --off-bg: #2a292c;
  --ct-grid: #332c24; --ct-cross: #a89c88; --ct-closed: rgba(255,255,255,.035); --a-gold: #f5b829; --a-usd: #34d399; --a-coin: #e0956a; --a-eur: #60a5fa; --a-btc: #fb923c; --a-idx: #a78bfa;
    --ct-grid: #332c24; --ct-cross: #a89c88; --ct-closed: rgba(255,255,255,.035); --a-gold: #f5b829; --a-usd: #34d399; --a-coin: #e0956a; --a-eur: #60a5fa; --a-btc: #fb923c; --a-idx: #a78bfa;
    --shadow: 0 1px 2px rgba(0,0,0,.3); --warn: #f0c26b; --warn-bg: #3a2c10; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121214; --card: #1c1c1f; --ink: #eeeae2; --muted: #a39d92; --line: #2c2b2f; --soft: #222225;
  --gold: #f0b429; --gold-ink: #f0b429; --gold-soft: #3a2f14; --dark: #0c0c0e; --dark-2: #19191c;
  --up: #5fd08b; --up-bg: #163325; --down: #ff8576; --down-bg: #3a1b18; --off: #b3ada3; --off-bg: #2a292c;
  --shadow: 0 1px 2px rgba(0,0,0,.3); --warn: #f0c26b; --warn-bg: #3a2c10; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.75;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif; font-variant-numeric: proportional-nums; }   /* natural-width digits: in Vazirmatn the fixed-width ۰ and ۱ left gaps inside numbers (owner, 2026-11-30) */
a { color: inherit; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 1344px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { background: var(--dark); color: var(--on-dark); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 58px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.brand em { font-style: normal; color: var(--gold); }
.mark { width: 32px; height: 32px; border-radius: 9px; background: var(--gold); color: #17171a; display: grid; place-items: center; font-weight: 900; font-size: 1.15rem; line-height: 1; }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; padding: 17px 9px; font-size: .9rem; color: var(--on-dark); white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.tools { display: flex; gap: 4px; margin-right: auto; }
.icon-btn { background: none; border: 0; color: var(--on-dark); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--dark-2); }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav { position: absolute; top: 58px; right: 0; left: 0; background: var(--dark); flex-direction: column; padding: 6px 16px 14px; display: none; box-shadow: 0 12px 24px rgba(0,0,0,.35); }
  .nav a { padding: 11px 4px; border-bottom: 1px solid var(--dark-2); }
  .top.open .nav { display: flex; }
}

/* Search */
.search { position: relative; max-width: 640px; margin: 0 auto; }
.search form { display: flex; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.search input { flex: 1; border: 0; background: none; padding: 14px 16px; font: inherit; color: var(--ink); min-width: 0; outline: none; }
.search button { border: 0; background: var(--gold); color: #17171a; width: 54px; margin: 6px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.results { position: absolute; top: calc(100% + 6px); right: 0; left: 0; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px rgba(0,0,0,.18); list-style: none; margin: 0; padding: 6px; z-index: 30; text-align: right; max-height: 360px; overflow-y: auto; }
.results a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; }
.results a:hover, .results a.on { background: var(--soft); }
.results small { color: var(--muted); }
.search-pop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; padding: 80px 16px; display: none; }
.search-pop.open { display: block; }

/* Hero */
.hero { background: var(--dark); color: var(--on-dark); padding: 30px 0 74px; text-align: center;
  background-image: radial-gradient(ellipse at 50% -20%, rgba(233,164,0,.16), transparent 60%); }
.hero h1 { margin: 0; font-size: clamp(1.45rem, 4.2vw, 2.15rem); font-weight: 800; line-height: 1.5; }
.hero .when { color: var(--on-dark-muted); font-size: .9rem; margin: 4px 0 18px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--up); vertical-align: middle; margin-left: 6px; }
.dot.stale { background: #e0a100; } .dot.closed, .dot.none { background: #9a958c; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; align-items: center; font-size: .85rem; }
.chips span { color: var(--on-dark-muted); }
.chips a { text-decoration: none; border: 1px solid #3a3a40; border-radius: 999px; padding: 3px 12px; color: var(--on-dark); }
.chips a:hover { border-color: var(--gold); color: var(--gold); }

/* Category bar */
.cats { margin-top: -50px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 10px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; position: relative; }
.cats a { text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 12px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .88rem; font-weight: 600; }
.cats a svg { width: 24px; height: 24px; }
.cats a:hover { border-color: var(--gold); }
.cats a.first { background: linear-gradient(160deg, #ffd879, #f2b52d); border-color: transparent; color: #2a2000; }
@media (max-width: 760px) { .cats { grid-template-columns: repeat(4, 1fr); } .cats a { font-size: .78rem; padding: 10px 2px 8px; } }

/* Sections */
.sec { margin-top: 30px; }
.sec-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.sec-h h2 { font-size: 1.2rem; margin: 0; font-weight: 800; }
.sec-h .note { color: var(--muted); font-size: .82rem; margin-right: auto; }
.sec-h svg { color: var(--gold); }
.panel { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; container-type: inline-size; display: flex; flex-direction: column; }
.panel > table.pt { flex: 1; }
.panel-h { padding: 14px 16px 10px; }
.panel-h h2 { margin: 0; font-size: 1.12rem; font-weight: 800; }
.panel-h p { margin: 0; color: var(--muted); font-size: .8rem; }
.more { margin-top: auto; display: block; text-align: center; padding: 10px; font-size: .88rem; font-weight: 700; color: var(--gold-ink); text-decoration: none; border-top: 1px solid var(--line); }
.more:hover { background: var(--soft); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.grid-crypto { display: grid; grid-template-columns: 1.85fr 1fr; gap: 18px; align-items: stretch; }
.grid-tools { display: grid; grid-template-columns: 1fr 1.6fr; gap: 18px; align-items: stretch; }
@media (max-width: 960px) { .grid2, .grid-crypto, .grid-tools { grid-template-columns: 1fr; } .grid2 { row-gap: 30px; } }   /* stacked cards keep the 30px section rhythm */

/* Cards (market pulse) */
.cards6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1080px) { .cards6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cards6 { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px; text-decoration: none; display: flex; flex-direction: column; }
.pcard:hover { border-color: var(--gold); }
.pcard .h { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; }
.pcard .v { font-size: 1.32rem; font-weight: 800; margin-top: 6px; line-height: 1.3; white-space: nowrap; }
.pcard .v small { font-size: .72rem; font-weight: 500; color: var(--muted); margin-right: 4px; }
.pcard .c { margin-top: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pcard .spark { display: block; width: 100%; height: auto; min-height: 38px; flex: 1; margin: 6px 0 4px; }
.pcard .lh { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); gap: 4px; }
.pcard .lh b { color: var(--ink); font-weight: 600; }
@media (max-width: 600px) { .pcard .v { font-size: 1.08rem; } }

/* Pills */
.chg { display: inline-flex; align-items: center; gap: 2px; font-size: .76rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; white-space: nowrap; direction: rtl; }
.chg.up { color: var(--up); background: var(--up-bg); } .chg.down { color: var(--down); background: var(--down-bg); } .chg.flat { color: var(--off); background: var(--off-bg); }
.amt { font-size: .72rem; white-space: nowrap; } .amt.up { color: var(--up); } .amt.down { color: var(--down); }
.badge { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .82rem; flex: none; color: #fff; }
.badge svg { width: 17px; height: 17px; }
.b-gold { background: var(--gold-soft); color: var(--gold-ink); border-radius: 9px; }
.b-silver { background: var(--off-bg); color: var(--off); border-radius: 9px; }
.b-misc { background: var(--soft); color: var(--muted); border-radius: 9px; border: 1px solid var(--line); }

/* Price tables */
.pt { width: 100%; border-collapse: collapse; font-size: .9rem; table-layout: fixed; }
/* Same column widths in every table of a row (gold/currency side by side; crypto) */
.pt th:nth-child(1) { width: 26%; } .pt th:nth-child(2) { width: 24%; } .pt th:nth-child(3) { width: 15%; } .pt th:nth-child(4), .pt th:nth-child(5) { width: 17.5%; }
.pt.cr th:nth-child(1) { width: 22%; } .pt.cr th:nth-child(2) { width: 23%; } .pt.cr th:nth-child(3) { width: 16%; } .pt.cr th:nth-child(4) { width: 15%; } .pt.cr th:nth-child(5) { width: 24%; }
.pt td { overflow: hidden; text-overflow: ellipsis; }
.pt th { font-weight: 500; color: var(--muted); font-size: .78rem; text-align: right; padding: 8px 10px; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
.pt td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.pt td:first-child { white-space: normal; }
.pt .p b { font-size: .94rem; }
.pt td.r { font-size: .74rem; }
.pt th { padding: 8px 6px; }
.pt tr:last-child td { border-bottom: 0; }
.pt .name { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pt .name b { font-weight: 700; display: block; line-height: 1.4; }
.pt .name small, .pt .sub { color: var(--muted); font-size: .72rem; display: block; line-height: 1.4; }
.pt .name:hover b { color: var(--gold-ink); }
.pt .p b { font-weight: 800; font-size: .98rem; } .pt .p small { display: block; color: var(--muted); font-size: .7rem; line-height: 1.2; }
.pt .r { color: var(--muted); font-size: .84rem; }
.pt .chgc { line-height: 1.5; }
.pt .mbub { display: none; }
.pt .chgc .amt { display: block; }
.pt tr.bub td { background: var(--gold-soft); }
.pt .mob { display: none; }
@container (max-width: 520px) {
  .pt .r, .pt .amt, .pt .unit { display: none; }
  .pt .mob { display: block; color: var(--muted); font-size: .64rem; white-space: normal; }
  .pt td:first-child { min-width: 0; }
  .pt th:nth-child(1) { width: 38%; } .pt th:nth-child(2) { width: 36%; } .pt th:nth-child(3) { width: 26%; }
  .pt.cr th:nth-child(1) { width: 29%; } .pt.cr th:nth-child(2) { width: 43%; } .pt.cr th:nth-child(4) { width: 28%; }
  .pt .p b { font-size: .84rem; }
  .pt.cr .chgc .amt { display: none; }
  .pt td.p { white-space: normal; }
  .pt .p b { font-size: .88rem; white-space: nowrap; }
}
@media (max-width: 600px) {
  .pt td, .pt th { padding: 8px 6px; }
  .pt .name { gap: 7px; }
  .pt .badge { width: 26px; height: 26px; font-size: .72rem; }
}

/* Movers, others, tools */
.mv { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; }
.mv li { flex: 1; display: flex; } .mv li a { flex: 1; }
.mv li a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); text-decoration: none; }
.mv li a:hover { background: var(--soft); }
.mv .t { flex: 1; min-width: 0; } .mv .t b { display: block; line-height: 1.4; } .mv .t small { color: var(--muted); font-size: .72rem; }
.small6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 960px) { .small6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .small6 { grid-template-columns: repeat(2, 1fr); } }
.mini { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-decoration: none; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.mini .f { margin-top: auto !important; padding-top: 2px; }
.mini:hover { border-color: var(--gold); }
.mini .h { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .88rem; }
.mini .v { font-weight: 800; font-size: 1.05rem; margin-top: 4px; white-space: nowrap; } .mini .v small { color: var(--muted); font-size: .68rem; font-weight: 500; margin-right: 3px; }
.mini .f { display: flex; justify-content: space-between; align-items: center; font-size: .7rem; color: var(--muted); margin-top: 2px; gap: 4px; }
.conv { padding: 14px 16px 16px; display: grid; gap: 10px; flex: 1; grid-template-rows: auto 1fr auto; }
.conv .out { display: flex; flex-direction: column; justify-content: center; }
.conv .row2 { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.conv label { font-size: .78rem; color: var(--muted); display: grid; gap: 4px; }
.conv input, .conv select { font: inherit; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; width: 100%; }
.conv .out { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.conv .out small { color: var(--muted); font-size: .78rem; display: block; }
.conv .out b { font-size: 1.5rem; font-weight: 800; }
.conv a { color: var(--gold-ink); font-weight: 700; font-size: .88rem; text-decoration: none; }
.cmp { padding: 4px 16px 14px; flex: 1; display: flex; flex-direction: column; }
.cmp svg { flex: 1; min-height: 150px; }
.cmp .legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.cmp .legend span { font-size: .78rem; border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; }
.cmp .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 5px; }
.cmp svg { width: 100%; display: block; }
.cmp .ax { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }

/* Text, FAQ */
.prose { padding: 16px 20px 6px; font-size: .95rem; }
.prose p { margin: 0 0 10px; }
.prose a, a.gold { color: var(--gold-ink); font-weight: 700; text-decoration: none; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 12px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 22px; height: 22px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; flex: none; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 14px; color: var(--muted); font-size: .92rem; }

/* Footer */
.foot { background: var(--dark); color: var(--on-dark); margin-top: 40px; padding: 28px 0 0; font-size: .88rem; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > div:first-child { grid-column: 1 / -1; } }
.foot h3 { font-size: .92rem; margin: 0 0 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot a { text-decoration: none; color: var(--on-dark-muted); } .foot a:hover { color: var(--gold); }
.foot p { color: var(--on-dark-muted); margin: 8px 0 0; }
.foot .legal { border-top: 1px solid var(--dark-2); margin-top: 22px; padding: 12px 0; color: var(--on-dark-muted); font-size: .78rem; }

/* Inner pages (price, list, car, goods...): keep their markup, restyle it. */
main.page { max-width: 780px; margin: 0 auto; padding: 24px 16px 10px; }
main.page > header { margin-bottom: 18px; }
main.page h1 { font-size: 1.6rem; margin: 0; font-weight: 800; }
main.page h1 span { color: var(--gold-ink); }
.today { color: var(--muted); margin: 2px 0 0; font-size: .92rem; }
.cards { display: grid; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
main.page h2 { font-size: 1.15rem; margin: 0; font-weight: 800; }
.pill { font-size: .78rem; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.pill.live { color: var(--up); background: var(--up-bg); }
.pill.stale { color: var(--warn); background: var(--warn-bg); }
.pill.closed, .pill.none { color: var(--off); background: var(--off-bg); }
.price { font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 800; margin: 10px 0 0; letter-spacing: -.5px; }
.price small { font-size: 1rem; font-weight: normal; color: var(--muted); margin-right: 6px; }
.meta { color: var(--muted); font-size: .88rem; margin: 2px 0 0; }
.crumb { font-size: .88rem; color: var(--muted); margin: 0 0 4px; }
.crumb a { text-decoration: none; } .crumb a:hover { text-decoration: underline; }
a.card-link { text-decoration: none; display: block; } a.card-link:hover h2 { text-decoration: underline; }
.up { color: var(--up); } .down { color: var(--down); }
.change { font-size: 1rem; font-weight: normal; margin-right: 10px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; margin: 14px 0 0; }
.stats div { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 6px; font-size: .92rem; }
.stats dt { color: var(--muted); } .stats dd { margin: 0; font-weight: bold; }
main.page h3 { font-size: 1.02rem; margin: 0 0 8px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .axis { direction: ltr; display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; }
.chart .axis span { direction: rtl; unicode-bidi: isolate; }
.empty { color: var(--muted); font-size: .9rem; margin: 0; }
main.page table { width: 100%; border-collapse: collapse; font-size: .88rem; }
main.page th, main.page td { padding: 7px 4px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
main.page th { color: var(--muted); font-weight: normal; }
.scroll { overflow-x: auto; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; text-decoration: none; font-size: .88rem; background: var(--card); }
.links a:hover { border-color: var(--gold); }
.group { margin-top: 18px; } .group h2 { margin-bottom: 6px; }
table.prices td a { text-decoration: none; } table.prices td a:hover { text-decoration: underline; }
.page-note { color: var(--muted); font-size: .85rem; margin-top: 22px; }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* Grid cells may shrink below their content; long numbers wrap their unit instead of widening the page. */
.cards6, .small6, .cats { grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); }
.cats { --cols: 8; } .cards6, .small6 { --cols: 6; }
@media (max-width: 1080px) { .cards6 { --cols: 3; } }
@media (max-width: 960px) { .small6 { --cols: 3; } }
@media (max-width: 760px) { .cats { --cols: 4; } }
@media (max-width: 600px) { .cards6 { --cols: 2; } }
@media (max-width: 560px) { .small6 { --cols: 2; } }
.pcard .v, .mini .v { white-space: normal; }
@media (max-width: 420px) { .mini .v { font-size: .92rem; } .pcard .v { font-size: 1rem; } .mini .v small, .pcard .v small { display: block; margin: 0; } }

/* Flags (flag-icons, MIT) and banknote gallery */
img.flag { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; vertical-align: -4px; margin-left: 7px; box-shadow: 0 0 0 1px var(--line); background: var(--soft); }
img.flag.badge { width: 30px; height: 30px; margin: 0; padding: 0; }
img.flag.flag-lg { width: 34px; height: 34px; vertical-align: -6px; margin-left: 10px; }
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 6px; }
.notes figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.notes img { width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow); background: var(--soft); }
.notes figcaption { display: flex; justify-content: space-between; gap: 6px; font-size: .86rem; flex-wrap: wrap; }
.notes figcaption span { color: var(--muted); }
.notes .credit { font-size: .66rem; color: var(--muted); } .notes .credit a { text-decoration: none; }

/* Currency pages (design 2026-11-25) */
.fx { padding-top: 18px; }
.fx .crumb { margin: 0 0 4px; font-size: .85rem; color: var(--muted); }
.fx .crumb a { text-decoration: none; }
.fx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.fx-head h1 { margin: 0; font-size: clamp(1.4rem, 3.4vw, 1.9rem); font-weight: 800; }
.fx .when { color: var(--muted); font-size: .86rem; margin: 2px 0; }
.fx .sum { margin: 4px 0 0; font-weight: 800; font-size: 1.05rem; } .fx .sum small { font-weight: 400; color: var(--muted); }
.status-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.status-chip.open { color: var(--up); background: var(--up-bg); } .status-chip.closed { color: var(--off); background: var(--off-bg); }
.row-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tsearch { display: flex; align-items: center; gap: 6px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; min-width: min(260px, 100%); }
.tsearch input { border: 0; background: none; font: inherit; color: var(--ink); padding: 8px 0; outline: none; width: 100%; }
.tsearch svg { color: var(--muted); width: 18px; height: 18px; }
.tscroll { overflow-x: auto; }
.fxt { table-layout: auto; } .fxt th, .fxo th { width: auto !important; }
.fxo { table-layout: auto; }
.pt th[data-sort] { cursor: pointer; user-select: none; } .pt th[data-sort]::after { content: " ⇅"; opacity: .35; font-size: .7rem; }
.pt th[aria-sort="ascending"]::after { content: " ▲"; opacity: 1; } .pt th[aria-sort="descending"]::after { content: " ▼"; opacity: 1; }
.star-c { width: 34px; } .star { background: none; border: 0; cursor: pointer; font-size: 1.1rem; color: var(--muted); padding: 0; }
.star.on { color: var(--gold); }
.pt td.sp { width: 110px; } .pt td.sp .spark { width: 100px; height: 30px; display: block; }
.muted { color: var(--muted); }
.tabs { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; font: inherit; font-size: .84rem; padding: 5px 12px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.tabs button.on { background: var(--card); box-shadow: var(--shadow); font-weight: 700; }
.tabs button small { color: var(--muted); }
[data-region-tabs] button.on { background: var(--dark); color: var(--on-dark); } [data-region-tabs] button.on small { color: var(--on-dark-muted); }
.heat { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 6px 16px 16px; }
.tile { border-radius: 10px; padding: 10px 12px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; min-height: 74px; transition: background .2s; }
.tile.dark { color: #fff; } .tile.dark small, .tile.dark .up, .tile.dark .down { color: #fff; }
.tile .t-h { font-size: .82rem; font-weight: 700; display: flex; align-items: center; gap: 6px; } .tile img.flag { margin: 0; }
.tile b { font-size: 1.2rem; } .tile small { font-size: .72rem; opacity: .85; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.grid-rep { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: stretch; }
@media (max-width: 1080px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .grid3, .grid-rep { grid-template-columns: 1fr; } }
.conv2 label { font-size: .78rem; color: var(--muted); display: grid; gap: 4px; }
.from-to { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.swap { border: 0; background: var(--gold-soft); color: var(--gold-ink); width: 40px; height: 40px; border-radius: 10px; font-size: 1.2rem; cursor: pointer; }
.pairs { display: flex; flex-wrap: wrap; gap: 6px; }
.pairs button { font: inherit; font-size: .76rem; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.pairs button.on { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.conv .out [data-one] { display: block; margin-top: 2px; }
.gap { padding: 0 16px 14px; }
.gap .big { margin: 0 0 8px; font-size: 1.8rem; font-weight: 800; } .gap .big small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.gap .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.gap .two div { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; } .gap .two small { color: var(--muted); font-size: .72rem; display: block; }
.gchart { width: 100%; height: 90px; display: block; }
.gap .ax, .chart-card .ax, .recs .ax { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin: 2px 0; }
.bars { padding: 4px 16px 6px; display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 90px 1fr 56px; align-items: center; gap: 8px; font-size: .86rem; }
.bar i { height: 10px; background: var(--soft); border-radius: 99px; overflow: hidden; display: block; } .bar em { display: block; height: 100%; border-radius: 99px; }
.bar b { font-size: .82rem; text-align: left; }
.note-s { color: var(--muted); font-size: .74rem; margin: 6px 16px 12px; }
.note-s.sec { margin: 30px 0 0; }   /* a page-level note line is a section of its own */
.trips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 16px; }
.trip { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.trip .t-h { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; } .trip img.flag { margin: 0; }
.trip .v { font-weight: 800; font-size: 1.05rem; } .trip .v small { font-weight: 400; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.act { font: inherit; font-size: .86rem; font-weight: 700; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 8px 14px; cursor: pointer; text-decoration: none; box-shadow: var(--shadow); }
.act:hover { border-color: var(--gold); } .act.primary { background: var(--gold); border-color: var(--gold); color: #17171a; }
.dlg { border: 0; border-radius: 16px; padding: 20px; max-width: 480px; width: calc(100% - 32px); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.dlg::backdrop { background: rgba(0,0,0,.45); }
.dlg h2 { margin: 0 0 8px; font-size: 1.1rem; } .dlg p { color: var(--muted); font-size: .88rem; }
.dlg .x { position: absolute; left: 12px; top: 10px; border: 0; background: none; font-size: 1.4rem; cursor: pointer; color: var(--muted); }
.dlg textarea, .report input, .report textarea { width: 100%; font: inherit; font-size: .86rem; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--soft); color: var(--ink); }
.report { display: grid; gap: 10px; } .report label { display: grid; gap: 4px; font-size: .84rem; color: var(--muted); }
.report .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.head-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; padding: 18px 20px; align-items: center; }
@media (max-width: 860px) { .head-card { grid-template-columns: 1fr; } }
.hc-title { display: flex; align-items: center; gap: 12px; } .hc-title h1 { margin: 0; font-size: clamp(1.3rem, 3.2vw, 1.8rem); font-weight: 800; } .hc-title p { margin: 0; font-size: .82rem; }
img.flag.flag-xl { width: 52px; height: 52px; margin: 0; }
.hc-price { margin: 8px 0 2px; } .hc-price b { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; letter-spacing: -.5px; } .hc-price small { color: var(--muted); }
.hc-chg { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; } .hc-chg .amt { font-size: .86rem; }
.head-card .when { margin: 6px 0 0; font-size: .82rem; }
.hc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.hc-stats div { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.hc-stats dt { font-size: .74rem; color: var(--muted); } .hc-stats dd { margin: 0; font-weight: 800; font-size: 1.02rem; }
@media (max-width: 480px) { .hc-stats { grid-template-columns: repeat(2, 1fr); } }
.chart-card svg { width: 100%; height: 220px; display: block; padding: 0 12px; }
.chart-card .ax { padding: 0 16px 12px; }
.pad { padding: 0 16px 16px; } .empty.pad { padding: 20px 16px; }
.mini-t { table-layout: auto; } .mini-t th { width: auto !important; } .mini-t td .amt { display: block; }
.recs { padding: 0 16px 16px; display: grid; gap: 8px; }
.rec { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: grid; }
.rec small { color: var(--muted); font-size: .74rem; } .rec b { font-size: 1.2rem; } .rec span { font-size: .8rem; font-weight: 700; }
.range { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(to left, var(--gold-soft), var(--up-bg)); margin-top: 8px; }
.range i { position: absolute; top: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid var(--card); box-shadow: var(--shadow); }
.ondate { padding: 0 16px 6px; display: grid; gap: 10px; }
.sel3 { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 8px; } .sel3 label { font-size: .76rem; color: var(--muted); display: grid; gap: 4px; }
.sel3 select, .conv2 select { font: inherit; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 8px; width: 100%; }
.ondate .out { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; } .ondate .out small { color: var(--muted); }
.ondate .out b { font-size: 1.5rem; font-weight: 800; } .ondate .out span { display: block; font-size: .8rem; font-weight: 700; }
.ondate .note-s { margin: 0; }
.pt tr.hl td { background: var(--gold-soft); }
.prose.small { font-size: .86rem; padding-top: 0; } .prose.small p { margin: 0 0 4px; }
.btn-s { font-size: .82rem; font-weight: 700; color: var(--gold-ink); text-decoration: none; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; }
.h-s { font-size: 1.05rem; margin: 14px 0 10px; }
nav.pad { padding: 4px 16px 16px; } .links a img.flag { margin-left: 5px; width: 16px; height: 16px; }
@media (max-width: 600px) {
  .fxt th:nth-child(n+5), .fxt td:nth-child(n+5) { display: none; }
  .fxt .mob { display: block; }
  .from-to { grid-template-columns: 1fr auto 1fr; }
  .bar { grid-template-columns: 74px 1fr 50px; }
  .chart-card svg { height: 170px; }
}
.ondate .out [data-label] { display: block; }

/* Gold and coin pages (design 2026-11-25) */
.gold { color: var(--gold-ink); font-weight: 700; text-decoration: none; }
.grid-calc { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; align-items: stretch; }
@media (max-width: 960px) { .grid-calc { grid-template-columns: 1fr; } }
.panel.calc { border: 1.5px solid var(--gold); }
.calc-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 16px 12px; }
@media (max-width: 600px) { .calc-in { grid-template-columns: 1fr 1fr; } }
.calc-in label, .conv .row3 label { font-size: .78rem; color: var(--muted); display: grid; gap: 4px; }
.calc-in input, .calc-in select, .conv .row3 input, .conv .row3 select { font: inherit; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; width: 100%; }
.calc-out { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; padding: 0 16px 6px; align-items: stretch; }
@media (max-width: 600px) { .calc-out { grid-template-columns: 1fr; } }
.calc-lines { margin: 0; display: grid; gap: 2px; }
.calc-lines div { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px dashed var(--line); padding: 6px 0; }
.calc-lines dt { font-weight: 700; font-size: .88rem; } .calc-lines dt small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
.calc-lines dd { margin: 0; font-weight: 700; white-space: nowrap; }
.total { background: var(--dark); color: var(--on-dark); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.total small { color: var(--on-dark-muted); font-size: .78rem; } .total b { color: var(--gold); font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; line-height: 1.3; }
.total .per { font-size: .72rem; }
.conv .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.conv .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .conv .two .out b { font-size: 1.3rem; }
.units-out { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.units-out div { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; } .units-out small { display: block; color: var(--muted); font-size: .7rem; } .units-out b { font-size: .86rem; }
@media (max-width: 1200px) { .units-out { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.conv hr { border: 0; border-top: 1px dashed var(--line); margin: 4px 0; width: 100%; }
.out-line { margin: 0; font-weight: 700; font-size: .9rem; }
.years td.r { width: 40%; } .ybar { display: block; height: 10px; border-radius: 99px; background: var(--gold); margin-right: auto; } .ybar.neg { background: var(--down); }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 8px; }
.tg { font: inherit; font-size: .78rem; border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 3px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.tg i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; opacity: .35; } .tg.on { color: var(--ink); border-color: var(--ink); } .tg.on i { opacity: 1; }
.dots { margin: 10px 0 0; padding: 0 18px 0 0; font-size: .86rem; display: grid; gap: 6px; } .dots li::marker { color: var(--gold); }
.cb-list { list-style: none; margin: 0; padding: 0; display: grid; }
.cb-list li { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); padding: 6px 0; } .cb-list li span { flex: 1; } .cb-list small { display: block; color: var(--muted); font-size: .7rem; } .cb-list li > b { font-size: 1.1rem; }
.big-n { font-size: 1.8rem; font-weight: 800; margin: 0; } .big-n small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.funds4 { --cols: 4 !important; } @media (max-width: 760px) { .funds4 { --cols: 2 !important; } }
.gloss .trip { gap: 0; } .gloss .trip b { font-size: .95rem; } .gloss .trip span { font-size: .78rem; }
.badge.xl { width: 52px; height: 52px; border-radius: 14px; } .badge.xl svg { width: 28px; height: 28px; }
.sec-h .note.gold { margin-right: auto; }
.chart-card > svg { flex: 1; min-height: 200px; height: auto; }
.conv:not(#conv) { grid-template-rows: none; align-content: start; } .pairs button { align-self: start; }
.pt.auto { table-layout: auto; } .pt.auto th { width: auto !important; } .pt.auto td { white-space: normal; }
.pt.auto td b { white-space: nowrap; }

/* Gold-family tabs; home tiles 9 (طلا and سکه split, 2026-11-25) */
.page-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 16px; }
.page-tabs a { text-decoration: none; font-size: .88rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.page-tabs a:hover { border-color: var(--gold); }
.page-tabs a[aria-current="page"] { background: var(--dark); color: var(--gold); border-color: var(--dark); }
/* section tabs with an underline (gold family, owner 2026-11-30); inside the hub header's dark band they sit at its foot */
.sub-tabs { display: flex; gap: 0 22px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: -4px 0 16px; }
.sub-tabs::-webkit-scrollbar { display: none; }
.sub-tabs a { flex: none; white-space: nowrap; text-decoration: none; font-size: .9rem; font-weight: 700; color: var(--muted); padding: 10px 2px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.sub-tabs a:hover { color: var(--ink); }
.sub-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.hh-band .sub-tabs { grid-column: 1 / -1; margin: 6px 0 0; border-bottom-color: rgba(255,255,255,.12); }
.hh-band .sub-tabs a { color: #bdb4a4; } .hh-band .sub-tabs a:hover { color: #fff; } .hh-band .sub-tabs a[aria-current="page"] { color: #fff; }
@media (max-width: 760px) { .sub-tabs, .hh-band .sub-tabs { margin-inline: -16px; padding-inline: 16px; gap: 0 12px; } .sub-tabs a { font-size: .84rem; } }
.cats { --cols: 9 !important; }
@media (max-width: 760px) { .cats { --cols: 3 !important; } }
.more2 { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; } .more2 .more + .more { border-right: 1px solid var(--line); }

/* Coin bubble page (2026-11-25) */
.total .vs { color: var(--on-dark); font-weight: 700; margin-top: 2px; }
.gap .two.four { grid-template-columns: 1fr 1fr; }
.gap .two.four b { font-size: 1.05rem; }
.heat-t td { padding: 4px 6px; }
.heat-t .hcell { display: block; text-align: center; border-radius: 7px; padding: 4px 6px; font-weight: 700; color: var(--text); }
.rank7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 960px) { .rank7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rank7 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rbar { display: block; height: 6px; border-radius: 99px; background: var(--soft); margin: 6px 0 4px; overflow: hidden; }
.rbar em { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.mini .f { font-size: .72rem; color: var(--muted); }

/* Funds page (2026-11-25) */
.dbar { display: grid; grid-template-columns: 7em minmax(0, 1fr) minmax(0, 1fr) 4.5em; align-items: center; gap: 6px; font-size: .82rem; padding: 3px 16px; }
.dbar .neg, .dbar .pos { height: 12px; display: flex; }
.dbar .neg { justify-content: flex-end; border-left: 1px solid var(--muted); }
.dbar .pos { justify-content: flex-start; }
.dbar .neg i { background: var(--down); height: 100%; border-radius: 0 4px 4px 0; }
.dbar .pos i { background: var(--up); height: 100%; border-radius: 4px 0 0 4px; }
.dbar b { text-align: left; direction: ltr; }
.pt tr.ref td { color: var(--muted); background: var(--soft); }
.hours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 16px 14px; }
.hours div { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.hours small { display: block; color: var(--muted); font-size: .74rem; }
@media (max-width: 560px) { .hours { grid-template-columns: 1fr; } }
.badge.sym { width: auto; min-width: 38px; padding: 0 7px; font-size: .72rem; white-space: nowrap; }
.pad-x { padding: 0 16px 10px; margin: 0; font-size: .82rem; }
.rlist { padding: 0 16px 14px; }
.rrow { display: grid; grid-template-columns: 1.6em 6.5em minmax(0, 1fr) 4.8em; align-items: center; gap: 8px; font-size: .84rem; padding: 3px 6px; border-radius: 8px; }
.rrow small { color: var(--muted); }
.rrow .rbar { margin: 0; height: 9px; }
.rrow span { direction: ltr; text-align: left; font-weight: 700; }
.rrow.ref { background: var(--soft); }
.rrow.ref .rbar em { background: var(--off); }
.dbar .pos i { background: var(--gold); }
.dbar .neg i { background: var(--off); }
.dbar.head small { color: var(--muted); font-size: .72rem; }
.dbar.head small:first-of-type { text-align: left; }
.calc3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 960px) { .calc3 { grid-template-columns: 1fr; } }
.panel.hl { border-color: var(--gold); }
.ulist { max-height: 300px; overflow-y: auto; border-top: 1px solid var(--line); }
.ulist > div { display: flex; align-items: center; gap: 6px; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.ulist > div > span { flex: 1; min-width: 0; }
.ulist small { display: block; color: var(--muted); font-size: .72rem; }
.ulist > div > small { display: inline; }
.ulist [data-n] { font-size: 1.1rem; }
.pt.compact td { padding: 6px 4px; }
.hours.v { grid-template-columns: 1fr; }
.hours .live { background: var(--up-bg); color: var(--up); border-color: transparent; }
.hours .live small { color: var(--up); }

/* Crypto pages (2026-11-25) */
.ltr { direction: ltr; unicode-bidi: isolate; }
.cbadge { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: .56rem; font-weight: 800; flex: none; letter-spacing: -.2px; font-family: system-ui, sans-serif; }
.cbadge.s { width: 18px; height: 18px; font-size: .4rem; }
.cbadge.xl { width: 52px; height: 52px; font-size: .9rem; }
.pt .cbadge { width: 28px; height: 28px; }
.mkt4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
@media (max-width: 960px) { .mkt4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mkt4 { grid-template-columns: 1fr; } }
.mk { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.mk > small { color: var(--muted); font-size: .78rem; }
.mk > b { font-size: 1.45rem; font-weight: 800; line-height: 1.3; }
.mk > b small { font-size: .78rem; font-weight: 600; color: var(--muted); }
.mk .f { margin: auto 0 0; font-size: .74rem; color: var(--muted); }
.mk .f b { color: var(--ink); }
.mk .small { font-size: .76rem; }
.dom { display: flex; height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 6px 0 2px; }
.dom em { background: #f7931a; } .dom em.e { background: #627eea; }
.mk.fng { align-items: center; text-align: center; }
.mk.fng > small { align-self: stretch; text-align: right; }
.gauge { width: 130px; height: 72px; }
.mini-ch { width: 100%; height: 40px; }
.cats-t { padding: 0 16px 10px; flex-wrap: wrap; }
.cats-t small { color: var(--muted); font-size: .7rem; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 10px 16px 16px; }
.pager button { font: inherit; font-size: .78rem; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.pager button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.crt .p .mob { direction: ltr; text-align: right; }
@media (max-width: 600px) {
  .crt th:nth-child(2), .crt td:nth-child(2) { display: none; }
  .crt th:nth-child(6), .crt td:nth-child(6) { display: table-cell; }
}
#cconv .row3 { grid-template-columns: 1fr auto 1fr; align-items: end; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick .btn-s { background: var(--card); cursor: pointer; font-family: inherit; }
.formula { background: var(--soft); border-radius: 10px; padding: 10px 14px; }
.total b.up { color: #5fd08b; } .total b.down { color: #ff8576; }
.hc-usd { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--muted); }
.d-b { display: block; }
.tabs-2 { display: flex; gap: 6px; flex-wrap: wrap; }
.info-t td:first-child { color: var(--muted); }
.gold-ch { width: 100%; height: 110px; display: block; }
.dark-card { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.dark-card h2, .dark-card b { color: var(--on-dark); }
.dark-card .pt th, .dark-card .pt td { color: var(--on-dark); border-color: rgba(255,255,255,.1); background: transparent; }
.dark-card .pt small { color: var(--on-dark-muted); }
.dark-card p { margin: 4px 0; }
.dark-card .small { font-size: .76rem; color: var(--on-dark-muted); }
.gold-n { color: var(--gold) !important; } .gold-n small { color: var(--on-dark-muted); }
.gapcard { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; border-color: var(--gold); }
@media (max-width: 760px) { .gapcard { grid-template-columns: 1fr; } }
.gap-r svg { width: 100%; height: 160px; display: block; }
.h-s0 { font-size: .9rem; margin: 0; color: var(--muted); }
.since { margin: 0 16px 8px; background: var(--soft); border-radius: 10px; padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.since span { font-weight: 800; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .74rem; color: var(--muted); padding: 0 16px 6px; }
.conv .legend { padding: 0; }
.legend i { display: inline-block; width: 14px; height: 8px; border-radius: 2px; margin-left: 4px; vertical-align: middle; }
.legend i.dash { border-top: 2px dashed var(--muted); height: 0; border-radius: 0; }
.stc { padding: 14px 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.stc.hl { border-color: var(--gold); }
.stc .name { display: flex; gap: 8px; align-items: center; } .stc .name small { display: block; color: var(--muted); font-size: .72rem; }
.stc .gap { padding: 6px 0 0; }
.dca4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 600px) { .dca4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dca4 > div { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.dca4 > div.dark { background: var(--dark); color: var(--on-dark); } .dca4 > div.dark b { color: var(--gold); }
.dca4 small { display: block; color: var(--muted); font-size: .72rem; } .dca4 > div.dark small { color: var(--on-dark-muted); }
.dca4 b { font-size: .98rem; }
#dca svg { width: 100%; height: 160px; }
.cmp-pick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; padding: 12px 16px; margin-top: 14px; }
.cmp-pick label { font-size: .78rem; color: var(--muted); display: grid; gap: 4px; }
.cmp-pick select { font: inherit; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.cmp-card { padding: 14px 16px; text-decoration: none; color: var(--ink); border-top: 3px solid; display: flex; flex-direction: column; gap: 4px; }
.cmp-card .name { display: flex; gap: 8px; align-items: center; } .cmp-card .name small { display: block; color: var(--muted); font-size: .72rem; }
.cmp-card p { margin: 0; } .cmp-card .gap { padding: 8px 0 0; }
.links.chips a { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 6px 12px; color: var(--ink); opacity: 1; }
.gloss-bar { position: sticky; top: 56px; z-index: 5; background: var(--bg); padding: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.gloss-bar .tsearch { max-width: 420px; }
.letters { display: flex; flex-wrap: wrap; gap: 4px; }
.letters a, .letters span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; font-size: .82rem; font-weight: 700; }
.letters a { background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.letters span { color: var(--line); }
.gloss { scroll-margin-top: 150px; }
.gl { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 1rem; margin: 0 0 10px; }
.gcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 960px) { .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gcards { grid-template-columns: 1fr; } }
.gcard { padding: 12px 14px; }
.gcard h3 { margin: 0 0 6px; font-size: 1rem; display: flex; justify-content: space-between; gap: 6px; }
.gcard h3 small { color: var(--muted); font-weight: 500; font-size: .72rem; }
.gcard p { margin: 0 0 6px; font-size: .86rem; line-height: 1.8; color: var(--text); }
.gcard a { font-size: .8rem; }
.chart-card svg.gold-ch { height: 110px; }
.gap-r .ax { display: flex; justify-content: space-between; gap: 8px; font-size: .72rem; color: var(--muted); padding: 0 16px 12px; margin: 0; }
.stc p { margin: 0; }

/* Bourse pages (2026-11-25) */
.notice-bar { background: var(--gold); color: #1a1a1a; text-align: center; font-size: .82rem; font-weight: 700; padding: 5px 16px; }
.sum-s { margin: 4px 0 0; font-weight: 700; }
.mk.idx { text-decoration: none; color: var(--ink); }
.mk.idx > b { font-size: 1.6rem; }
.cmp-bars { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; font-size: .76rem; margin: 6px 0; }
.cmp-bars i { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; display: block; }
.cmp-bars em { display: block; height: 100%; background: var(--gold); border-radius: 99px; } .cmp-bars em.g { background: var(--off); }
.breadth { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin: 8px 0 4px; background: var(--soft); }
.breadth .u { background: var(--up); } .breadth .n { background: var(--line); } .breadth .d { background: var(--down); }
.rbars { display: flex; align-items: flex-end; gap: 4px; height: 44px; margin: 6px 0; }
.rbars i { flex: 1; border-radius: 3px; display: block; } .rbars .u { background: #5fd08b; } .rbars .d { background: #ff8576; }
.dark-card .up { color: #5fd08b !important; } .dark-card .down { color: #ff8576 !important; }
.grow2 { display: grid; grid-template-columns: 1fr 1.6fr; gap: 14px; padding: 0 16px 8px; }
@media (max-width: 760px) { .grow2 { grid-template-columns: 1fr; } }
.grow2 .legend { padding: 0 0 6px; } .grow2 .ax { padding: 0; }
.dot-c { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 6px; }
.gap .two.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; padding: 0 16px 12px; text-align: center; }
.cal > b { font-size: .72rem; color: var(--muted); font-weight: 600; }
.cal span { min-height: 42px; border-radius: 8px; font-size: .78rem; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cal span.c { background: var(--soft); }
.cal span.g { background: #cdebd8; color: var(--ink); } .cal span.r { background: #f8d3ce; color: var(--ink); } .cal span.z { background: var(--line); }
.cal span.now { outline: 2px solid var(--gold); }
.cal small { font-size: .62rem; font-weight: 700; direction: ltr; }
.rrow.hl { background: var(--gold-soft); }
.tscroll.tall { max-height: 420px; overflow-y: auto; }
.scatter { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto; }
.row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 760px) { .row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.conv .row4 label { font-size: .78rem; color: var(--muted); display: grid; gap: 4px; }
.conv .row4 input, .conv .row4 select, .conv .row2 input[type=text], .conv .row3 input { font: inherit; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.tool { padding: 0 16px 16px; }
#btools .tabs { flex-wrap: wrap; }
.simple { display: grid; gap: 8px; padding: 0 16px 16px; }
.simple > div { background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.simple p { margin: 4px 0; font-size: .86rem; line-height: 1.8; }
.mbars { padding: 0 16px 14px; display: grid; gap: 4px; }
.mbars > div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr) 4.5em; gap: 8px; align-items: center; font-size: .82rem; padding: 2px 6px; border-radius: 6px; }
.mbars > div.hl { background: var(--up-bg); } .mbars > div.lo { background: var(--down-bg); }
.mbars i { display: flex; height: 10px; justify-content: center; position: relative; }
.mbars i::before { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; border-left: 1px solid var(--line); }
.mbars em { display: block; height: 100%; } .mbars em.u { background: var(--up); margin-left: auto; transform: translateX(-50%); } .mbars em.d { background: var(--down); margin-right: auto; transform: translateX(50%); }
.mbars b { direction: ltr; text-align: left; }
.mh .hcell { min-width: 38px; }
.status-chip.wrapok { white-space: normal; max-width: 100%; }

/* Silver and metals pages (2026-11-25) */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 1100px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid4 { grid-template-columns: 1fr; } }
.meter { display: block; position: relative; height: 10px; border-radius: 99px; background: linear-gradient(to left, #cf3a2c, #e8b04a 60%, #1d8a4b); margin: 8px 0 2px; }
.meter em { position: absolute; top: -4px; width: 8px; height: 18px; border-radius: 4px; background: var(--ink); border: 2px solid var(--card); transform: translateX(50%); }
.vs2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 10px; }
.vsc { border: 1px solid var(--line); border-top: 3px solid #8b95a1; border-radius: 12px; padding: 10px 12px; }
.vsc.g { border-top-color: var(--gold); }
.vsc small { color: var(--muted); font-size: .74rem; display: block; } .vsc p { margin: 2px 0 6px; }
.dark-out { background: var(--dark) !important; color: var(--on-dark); } .dark-out b { color: var(--gold); } .dark-out small { color: var(--on-dark-muted); }
.guide td { font-size: .84rem; }
.conv .out { display: flex; flex-direction: column; }
.ticker { background: var(--card); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; font-size: .78rem; }
.ticker div { display: inline-flex; gap: 22px; padding: 6px 16px; animation: tick 45s linear infinite; }
.ticker span b { margin-left: 4px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .ticker div { animation: none; } }
.glance { background: var(--dark); color: var(--on-dark); border-radius: 14px; padding: 14px 18px; line-height: 2; }
.glance b { color: var(--gold); display: block; }
.mtable .bar-c { width: 5px; border-radius: 3px; height: 26px; display: inline-block; vertical-align: middle; margin-left: 8px; }
.splitbar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--soft); }
.splitbar em.u { background: #d29a14; } .splitbar em.g { background: #3b6fd8; }
.corr td { text-align: center; font-size: .8rem; padding: 6px 4px; }
.facts { padding: 0 16px 14px; margin: 0; } .facts li { margin: 4px 0; font-size: .88rem; }
.tools3 { padding: 0 16px 16px; } .tools3 > .conv > b { font-size: .95rem; }
.calc .ax { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin: 0; }
#off .total b { font-size: 1.15rem; line-height: 1.6; }
/* Energy (2026-11-26) */
.mkt3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
@media (max-width: 720px) { .mkt3 { grid-template-columns: 1fr; } }
.mk.dark { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.mk.dark > small, .mk.dark .f, .mk.dark > b small { color: var(--on-dark-muted); } .mk.dark > b { color: var(--gold); }
.rrow.e3 { grid-template-columns: minmax(7em, 11em) minmax(0, 1fr) auto; }
.fw { padding: 0 16px 6px; gap: 16px; align-items: start; } .fw .rlist { padding: 0; } .fw .mini-t { margin-top: 8px; }
.qbox { gap: 10px; margin-bottom: 12px; }
.kv { background: var(--soft); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.kv > small { font-size: .74rem; color: var(--muted); } .kv > b { font-size: 1.2rem; font-weight: 800; }
.total.mx { margin: 0 16px 12px; }
.ys { max-height: 460px; overflow-y: auto; }
.ev-t td { vertical-align: top; } .ev-t td:nth-child(2) { white-space: nowrap; }
.rbar.sm { display: inline-block; width: 60px; height: 6px; vertical-align: middle; margin: 0 4px; }
.conv .mini-t { margin-top: 8px; }

/* ---------------------------------------------------------------- home page (design «Chandtomaneh Home», 2026-11-26) */
.hm { padding-top: 22px; padding-bottom: 10px; }
.hm-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.hm-hero h1 { margin: 0; font-size: clamp(1.35rem, 3.4vw, 2rem); font-weight: 900; line-height: 1.5; }
.hm-hero .when { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.hm-hero .fresh { color: var(--up); font-weight: 700; white-space: nowrap; }
.hm-hero .fresh .dot { display: inline-block; vertical-align: middle; margin-left: 4px; }
.btn-share { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; font-weight: 700; font-size: .88rem; text-decoration: none; box-shadow: var(--shadow); white-space: nowrap; }
.btn-share svg { color: var(--gold); width: 18px; height: 18px; }
.hm-search { margin-top: 16px; }
.hm-search .search form { border-radius: 14px; }
.hm-search .search input { padding: 16px 18px; font-size: 1.02rem; }
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font-size: .84rem; }
.hm-chips span { color: var(--muted); }
.hm-chips a { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-weight: 600; }
.hm-chips a:hover { border-color: var(--gold); color: var(--gold-ink); }
.hm-my { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; border: 1px dashed var(--line); border-radius: 14px; padding: 10px 14px; font-size: .86rem; }
.hm-my > b .s { color: var(--gold); }
.hm-my .hint { color: var(--muted); }
.hm-my .list { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-my .list a { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.hm-my .list a[hidden] { display: none; }
.hm-cards { margin-top: 16px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.hm-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px 8px; display: flex; flex-direction: column; min-width: 0; }
.hm-card:hover { border-color: var(--gold); }
.hm-card .h { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; }
.hm-card .h a { text-decoration: none; }
.hm-card .h a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }   /* whole card opens the price page */
.hm-card .star { position: relative; z-index: 1; }
.hm-card .v { margin-top: 6px; white-space: nowrap; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.hm-card .v b { font-size: 1.42rem; font-weight: 900; line-height: 1.3; }
.hm-card .v small { color: var(--muted); font-size: .72rem; }
.hm-card .c { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: .76rem; margin-top: 4px; }
.hm-card .c small { color: var(--muted); }
.hm-card .c .w { margin-right: 4px; font-weight: 700; }
.hm-card .spark { width: 100%; height: 40px; margin-top: 6px; display: block; }
.hm-mk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; font-size: .8rem; }
.mchip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 11px; background: var(--off-bg); color: var(--off); font-weight: 700; white-space: nowrap; font-size: .8rem; }
.mchip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mchip.open { background: var(--up-bg); color: var(--up); }
.hm-glance { margin-top: 16px; background: var(--dark); color: var(--on-dark); border-radius: 16px; padding: 16px 20px; }
.hm-glance h2 { margin: 0 0 4px; font-size: 1rem; color: var(--gold); }
.hm-glance p { margin: 0; line-height: 2; font-size: .98rem; }
.hm-secs { margin-top: 16px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.hm-sec { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; min-width: 0; scroll-margin-top: 120px; }
.hm-sec:hover { border-color: var(--gold); }
.hm-sec .n { font-weight: 700; font-size: .86rem; }
.hm-sec > b { font-size: 1.28rem; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-sec > b.g { color: var(--gold-ink); }
.hm-sec small { color: var(--muted); font-size: .72rem; line-height: 1.6; }
.hm-sec .c { font-size: .74rem; display: flex; gap: 4px; align-items: center; }
.hm-sec em { font-style: normal; color: var(--gold-ink); font-weight: 700; font-size: .78rem; margin-top: auto; padding-top: 6px; }
.hm-tabs { display: none; }
.row-h .more { border: 0; padding: 0; margin: 0; text-align: left; white-space: nowrap; }
.more.c { margin-top: 0; }
.hmt th.st, .hmt td.st { width: 34px; padding-left: 0; padding-right: 10px; }
.hmt th:nth-child(2) { width: auto; } .hmt th:nth-child(3) { width: 27%; } .hmt th:nth-child(4) { width: 14%; } .hmt th.wk { width: 12%; } .hmt th.sp { width: 96px; }
.hmt.cr th:nth-child(2) { width: auto; } .hmt.cr th:nth-child(3) { width: 26%; } .hmt.cr th.usd { width: 15%; }
.hmt td.wk { font-size: .8rem; font-weight: 700; }
.hmt td.sp .spark { width: 84px; height: 26px; display: block; }
.hmt .name small { font-size: .7rem; }
.hmt td.p b { font-size: 1rem; }
.hmt .usd { font-size: .86rem; }
.hmt .chg { font-size: .74rem; }
.hm-sister { margin: 14px 0 0; text-align: left; }
.hm-sister a { display: inline-block; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; font-size: .84rem; font-weight: 700; text-decoration: none; }
.hm-rank { list-style: none; margin: 0; padding: 4px 16px 6px; }
.hm-rank li { display: grid; grid-template-columns: 20px 110px 1fr 64px; gap: 10px; align-items: center; padding: 7px 0; font-size: .88rem; }
.hm-rank .i { color: var(--muted); font-size: .78rem; }
.hm-rank .nm { font-weight: 700; }
.hm-rank .bar { height: 10px; background: var(--soft); border-radius: 6px; overflow: hidden; }
.hm-rank .bar i { display: block; height: 100%; border-radius: 6px; }
.hm-rank b { text-align: left; font-size: .84rem; }
.hm-intra { padding: 4px 16px 12px; }
.hm-intra .t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hm-intra .t b span { font-size: 1.1rem; font-weight: 900; margin-right: 6px; }
.hm-intra .t small { color: var(--muted); font-size: .74rem; }
.hm-intra .t em { font-style: normal; font-weight: 700; }
.hm-intra .ch { position: relative; margin-top: 6px; }
.hm-intra svg { width: 100%; height: 120px; display: block; }
.hm-intra .ax { position: relative; height: 18px; direction: ltr; font-size: .7rem; color: var(--muted); }
.hm-intra .ax span { position: absolute; transform: translateX(-50%); }
.hm-g2 { display: grid; grid-template-columns: 1fr 2fr; gap: 18px; }
.hm-gd { padding: 0 16px 6px; }
.hm-gd .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-gd .two div { background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.hm-gd .two small { display: block; color: var(--muted); font-size: .76rem; }
.hm-gd .two b { font-size: 1.3rem; font-weight: 900; }
.hm-gd .gap { margin-top: 10px; border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; font-size: .86rem; }
.hm-gd .gap.down { background: var(--down-bg); } .hm-gd .gap.up { background: var(--up-bg); }
.hm-gd .gap b { font-size: 1.05rem; white-space: nowrap; } .hm-gd .gap.down b { color: var(--down); } .hm-gd .gap.up b { color: var(--up); }
.hm-gd .note-s { margin: 8px 0 10px; }
.hm-recs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 16px 16px; }
.hm-recs .rec { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hm-recs .rec.new { background: var(--gold-soft); border-color: var(--gold); }
.hm-recs .n { font-weight: 700; font-size: .86rem; display: flex; justify-content: space-between; gap: 6px; }
.hm-recs .n em { font-style: normal; font-size: .68rem; background: var(--gold); color: #17171a; border-radius: 6px; padding: 0 6px; }
.hm-recs b { font-size: 1.15rem; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-recs small { color: var(--muted); font-size: .72rem; } .hm-recs small.down { color: var(--down); font-weight: 700; }
.hm-buy { padding: 4px 16px 16px; }
.hm-buy input[type=range] { width: 100%; accent-color: var(--gold); }
.hm-buy .ax { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; }
.hm-buy .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.hm-buy .tiles div { background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.hm-buy .tiles b { display: block; font-size: 1.3rem; font-weight: 900; }
.hm-buy .tiles span { font-weight: 700; font-size: .84rem; }
.hm-buy .tiles small { display: block; color: var(--muted); font-size: .7rem; }
.hm-past th { text-align: right; } .hm-past th:nth-child(1) { width: 28%; }
.hm-past td b { display: block; } .hm-past td small { color: var(--muted); font-size: .72rem; display: block; } .hm-past em { font-style: normal; font-weight: 700; }
.hm-past td:first-child { padding-right: 16px; }
.hm-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hm-tools .tool { padding: 14px; gap: 10px; }
.hm-tools h3 { margin: 0; font-size: 1rem; }
.hm-tools .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hm-tools label { font-size: .74rem; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.hm-tools input, .hm-tools select { font: inherit; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; width: 100%; }
.hm-tools .dark-out { border-radius: 12px; padding: 10px 12px; margin-top: auto; }
.hm-tools .dark-out small { display: block; font-size: .74rem; }
.hm-tools .dark-out b { font-size: 1.12rem; font-weight: 900; }
.hm-tools .note-s { margin: 0; }
.hm-tools .gold { font-size: .82rem; }
.hm-ya { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.hm-ya li { display: flex; justify-content: space-between; padding: 3px 0; }
.hm-ya i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; }
.hm-share { flex-direction: row; align-items: center; gap: 16px; padding: 16px; }
.hm-share .txt { flex: 1; }
.hm-share h2 { margin: 0; font-size: 1.12rem; } .hm-share p { margin: 4px 0 10px; font-size: .88rem; }
.btn-gold { border: 0; background: var(--gold); color: #17171a; font: inherit; font-weight: 800; border-radius: 10px; padding: 9px 18px; cursor: pointer; }
.hm-share .card { width: 240px; flex: none; aspect-ratio: 1; background: var(--dark); color: var(--on-dark); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; font-size: .76rem; }
.hm-share .card .ch { display: flex; justify-content: space-between; align-items: center; } .hm-share .card .brand { font-size: .9rem; } .hm-share .card .mark { width: 22px; height: 22px; font-size: .8rem; border-radius: 6px; }
.hm-share .card small { color: var(--on-dark-muted); font-size: .64rem; }
.hm-share .card .tt { color: var(--gold); font-size: .92rem; margin: 4px 0; }
.hm-share .card .r { display: grid; grid-template-columns: 1fr auto 44px; gap: 6px; align-items: center; border-top: 1px solid #2c2b2f; padding-top: 5px; }
.hm-share .card .r b { font-size: .86rem; } .hm-share .card .r em { font-style: normal; font-size: .66rem; text-align: left; }
.hm-share .card .r em.up { color: #5fd08b; } .hm-share .card .r em.down { color: #ff8576; }
.hm-share .card .u { margin-top: auto; text-align: center; }
.soon { font-size: .7rem; background: var(--gold-soft); color: var(--gold-ink); border-radius: 6px; padding: 1px 8px; vertical-align: middle; margin-right: 6px; }
.hm-alert .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); }
.hm-alert select, .hm-alert input { font: inherit; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; width: 110px; color: var(--muted); }
.hm-alert .btn-s { margin-top: 12px; background: var(--soft); cursor: not-allowed; opacity: .7; }
.hm-alert .note-s { margin: 10px 0 0; }
.hm-cal, .hm-hol { list-style: none; margin: 0; padding: 0; }
.hm-cal li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); }
.hm-cal li b, .hm-hol b { display: block; font-size: .9rem; } .hm-cal small, .hm-hol small { color: var(--muted); font-size: .74rem; }
.hm-h3 { margin: 0; padding: 8px 16px; font-size: .92rem; background: var(--soft); border-top: 1px solid var(--line); }
.hm-hol li { display: flex; gap: 12px; align-items: center; padding: 8px 16px; border-top: 1px solid var(--line); }
.hm-hol .d { width: 44px; text-align: center; background: var(--soft); border-radius: 10px; padding: 2px 0; flex: none; } .hm-hol .d b { font-size: 1rem; }
.hm-other td:first-child { padding-right: 16px; } .hm-other td.r { text-align: left; padding-left: 16px; font-weight: 700; }
.hm-other th:nth-child(1) { width: auto; }
.hm-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 16px 14px; }
.hm-how p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.9; }
.flash-up, .flash-down { animation: hm-flash 1.6s ease-out; border-radius: 4px; }
.flash-up { --fl: var(--up-bg); } .flash-down { --fl: var(--down-bg); }
@keyframes hm-flash { 0%, 30% { background: var(--fl); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .flash-up, .flash-down { animation: none; } }
@media (max-width: 1200px) { .hm-cards { grid-template-columns: repeat(3, 1fr); } .hm-secs { grid-template-columns: repeat(4, 1fr); } .hm-tools { grid-template-columns: repeat(2, 1fr); } .hm-g2 { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .hm-recs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .hm { padding-top: 14px; }
  .hm-hero { flex-direction: column; gap: 8px; }
  .hm-cards, .hm-secs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hm-card .v b { font-size: 1.12rem; }
  .hm-sec > b { font-size: 1.1rem; }
  .hm-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; position: sticky; top: 58px; z-index: 10; background: var(--bg); padding: 10px 0; margin-top: 8px; }
  .hm-tabs a { text-align: center; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 0; font-weight: 700; font-size: .86rem; }
  #t-gold, #t-fx, #t-crypto { scroll-margin-top: 120px; }
  .hm-tabs + .grid2 { margin-top: 6px; }
  /* Tables: no 30-day or week columns; the week change sits under the price, so long prices fit. */
  .hmt th.sp, .hmt td.sp, .hmt th.wk, .hmt td.wk, .hmt th.usd, .hmt td.usd { display: none; }
  .hmt .mob { display: block; font-size: .7rem; color: var(--muted); }
  .hmt th:nth-child(3), .hmt.cr th:nth-child(3) { width: 44%; } .hmt th:nth-child(4) { width: 64px; }
  .hmt td.p b { font-size: .92rem; }
  .hmt .name b { white-space: normal; }
  .hm-rank li { grid-template-columns: 16px 92px 1fr 56px; gap: 8px; }
  .hm-recs, .hm-buy .tiles { grid-template-columns: repeat(2, 1fr); }
  .hm-tools { grid-template-columns: 1fr; }
  .hm-share { flex-direction: column; align-items: stretch; } .hm-share .card { width: 100%; max-width: 300px; margin: 0 auto; }
  .hm-how { grid-template-columns: 1fr; gap: 10px; }
  .hm-past th, .hm-past td { font-size: .74rem; } .hm-past td b { font-size: .8rem; }
}
.pt.hmt th.st, .pt.hmt td.st { width: 34px; }
.pt.hmt th:nth-child(2) { width: auto; }
.hm-search .search { max-width: none; margin: 0; }
.hm-other + .more2 { grid-template-columns: repeat(3, 1fr); }
.hm-share .card .ch { flex-direction: column; align-items: flex-start; gap: 2px; }
.hm-alert select, .hm-alert input { width: 120px; }
@media (max-width: 760px) {
  .pt.hmt th:nth-child(3) { width: 40%; } .pt.hmt th:nth-child(4), .pt.hmt.cr th:nth-child(5) { width: 80px; }
  .hmt .chg { font-size: .68rem; padding: 1px 5px; }
  .hmt td { padding-left: 4px; padding-right: 4px; }
}
@media (max-width: 760px) { .hm-recs b { font-size: .9rem; } .hm-recs { gap: 8px; } .hm-recs .rec { padding: 8px 10px; } }

/* ---------------------------------------------------------------- steel pages (design «Chandtomaneh Steel», 2026-11-26) */
.stl { padding-top: 14px; padding-bottom: 10px; }
.stl .hm-how { grid-template-columns: 1fr 1fr; }
.stl-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.stl-hero h1 { margin: 0; font-size: clamp(1.3rem, 3.2vw, 1.9rem); font-weight: 900; line-height: 1.5; }
.stl-hero .when { margin: 2px 0 0; color: var(--muted); font-size: .84rem; }
.stl-vat { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .84rem; font-weight: 700; cursor: pointer; }
.stl-vat input { accent-color: var(--gold); width: 16px; height: 16px; }
.stl .big { margin: 6px 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.stl .big b { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 900; letter-spacing: -.5px; }
.stl .big small { color: var(--muted); font-size: .84rem; }
.stl-kind .stl-top { display: flex; justify-content: space-between; gap: 12px; padding: 16px 16px 6px; }
.stl-kind h2 { margin: 0; font-size: 1.15rem; font-weight: 800; } .stl-kind h2 a { color: inherit; text-decoration: none; }
.stl-kind .stl-top p { margin: 0; font-size: .8rem; }
.stl-kind .sp-box { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 170px; flex: none; }
.stl-kind .sp-box .spark { width: 160px; height: 48px; }
.stl-kind .sp-box small { font-size: .7rem; }
.stl-kind .chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; padding: 8px 16px 16px; }
.stl-kind .chips a { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.stl-kind .chips a:hover { border-color: var(--gold); }
.stl-kind .chips small { color: var(--muted); font-size: .72rem; } .stl-kind .chips b { font-size: .95rem; }
.stl-soon { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.stl-soon span { background: var(--card); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.stl-facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.stl-facts span { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; font-size: .84rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.stl-facts span b { color: var(--text); font-size: 1rem; }
.stl-facts a { color: var(--gold-ink); font-weight: 700; font-size: .86rem; text-decoration: none; margin-right: auto; }
.stl-scroll { overflow-x: auto; }
.stl-t { width: 100%; border-collapse: collapse; font-size: .9rem; }
.stl-t th { font-weight: 500; color: var(--muted); font-size: .78rem; text-align: right; padding: 8px 12px; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
.stl-t td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.stl-t tr:last-child td { border-bottom: 0; }
.stl-t td small { display: block; color: var(--muted); font-size: .72rem; }
.stl-t .name { text-decoration: none; color: inherit; } .stl-t .name b { display: block; }
.stl-t .p b { font-size: 1rem; }
.stl-t tr.cheap td:first-child { box-shadow: inset -3px 0 0 var(--up); }
.stl-t .spark { width: 90px; height: 28px; }
.stl-t .rg { color: var(--muted); font-size: .82rem; }
.stl-bars { list-style: none; margin: 0; padding: 4px 16px 4px; display: flex; flex-direction: column; gap: 7px; }
.stl-bars li { display: grid; grid-template-columns: 34px 1fr 74px; gap: 10px; align-items: center; font-size: .84rem; }
.stl-bars i { height: 12px; border-radius: 6px; background: var(--off); display: block; }
.stl-bars li.cheap i { background: var(--up); }
.stl-bars b { text-align: left; font-size: .84rem; }
.stl-guide { margin: 0; padding: 0 34px 16px 16px; line-height: 2; font-size: .9rem; color: var(--muted); }
.stl-main { padding: 6px 18px 12px; margin-top: 14px; }
.stl-main p { margin: 0; }
.stl-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; margin-top: 14px; }
.stl-tiles .panel { padding: 12px 16px; }
.stl-tiles small { color: var(--muted); font-size: .76rem; } .stl-tiles b { font-size: 1.35rem; font-weight: 900; }
.stl-range { margin: 30px 0 12px; }
.stl-range .bar { position: relative; height: 12px; border-radius: 6px; background: linear-gradient(to left, var(--up), var(--gold), var(--down)); }
.stl-range .bar i { position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 3px solid var(--text); transform: translate(50%, -50%); }
.stl-range .bar .lbl { position: absolute; bottom: 18px; transform: translateX(50%); white-space: nowrap; font-size: .78rem; font-weight: 700; }
.stl-range .ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: .76rem; color: var(--muted); }
.stl-range .ends span { display: flex; flex-direction: column; } .stl-range .ends span:last-child { text-align: left; }
.stl-range .ends b { font-size: .95rem; } .stl-range .ends b.up { color: var(--up); } .stl-range .ends b.down { color: var(--down); }
.stl-one { background: var(--soft); border-radius: 10px; padding: 12px 14px; margin: 0; font-size: .9rem; }
.stl .chart .axis { margin-top: 4px; }
.stl-mk tr.ours td { background: var(--gold-soft); }
.stl-mk .pc { font-size: .82rem; } .stl-mk .pc span { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.stl-sib a { color: inherit; text-decoration: none; } .stl-sib a:hover { color: var(--gold-ink); }
.stl .more[data-more-btn] { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; cursor: pointer; font-family: inherit; }
.stl .tool { padding: 16px; gap: 10px; }
.stl .tool h2 { margin: 0; font-size: 1.12rem; font-weight: 800; }
.stl .tool .note-s { margin: 0; }
.stl-in { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: var(--muted); }
.stl-in input { font: inherit; font-size: 1.05rem; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--text); }
.stl-out { border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.stl-out div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.stl-out b { font-size: 1.15rem; }
.stl-spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0 16px 16px; }
.stl-spec div { background: var(--soft); border-radius: 10px; padding: 8px 12px; }
.stl-spec dt { color: var(--muted); font-size: .74rem; } .stl-spec dd { margin: 0; font-weight: 800; }
.stl-vs { width: 100%; height: 180px; display: block; }
.stl .axis { direction: ltr; display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; }
.stl .axis span { direction: rtl; unicode-bidi: isolate; }
.stl-legend { display: flex; gap: 18px; font-size: .84rem; margin: 8px 0 0; }
.stl-legend i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-left: 6px; border-radius: 2px; }
.stl-legend .s i { background: var(--gold); } .stl-legend .u i { background: var(--muted); }
.stl-sib tr.here td { background: var(--gold-soft); }
.stl-sib tr.here td:first-child { box-shadow: inset -3px 0 0 var(--gold); }
.stl-sib .tag { font-size: .7rem; background: var(--gold); color: #17171a; border-radius: 6px; padding: 1px 7px; margin-right: 6px; }
.stl-sib td:nth-child(2) { text-align: center; } .stl-sib td:last-child { text-align: left; }
@media (max-width: 760px) {
  .stl-kind .stl-top { flex-direction: column; }
  .stl-kind .sp-box { width: 100%; align-items: flex-start; }
  .stl-soon { grid-template-columns: repeat(2, 1fr); }
  .stl-tiles { grid-auto-flow: row; gap: 8px; }
  .stl-tiles .panel { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .stl-spec { grid-template-columns: 1fr 1fr; }
  .stl .hm-how { grid-template-columns: 1fr; }
  .stl-t .ton, .stl-t .sp { display: none; }
  .stl-t td, .stl-t th { padding: 8px; }
  .stl-mk .pc { display: none; }
}
/* Billet page (2026-11-27) */
.stl-gap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.stl-gap div { background: var(--soft); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.stl-gap div.on { background: var(--text); color: var(--card); } .stl-gap div.on b { color: var(--gold); }
.stl-gap small { font-size: .74rem; opacity: .75; } .stl-gap b { font-size: 1.2rem; font-weight: 900; }
.stl-city .tag { font-size: .7rem; background: var(--gold); color: #000; border-radius: 6px; padding: 1px 6px; margin-inline-start: 6px; }
.stl-ime { opacity: .85; } .stl-ime .soon { font-size: .74rem; border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; color: var(--muted); }
.stl-guide b { color: var(--text); }
@media (max-width: 560px) { .stl-gap { grid-template-columns: 1fr 1fr; } .stl-gap div.on { grid-column: 1 / -1; } }
.stl-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
.stl-ime.on { opacity: 1; }
/* Basic food pages (2026-11-27) */
.fd-idx { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 16px; align-items: center; padding: 16px 18px; margin-top: 14px; }
.fd-idx h2 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 800; }
.fd-idx-t p { margin: 0; font-size: .8rem; line-height: 1.8; }
.fd-idx-n { display: flex; flex-direction: column; gap: 3px; }
.fd-idx-n small { color: var(--muted); font-size: .74rem; }
.fd-idx-n b { font-size: 1.6rem; font-weight: 900; }
.fd-idx-c { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fd-idx-c .spark { width: 100%; height: 56px; }
.fd-prog { display: block; height: 6px; border-radius: 3px; background: var(--off); overflow: hidden; width: 100%; max-width: 160px; }
.fd-prog i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.fd .fd-lbl { margin-top: 8px !important; font-weight: 700; font-size: .84rem !important; }
.fd .stl-kind .chips { justify-content: flex-start; padding: 6px 16px 4px; margin-top: 6px; }
.fd .stl-kind .chips a { border: 1px solid var(--line); background: var(--soft); border-radius: 10px; padding: 6px 12px; color: var(--text); display: flex; flex-direction: column; }
.fd .stl-kind .chips a small { color: var(--muted); font-size: .72rem; }
.fd-soon { padding: 16px; border-style: dashed; opacity: .85; }
.fd-soon p { margin: 8px 0 0; font-size: .84rem; }
.fd-step { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 700; }
.fd-step span { margin-left: auto; }
.fd-step button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); color: var(--text); font: inherit; font-size: 1.1rem; cursor: pointer; }
.fd-step output { min-width: 40px; text-align: center; font-size: 1.15rem; font-weight: 900; }
.fd-qty { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; }
.fd-qty input { width: 64px; font: inherit; font-size: .95rem; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--text); text-align: center; }
.fd-basket .stl-out { margin-top: 12px; }
.fd .note-s.fd-n { margin: 8px 0 0; }
.fd-main { display: grid; grid-template-columns: 1fr 1.8fr; gap: 18px; padding: 16px 18px; }
.fd-main h2 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.fd-main-n p { margin: 4px 0; font-size: .84rem; }
.fd-main-n .big b { font-size: 2.4rem; }
.fd-ch { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: .86rem; }
.fd-ch b { margin-left: auto; }
.fd-main-c svg { width: 100%; height: 200px; display: block; }
.fd-t tr.band th { background: var(--soft); text-align: right; font-size: .84rem; padding: 8px 14px; }
.fd-t tr.band small { color: var(--muted); font-weight: 400; margin-right: 6px; }
.fd-t td.u { font-size: .8rem; color: var(--muted); }
.fd-t td.u small { display: block; font-size: .74rem; }
.fd-t .name b { font-weight: 600; font-size: .88rem; }
.fd-bars li { grid-template-columns: minmax(110px, 42%) 1fr 84px; }
.fd-bars li span { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-bars li.on i { background: var(--text); }
.fd-col { display: flex; flex-direction: column; gap: 14px; }
.fd .tool select { font: inherit; font-size: .95rem; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--text); }
@media (max-width: 760px) {
  .fd-idx { grid-template-columns: 1fr 1fr; }
  .fd-idx-t, .fd-idx-c { grid-column: 1 / -1; }
  .fd-main { grid-template-columns: 1fr; }
  .fd-main-c svg { height: 160px; }
  .fd-bars li { grid-template-columns: minmax(90px, 44%) 1fr 70px; }
}
.fd-pt td.u a { color: inherit; text-decoration: none; font-weight: 700; color: var(--text); }
.fd-gap { color: var(--down); font-weight: 700; font-size: .84rem; }
.fd .stl-soon { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .fd .stl-soon { grid-template-columns: repeat(2, 1fr); } }
.fd-gap { direction: ltr; unicode-bidi: isolate; display: inline-block; }
/* Building materials (2026-11-28) */
.bld-note { margin: 8px 0 0; color: var(--muted); font-size: .84rem; }
.bld-perf { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px !important; font-size: .8rem; color: var(--muted); }
.bld .stl-kind .chips { justify-content: flex-start; padding: 6px 16px 4px; margin-top: 6px; }
.bld .stl-kind .chips a { border: 1px solid var(--line); background: var(--soft); border-radius: 10px; padding: 6px 12px; color: var(--text); display: flex; flex-direction: column; }
.bld .stl-kind .chips a small { color: var(--muted); font-size: .72rem; }
.bld .fd-lbl { margin-top: 8px !important; font-weight: 700; font-size: .84rem !important; }
.bld-soon { grid-template-columns: repeat(4, 1fr); }
.bld-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bld-calc select { font: inherit; font-size: .95rem; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--text); }
.fd-col .bld-in { grid-template-columns: 1fr; }
.bld-t td.u { white-space: nowrap; }
@media (max-width: 760px) { .bld-in { grid-template-columns: 1fr; } .bld-soon { grid-template-columns: repeat(2, 1fr); } }
.bld-range { margin: 14px 0 10px; }
.bld-tiles { margin-top: 10px; }
.bld-tiles .panel { box-shadow: none; background: var(--soft); }
/* Gold calculator page (2026-11-28) */
.gc-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.gc-strip a { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.gc-strip small { color: var(--muted); font-size: .74rem; } .gc-strip b { font-size: 1.2rem; font-weight: 900; }
.gc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.gc-presets button { font: inherit; font-weight: 700; font-size: .88rem; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 12px; padding: 7px 12px; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; }
.gc-presets button small { font-weight: 400; color: var(--muted); font-size: .7rem; }
.gc-presets button.on { border-color: var(--gold); background: var(--gold-soft); }
.gc-hint { margin: 6px 4px 0; color: var(--gold-ink); font-size: .82rem; font-weight: 700; }
.gc-inv .calc-in { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gc-pair { display: flex; gap: 6px; } .gc-pair input { flex: 1; } .gc-pair select { width: auto !important; }
.gc-checks { list-style: none; margin: 0; padding: 0 16px; display: grid; gap: 6px; }
.gc-checks li { padding: 8px 12px 8px 12px; border-radius: 10px; font-size: .88rem; line-height: 1.8; position: relative; padding-right: 34px; }
.gc-checks li::before { position: absolute; right: 12px; top: 8px; font-weight: 900; }
.gc-checks li.ok { background: color-mix(in srgb, var(--up) 10%, transparent); } .gc-checks li.ok::before { content: '✓'; color: var(--up); }
.gc-checks li.bad { background: color-mix(in srgb, var(--down) 10%, transparent); } .gc-checks li.bad::before { content: '!'; color: var(--down); }
.gc-checks li.info { background: var(--soft); } .gc-checks li.info::before { content: 'i'; color: var(--muted); }
.gc-sum { margin: 12px 16px 4px; padding: 12px 14px; border-radius: 12px; background: var(--dark); color: var(--on-dark); font-weight: 700; }
.gc-formula { margin: 0 16px 8px; padding: 10px 12px; background: var(--gold-soft); color: var(--gold-ink); border-radius: 10px; font-weight: 700; font-size: .88rem; }

@media (max-width: 760px) { .gc-strip { grid-template-columns: 1fr 1fr; } .gc-inv .calc-in { grid-template-columns: 1fr 1fr; } }
.gc-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 12px 4px 4px; background: var(--off); }
.gc-bar i { display: block; height: 100%; } .gc-bar .g { background: var(--gold); } .gc-bar .w { background: #c2852a; } .gc-bar .p { background: #8b95a1; } .gc-bar .t { background: var(--down); }
.gc-legend { margin: 0 4px; font-size: .78rem; color: var(--muted); }
/* Money value page (2026-11-28) */
.mv-in { grid-template-columns: 1.3fr 1fr 1fr 1.6fr; align-items: end; }
.mv-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mv-chips button, .mv-share button { font: inherit; font-size: .82rem; border: 1px solid var(--line); background: var(--soft); color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.mv-head { margin: 4px 16px 12px; padding: 12px 14px; border-radius: 12px; background: var(--dark); color: var(--on-dark); font-weight: 800; font-size: 1.02rem; line-height: 1.9; }
.mv-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 16px; }
.mv-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.mv-card.best { border-color: var(--gold); background: var(--gold-soft); }
.mv-card h3 { margin: 0 0 6px; font-size: .92rem; } .mv-card .tag { font-style: normal; font-size: .68rem; background: var(--gold); color: #000; border-radius: 6px; padding: 1px 6px; margin-right: 4px; }
.mv-card p { margin: 2px 0; } .mv-card .v b { font-size: 1.25rem; font-weight: 900; } .mv-card .s { font-size: .74rem; }
.mv-share { display: flex; gap: 10px; align-items: center; padding: 8px 16px 14px; }
.mv-chart { width: 100%; height: 240px; display: block; background: var(--soft); border-radius: 10px; }
.mv-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; margin: 8px 0 0; }
.mv-legend span::before { content: ''; display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-left: 6px; vertical-align: middle; }
.mv-legend .l-usd::before { background: var(--a-usd); } .mv-legend .l-gold_18k::before { background: var(--a-gold); } .mv-legend .l-coin_emami::before { background: var(--a-coin); } .mv-legend .l-tedpix::before { background: var(--a-idx); }
.mv-t tr.hl td { background: var(--gold-soft); }
.mv-ex .pad { line-height: 2; font-size: .9rem; margin: 0; }
@media (max-width: 760px) { .mv-in { grid-template-columns: 1fr 1fr; } .mv-chips { grid-column: 1 / -1; } .mv-cards { grid-template-columns: 1fr 1fr; } }
.mv-ax { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); margin-top: 4px; }
/* Converter (2026-11-28) */
.cv-in { display: grid; grid-template-columns: 1.2fr 1.4fr auto 1.4fr; gap: 10px; align-items: end; padding: 0 16px; }
.cv-in label { display: grid; gap: 4px; color: var(--muted); font-size: .8rem; }
.cv-in input, .cv-in select, .cv-row input, .cv-row select { font: inherit; font-size: 1.05rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--ink); width: 100%; }
.cv-swap { font: inherit; font-size: 1.2rem; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.cv-out { margin: 14px 16px 4px; padding: 14px 16px; border-radius: 12px; background: var(--dark); color: var(--gold); font-size: 1.5rem; font-weight: 900; }
.cv-rate { margin: 4px 16px; color: var(--muted); font-size: .86rem; }
.cv-share { padding-top: 4px; }
.cv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 16px 16px; }
.cv-grid div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.cv-grid small { color: var(--muted); font-size: .76rem; } .cv-grid b { font-size: 1.1rem; font-weight: 900; }
.cv-row { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.cv-words dd { white-space: normal; text-align: left; max-width: 70%; line-height: 1.8; }
.cv-pairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cv-pairs a { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.cv-pairs a.on { border-color: var(--gold); background: var(--gold-soft); }
.cv-pairs small { color: var(--muted); font-size: .74rem; }
@media (max-width: 760px) { .cv-in { grid-template-columns: 1fr 1fr; } .cv-in label:first-child { grid-column: 1 / -1; } .cv-swap { order: 3; grid-column: 1 / -1; width: 100%; } .cv-grid, .cv-pairs { grid-template-columns: 1fr 1fr; } .cv-out { font-size: 1.2rem; } }
.cv-words-line { margin: 2px 16px; font-size: .84rem; color: var(--gold-ink); font-weight: 700; }
/* Car pages (2026-11-28) */
.car-idx { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 16px; align-items: center; background: var(--dark); color: var(--on-dark); border-radius: 16px; padding: 16px 20px; margin-top: 14px; }
.car-idx h2 { margin: 0; color: var(--gold); font-size: 1.05rem; } .car-idx p { margin: 4px 0 0; font-size: .78rem; color: var(--on-dark-muted); }
.car-idx .n { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .car-idx .n b { font-size: 2rem; font-weight: 900; } .car-idx .n span { font-size: .82rem; }
.car-idx .c svg { width: 100%; height: 60px; display: block; } .car-idx .c small { color: var(--on-dark-muted); font-size: .72rem; }
.car-brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.car-brands a { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.car-brands b { font-size: 1rem; } .car-brands small { color: var(--muted); font-size: .74rem; } .car-brands span { font-weight: 800; font-size: .92rem; margin-top: 4px; }
.car-ranges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.car-ranges a { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.car-ranges a.on { border-color: var(--gold); background: var(--gold-soft); } .car-ranges small { color: var(--muted); }
.car-pick-in { grid-template-columns: 1fr 1.4fr 1fr; }
.car-t td small { font-size: .74rem; } .car-t tr.band th { background: var(--soft); text-align: right; font-size: .86rem; padding: 8px 14px; }
.car-filter { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.car-filter input { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--ink); }
.car-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.car-tiles .panel { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.car-tiles small { color: var(--muted); font-size: .76rem; } .car-tiles b { font-size: 1.3rem; font-weight: 900; }
@media (max-width: 760px) { .car-idx { grid-template-columns: 1fr; } .car-brands, .car-ranges, .car-tiles { grid-template-columns: 1fr 1fr; } .car-pick-in { grid-template-columns: 1fr; } }
.car-gone { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; font-size: .86rem; display: inline-block; }
/* converter phase 2: historical rate, travel budget */
.cv-date .stl-in{flex:1;min-width:0}
.cv-hist-x{margin:.6rem 0 0;font-size:.92rem;line-height:1.8}
.cv-tool .calc-lines .tot{font-weight:700;border-top:1px solid var(--line,#e5e5e5);padding-top:.35rem}
/* cars phase 2: compare, loan, salary */
.car-cmp-two{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:0 1rem}
.car-cmp-side h3{font-size:1rem;margin:.6rem 0}
.car-cmp-side .car-pick-in{grid-template-columns:1fr 1fr}
.car-cmp-t th[scope],.car-cmp-t tbody th{text-align:right;font-weight:500;color:var(--muted,#666);white-space:nowrap}
.car-cmp-sum{font-weight:700}
.car-bud{list-style:none;margin:.4rem 0;padding:0}
.car-bud li{display:flex;justify-content:space-between;gap:.5rem;padding:.35rem 0;border-bottom:1px solid var(--line,#eee)}
@media (max-width:700px){.car-cmp-two{grid-template-columns:1fr}}
/* gold calculator phase 2 */
.gc-ways-t tbody th{text-align:right;white-space:nowrap}
.gc-ways-t td.muted{font-size:.8rem;min-width:12rem}
/* official rates (2026-11-28) */
.off-t td,.off-t th{white-space:nowrap}
.off-kinds dd{font-size:.9rem;line-height:1.8;text-align:right}
/* declutter (2026-11-28): folded sections and quiet page actions */
details.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; padding: 14px 18px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2 { margin: 0; font-size: 1rem; }
details.fold > summary small { color: var(--muted); font-size: .8rem; }
details.fold > summary::after { content: '+'; margin-inline-start: auto; color: var(--muted); font-weight: 700; }
details.fold[open] > summary::after { content: '−'; }
details.fold:not(.panel) { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.actions.sec .act { box-shadow: none; background: transparent; font-weight: 500; font-size: .8rem; padding: 6px 10px; color: var(--muted); }
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.link-cards a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.link-cards a:hover { border-color: var(--gold); }
.link-cards b { display: block; font-size: .95rem; } .link-cards small { color: var(--muted); font-size: .8rem; }
.link-cards a.has-ic { display: flex; align-items: center; gap: 12px; }
.lc-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--gold-soft); display: grid; place-items: center; }
.lc-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fold-stack { display: grid; gap: 12px; }
.kind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.kind-grid .stl-kind .sp-box { width: 110px; } .kind-grid .stl-kind .sp-box .spark { width: 104px; height: 40px; }
.kind-grid .stl-kind .chips a:nth-child(n+4) { display: none; }
.car-fold .car-tools { padding-top: 0; } .car-fold h3 { font-size: .95rem; margin: 0 0 8px; }
.nf-search { padding: 14px; } .link-cards a small small { font-size: .75rem; }
.method-rules dd { text-align: right; font-size: .9rem; line-height: 1.8; }
.about-form { display: grid; gap: 10px; max-width: 520px; } .about-form label { display: grid; gap: 4px; font-size: .86rem; } .about-form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Chart style («Chandtomaneh Charts», 2026-11-28) ===== */
.ct { margin: 0; position: relative; }
.ct-plot { position: relative; margin-right: 58px; }
.ct-plot svg, .chart-card .ct-plot svg { width: 100%; height: auto; display: block; padding: 0; overflow: visible; }
.chart-card .ct { padding: 0 12px; }
.ct-grid { stroke: var(--ct-grid); stroke-width: 1; }
.ct-y { position: absolute; right: -58px; width: 54px; transform: translateY(-50%); font-size: 11px; color: var(--muted); text-align: right; white-space: nowrap; pointer-events: none; }
.ct-tag { position: absolute; right: -58px; transform: translateY(-50%); font-size: 11px; font-weight: 700; color: #fff; background: var(--up); border-radius: 6px; padding: 1px 6px; white-space: nowrap; z-index: 2; pointer-events: none; }
.ct-down .ct-tag { background: var(--down); }
:root[data-theme="dark"] .ct-tag { color: #10140f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ct-tag { color: #10140f; } }
.ct-dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 2px var(--card), 0 0 0 6px color-mix(in srgb, var(--up) 16%, transparent); pointer-events: none; }
.ct-down .ct-dot { background: var(--down); box-shadow: 0 0 0 2px var(--card), 0 0 0 6px color-mix(in srgb, var(--down) 16%, transparent); }
.ct-hl { position: absolute; pointer-events: none; }
.ct-hl i { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; border: 1.5px solid var(--muted); background: var(--card); }
.ct-hl b { position: absolute; left: 0; transform: translateX(-50%); font-size: 10.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ct-hl.hi b { bottom: 6px; } .ct-hl.lo b { top: 6px; }
.ct-hl.e-l b { transform: translateX(0); } .ct-hl.e-r b { transform: translateX(calc(-100% + 6px)); }
.ct-x { position: relative; height: 18px; margin: 4px 58px 0 0; font-size: 11px; color: var(--muted); }
.ct-x span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ct-x span:first-child { transform: none; } .ct-x span:last-child { transform: translateX(-100%); }
.ct-cap { font-size: .88rem; color: var(--ink); margin: 10px 0 0; line-height: 1.8; }
.ct-cap .up { color: var(--up); font-weight: 700; } .ct-cap .down { color: var(--down); font-weight: 700; }
.ct-cross { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--ct-cross); pointer-events: none; }
.ct-tip { position: absolute; z-index: 5; background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 22px rgba(0,0,0,.12); border-radius: 10px; padding: 6px 10px; font-size: 12px; white-space: nowrap; pointer-events: none; }
.ct-tip small { display: block; color: var(--muted); } .ct-tip b { font-size: 14px; }
.ct-tip .up { color: var(--up); } .ct-tip .down { color: var(--down); }
@media (max-width: 640px) { .ct-plot { margin-right: 48px; } .ct-y, .ct-tag { right: -48px; } .ct-y { width: 44px; } .ct-x { margin-right: 48px; } .ct-hl b { font-size: 10.5px; } }

/* main chart toolbar and extras (2026-11-28) */
.mc-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 0 16px; min-height: 40px; align-items: center; }
.mc-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mc-seg { display: inline-flex; background: var(--soft, #f4f1ea); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.mc-seg button { font: inherit; font-size: .82rem; border: 0; background: transparent; color: var(--muted); padding: 5px 12px; border-radius: 7px; cursor: pointer; }
.mc-seg button.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.mc-seg button:disabled { opacity: .4; cursor: default; }
.mc-tools select, .mc-img { font: inherit; font-size: .82rem; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 6px 10px; cursor: pointer; }
.mc-img::before { content: '📷 '; }
.mc-body .ct-plot { min-height: 0; }
.mc-step { font-size: .76rem; color: var(--muted); margin: 0 16px 14px; }
.mc .ct-cap { min-height: 40px; }
.ct-end { position: absolute; right: -58px; transform: translate(-64px, -50%); font-size: 11px; font-weight: 700; white-space: nowrap; background: var(--card); padding: 0 3px; border-radius: 4px; pointer-events: none; }
.mc-log { position: absolute; top: 4px; left: 8px; font-size: 10.5px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
@media (max-width: 640px) { .mc-bar { padding: 0 12px; } .mc-seg button { padding: 5px 9px; } .mc .ct-cap { min-height: 68px; } }
.hm-day { margin-top: 6px; }
.hm-open { position: absolute; left: 4px; transform: translateY(-120%); font-size: 10.5px; color: var(--muted); background: var(--card); padding: 0 4px; border-radius: 4px; pointer-events: none; }
.mv-fig .ct-plot { margin-right: 120px; } .mv-fig .ct-y { right: -120px; width: 58px; } .mv-fig .ct-end { right: -120px; transform: translateY(-50%); } .mv-fig .ct-x { margin-right: 120px; }
@media (max-width: 640px) { .mv-fig .ct-plot, .mv-fig .ct-x { margin-right: 96px; } .mv-fig .ct-y, .mv-fig .ct-end { right: -96px; } }
.mc-body, .chart-card .ct, .mv-fig { overflow-x: clip; } .mc { overflow: hidden; }

/* charts on phones («Chandtomaneh Charts» §8 heights, 2026-11-29) */
@media (max-width: 640px) {
  .mc-body .ct-plot svg { height: 260px; }
  .ct-plot svg { min-height: 160px; }
  .hm-day .ct-plot svg { height: 180px; }
  .mv-fig .ct-plot svg { height: 240px; }
  .mc-bar { row-gap: 6px; }
  .mc-tools { flex-wrap: nowrap; }
  .mc-img { font-size: 0; padding: 6px 10px; }
  .mc-img::before { font-size: .9rem; content: '📷'; }
  .mc-tools select { max-width: 120px; }
}
/* a high or low near the edge sits beside its point, not inside the line's turn (owner, 2026-12-01) */
.ct-hl.flip b { top: auto; bottom: auto; transform: translate(9px, -50%); } .ct-hl.flip.s-l b { transform: translate(calc(-100% - 9px), -50%); }
.ct-hl b { background: color-mix(in srgb, var(--card) 88%, transparent); padding: 0 4px; border-radius: 4px; line-height: 1.5; }
@media (max-width: 640px) { .mv-fig .ct-end { display: none; } .mv-fig .ct-plot, .mv-fig .ct-x { margin-right: 58px; } .mv-fig .ct-y { right: -58px; width: 54px; } }

/* gold page (2026-11-29): tools strip, folded years table */
.gold-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.gold-tools a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .85rem; color: var(--ink); text-decoration: none; }
.gold-tools a:hover { border-color: var(--gold); }
.years[data-yfold]:not(.open) tr.ymore { display: none; }
.ymore-btn { display: block; width: 100%; padding: 10px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; }
.ymore-btn:hover { color: var(--ink); }

/* gold page on phones (2026-11-29): one-line names, no range under the price, bubble sentence under the number,
   pure-gold table fits, tabs in one swipeable row */
@media (max-width: 600px) {
  .gold-pg .page-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .gold-pg .page-tabs::-webkit-scrollbar { display: none; }
  .gold-pg .page-tabs a { flex: none; white-space: nowrap; }
  .gold-pg .fxt .mob { display: none; }
  .gold-pg .fxt .mbub { display: block; font-size: .72rem; font-weight: 700; color: var(--gold-ink); white-space: nowrap; }   /* bubble under the price on phones (owner, 2026-11-30) */
  .gold-pg .fxt .badge { display: none; }
  .gold-pg .fxt .name b { white-space: nowrap; font-size: .86rem; }
  .gold-pg .gap .big small { display: block; margin-top: 4px; }
}


/* hub page header («Chandtomaneh Gold Header», Claude Design 2026-11-29) */
.hh-band { background: linear-gradient(180deg, #22252d 0%, #1a1c22 100%); color: #d6cec0; }
.hh-in { padding-top: 20px; padding-bottom: 84px; display: flex; flex-direction: column; gap: 10px; }
.hh-band .crumb { margin: 0; color: #bdb4a4; font-size: .8rem; } .hh-band .crumb a { color: #bdb4a4; }
.hh-band h1 { margin: 0; font-size: 2.1rem; font-weight: 900; line-height: 1.4; color: #fff; letter-spacing: -.4px; }
.hh-band h1 span { font-weight: 500; color: #d6cec0; font-size: 1.6rem; }
@media (min-width: 761px) {   /* status pill on the title's line (owner, 2026-11-30) */
  .hh-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 20px; }
  .hh-in > .crumb { grid-column: 1 / -1; }
  .hh-in .hh-status { align-self: center; }
}
.hh-status { margin: 0; align-self: flex-start; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; min-height: 34px; padding: 0 14px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: .84rem; line-height: 1.6; }
.hh-status b { color: #f5efe4; font-weight: 700; } .hh-status i { font-style: normal; color: #6f675b; } .hh-ago { color: #9c9384; }
.hh-late { color: #f5c553; font-weight: 700; }
.hh-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #8f877a; }
.hh-dot.live { background: #4ade80; animation: hhPulse 2.4s ease-out infinite; } .hh-dot.late { background: #f5c553; }
@keyframes hhPulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); } 70% { box-shadow: 0 0 0 6px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
@media (prefers-reduced-motion: reduce) { .hh-dot.live { animation: none; } }
.hh-wrap { display: flex; flex-direction: column; gap: 30px; margin-bottom: 30px; }   /* one 30px rhythm between sections (owner, 2026-11-30) */
.hh-wrap ~ .fx { padding-top: 0; }
.hh-cards { margin-top: -60px; position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
/* the dark band runs down to the middle of the cards (owner, 2026-11-30): a full-bleed strip sharing the first grid row, half its height */
.hh-cards::before { content: ""; grid-row: 1; grid-column: 1 / -1; align-self: start; height: 50%; z-index: -1; background: #1a1c22; box-shadow: 0 0 0 100vmax #1a1c22; clip-path: inset(0 -100vmax); }
.hh-main { grid-row: 1; grid-column: 1; } .hh-side { grid-row: 1; grid-column: 2; }
.hh-main, .hh-side { border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 40px rgba(70,52,20,.12); min-width: 0; background: var(--card); }
.hh-main { position: relative; overflow: hidden; padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.hh-main::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; background: var(--line); }
.hh-main.t-up { background: linear-gradient(180deg, var(--up-bg) 0%, var(--card) 62%); } .hh-main.t-up::before { background: var(--up); }
.hh-main.t-down { background: linear-gradient(180deg, var(--down-bg) 0%, var(--card) 62%); } .hh-main.t-down::before { background: var(--down); }
.hh-mh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hh-mn { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hh-mn h2 { margin: 0; font-size: 1.12rem; font-weight: 800; line-height: 1.4; } .hh-mn small { display: block; font-size: .75rem; color: var(--muted); }
.hh-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--gold-soft); display: grid; place-items: center; }
.hh-ic svg { width: 23px; height: 23px; fill: none; stroke: var(--gold-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hh-ic.raw { background: none; } .hh-ic.raw img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; } .hh-ic.raw .cbadge { width: 100%; height: 100%; font-size: .62rem; }
.hh-link { font-size: .82rem; font-weight: 700; color: var(--gold-ink); text-decoration: none; white-space: nowrap; } .hh-link-m { display: none; }
.hh-v { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hh-v a { font-size: 3.4rem; font-weight: 900; color: var(--ink); letter-spacing: -1px; line-height: 1.15; white-space: nowrap; text-decoration: none; border-radius: 10px; padding: 0 4px; margin-inline: -4px; }
.hh-v small { font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.hh-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: auto; }
.hh-boxes > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hh-boxes small { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.hh-boxes b { font-size: 1.03rem; font-weight: 700; white-space: nowrap; line-height: 1.4; }
.hh-chg { display: flex; align-items: center; gap: 8px; }
.hh-chg .amt { font-size: .88rem; font-weight: 700; white-space: nowrap; color: var(--muted); min-width: 8ch; } .hh-chg .amt.up { color: var(--up); } .hh-chg .amt.down { color: var(--down); }
.hh-main .chg, .hh-side .chg { justify-content: center; min-width: 84px; height: 26px; padding: 0 8px; border-radius: 8px; font-size: .8rem; font-weight: 800; }
.hh-side .chg { min-width: 76px; height: 22px; font-size: .75rem; }
.hh-main .chg.flat, .hh-side .chg.flat { color: var(--muted); background: var(--soft); border: 1px solid var(--line); }
.hh-side { display: flex; flex-direction: column; overflow: hidden; }
.hh-row { flex: 1; display: grid; grid-template-columns: 40px minmax(0, 1fr) 76px 160px 16px; align-items: center; gap: 14px; padding: 10px 18px; color: var(--ink); text-decoration: none; }
.hh-row + .hh-row { border-top: 1px solid var(--line); }
.hh-row:hover { background: var(--soft); }
.hh-rn { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.hh-rn b { font-size: .97rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hh-rn small { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.hh-sp svg { width: 76px; height: 28px; display: block; overflow: visible; }
.hh-sp line.b { stroke: var(--muted); stroke-dasharray: 1 3; stroke-linecap: round; opacity: .7; }
.hh-sp path { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke: var(--muted); }
.hh-sp path.up { stroke: var(--up); } .hh-sp path.down { stroke: var(--down); }
.hh-sp circle { fill: var(--muted); } .hh-sp circle.up { fill: var(--up); } .hh-sp circle.down { fill: var(--down); }
@media (max-width: 1200px) {   /* tablets: side sparkline would cover the names, the change amount would be cut */
  .hh-sp { display: none; } .hh-row { grid-template-columns: 40px minmax(0, 1fr) auto 16px; gap: 12px; }
  .hh-chg { flex-direction: column; align-items: flex-start; gap: 2px; } .hh-chg .amt { font-size: .8rem; min-width: 0; }
}
.hh-rv { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; line-height: 1.3; }
.hh-rv b { font-size: 1.16rem; font-weight: 800; white-space: nowrap; border-radius: 6px; padding: 0 3px; }
.hh-chev { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hh-intro { background: var(--card); border: 1px solid var(--line); border-inline-start: 3px solid var(--gold); border-radius: 14px; padding: 14px 20px; }   /* light frame (owner, 2026-11-30) */
.hh-intro p { margin: 0; font-size: .94rem; line-height: 2; color: var(--muted); text-wrap: pretty; }
.hh-intro strong { color: var(--ink); font-weight: 700; white-space: nowrap; }
.hh-more { display: none; border: 0; background: none; color: var(--gold-ink); font: inherit; font-size: .82rem; font-weight: 700; padding: 0; min-height: 32px; cursor: pointer; }
.hh-main [data-price].flash-up, .hh-main [data-price].flash-down, .hh-row [data-price].flash-up, .hh-row [data-price].flash-down { border-radius: 8px; }
@media (max-width: 760px) {
  .hh-in { padding-top: 14px; padding-bottom: 64px; gap: 8px; }
  .hh-band h1 { font-size: 1.5rem; } .hh-band h1 span { display: block; font-size: 1.06rem; }
  .hh-status { border-radius: 12px; padding: 5px 12px; font-size: .78rem; }
  .hh-cards { margin-top: -46px; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hh-side { grid-row: 2; grid-column: 1; }
  .hh-main { padding: 16px 14px 14px; gap: 10px; }
  .hh-mn h2 { font-size: .97rem; } .hh-ic { width: 34px; height: 34px; border-radius: 10px; } .hh-ic svg { width: 20px; height: 20px; }
  .hh-mh .hh-link { display: none; } .hh-link-m { display: flex; align-items: center; min-height: 32px; align-self: flex-start; }
  .hh-v a { font-size: 2.25rem; } .hh-v small { font-size: .88rem; }
  .hh-boxes { grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr)); gap: 6px; }
  .hh-boxes > div { padding: 7px; } .hh-boxes small { font-size: .69rem; } .hh-boxes b { font-size: .82rem; }
  .hh-chg { flex-direction: column; align-items: flex-start; gap: 2px; } .hh-chg .amt { font-size: .75rem; min-width: 0; }
  .hh-main .chg { min-width: 76px; height: 22px; font-size: .75rem; }
  .hh-row { grid-template-columns: 34px minmax(0, 1fr) 130px 14px; gap: 10px; padding: 10px 12px; min-height: 66px; }
  .hh-sp { display: none; }
  .hh-rn b { font-size: .9rem; } .hh-rv b { font-size: 1rem; }
  .hh-intro { padding: 10px 14px 4px; border-radius: 12px; }
  .hh-intro p { font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hh-intro p.open { display: block; }
  .hh-more { display: block; }
}

/* One 30px gap between page sections on every page (owner, 2026-11-30). Header parts (title, facts chips, tabs, search bar)
   keep their tighter spacing; the first section after the header and every section after that sit 30px apart. */
.stl-links.sec, .hm-glance.sec { margin-top: 30px; }
.sub-tabs { margin-bottom: 30px; } .sub-tabs:has(+ .crumb) { margin-bottom: 16px; } .hh-band .sub-tabs { margin-bottom: 0; }
.fx-head + :not(.sub-tabs):not(.stl-facts):not(.gloss-bar):not(script) { margin-top: 30px; }
.stl-hero + :not(.stl-facts):not(.bld-note):not(script) { margin-top: 30px; }
.stl-main + .stl-tiles { margin-top: 30px; }
.grid2, .grid3, .grid-rep, .grid-crypto, .grid-tools { row-gap: 30px; }   /* stacked section cards: same 30px as between sections */

/* ── Main chart row, «Chandtomaneh Price Chart» (Claude Design, owner 2026-11-30): chart card ≈57% + a same-height card ── */
.mc-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.mc-row:not(:has(> .mside)) { grid-template-columns: minmax(0, 1fr); }
.mc-row > .panel { margin: 0; }
.mcard, .mside { position: relative; overflow: hidden; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; border-radius: 20px; }
.mcard::before, .mside::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; background: linear-gradient(90deg, #F5C553, #D98C00); }
.mc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.mc-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mc-title h2 { margin: 0; font-size: 1.06rem; font-weight: 800; line-height: 1.4; }
.mc-title { flex-wrap: wrap; row-gap: 2px; }
.mc-ic { width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--gold-soft); display: grid; place-items: center; }
.mc-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mc-today { display: inline-flex; align-items: center; gap: 4px; flex: none; } .mc-today i { font-style: normal; font-size: .74rem; color: var(--muted); }
.mc-today .chg { font-size: .76rem; }
.mcard .mc-bar { display: flex; align-items: center; gap: 8px; padding: 0; min-height: 0; flex: none; }
.mcard .mc-bar[hidden] { display: none; }
.mcard .mc-bar select { font: inherit; font-size: .82rem; font-weight: 600; height: 36px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 0 8px; min-width: 112px; cursor: pointer; }
.mc-kind { display: flex; background: var(--soft); border: 1px solid var(--line); border-radius: 11px; padding: 2px; gap: 2px; }
.mc-kind button, .mcard .mc-img { height: 30px; width: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.mc-kind button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.mc-kind button:disabled { opacity: .45; cursor: default; }
.mcard .mc-img { height: 36px; width: 40px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; font-size: 0; }
.mcard .mc-img::before { content: none; }
.mc-kind svg, .mcard .mc-img svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mc-ranges { display: flex; background: var(--soft); border: 1px solid var(--line); border-radius: 13px; padding: 3px; gap: 2px; }
.mc-ranges button { flex: 1; min-width: 0; height: 44px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.3; font: inherit; padding: 0 4px; }
.mc-ranges b { font-size: .82rem; font-weight: 600; color: var(--muted); }
.mc-ranges small { font-size: .68rem; font-weight: 700; white-space: nowrap; color: var(--muted); } .mc-ranges small.up { color: var(--up); } .mc-ranges small.down { color: var(--down); }
.mc-ranges button.on { background: var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.14), inset 0 -2px 0 #F0A500; } .mc-ranges button.on b { color: var(--ink); font-weight: 800; }
.mc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 9px 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; min-height: 62px; }
.mc-stats > div { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.mc-stats small { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.mc-stats b { font-size: .94rem; font-weight: 800; white-space: nowrap; } .mc-stats b.up { color: var(--up); } .mc-stats b.down { color: var(--down); }
.mc-stats span { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex: none; }
.mcard .mc-body { padding: 0; flex: 1; }
.mcard .mc-body .ct-plot svg { height: 300px; }
.mcard .ct-cap { display: none; }
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; min-height: 36px; }
.mc-foot p { margin: 0; font-size: .86rem; line-height: 1.8; } .mc-foot .up { color: var(--up); } .mc-foot .down { color: var(--down); }
.mcard .mc-step { flex: none; margin: 0; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--soft); border: 1px solid var(--line); font-size: .72rem; color: var(--muted); white-space: nowrap; }
/* second-column cards */
.ms-h { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.ms-h h2 { margin: 0; font-size: 1.02rem; font-weight: 800; line-height: 1.4; } .ms-h small { display: block; font-size: .74rem; color: var(--muted); }
.ms-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; font-size: .76rem; color: var(--muted); margin-top: auto; }
.ms-foot strong { color: var(--ink); } .ms-foot a { font-weight: 700; color: var(--gold-ink); text-decoration: none; white-space: nowrap; }
.mb-big { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mb-big > b { font-size: 2.4rem; font-weight: 900; color: var(--gold-ink); line-height: 1.15; letter-spacing: -.5px; white-space: nowrap; }
.mb-big span { display: flex; flex-direction: column; line-height: 1.45; } .mb-big strong { font-size: .94rem; font-weight: 800; } .mb-big small { font-size: .74rem; color: var(--muted); }
.mb-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mb-boxes > div { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.mb-boxes small { font-size: .72rem; color: var(--muted); } .mb-boxes b { font-size: 1rem; font-weight: 800; white-space: nowrap; } .mb-boxes i { font-style: normal; font-size: .7rem; font-weight: 500; color: var(--muted); }
.mb-fx { margin: 0; font-size: .72rem; color: var(--muted); line-height: 1.8; }
.mb-chart { display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 0; border-top: 1px solid var(--line); padding-top: 10px; }
.mb-ch-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } .mb-ch-h b { font-size: .82rem; font-weight: 800; } .mb-ch-h small { font-size: .72rem; color: var(--muted); }
.mb-plot { position: relative; flex: 1; min-height: 150px; }
.mb-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mb-plot .a-up { fill: var(--gold); fill-opacity: .18; } .mb-plot .a-dn { fill: var(--muted); fill-opacity: .14; }
.mb-plot .z { stroke: var(--muted); stroke-opacity: .6; stroke-dasharray: 3 4; } .mb-plot .avg { stroke: var(--gold); stroke-opacity: .75; stroke-dasharray: 6 4; }
.mb-plot .ln { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mb-lab { position: absolute; left: 4px; transform: translateY(-115%); font-size: .68rem; font-weight: 700; color: var(--muted); background: var(--card); border-radius: 5px; padding: 0 4px; line-height: 1.5; pointer-events: none; }
.mb-lab.avg { color: var(--gold-ink); }
.mb-dot { position: absolute; left: calc(100% - 5px); width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--gold); border: 2px solid var(--card); }
.mb-x { display: flex; justify-content: space-between; font-size: .68rem; color: var(--muted); }
.cv-f { display: flex; flex-direction: column; gap: 6px; }
.cv-f label { display: flex; flex-direction: column; gap: 4px; font-size: .74rem; color: var(--muted); }
.cv-f input { height: 50px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 1.2rem; font-weight: 800; padding: 0 12px; width: 100%; min-width: 0; }
.cv-swap { align-self: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--gold-ink); display: grid; place-items: center; cursor: pointer; }
.cv-swap svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cv-out { background: #17181B; color: #F5EFE4; border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; line-height: 1.45; }
.cv-out small { font-size: .74rem; color: #D6CEC0; } .cv-out b { font-size: 1.5rem; font-weight: 900; color: #F5B829; overflow-wrap: anywhere; } .cv-out i { font-style: normal; font-size: .8rem; font-weight: 500; color: #D6CEC0; }
.cv-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cv-chips button { height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.cv-chips button.on { border-color: #F0C45A; background: var(--gold-soft); }
.cv-t { flex: 1; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cv-t > div { flex: 1; min-height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: .84rem; } .cv-t > div + div { border-top: 1px solid var(--line); }
.cv-t .cv-th { flex: none; min-height: 30px; font-size: .72rem; color: var(--muted); background: var(--soft); }
.mr-now { margin: 0; display: flex; align-items: baseline; gap: 8px; } .mr-now b { font-size: 1.9rem; font-weight: 900; letter-spacing: -.5px; } .mr-now small { font-size: .8rem; color: var(--muted); }
.mr-rows { flex: 1; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mr-rows > div { flex: 1; min-height: 56px; display: grid; grid-template-columns: 84px minmax(0, 1fr) 72px; align-items: center; gap: 12px; padding: 0 14px; } .mr-rows > div + div { border-top: 1px solid var(--line); }
.mr-rows span { display: flex; flex-direction: column; line-height: 1.4; } .mr-rows span b { font-size: .88rem; font-weight: 800; } .mr-rows span small { font-size: .68rem; color: var(--muted); white-space: nowrap; }
.mr-rows i { height: 8px; border-radius: 4px; background: var(--soft); position: relative; overflow: hidden; }
.mr-rows em { position: absolute; top: 0; bottom: 0; right: 0; border-radius: 4px; opacity: .85; } .mr-rows em.up { background: var(--up); } .mr-rows em.down { background: var(--down); }
.mr-rows strong { font-size: .88rem; font-weight: 800; text-align: left; white-space: nowrap; } .mr-rows strong.up { color: var(--up); } .mr-rows strong.down { color: var(--down); }
@media (max-width: 960px) { .mc-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .mcard, .mside { padding: 12px; gap: 10px; }
  .mcard .mc-top { flex-wrap: wrap; }
  .mcard .mc-bar { order: 10; width: 100%; } .mcard .mc-bar select { flex: 1; min-width: 0; height: 40px; }
  .mcard .mc-foot { order: 9; flex-direction: column; align-items: flex-start; gap: 4px; }
  .mcard { display: flex; } .mcard .mc-top { display: contents; }
  .mcard .mc-title { order: 1; } .mcard .mc-ranges { order: 2; } .mcard .mc-stats { order: 3; padding: 8px 10px; } .mcard .mc-body { order: 4; }
  .mcard .mc-body .ct-plot svg { height: 240px; }
  .mc-title { flex-wrap: wrap; } .mc-title h2 { font-size: .98rem; } .mc-ic { width: 34px; height: 34px; }
  .mc-stats b { font-size: .84rem; }
  .mb-big > b { font-size: 2.1rem; }
  .mr-rows > div { grid-template-columns: 64px minmax(0, 1fr) 66px; }
}

/* gold page on phones (owner, 2026-11-30) */
.mb-x span { direction: rtl; unicode-bidi: isolate; }   /* «۹ آبان», not «آبان ۹», in the left-to-right date row */
.mb-avg { color: var(--gold-ink); font-weight: 700; }
.mb-key { margin: 0; font-size: .68rem; color: var(--muted); }
@media (max-width: 640px) {
  .link-cards { gap: 8px; }
  .link-cards a.has-ic { padding: 9px 12px; gap: 10px; }
  .link-cards a.has-ic .lc-ic { width: 32px; height: 32px; border-radius: 10px; } .link-cards a.has-ic .lc-ic svg { width: 18px; height: 18px; }
  .link-cards a.has-ic b { font-size: .88rem; } .link-cards a.has-ic small { font-size: .74rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .link-cards a.has-ic > span { min-width: 0; }
}

/* bubble chart hover (owner, 2026-11-30) */
.mb-plot { cursor: crosshair; touch-action: pan-y; }
.mb-cross { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--muted); pointer-events: none; }
.mb-hdot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--gold); border: 2px solid var(--card); pointer-events: none; }
.mb-tip { position: absolute; top: 0; z-index: 3; pointer-events: none; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(0,0,0,.16); border-radius: 10px; padding: 5px 10px; line-height: 1.6; white-space: nowrap; display: flex; flex-direction: column; }
.mb-tip small { font-size: .7rem; color: var(--muted); } .mb-tip b { font-size: .86rem; font-weight: 800; text-align: right; } .mb-tip span { font-size: .7rem; color: var(--muted); }
.mb-tip[hidden], .mb-cross[hidden], .mb-hdot[hidden] { display: none; }

/* hover readout on hand-drawn charts (owner, 2026-11-30) */
.hv-box { position: relative; cursor: crosshair; touch-action: pan-y; }
.hv-box > svg { display: block; }
.hv-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--ink); border: 2px solid var(--card); pointer-events: none; z-index: 2; }
.hv-dot[hidden] { display: none; }
.hv-tip[hidden] { display: none; }
.hv-tip { display: flex; flex-direction: column; gap: 1px; min-width: 120px; }
.hv-row { display: flex; align-items: center; gap: 6px; font-size: .78rem; white-space: nowrap; } .hv-row i { width: 8px; height: 8px; border-radius: 3px; flex: none; } .hv-row b { margin-inline-start: auto; font-weight: 800; }

/* tool pages under the hub band (gold calculator, owner 2026-11-30): a shorter band, the price strip riding on its edge */
.hh-band.slim .hh-in { padding-bottom: 52px; }
.hh-band.slim ~ .wrap.fx { padding-top: 0; }
.gc-strip.on-band { margin-top: -34px; position: relative; z-index: 2; }
.gc-strip.on-band a { box-shadow: 0 10px 28px rgba(70,52,20,.12); }
@media (max-width: 760px) { .hh-band.slim .hh-in { padding-bottom: 44px; } .gc-strip.on-band { margin-top: -28px; } }


.calc-fixed { background: var(--soft) !important; color: var(--ink); cursor: default; }   /* fixed 18k field on the invoice check (owner, 2026-11-30) */

.num-in { text-align: right; font-variant-numeric: proportional-nums; }   /* grouped number fields (owner, 2026-11-30) */

/* Page tools (owner, 2026-12-01): share beside the status pill, «قیمت اشتباه است؟» under the prices, widget in the footer */
.hh-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; align-self: flex-start; }
.hh-in .hh-tools .hh-status { align-self: auto; }
@media (min-width: 761px) { .hh-in .hh-tools { align-self: center; justify-content: flex-end; } }
.hh-share { font: inherit; font-size: .84rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #f5efe4; }
.hh-share:hover { border-color: var(--gold); color: #fff; }
.hh-share svg, .ptools svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .hh-tools { flex-wrap: nowrap; align-items: flex-start; } .hh-tools .hh-status { min-width: 0; } .hh-share { flex: none; width: 34px; padding: 0; justify-content: center; border-radius: 12px; } .hh-share span { display: none; } }
.ptools button { font: inherit; font-size: .8rem; background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--muted); }
.ptools button:last-child { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.ptools button:hover { color: var(--ink); }
.ptools { margin: 6px 0 0; display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.ptools button { display: inline-flex; align-items: center; gap: 5px; }
.ptools button:first-child { color: var(--ink); font-weight: 700; }
.ft-link { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: var(--on-dark-muted); text-align: right; }
.ft-link:hover { color: var(--gold); }
.col-stack { display: grid; gap: 30px; align-content: start; }   /* two short cards in one column beside a tall one (coin page, 2026-12-01) */

/* coin page on phones (owner, 2026-12-01): no weight line under the name (it is in «مشخصات سکه‌ها»), a clear bubble
   under the price, and the five mehrieh chips on one line without the word «سکه» */
@container (max-width: 520px) {
  .coin-t .name small.wt { display: none; }
  .coin-t .mob { font-size: .72rem; font-weight: 700; color: var(--gold-ink); white-space: nowrap; }
}
@media (max-width: 600px) {
  .pairs button[data-qn] span { display: none; }
  .pairs:has(> button[data-qn]) { flex-wrap: nowrap; }
  .pairs button[data-qn] { flex: 1 1 0; text-align: center; padding-inline: 4px; }
}

/* gold page on phones (owner, 2026-12-01): fund names on one line in «بازده مقایسه‌ای», larger range figures */
@media (max-width: 600px) {
  .bars { grid-template-columns: max-content minmax(0, 1fr) max-content; column-gap: 8px; }   /* one shared name column, as wide as the longest name */
  .bars > .bar { grid-column: 1 / -1; grid-template-columns: subgrid; }
  .bar span { white-space: nowrap; }
  .mc-ranges small { font-size: .74rem; }
}
.bb-strip { margin-bottom: 22px; } .bb-strip b { color: var(--gold-ink); }   /* /coin/bubble: today's bubbles on the band (owner, 2026-12-01) */

/* the bubble beside every price that has one (owner, 2026-12-01) */
.hh-bub { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); border-radius: 12px; padding: 8px 12px; text-decoration: none; color: var(--ink); }
.hh-bub span { font-size: .8rem; color: var(--muted); } .hh-bub b { font-size: 1.05rem; font-weight: 800; color: var(--gold-ink); } .hh-bub small { font-size: .75rem; color: var(--muted); }
.hh-bub:hover b { text-decoration: underline; }
.hh-rb { font-style: normal; font-weight: 700; color: var(--gold-ink); }
.hc-bub { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin: 10px 0 0; background: var(--gold-soft); border-radius: 12px; padding: 8px 12px; width: fit-content; max-width: 100%; }
.hc-bub span { font-size: .82rem; color: var(--muted); } .hc-bub b { font-size: 1.1rem; font-weight: 800; color: var(--gold-ink); } .hc-bub small { font-size: .78rem; color: var(--muted); }
.hc-bub a { font-size: .8rem; font-weight: 700; color: var(--gold-ink); text-decoration: none; }
.hm-card .hb { position: relative; z-index: 1; align-self: flex-start; margin-top: 4px; font-size: .74rem; color: var(--muted); text-decoration: none; background: var(--gold-soft); border-radius: 6px; padding: 1px 7px; }
.hm-card .hb b { color: var(--gold-ink); font-weight: 800; }
.rec-t .rec-d { display: block; color: var(--muted); font-size: .74rem; font-weight: 400; }
@media (max-width: 600px) { .rec-t td, .rec-t th { white-space: normal; padding-inline: 6px; } .rec-t td:first-child b { font-size: .84rem; } }   /* date on its own line under the record (owner, 2026-12-01) */
/* sortable bubble table (owner, 2026-12-01) */
.th-sort { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.th-sort::after { content: "⇅"; font-size: .8em; color: var(--muted); opacity: .7; }
th[aria-sort="descending"] .th-sort::after { content: "▼"; color: var(--gold-ink); opacity: 1; }
th[aria-sort="ascending"] .th-sort::after { content: "▲"; color: var(--gold-ink); opacity: 1; }
th[aria-sort="descending"] .th-sort, th[aria-sort="ascending"] .th-sort { color: var(--ink); font-weight: 800; }
/* internal links inside a sentence (owner, 2026-12-01) */
.links-note { margin: 12px 0 0; font-size: .88rem; line-height: 1.9; color: var(--muted); }
.links-note a, .prose a, .meta a, .note-s a { color: var(--gold-ink); font-weight: 600; text-decoration: none; }
.links-note a:hover, .prose a:hover, .meta a:hover, .note-s a:hover { text-decoration: underline; }
/* price pages with the hub header (owner, 2026-12-01): the old header's other figures in one strip */
.item-stats { padding: 12px; margin-bottom: 30px; }
.item-stats .hc-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.item-stats .hc-stats:has(> div:nth-child(6)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 760px) { .item-stats .hc-stats, .item-stats .hc-stats:has(> div:nth-child(6)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hh-extra { margin: -6px 0 0; font-size: .95rem; font-weight: 700; color: var(--ink); } .hh-extra small { color: var(--muted); font-weight: 500; }
/* «قیمت … از کجا می‌آید؟» beside a price page's main card (owner, 2026-12-01) */
.hh-origin { padding: 18px 22px 16px; }
.hh-origin h2 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 800; }
.hh-origin dl { margin: 0; display: flex; flex-direction: column; }
.hh-origin dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hh-origin dt { font-size: .86rem; color: var(--muted); } .hh-origin dt a { color: var(--gold-ink); font-weight: 600; text-decoration: none; } .hh-origin dt a:hover { text-decoration: underline; }
.hh-origin dd { margin: 0; font-weight: 800; font-size: .95rem; white-space: nowrap; }
.hh-origin dl > div.hl { background: var(--gold-soft); border-radius: 10px; padding-inline: 10px; margin-top: 4px; border-bottom: 0; } .hh-origin .hl dd { color: var(--gold-ink); }
.hh-of { margin: 10px 0 0; font-size: .78rem; color: var(--muted); line-height: 1.8; }
.hh-boxes2 { margin-top: 0; } .hh-boxes2 b.up { color: var(--up); } .hh-boxes2 b.down { color: var(--down); }   /* price pages: second row of figures (owner, 2026-12-01) */
.hv-x { color: var(--muted); font-size: .76rem; } .hv-x b { color: var(--ink); }
.hv-row b.up { color: var(--up); } .hv-row b.down { color: var(--down); }

/* currency page on phones (owner, 2026-12-01): rows without the low–high range, a table that fits, a three-column heatmap */
@media (max-width: 600px) {
  .fx-main .mob { display: none; }
  .fx-main .name .badge.flag, .fx-main .name img.flag { width: 24px; height: 24px; }
  .fx-main td, .fx-main th { padding-inline: 6px; }
  .fx-main .star-c { width: 22px; padding-inline: 2px; }
  .heat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-inline: 12px; }
  .heat .tile { min-height: 0; padding: 7px 8px; }
  .heat .tile .t-h { font-size: .74rem; } .heat .tile b { font-size: .98rem; } .heat .tile small { font-size: .68rem; }
}
.hh-ic.raw .cbadge { font-size: .7rem; }   /* «USDT» readable (owner, 2026-12-01) */
.cross-t td a { color: inherit; text-decoration: none; } .cross-t td a:hover { color: var(--gold-ink); }   /* cross-rate table links without underline (owner, 2026-12-02) */
/* converter on phones (owner, 2026-12-02): swap button between «از» and «به», the date in one row, the history title like the others */
.cv-tool h2 { margin: 16px 0 4px; font-size: 1.12rem; font-weight: 800; }
.cv-row.cv-date { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 760px) { .cv-in { grid-template-columns: 1fr auto 1fr; } .cv-swap { order: 0; grid-column: auto; width: 40px; align-self: end; margin-bottom: 4px; } }
/* currency page on phones (owner, 2026-12-02): cross table without its reverse column, no repeated amount table in the convert card,
   the swap button beside the amount, and the other-currency list cut to 16 with «نمایش همه» */
.cv-f { display: grid; grid-template-columns: 1fr auto; align-items: end; } .cv-f .cv-out { grid-column: 1 / -1; } .cv-f .cv-swap { margin-bottom: 5px; }
.links-more { margin-top: 10px; font: inherit; font-size: .86rem; color: var(--gold-ink); background: none; border: 0; padding: 0; cursor: pointer; display: none; }
@media (max-width: 760px) {
  .cross-t th:nth-child(3), .cross-t td:nth-child(3) { display: none; }
  .mside .cv-t { display: none; }
  .links.cut a:nth-child(n+17) { display: none; } .links.cut + .links-more { display: inline-block; }
}
.hh-rv.usd1 small { font-size: .74rem; color: var(--muted); white-space: nowrap; }   /* crypto side rows: toman under the dollar price (2026-12-02) */
.crt td.r { color: var(--ink); font-size: .9rem; font-weight: 600; text-align: right; }   /* crypto table: dollar price as clear as the toman price, aligned under its heading (owner, 2026-12-02) */
/* crypto page on phones (owner, 2026-12-02): the table fits without sideways scroll, stats two by two, chart footer and calculator labels readable, categories in one swipeable row */
@media (max-width: 600px) {
  .mkt4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mk { padding: 12px; } .mk > b { font-size: 1.12rem; } .mk > b small { display: block; } .mk .gauge { width: 100%; max-width: 120px; height: auto; align-self: center; }
  .crt th, .crt td { padding-left: 6px; padding-right: 6px; }
  .crt .star-c { width: 22px; padding-left: 0; padding-right: 4px; }
  .crt .name { gap: 6px; } .crt .name b { font-size: .84rem; white-space: normal; } .crt .cbadge { width: 26px; height: 26px; font-size: .5rem; flex: none; }
  .crt .p b { font-size: .86rem; } .crt .p .mob { color: var(--ink); font-weight: 600; font-size: .74rem; }
  .crt .pill { font-size: .7rem; padding: 2px 6px; }
  .bf-ax { flex-wrap: wrap; } .bf-ax span:nth-child(2) { order: -1; flex-basis: 100%; text-align: center; margin-bottom: 2px; }
  .conv .row2 { grid-template-columns: 1fr 1fr; } .conv .row2 > label { min-width: 0; } .conv .row2 input, .conv .row2 select { min-width: 0; width: 100%; }
  .cats-t { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .cats-t::-webkit-scrollbar { display: none; } .cats-t button { flex: none; }
}
.links .cbadge.xs { width: 22px; height: 22px; font-size: .45rem; margin-left: 5px; vertical-align: middle; flex: none; }   /* «رمزارزهای دیگر»: each coin with its symbol badge (owner, 2026-12-02) */
/* hub band status on phones: drop «(همین حالا)» so the pill stays on one line (owner, 2026-12-03) */
@media (max-width: 560px) { .hh-status .hh-ago { display: none; } }
/* hub band with nothing riding on it (glossaries, owner 2026-12-03): the tabs sit on the band's lower edge */
.hh-band.bare .hh-in { padding-bottom: 0; }
/* searchable coin picker in the crypto tools (owner, 2026-12-03); public/js/coin-pick.js */
select.cpk-native { display: none !important; }
.cpk { position: relative; min-width: 0; }
.cpk-btn { font: inherit; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px 6px 6px; width: 100%; min-height: 44px;
  display: flex; align-items: center; gap: 7px; cursor: pointer; text-align: start; }
.cpk-btn:hover, .cpk.open .cpk-btn { border-color: var(--gold); }
.cpk-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.cpk-btn .cpk-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.cpk-btn small, .cpk-list small { color: var(--muted); font-size: .74rem; font-family: system-ui, sans-serif; }
.cpk-ch { width: 16px; height: 16px; margin-inline-start: auto; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.cpk.open .cpk-ch { transform: rotate(180deg); }
.cbadge.cpk-b { width: 28px; height: 28px; font-size: .5rem; }
.cpk-pop { position: absolute; top: calc(100% + 4px); z-index: 40; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.18); padding: 8px; }
.cpk-s { display: flex; align-items: center; gap: 6px; background: var(--soft); border: 1px solid var(--line); border-radius: 9px; padding: 0 9px; margin: 0 0 6px; }
.cpk-s svg { width: 17px; height: 17px; color: var(--muted); }
.conv .cpk-s input, .cpk-s input { border: 0; background: none; padding: 8px 0; font: inherit; font-size: 16px; color: var(--ink); width: 100%; min-width: 0; outline: none; }
.cpk-list { list-style: none; margin: 0; padding: 0; max-height: 286px; overflow-y: auto; overscroll-behavior: contain; }
.cpk-list li { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: .92rem; line-height: 1.5; }
.cpk-list li small { margin-inline-start: auto; }
.cpk-list li.on { background: var(--soft); }
.cpk-list li[aria-selected="true"] { background: var(--gold-soft); font-weight: 700; }
.cpk-list li:hover { background: var(--soft); }
.cpk-none { margin: 8px; color: var(--muted); font-size: .88rem; }
@media (max-width: 560px) { .cpk-btn { gap: 5px; padding: 6px 6px 6px 4px; font-size: .86rem; } .cpk-btn small, .cpk-ch { display: none; } .cbadge.cpk-b { width: 22px; height: 22px; font-size: .42rem; } .cpk-list { max-height: 50vh; } }
/* converter row «از ⇄ به» on every page (coin pages too, owner 2026-12-03): the swap button sits level with the pickers */
.conv .row3:has(> .swap) { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; }
.conv .row3 > .swap { height: 44px; width: 40px; }
/* a narrow picker keeps the coin's name and drops the Latin symbol and the arrow */
.cpk { container-type: inline-size; }
@container (max-width: 175px) { .cpk-btn small, .cpk-ch { display: none; } .cpk-btn { gap: 6px; } }
/* coin page: profit and loss with the purchase date (owner, 2026-12-03); two columns wide, inputs beside the result */
.cpl .conv { grid-template-rows: none; }
.cpl-in, .cpl-out { display: grid; gap: 10px; align-content: start; }
.cpl-date { display: grid; gap: 6px; }
.cpl-l { font-size: .78rem; color: var(--muted); }
.cpl-date .quick { display: flex; flex-wrap: wrap; gap: 6px; }
.cpl-date .btn-s[aria-pressed="true"] { background: var(--gold); color: #1a1c20; border-color: var(--gold); }
.cpl .total .cpl-usd { display: block; margin-top: 2px; font-weight: 700; }
.cpl .total .cpl-usd.up { color: #5fd08b; } .cpl .total .cpl-usd.down { color: #ff8576; }
@media (min-width: 761px) { .cpl-wide .conv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 22px; align-items: start; } }

/* car pages on the hub header (owner, 2026-12-03): the car index line inside the main card */
.car-ixc { margin-top: 12px; } .car-ixc svg { width: 100%; height: 64px; display: block; }
.hh-main .car-gone { margin: 12px 0 0; }
/* car brand cards with the brand's logo (owner, 2026-12-03); a brand without one shows its first letter */
.car-brands a { flex-direction: row; align-items: flex-start; gap: 12px; }
.car-brands .cb-logo { flex: none; width: 52px; height: 52px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 6px; font-style: normal; }
.car-brands .cb-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.car-brands .cb-logo em { font-style: normal; font-weight: 900; font-size: 1.3rem; color: #6b7079; }
.car-brands .cb-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-weight: inherit; font-size: inherit; margin: 0; }
.car-brands .cb-t strong { font-weight: 800; font-size: .92rem; margin-top: 4px; }
.car-brands .cb-t small.muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .car-brands a { flex-direction: column; gap: 8px; } .car-brands .cb-logo { width: 44px; height: 44px; } }
/* coin picker with a logo (car brands in «قیمت ماشین من», 2026-12-03) */
.cbadge.cpk-img { background: #fff; border: 1px solid var(--line); padding: 3px; }
.cbadge.cpk-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.car-pick-in .cpk-btn { font-size: 1.05rem; min-height: 49px; padding: 6px 12px 6px 8px; }
/* the coin/brand picker's list must not be clipped by its card (owner, 2026-12-03) */
.panel:has(.cpk) { overflow: visible; }
.cv-in .cpk-s input, .cv-row .cpk-s input { border: 0; background: none; padding: 8px 0; line-height: 1.5; font: inherit; font-size: 16px; width: 100%; min-width: 0; outline: none; color: var(--ink); }
.cpk-pop { max-width: calc(100vw - 16px); }
.cv-in .cpk-s, .cv-row .cpk-s { display: flex; align-items: center; gap: 6px; grid-template-columns: none; }
/* car pages: links inside the tables without an underline (owner, 2026-12-03); underline on hover only */
.car .pt a { text-decoration: none; color: inherit; }
.car .pt a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* car hub: the smaller brands show with «نمایش همهٔ برندها» (owner, 2026-12-03) */
.car-brands .cb-more { display: none; }
.car-brands.all .cb-more { display: flex; }
.cb-all { display: block; margin: 14px auto 0; padding: 9px 22px; }
/* brand and budget tables: the market-vs-factory gap under the factory price (owner, 2026-12-03) */
.car-t .cl-gap { display: block; font-size: .74rem; color: var(--up); font-weight: 600; }
@media (max-width: 760px) { .car-t td { white-space: normal; overflow: visible; text-overflow: clip; } .car-t td:first-child { min-width: 96px; } }
/* car model page: technical specs (owner, 2026-12-03) */
.cs-key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 4px 16px 16px; }
.cs-key div { background: var(--soft); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.cs-key dt { font-size: .74rem; color: var(--muted); }
.cs-key dd { margin: 2px 0 0; font-weight: 800; font-size: .92rem; }
.cs-all { border-top: 1px solid var(--line); }
.cs-all summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--gold-ink); }
.cs-all h3 { font-size: .9rem; margin: 10px 16px 4px; }
.cs-all .pt td { white-space: normal; overflow: visible; }
.cs-all .pt td:first-child { color: var(--muted); width: 42%; }
@media (max-width: 1080px) { .cs-key { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cs-key { grid-template-columns: 1fr 1fr; } }
/* compare page: specs side by side (owner, 2026-12-03) */
.cs-cmp td.win { color: var(--up); font-weight: 800; }
.cs-cmp td, .cs-cmp th { white-space: normal; overflow: visible; }
.cs-cmp th { width: 30%; color: var(--muted); font-weight: 600; }

/* Bourse symbols: /bourse/stocks and the symbol pages (owner, 2026-12-05) */
.stk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 16px 12px; }
.stk-bar input[type=search] { flex: 1 1 220px; min-width: 0; font: inherit; font-size: .9rem; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.stk-bar select { font: inherit; font-size: .86rem; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); max-width: 100%; }
.stk-t th:nth-child(n) { width: auto; }
.stk-t td a { text-decoration: none; } .stk-t td a:hover b { text-decoration: underline; }
.stk-t td:not(:first-child), .stk-t th:not(:first-child) { white-space: nowrap; }
.stk-secs { padding: 0 16px 16px; } .stk-secs a small { margin-inline-start: 4px; }
@media (max-width: 640px) { .stk-t th:nth-child(6), .stk-t td:nth-child(6), .stk-t th:nth-child(4), .stk-t td:nth-child(4) { display: none; } }
.stk-t td small { display: block; color: var(--muted); }
