/* ==========================================================================
   Design v2 — the inner pages (news, article, silver, guide, faq, about,
   contact, legal documents, sign-in, profile, notifications, calculator,
   states). Loaded after mq.css. Class prefix `mq-`; the older page classes
   (.page-head .prose .faq …) are re-skinned here so their markup, ids and
   behaviour stay exactly as app.js and the specs know them.
   ========================================================================== */

/* ---- common bits ---- */
.mq-row-wrap { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.mq-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 480px) { .mq-two { grid-template-columns: minmax(0, 1fr); } }
.mq-empty { display: grid; justify-items: center; gap: 12px; padding: 40px 16px; text-align: center; }
.mq-empty .ring, .ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad-soft); border: 1px solid var(--line-gold); color: var(--gold-ink); }
.mq-empty b { font-size: 17px; }
.error-state.mq-empty p, .empty-state.mq-empty p { margin: 0; }
.news-note, .mq-banner-note { padding: 12px 14px; border-radius: 15px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; background: var(--gold-grad-soft); border: 1px solid var(--line-gold); color: var(--text-2); margin: 0; }
.news-note .ico, .mq-banner-note .ico { color: var(--gold-ink); width: 20px; height: 20px; flex: none; margin-top: 2px; }
.news-pager { display: flex; align-items: center; justify-content: center; gap: 14px; }

/* ---- news ---- */
.news-chips { margin: 0; }
.news-chips .mq-chip { flex: none; text-decoration: none; }
.mq-ng3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mq-nrows .nrow { grid-template-columns: 72px 1fr; }
.mq-nrows .thumb { width: 72px; height: 72px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #153575, #0B2154); border: 1px solid var(--line-gold); position: relative; }
.mq-nrows .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mq-nrows .thumb .brand-logo { height: 28px; width: auto; }
.mq-nrows .nbody b { font-size: 14.5px; line-height: 1.6; display: block; }
.mq-nrows .nbody small { font-size: 12px; color: var(--text-3); display: block; }
.mq-nrows .nfeat { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; color: var(--gold-ink); background: var(--gold-grad-soft); border: 1px solid var(--line-gold); margin-inline-end: 6px; }
.mq-nrows .nfeat .ico { width: 10px; height: 10px; }
@media (max-width: 880px) { .mq-ng3 { grid-template-columns: minmax(0, 1fr); } }

/* ---- article ---- */
.mq-backrow .crumbs { margin: 0; font-size: 12.5px; color: var(--text-3); }
.mq-backrow .crumbs a:hover { color: var(--gold-ink); }
.mq-hero-img { margin: 0; position: relative; aspect-ratio: 16/9; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, #153575, #0B2154); border: 1px solid var(--line-gold); display: grid; place-items: center; }
.mq-hero-img .lattice { opacity: .32; }
.mq-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mq-hero-img .brand-logo { height: 56px; width: auto; position: relative; }
@media (min-width: 881px) { .mq-hero-img { aspect-ratio: 21/8; } }
.mq-art h1, .story-title { margin: 0; font-size: 24px; line-height: 1.55; font-weight: 800; }
@media (min-width: 881px) { .mq-art h1, .story-title { font-size: 32px; } }
.mq-sum { padding: 18px 20px; display: grid; gap: 10px; }
.mq-sum .lbl { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 800; color: var(--gold-ink); }
.mq-sum p { margin: 0; font-size: 16px; line-height: 2; color: var(--text); }
.mq-sum p.mq-note { font-size: 12px; color: var(--text-3); }
.mq-art .prose { max-width: none; padding: 0; }
.mq-art .story-meta { gap: 8px 12px; }

/* ---- silver ---- */
.mq-silver-text { background: linear-gradient(115deg, #DDE5F3, #fff 55%, #B7C3DA); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
:root[data-theme='light'] .mq-silver-text { background: linear-gradient(115deg, #4A5670, #6B7896 55%, #3D4863); -webkit-background-clip: text; background-clip: text; }
.mq-ounce .v .cur { font-size: 25px; font-weight: 800; }
.odo .odi > i.mq-silver-text { background: linear-gradient(115deg, #DDE5F3, #fff 55%, #B7C3DA); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
:root[data-theme='light'] .odo .odi > i.mq-silver-text { background: linear-gradient(115deg, #4A5670, #6B7896 55%, #3D4863); -webkit-background-clip: text; background-clip: text; }

/* ==========================================================================
   Content pages: guide, faq, about, contact, terms, privacy, delete-account
   ========================================================================== */
:root { --max: 1160px; --gutter: 16px; }
@media (min-width: 881px) { :root { --gutter: 28px; } }

.page-head { padding-block: 22px 6px; }
.page-head .crumbs { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px; font-size: 12.5px; font-weight: 800; color: var(--gold-ink); padding: 5px 12px; border-radius: 999px; background: var(--gold-grad-soft); border: 1px solid var(--line-gold); }
.page-head .crumbs a { color: inherit; }
.page-head h1 { font-size: 28px; line-height: 1.35; font-weight: 800; }
.page-head > p:not(.crumbs) { margin-top: 8px; color: var(--text-2); font-size: 15.5px; max-width: 680px; }
@media (min-width: 881px) { .page-head h1 { font-size: 36px; } .page-head > p:not(.crumbs) { font-size: 16.5px; } }

.section-head h2 { font-weight: 800; }
.section-head p { color: var(--text-2); }
.section, .section-tight { padding-block: 22px; }
@media (min-width: 881px) { .section { padding-block: 34px; } }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

/* prose: the document typography */
.prose { font-size: 15px; line-height: 2; color: var(--text-2); }
.prose h2 { font-size: 20px; font-weight: 800; color: var(--text); margin-top: 34px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16px; font-weight: 800; color: var(--text); }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--gold-ink); text-decoration: none; border-bottom: 1px solid var(--line-gold); }
.prose a:hover { border-bottom-color: var(--gold-ink); }
.prose ul { list-style: none; padding-inline-start: 0; }
.prose ul li { position: relative; padding-inline-start: 22px; }
.prose ul li::before { content: ''; position: absolute; inset-inline-start: 4px; top: .85em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-grad); }
.prose ol { padding-inline-start: 22px; }
.prose ol li::marker { color: var(--gold-ink); font-weight: 800; }
.prose .formula { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--gold-grad-soft); border: 1px solid var(--line-gold); color: var(--text); font-weight: 700; }

/* the document with a table of contents (terms, privacy) */
.mq-doc { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.mq-doc .shell { padding: 0; max-width: none; }
.mq-toc { display: none; }
.mq-tocm { padding: 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.mq-tocm summary { cursor: pointer; padding: 13px 16px; font-weight: 800; font-size: 14.5px; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.mq-tocm summary::-webkit-details-marker { display: none; }
.mq-tocm summary::after { content: '+'; color: var(--gold-ink); font-size: 20px; line-height: 1; }
.mq-tocm[open] summary::after { content: '\2212'; }
.mq-tocm nav { display: grid; padding: 0 8px 10px; }
.mq-toc nav a, .mq-tocm nav a { display: block; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; color: var(--text-2); }
.mq-toc nav a.on, .mq-tocm nav a:hover, .mq-toc nav a:hover { color: var(--gold-ink); background: var(--gold-grad-soft); }
@media (min-width: 881px) {
  .mq-doc { grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; }
  .mq-tocm { display: none; }
  .mq-toc { display: block; position: sticky; top: 90px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
  .mq-toc b { display: block; font-size: 14.5px; margin-bottom: 8px; }
}
.mq-rel { margin-top: 28px; }
.mq-rel h3 { font-size: 15px; font-weight: 800; margin: 0 0 8px; }
.mq-rel .mq-card { overflow: hidden; }
.mq-li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px 16px; width: 100%; text-align: start; color: inherit; transition: background-color .2s; }
.mq-li + .mq-li { border-top: 1px solid var(--line); }
.mq-li:hover { background: var(--gold-grad-soft); }
.mq-li .ico-b { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--gold-grad-soft); border: 1px solid var(--line-gold); color: var(--gold-ink); }
.mq-li b { font-size: 14.5px; display: block; line-height: 1.4; }
.mq-li small { font-size: 12px; color: var(--text-3); display: block; }
.mq-li > svg.ico:last-child { width: 17px; height: 17px; color: var(--text-3); }

/* guide */
.grid-3, .grid-2 { gap: 16px; }
.feature.card, .contact-card.card { padding: 20px; border-radius: 22px; background: var(--surface); transition: transform .3s var(--ease), border-color .3s; }
.feature.card:hover, .contact-card.card:hover { transform: translateY(-3px); border-color: var(--line-gold); }
.feature .badge, .contact-card .badge { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--gold-grad-soft); border: 1px solid var(--line-gold); color: var(--gold-ink); flex: none; }
.feature h3 { font-size: 16.5px; font-weight: 800; }
.feature p { font-size: 14px; color: var(--text-2); line-height: 1.9; }
.feature p a { color: var(--gold-ink); border-bottom: 1px solid var(--line-gold); }
.contact-card h3 { font-size: 15.5px; font-weight: 800; }
.contact-card p { font-size: 13.5px; color: var(--text-2); }
.contact-card a { color: var(--gold-ink); font-weight: 700; }
@media (max-width: 880px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* the download section on /guide: the design's navy band */
#download.section-alt { background: none; border: 0; padding-block: 22px; }
#download .app-grid { position: relative; overflow: hidden; border-radius: 30px; padding: 40px 44px; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: center; color: #fff; max-width: calc(1160px - 2 * var(--gutter)); background: radial-gradient(600px 300px at 0% 0%, rgba(226, 184, 84, .22), transparent 70%), linear-gradient(135deg, #153575, #071836); border: 1px solid rgba(226, 184, 84, .35); box-shadow: var(--shadow-lg); }
#download .eyebrow { background: none; padding: 0; color: #F4CF7C; }
#download h2 { color: #fff; font-size: 30px; font-weight: 800; }
#download .lead, #download .app-list li, #download .app-meta, #download .install-steps p, #download .install-steps li, #download .table-note { color: rgba(255, 255, 255, .78); }
#download .app-list .ico { color: #F4CF7C; }
#download .install-steps { margin-top: 22px; padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); }
#download .install-steps h3 { color: #fff; }
#download .install-steps strong { color: #fff; }
#download .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
#download .phone { max-width: 270px; justify-self: center; }
@media (max-width: 880px) { #download .app-grid { grid-template-columns: minmax(0, 1fr); padding: 26px 20px; gap: 24px; } #download h2 { font-size: 24px; } }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { padding: 0; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-gold); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.faq summary::after { color: var(--gold-ink); }
.faq .answer { padding: 0 20px 16px; border-top: 0; font-size: 14px; color: var(--text-2); line-height: 1.9; animation: mq-in .3s var(--ease); }
h2.section-head { font-size: 19px; font-weight: 800; margin: 18px 0 10px; }
.mq-fq-tools { display: grid; gap: 12px; margin-bottom: 8px; }
.mq-search { position: relative; display: block; }
.mq-search .ico { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--text-3); }
.mq-search input { width: 100%; min-height: 50px; padding: 0 16px; padding-inline-start: 44px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 15px; outline: 0; transition: .2s var(--ease); }
.mq-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--glow); }
.mq-fq-empty[hidden] { display: none; }

/* about */
.page-head-brand { text-align: center; }
.page-head-brand > p:not(.crumbs) { margin-inline: auto; }
.about-mark { margin-block: 0 -6px; }

/* social tiles and misc */
.social-tile { border-radius: 18px; border-color: var(--line); background: var(--surface); transition: transform .3s var(--ease), border-color .3s; }
.social-tile:hover { transform: translateY(-3px); border-color: var(--line-gold); }
.table-note, .basis-note { font-size: 12.5px; color: var(--text-3); }
.page-head-brand.mq-card-navy { position: relative; margin: 22px auto 10px; width: calc(100% - 2 * var(--gutter)); max-width: calc(1160px - 2 * var(--gutter)); padding: 18px 20px 28px; border-radius: 30px; }
.page-head-brand.mq-card-navy .crumbs { position: relative; }
.page-head-brand .about-mark { position: relative; margin-block: 0 -14px; }
.page-head-brand.mq-card-navy > p:not(.crumbs) { position: relative; color: var(--cn-2); font-size: 17px; }

/* ==========================================================================
   Sign-in, profile, notifications, delete-account
   ========================================================================== */
.auth-shell { max-width: 1000px; margin-inline: auto; padding-top: 22px; }
@media (max-width: 880px) { .auth-shell { grid-template-columns: minmax(0, 1fr); } }
.auth-card { padding: 28px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.auth-card > * { position: relative; }
.auth-card .lattice { position: absolute; }
.auth-card .auth-logo .brand-logo { height: 54px; width: auto; }
.auth-card h1 { margin: 4px 0 0; font-size: 26px; font-weight: 800; }
.auth-card .auth-lead { margin: 0; font-size: 14px; color: var(--cn-2); max-width: 420px; }
.auth-card h2 { font-size: 14px; font-weight: 700; margin: 10px 0 0; color: var(--cn-2); }
.auth-card > p.muted { font-size: 12.5px; color: var(--cn-3); max-width: 420px; margin: 0; }
.auth-card .gsi-slot, .auth-card .gsi-button, .auth-card .apple-button { margin-top: 6px; }
.auth-card .gsi-button, .auth-card .apple-button { width: 100%; max-width: 360px; justify-content: center; min-height: 48px; border-radius: 14px; }
.auth-card .auth-guest { max-width: 360px; margin-top: 10px; color: var(--cn-1); border-color: var(--cn-line); }
.auth-card .auth-fine { color: var(--cn-3); margin-top: 8px; }
.auth-card .auth-fine a { color: var(--gold-ink); font-weight: 700; }
:root:not([data-theme='light']) .auth-card .auth-fine a { color: var(--gold); }
:root[data-theme='light'] .card.auth-card:not(.mq-card-navy) { --cn-2: #414042; --cn-3: #4F4A44; }   /* a white card in the light theme must not inherit the dark theme's pale greys (1.5:1 on white) */
.auth-card .signin-status { color: var(--cn-2); }
.auth-card .signin-status.bad { color: var(--down); }
.auth-aside { padding: 20px 22px; }
.auth-aside h3 { font-size: 15px; font-weight: 800; }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tick-list li { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; border-top: 1px solid var(--line); }
.tick-list li:first-child { border-top: 0; }
.tick-list .ico { color: var(--up); flex: none; }
.tick-list.muted .ico { color: var(--text-3); }
.auth-aside .auth-fine { color: var(--text-3); }

/* ---- forms (the design's fld / inp / sel / switch / alert) ---- */
.field > span, .field-label { font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 7px; }
.field > span em { color: var(--text-3); font-weight: 500; }
.field small { font-size: 11.5px; color: var(--text-3); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 0 16px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 15px; outline: 0; transition: .2s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--glow); }
.field input::placeholder { color: var(--text-3); }
.field input:disabled, .field select:disabled { opacity: .55; }
.phone-group { min-height: 50px; border-radius: 15px; background: var(--surface); border-color: var(--line); }
.phone-group:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px var(--glow); }
.phone-group input { min-height: 48px; box-shadow: none; }
.phone-group input:focus { box-shadow: none; }
.date-parts select { padding: 0 10px; }

.switch { justify-content: space-between; flex-direction: row-reverse; padding: 12px 0; font-size: 14.5px; }
.switch > span { flex: 1; }
.switch input { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); position: relative; transition: .25s var(--ease); cursor: pointer; }
.switch input::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-3); transition: .25s var(--ease); }
.switch input:checked { background: var(--gold-grad); border-color: transparent; }
.switch input:checked::after { inset-inline-start: 21px; background: #fff; }
.switch input:disabled { opacity: .5; cursor: default; }
.switch input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.alert { border-radius: 15px; padding: 12px 14px; font-size: 13.5px; line-height: 1.8; margin: 0 0 4px; border: 1px solid var(--line-gold); background: var(--gold-grad-soft); color: var(--text-2); }
.alert-ok { background: color-mix(in srgb, var(--up) 10%, transparent); border-color: color-mix(in srgb, var(--up) 40%, transparent); color: var(--text); }
.alert-bad { background: color-mix(in srgb, var(--down) 10%, transparent); border-color: color-mix(in srgb, var(--down) 40%, transparent); color: var(--text); }
.alert strong { color: inherit; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: start; padding: 12px 14px; border-top: 1px solid var(--line); }
.table th { background: var(--surface-2); font-size: 12px; color: var(--text-3); border-top: 0; }
.pill { border-radius: 999px; }
.pill.ok { color: var(--up); background: color-mix(in srgb, var(--up) 14%, transparent); }
.pill.warn { color: #E0A100; background: color-mix(in srgb, #E0A100 16%, transparent); }
.danger { color: var(--down) !important; }
.btn.danger:hover { background: color-mix(in srgb, var(--down) 10%, transparent); }

/* ---- profile ---- */
.account-grid { max-width: 1160px; padding-top: 4px; }
.account-grid > form.card, .account-side > .card, .account-side > form.card { padding: 20px 22px; border-radius: 22px; }
.account-grid h2 { font-size: 16.5px; font-weight: 800; }
.account-grid h3 { font-size: 15px; font-weight: 800; }
.account-grid .btn-gold, .account-grid .btn { margin-top: 16px; }
.mq-who { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.mq-who .avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #1a1203; font-weight: 800; font-size: 22px; flex: none; }
.mq-who b { display: block; font-size: 16px; line-height: 1.4; }
.mq-who small { color: var(--text-3); font-size: 12.5px; }

/* ---- alerts ---- */
.mq-alist { overflow: hidden; }
.mq-al { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px 16px; }
.mq-al + .mq-al { border-top: 1px solid var(--line); }
.mq-al .ico-b { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-grad-soft); border: 1px solid var(--line-gold); color: var(--gold-ink); }
.mq-al b { font-size: 14px; display: block; line-height: 1.5; }
.mq-al small { font-size: 12px; color: var(--text-3); display: block; }
.mq-al form { margin: 0; }
.mq-al-acts { display: flex; align-items: center; gap: 2px; }
.mq-al.paused { opacity: .62; }
.mq-al small .mq-pill { margin-inline-end: 6px; }
.mq-keep { color: var(--text-3); }
.mq-keep.on { color: var(--gold-ink); }
.mq-keep.on svg { fill: currentColor; }
.mq-keepnote { display: flex; align-items: flex-start; gap: 6px; line-height: 1.7; }
.mq-newal { padding: 20px 22px; display: grid; gap: 14px; }
.mq-newal h2 { margin: 0; font-size: 17px; font-weight: 800; }
.mq-newal .field + .field { margin-top: 0; }

/* ---- notifications ---- */
.mq-card.pad, .card.pad { padding: 20px 22px; }

/* ---- states: 404, empty, error ---- */
.mq-404 { padding: 56px 20px; max-width: 560px; margin: 24px auto; width: 100%; }
.mq-404-n { font-size: 84px; font-weight: 800; line-height: 1; }
.error-state, .empty-state { text-align: center; padding: 36px 16px; display: grid; justify-items: center; gap: 12px; }

/* ---- share page ---- */
.mq-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 560px) { .mq-pair { grid-template-columns: minmax(0, 1fr); } }
.mq-fmt { padding: 18px; display: grid; gap: 6px; justify-items: center; text-align: center; }
.mq-fmt b { font-size: 15.5px; }
.mq-fmt small { color: var(--text-3); direction: ltr; }
.mq-fmt .mq-btn { margin-top: 8px; }
.mq-fmt-frame { --s: .2037; width: 220px; height: calc(220px * var(--h) / var(--w)); position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line-gold); box-shadow: 0 14px 34px rgba(0, 0, 0, .28); direction: ltr; background: var(--bg); margin-bottom: 8px; }
.mq-fmt-frame iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: top left; transform: scale(var(--s)); pointer-events: none; }

/* ---- app page ---- */
.mq-steps h2, .mq-card.pad h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16.5px; font-weight: 800; }
.mq-steps h2 .ico, .mq-card.pad h2 .ico { color: var(--gold-ink); }
.mq-ol { margin: 12px 0; padding-inline-start: 22px; color: var(--text-2); line-height: 2; font-size: 14.5px; }
.mq-ol li::marker { color: var(--gold-ink); font-weight: 800; }

/* the old floating calculator button: a desktop has the top navigation, and the design has no such button */
@media (min-width: 881px) { .wc-fab { display: none !important; } }

/* ---- silver and chart: the line under the hero, and the comparison cards ---- */
.mq-silver-hero .mq-spark { margin-top: 10px; }
.mq-silver-hero .mq-ranges { padding-top: 6px; }
.mq-cmp { padding: 16px; display: grid; gap: 4px; }
.mq-cmp h3 { margin: 0; font-size: 15.5px; font-weight: 800; }
.mq-plot { position: relative; height: 190px; margin-top: 6px; }
.mq-plot.mq-chart svg { animation: mq-reveal 1.1s var(--ease) .05s both; }
.mq-plot .lg { position: absolute; top: -4px; inset-inline-end: 0; display: flex; gap: 12px; font-size: 12px; color: var(--text-2); }
.mq-plot .lg i { display: inline-block; width: 16px; height: 3px; border-radius: 3px; vertical-align: middle; margin-inline-end: 5px; }
.mq-plot.none { height: 24px; }

/* ==========================================================================
   Welcome: a full-screen tour, no header, footer or bottom bar (the design's bar:none, nav:false)
   ========================================================================== */
body:has(.mq-wel) #mq-top, body:has(.mq-wel) .mq-foot, body:has(.mq-wel) .nav2, body:has(.mq-wel) .wc-fab, body:has(.mq-wel) .install { display: none !important; }
body:has(.mq-wel) { padding-bottom: 0 !important; }
.mq-wel { position: relative; max-width: 560px; margin: 0 auto; min-height: 100dvh; padding: calc(24px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom)); display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 18px; align-items: center; }
.mq-wel-skip { position: absolute; top: calc(20px + env(safe-area-inset-top)); inset-inline-start: 20px; padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; color: var(--text-3); border: 1px solid var(--line); background: var(--surface); }
.mq-wel-logo { display: flex; justify-content: center; padding-top: 6px; }
.mq-wel-logo .brand-logo { height: 54px; width: auto; }
.mq-wel-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; scrollbar-width: none; align-self: center; outline: 0; }
.mq-wel-slides::-webkit-scrollbar { display: none; }
.mq-wel-card { flex: none; width: 100%; scroll-snap-align: center; text-align: center; display: grid; gap: 10px; }
.mq-wel-card h2 { margin: 10px 0 0; font-size: 24px; font-weight: 800; }
.mq-wel-card p { margin: 0 auto; max-width: 420px; font-size: 15px; color: var(--text-2); line-height: 1.9; }
.mq-wel-art { height: 230px; display: grid; place-items: center; border-radius: 28px; }
.mq-wel-art > * { position: relative; }
.mq-wel-art .lattice { position: absolute; opacity: .2; }
.mq-wel-price { display: grid; gap: 4px; width: 78%; justify-items: center; }
.mq-wel-price small { font-size: 13px; color: var(--cn-2); }
.mq-wel-price b { font-size: 46px; font-weight: 800; line-height: 1.1; }
.mq-wel-price svg { width: 100%; height: 56px; margin-top: 6px; }
.mq-wel-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 82%; }
.mq-wel-two > div { padding: 18px 10px; border-radius: 20px; background: var(--cn-fill); border: 1px solid var(--cn-line); display: grid; gap: 4px; justify-items: center; }
.mq-wel-two small { font-size: 12.5px; color: var(--cn-2); }
.mq-wel-two b { font-size: 26px; font-weight: 800; }
.mq-wel-two .ico-w { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-grad-soft); border: 1px solid var(--line-gold); color: var(--gold-ink); }
.mq-wel .mq-dots { display: flex; gap: 6px; justify-content: center; }
.mq-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 99px; background: var(--line-gold); cursor: pointer; transition: .3s var(--ease); }
.mq-dots button.on { width: 22px; background: var(--gold); }
.mq-wel-inst[hidden] { display: none; }
.mq-wel-inst .shell { padding: 0; }
.mq-wel .mq-btn { height: 54px; }
.mq-wel-card { animation: mq-rise .5s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .mq-wel-card { animation: none; } }

/* ---- calculator tabs ---- */
.wc-main { display: grid; gap: 14px; align-content: start; min-width: 0; }
.calc-kinds { padding-top: 2px; }
.calc-kinds .mq-chip { text-decoration: none; }
.calc-kinds { flex-wrap: wrap; }

/* ---- calculator: save box under a result, and the saved list ---- */
.wc-save { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.wc-save-label { flex: 1 1 160px; min-width: 0; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line, var(--divider)); background: var(--surface, transparent); color: inherit; font: inherit; }
.wc-saved { display: grid; gap: 10px; }
.wc-saved-row { border: 1px solid var(--line, var(--divider)); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.wc-saved-row header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; overflow-wrap: anywhere; }
.wc-saved-row p { margin: 0; }
.wc-saved-del { margin: 0; justify-self: start; }

/* ── Shops (phase 2): the directory list and a shop's page ─────────────────── */
.shop-search { display: flex; gap: 8px; margin: 4px 0 12px; }
.shop-search input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--line, var(--divider)); background: var(--surface, #fff); color: inherit; font: inherit; }
.shop-chips { margin-bottom: 8px; }
.shop-count { margin: 6px 2px; font-size: .85rem; }
.shop-list { display: grid; gap: 10px; }
.shop-card { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 14px; text-decoration: none; color: inherit; }
.shop-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2, #f3efe6); color: var(--gold-ink, #8a6a1c); border: 1px solid var(--line-gold, var(--divider)); }
.shop-mark.big { width: 64px; height: 64px; border-radius: 20px; }
.shop-body { min-width: 0; display: grid; gap: 3px; }
.shop-body b { font-size: .98rem; line-height: 1.45; }
.shop-body small { color: var(--text-3); font-size: .78rem; }
.shop-rate { display: inline-flex; gap: 4px; align-items: center; font-size: .8rem; color: var(--text-2, inherit); white-space: nowrap; }
.shop-rate svg { color: var(--gold-ink, #8a6a1c); }
.shop-head { display: flex; gap: 14px; align-items: center; padding: 18px; }
.shop-title h1 { margin: 0; font-size: 1.25rem; line-height: 1.4; }
.shop-title p { margin: 2px 0 0; }
.shop-actions { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.shop-info { display: grid; gap: 12px; padding: 16px; }
.shop-info p { margin: 0; display: grid; gap: 4px; }
.shop-info b { font-size: .8rem; color: var(--text-3); }
.shop-socials span { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-reviews { padding: 16px; display: grid; gap: 12px; }
.shop-reviews h2 { margin: 0; font-size: 1.05rem; }
.shop-review { border-top: 1px solid var(--divider); padding-top: 10px; display: grid; gap: 4px; }
.shop-review p { margin: 0; }
.shop-review .rate { display: inline-flex; gap: 3px; align-items: center; color: var(--gold-ink, #8a6a1c); margin-inline-start: 6px; }
.shop-review .reply { font-size: .88rem; background: var(--surface-2, #f3efe6); border-radius: 12px; padding: 8px 10px; }
/* ── gold / silver tabs (home, /prices) — 2026-10-11 ─────────────────────────────────────────
   Two pills over a glass track, each with the Mithqal bar in its own metal. The active pill is
   filled with that metal's gradient. Blocks that belong to a metal carry data-metal; mq.js
   fades the visible set out (.mq-metal-out) and the other set in (.mq-metal-in). Opacity and
   transform only, so the swap never reflows. */
.mq-dh-card { min-width: 0; }
.mq-metal-tabs { display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 10px; padding: 3px; border-radius: 16px; background: var(--glass, rgba(255, 255, 255, .06)); border: 1px solid var(--line, rgba(255, 255, 255, .12)); }
.mq-metal-tab { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 2px 18px; border: 0; border-radius: 13px; background: transparent; color: var(--text-2); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s, transform .2s; -webkit-tap-highlight-color: transparent; }
@media (min-width: 881px) { .mq-metal-tabs { margin-bottom: 14px; padding: 4px; border-radius: 18px; } .mq-metal-tab { min-height: 42px; padding: 3px 24px; font-size: 15px; gap: 9px; border-radius: 14px; } }
.mq-metal-tab img { display: block; width: 14px; height: 24px; object-fit: contain; transform: rotate(14deg); filter: saturate(.7) opacity(.75); transition: transform .3s var(--ease), filter .25s; }
@media (min-width: 881px) { .mq-metal-tab img { width: 17px; height: 29px; } }
.mq-metal-tab:active { transform: scale(.97); }
.mq-metal-tab[aria-selected='true'] img { transform: rotate(0deg) scale(1.08); filter: none; }
.mq-metal-tab[data-metal-tab='gold'][aria-selected='true'] { color: #1a1203; background: var(--gold-grad); box-shadow: 0 5px 14px var(--glow); }
.mq-metal-tab[data-metal-tab='silver'][aria-selected='true'] { color: #101a30; background: linear-gradient(115deg, #B7C3DA 0%, #E6ECF7 52%, #FFFFFF 100%); box-shadow: 0 5px 14px rgba(183, 195, 218, .28); }
.mq-metal-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[data-metal]#guest-ledger [hidden], .wallet-import[hidden] { display: none !important; }
.mq-metal-out { opacity: 0; transform: translateY(-6px); transition: opacity .14s ease, transform .14s ease; }
.mq-metal-in { animation: mq-metal-in .26s var(--ease) both; }
@keyframes mq-metal-in { from { opacity: 0; transform: translateY(12px) scale(.992); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mq-metal-out, .mq-metal-in { animation: none !important; transition: none !important; opacity: 1; transform: none; } .mq-metal-tab, .mq-metal-tab img { transition: none; } }
.wc-basis { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--gold-ink, #E2B854); background: var(--gold-grad-soft, rgba(226, 184, 84, .12)); border: 1px solid var(--line-gold, rgba(226, 184, 84, .3)); vertical-align: middle; }

/* ── the long-form article at the foot of the home page (2026-10-11) ───────────────────────── */
.mq-article { padding: 22px 22px 18px; line-height: 1.95; color: var(--text-2); }
.mq-article h2 { margin: 22px 0 8px; font-size: 19px; line-height: 1.5; color: var(--text); }
.mq-article h2:first-child { margin-top: 0; }
.mq-article p { margin: 0 0 10px; font-size: 14.5px; }
.mq-article ul { margin: 0 0 12px; padding-inline-start: 22px; font-size: 14.5px; }
.mq-article li { margin-bottom: 4px; }
.mq-article .formula { padding: 10px 14px; border-radius: 14px; background: var(--gold-grad-soft); border: 1px solid var(--line-gold); color: var(--text); font-weight: 700; }
.mq-article .prose-closing { margin-top: 14px; font-weight: 800; color: var(--text); }
.mq-article a { color: var(--gold-ink); text-decoration: underline; }

/* the header carries seven links now (the old menu came back): keep the sign-in pill on one line,
   and tighten the links where the bar gets short */
.mq-end .mq-btn { white-space: nowrap; }
/* 2026-10-14: the header share button and the built tabs (shops, wallet) made the bar wider than 1366px — tighten earlier and drop the two least-used links earlier */
@media (max-width: 1440px) { .mq-links { gap: 2px; } .mq-links a { padding: 8px 9px; font-size: 13.5px; } }
@media (max-width: 1320px) { .mq-links a[href="/guide"], .mq-links a[href="/contact"] { display: none; } }
@media (max-width: 960px) { .mq-links a[href="/about"] { display: none; } }

/* the silver line is silver: line, area, crosshair and the live dot (2026-10-11) */
.mq-chart-silver { --gold: #C3CEE3; --sl1: #9FB0CF; --sl2: #DDE5F3; --sl3: #FFFFFF; --glow: rgba(195, 206, 227, .28); }
:root[data-theme='light'] .mq-chart-silver { --gold: #6B7896; --sl1: #4A5670; --sl2: #6B7896; --sl3: #3D4863; --glow: rgba(107, 120, 150, .25); }
.mq-hero .mq-ranges:has(+ .mq-chart) { padding-top: 4px; padding-bottom: 8px; }

/* the two cards under the hero (ounce + mithqal, gold or silver) share the row 50 / 50 on a desktop —
   with the silver teaser gone the old three-column row left its third slot empty (2026-10-11) */
@media (min-width: 881px) { .mq-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 880px) { .mq-cards[data-metal='silver'] { grid-template-columns: 1fr 1fr; } }

/* the cards under the hero: a soft gradient from the metal's own tint, and — on a desktop — a lower
   mithqal card whose content sits in two columns (name and weight beside the prices) (2026-10-11) */
.mq-cards .mq-card { background-color: var(--surface); background-image: linear-gradient(135deg, var(--cg, rgba(226, 184, 84, .14)) 0%, rgba(226, 184, 84, 0) 62%); }
.mq-cards[data-metal='silver'] .mq-card { --cg: rgba(195, 206, 227, .16); background-image: linear-gradient(135deg, var(--cg) 0%, rgba(195, 206, 227, 0) 62%); }
:root[data-theme='light'] .mq-cards .mq-card { --cg: rgba(201, 150, 37, .13); }
:root[data-theme='light'] .mq-cards[data-metal='silver'] .mq-card { --cg: rgba(107, 120, 150, .13); }
@media (min-width: 881px) {
  .mq-cards .mq-ounce, .mq-cards .mq-mini { min-height: 118px; }
  .mq-cards .mq-mini { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; align-items: center; column-gap: 18px; padding: 16px 22px; }
  .mq-cards .mq-mini > div:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .mq-cards .mq-mini .pairs { grid-column: 2; grid-row: 1; justify-items: end; }
  .mq-cards .mq-mini > .s { grid-column: 2; grid-row: 2; text-align: end; }
}

/* the page background: faint washes of colour that drift slowly (38 s, there and back).
   The box is exactly the viewport (a box larger than it makes the page scroll sideways on a
   phone) and the washes live in a background twice its size whose position is what moves.
   Still under reduced motion (2026-10-11). */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-repeat: no-repeat; background-size: 170% 170%; background-position: 0% 0%; background-image: radial-gradient(26% 22% at 14% 20%, rgba(226, 184, 84, .10), rgba(226, 184, 84, 0) 100%), radial-gradient(28% 24% at 86% 76%, rgba(70, 120, 230, .14), rgba(70, 120, 230, 0) 100%), radial-gradient(22% 18% at 60% 8%, rgba(195, 206, 227, .05), rgba(195, 206, 227, 0) 100%); animation: mq-bg-drift 38s ease-in-out infinite alternate; }
:root[data-theme='light'] body::before { background-image: radial-gradient(26% 22% at 14% 20%, rgba(226, 184, 84, .17), rgba(226, 184, 84, 0) 100%), radial-gradient(28% 24% at 86% 76%, rgba(70, 120, 230, .08), rgba(70, 120, 230, 0) 100%), radial-gradient(22% 18% at 60% 8%, rgba(201, 150, 37, .08), rgba(201, 150, 37, 0) 100%); }
@keyframes mq-bg-drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }
@media print { body::before { display: none; } }
html body { background: transparent; }

/* a chart that has not arrived yet: the box keeps its height and shows a small spinner (2026-10-11) */
.mq-chart.loading::before { content: ''; position: absolute; z-index: 2; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .16); border-top-color: var(--gold); animation: mq-spin .8s linear infinite; pointer-events: none; }
:root[data-theme='light'] .mq-chart.loading::before { border-color: rgba(21, 53, 117, .14); border-top-color: var(--gold); }
@keyframes mq-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mq-chart.loading::before { animation-duration: 2.4s; } }
.mq-chart.loading .cl { display: none; }

.shop-flash { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: .9rem; }
.shop-flash.ok { background: color-mix(in srgb, #2e9e6b 16%, transparent); }
.shop-flash.err { background: color-mix(in srgb, #d14b4b 16%, transparent); }
.shop-review-form { display: grid; gap: 10px; }
.shop-review-form textarea, .shop-report select { width: 100%; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line, var(--divider)); background: var(--surface, #fff); color: inherit; font: inherit; }
.shop-stars { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.shop-stars legend { float: right; width: 100%; padding: 0 0 6px; font-weight: 700; }
.shop-stars input { position: absolute; opacity: 0; pointer-events: none; }
.shop-stars label { cursor: pointer; color: var(--line-gold, #bba76a); display: inline-flex; padding: 2px; }
.shop-stars label svg { fill: none; }
.shop-stars input:checked ~ label svg, .shop-stars label:hover svg, .shop-stars label:hover ~ label svg { fill: currentColor; color: var(--gold-ink, #8a6a1c); }
.shop-stars input:focus-visible + label { outline: 2px solid var(--gold-ink, #8a6a1c); border-radius: 8px; }
.shop-review-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-report { font-size: .82rem; }
.shop-report summary { cursor: pointer; color: var(--text-3); width: max-content; }
.shop-report form { display: grid; gap: 8px; margin-top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.my-shop { display: grid; gap: 10px; padding: 16px; margin-bottom: 12px; }
.my-shop-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.my-shop-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.my-shop-stats { margin: 0; font-size: .85rem; }
.shop-flash.pending { background: color-mix(in srgb, #d6a438 20%, transparent); }
.shop-owner-form { display: grid; gap: 12px; padding: 18px; }
.shop-owner-form h2 { margin: 0; font-size: 1.1rem; }
.shop-owner-form label { display: grid; gap: 4px; font-size: .85rem; color: var(--text-3); }
.shop-owner-form input, .shop-owner-form select, .shop-owner-form textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line, var(--divider)); background: var(--surface, #fff); color: var(--text, inherit); font: inherit; }
.shop-owner-form .two { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.shop-owner-cta { margin: 14px 0 6px; }

.wallet-intro { display: grid; gap: 10px; justify-items: start; padding: 22px; }
.wallet-intro h2 { margin: 0; }
.wallet-intro p { margin: 0; }
.wallet-summary { display: grid; gap: 10px; padding: 18px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.wallet-fig { display: grid; gap: 2px; }
.wallet-fig .lbl { font-size: .8rem; color: var(--text-3); }
.wallet-fig b { font-size: 1.35rem; }
.wallet-fig small { font-size: .75rem; font-weight: 500; }
.wallet-sub { grid-column: 1 / -1; margin: 0; font-size: .85rem; }
.wallet-limit { margin: 4px 2px; font-size: .85rem; }
.wallet-item { display: grid; gap: 8px; padding: 16px; margin-bottom: 10px; }
.wallet-item-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wallet-vals { margin: 0; display: grid; gap: 4px; font-size: .9rem; }
.wallet-item p { margin: 0; }
.wallet-item-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wallet-item-actions form, form.inline { display: inline; }
.wallet-stones { border: 1px solid var(--line, var(--divider)); border-radius: 14px; padding: 10px 12px; display: grid; gap: 8px; }
.wallet-stones legend { font-size: .85rem; padding: 0 6px; }
.wallet-zakat, .wallet-baskets { display: grid; gap: 8px; padding: 16px; margin-top: 12px; }
.wallet-zakat h2, .wallet-baskets h2 { margin: 0; font-size: 1.05rem; }
.wallet-zakat p { margin: 0; }
.basket-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.my-shop-reviews { display: grid; gap: 10px; border-top: 1px solid var(--divider); padding-top: 10px; }
.my-review { display: grid; gap: 6px; padding: 10px 0; border-top: 1px dashed var(--divider); }
.my-review p { margin: 0; }
.my-review .rate { display: inline-flex; gap: 3px; align-items: center; color: var(--gold-ink, #8a6a1c); margin-inline-start: 6px; }
.reply-form { display: grid; gap: 6px; }
.reply-form label { display: grid; gap: 4px; font-size: .8rem; color: var(--text-3); }
.reply-form textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line, var(--divider)); background: var(--surface, #fff); color: var(--text, inherit); font: inherit; }
.wallet-import { display: grid; gap: 10px; padding: 16px; margin-bottom: 12px; }
.wallet-import p { margin: 0; }
#guest-ledger [hidden], .wallet-import[hidden] { display: none !important; }
.shop-near { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 8px; }
.shop-dist { font-size: .8rem; color: var(--gold-ink, #8a6a1c); white-space: nowrap; }
.shop-cities { margin-top: -2px; }
.wallet-modes { margin: 4px 0 10px; }
.wallet-item h2, .wallet-item h3 { margin: 0; font-size: 1.05rem; }
.shop-logo { width: 64px; height: 64px; border-radius: 20px; object-fit: cover; border: 1px solid var(--line-gold, var(--divider)); background: #fff; }
.shop-gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.shop-gallery img { width: 100%; height: auto; border-radius: 16px; display: block; }
.my-shop-photos { display: grid; gap: 8px; border-top: 1px solid var(--divider); padding-top: 10px; }
.my-photo { margin: 0; display: flex; gap: 10px; align-items: center; }
.my-photo img { border-radius: 10px; object-fit: cover; flex: none; }
.my-photo figcaption { display: grid; gap: 4px; font-size: .85rem; }
.photo-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.photo-form input[type=file] { max-width: 100%; font: inherit; }

/* ---- paid placements in the shop directory: the label is always there ---- */
.ad-tag { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; font-size: .68rem; font-weight: 600; vertical-align: middle; color: var(--gold, #E2B854); border: 1px solid var(--line-gold, rgba(226, 184, 84, .4)); background: color-mix(in srgb, var(--gold, #E2B854) 12%, transparent); }
:root[data-theme='light'] .ad-tag { color: #7A5206; }
.shop-card-ad { border-color: var(--line-gold, rgba(226, 184, 84, .4)); }

/* ---- the price screen, 2026-10-13: tabs on top, a wide ounce strip, a two-column head, a two-column mithqal card ---- */
.mq-page > .mq-metal-tabs { margin: 0 auto 14px; }
.mq-ounce-wide { display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 12px 16px; padding-inline-end: 120px; position: relative; overflow: hidden; margin-bottom: 12px; }
.mq-ounce-wide[hidden] { display: none; }
.mq-ounce-wide .mq-oz-txt { flex: 1; min-width: 0; }
.mq-ounce-wide .s { margin-top: 2px; }
.mq-ounce-wide .chg { margin-top: 6px; }
.mq-ounce-wide .v { margin: 0; font-size: 24px; }
.mq-ounce-wide .bar { position: absolute; inset-inline-end: 16px; bottom: -30px; height: 100px; width: auto; transform: rotate(8deg); filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .4)); pointer-events: none; }
.mq-ounce-wide, .mq-mq { background-color: var(--surface); background-image: linear-gradient(135deg, var(--cg, rgba(226, 184, 84, .14)) 0%, rgba(226, 184, 84, 0) 62%); }
.mq-silver-oz, .mq-silver-mq { --cg: rgba(195, 206, 227, .16); background-image: linear-gradient(135deg, var(--cg) 0%, rgba(195, 206, 227, 0) 62%); }
:root[data-theme='light'] .mq-ounce-wide, :root[data-theme='light'] .mq-mq { --cg: rgba(201, 150, 37, .13); }
:root[data-theme='light'] .mq-silver-oz, :root[data-theme='light'] .mq-silver-mq { --cg: rgba(107, 120, 150, .13); }
@media (max-width: 520px) {
  .mq-ounce-wide { padding-inline-end: 104px; gap: 8px; }
  .mq-ounce-wide .s { display: none; }
  .mq-ounce-wide .t { white-space: nowrap; font-size: 11.5px; }
  .mq-ounce-wide .v { font-size: 20px; }
  .mq-ounce-wide .chg { font-size: 11px; }
}
.mq-mini.mq-mq { display: block; min-height: 0; padding: 12px 16px; }
.mq-mq-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.mq-mq-h span { font-size: 11.5px; color: var(--text-2); }
.mq-mq-c { display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; }
.mq-mq-c > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 14px; }
.mq-mq-c small { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.mq-mq-c .sellv, .mq-mq-c .buyv { display: block; font-size: 21px; font-weight: 800; color: var(--text); line-height: 1.3; }
.mq-mq-c .sellv.gold-text { color: transparent; }
.mq-dh { align-items: stretch; }
.mq-dh-card { display: flex; flex-direction: column; }
.mq-dh-card > [hidden], .mq-dh-mq > [hidden] { display: none; }
.mq-dh-card > .mq-hero { flex: 1 1 auto; }
@media (max-width: 880px) { .mq-dh { gap: 12px; padding: 0; } .mq-dh-card { order: 1; } .mq-dh-mq { order: 2; } }
@media (min-width: 881px) {
  .mq-dh { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: 1fr auto; grid-template-areas: "copy card" "mq card"; gap: 14px 28px; padding-top: 8px; }
  .mq-dh-copy { grid-area: copy; align-self: start; }
  .mq-dh-card { grid-area: card; }
  .mq-dh-mq { grid-area: mq; align-self: end; }
  .mq-dh h1 { font-size: 34px; line-height: 1.35; margin: 6px 0 4px; }
  .mq-dh .lead { font-size: 14.5px; line-height: 1.8; margin: 0 0 12px; }
  .mq-dh .mq-ctas .mq-btn { height: 44px; padding: 0 20px; }
  .mq-dh .mq-facts { margin-top: 10px; gap: 24px; }
  .mq-dh .mq-facts b { font-size: 22px; }
  .mq-dh-card > .mq-hero .mq-spark { flex: 1 1 auto; height: auto; min-height: 130px; }
  .mq-dh-card > .mq-hero { display: flex; flex-direction: column; }
}
.mq-metal-tab[data-metal-link='gold'][aria-selected='true'] { color: #1a1203; background: var(--gold-grad); box-shadow: 0 5px 14px var(--glow); }
.mq-metal-tab[data-metal-link='silver'][aria-selected='true'] { color: #101a30; background: linear-gradient(115deg, #B7C3DA 0%, #E6ECF7 52%, #FFFFFF 100%); box-shadow: 0 5px 14px rgba(195, 206, 227, .28); }
.mq-metal-tab[aria-selected='true'] img { transform: rotate(0deg) scale(1.08); filter: none; }
a.mq-metal-tab { text-decoration: none; }
.calc-metal { margin: 0 auto 14px; }

/* ── 2026-10-14: ounce box with its line, desktop table card, desktop news carousel, share in the header ── */
.mq-hero-oz { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 20px; min-height: 76px; border-radius: 16px; background: var(--cn-fill, rgba(255, 255, 255, .07)); border: 1px solid var(--cn-line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mq-hero-oz .bar { height: 52px; margin-block: -6px; width: auto; transform: rotate(8deg); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); flex: none; }
.mq-hero-oz .t { display: grid; gap: 1px; min-width: 0; margin-inline-end: auto; }
.mq-hero-oz .t b { font-size: 13px; font-weight: 800; color: var(--cn-1); }
.mq-hero-oz .t small { font-size: 11px; color: var(--cn-2); }
.mq-hero-oz .chg { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.mq-hero-oz .chg.up { color: var(--up); background: color-mix(in srgb, var(--up) 16%, transparent); }
.mq-hero-oz .chg.down { color: var(--down); background: color-mix(in srgb, var(--down) 16%, transparent); }
.mq-hero-oz .chg.flat { display: none; }
.mq-hero-oz .v { direction: ltr; font-size: 22px; font-weight: 800; color: var(--cn-1); white-space: nowrap; }
.mq-hero-oz .v .cur { margin-inline-end: 2px; opacity: .8; }
@media (max-width: 420px) { .mq-hero-oz .v { font-size: 19px; } .mq-hero-oz .t small { display: none; } }
.mq-sharerow .mq-sharebtn[data-share-open] { margin: 0; }
.mq-silver-hero .mq-sharerow { display: flex; justify-content: center; padding: 2px 0 20px; position: relative; z-index: 2; }

.mq-tblwrap { display: grid; gap: 12px; align-content: start; }
@media (min-width: 881px) {
  .mq-tblwrap { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
  .mq-tblwrap > .mq-karats { padding: 14px 22px; border-bottom: 1px solid var(--line); flex: none; }
  .mq-tblwrap > .mq-rows { border: 0; border-radius: 0; box-shadow: none; background: transparent; flex: 1 1 auto; display: flex; flex-direction: column; }
  .mq-tblwrap > .mq-rows .prow { flex: 1 1 auto; }
  .mq-tblwrap > .mq-rows .rowh, .mq-tblwrap > .mq-rows .ht-foot { flex: none; }
  /* the table stands as tall as the column beside it */
  #table > .mq-split { align-items: stretch; }
  #table > .mq-split > aside { position: static; }
  #table > .mq-split > .mq-stack:first-child { grid-template-rows: 1fr; align-content: stretch; }
}

.mq-ncar { position: relative; }
.mq-ncar-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 10px; outline: none; }
.mq-ncar-track::-webkit-scrollbar { display: none; }
.mq-ncar-track .mq-nc { flex: 0 0 calc((100% - 42px) / 4); scroll-snap-align: start; }
.mq-ncar-track .mq-nc .nb { padding: 11px 13px 13px; gap: 5px; }
.mq-ncar-track .mq-nc .nb b { font-size: 13.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mq-ncar-track .mq-nc .nb small, .mq-ncar-track .mq-nc .meta { font-size: 11px; }
.mq-ncar-b { position: absolute; top: 38%; z-index: 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-gold); color: var(--text); box-shadow: var(--shadow); cursor: pointer; transition: .2s var(--ease); }
.mq-ncar-b:hover { background: var(--gold-grad-soft); }
.mq-ncar-b.prev { inset-inline-start: -14px; }
.mq-ncar-b.next { inset-inline-end: -14px; }
.mq-ncar-b.prev .ico { transform: scaleX(-1); }
.mq-ncar-b[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 1100px) { .mq-ncar-track .mq-nc { flex-basis: calc((100% - 28px) / 3); } }
#share-sheet[data-metal='silver'] .share-opts__group { display: none; }

/* 2026-10-14: the pitch column (right, desktop) breathes — more air between headline, text, buttons and facts */
@media (min-width: 881px) {
  .mq-dh-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding-block: 8px; }
  .mq-dh h1 { margin: 20px 0 16px; line-height: 1.5; }
  .mq-dh .lead { margin: 0 0 28px; line-height: 2.05; }
  .mq-dh .mq-ctas { gap: 14px; margin-bottom: 8px; }
  .mq-dh .mq-facts { margin-top: 26px; gap: 34px; }
}

/* the ounce box: on a phone / PWA the day's move sits under the price (two lines), not beside it */
.mq-hero-oz .vc { display: flex; align-items: center; gap: 10px; }
@media (max-width: 880px) { .mq-hero-oz .vc { flex-direction: column-reverse; align-items: flex-end; gap: 4px; } }

/* 21-karat box, enlarged: gram and mithqal rows, each sell | buy (2026-10-14) */
.mq-mini.mq-mq.mq-mq-big { padding: 18px 20px; }
.mq-mq-big .mq-mq-h { font-size: 16px; align-items: center; }
.mq-mq-big .mq-mq-h .chg { margin-inline-start: auto; font-size: 12px; font-weight: 700; }
.mq-mq-big .mq-mq-h .chg.up { color: var(--up); }
.mq-mq-big .mq-mq-h .chg.down { color: var(--down); }
.mq-mq-big .mq-mq-r { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.mq-mq-big .mq-mq-r em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--text-2, var(--text-3)); }
.mq-mq-big .mq-mq-c .sellv, .mq-mq-big .mq-mq-c .buyv { font-size: 26px; }
@media (max-width: 420px) { .mq-mq-big .mq-mq-c .sellv, .mq-mq-big .mq-mq-c .buyv { font-size: 22px; } }

/* the ounce in the hero, in the gram's old design: bar + label, big counter figure, no inner box */
.mq-hero .mq-oz-lbl { display: flex; align-items: center; gap: 10px; }
.mq-hero .mq-oz-lbl .bar { height: 46px; width: auto; transform: rotate(8deg); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); flex: none; }
.mq-hero .mq-oz-lbl > span { font-size: 14px; font-weight: 700; color: var(--cn-1); }
.mq-hero .mq-hero-top > .chg { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mq-hero .mq-hero-top > .chg.up { color: var(--up); background: color-mix(in srgb, var(--up) 16%, transparent); }
.mq-hero .mq-hero-top > .chg.down { color: var(--down); background: color-mix(in srgb, var(--down) 16%, transparent); }
.mq-hero .mq-hero-top > .chg.flat { display: none; }
.mq-price-oz { direction: ltr; justify-content: flex-end; }
.mq-price-oz .cur { font-size: 28px; font-weight: 700; color: var(--cn-2); }
/* the 21-karat box carries the brand pattern too */
.mq-mq-big { overflow: hidden; }
.mq-mq-big .lattice { opacity: .12; }
.mq-mq-big > *:not(.lattice) { position: relative; z-index: 1; }

/* shorter boxes (2026-10-14): the 21-karat rows are one line each — label | sell | buy — and the ounce figure is a notch smaller */
.mq-mini.mq-mq.mq-mq-big { padding: 12px 18px; }
.mq-mq-big .mq-mq-h { font-size: 15px; }
.mq-mq-big .mq-mq-r { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; }
.mq-mq-big .mq-mq-r em { font-size: 12px; line-height: 1.4; }
.mq-mq-big .mq-mq-r em .num { display: block; font-size: 11px; font-weight: 600; color: var(--text-3); }
.mq-mq-big .mq-mq-c { margin-top: 0; }
.mq-mq-big .mq-mq-c small { display: inline; margin-inline-end: 6px; }
.mq-mq-big .mq-mq-c .sellv, .mq-mq-big .mq-mq-c .buyv { font-size: 21px; line-height: 1.25; }
@media (min-width: 881px) {
  .mq-hero .mq-price-oz .num { font-size: 60px; }
  .mq-dh-card > .mq-hero .mq-spark { min-height: 110px; }
}
.mq-mq-big .mq-mq-c > div { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.mq-mq-big .mq-mq-c > div + div { padding-inline-start: 12px; }
.mq-mq-big .mq-mq-c small { margin-inline-end: 0; }
.mq-mq-big .mq-mq-c .sellv, .mq-mq-big .mq-mq-c .buyv { display: inline; }

/* the notes under the price table: tight, small, one under the other (2026-10-14) */
.mq-notes { display: grid; gap: 0; margin-top: -4px; }
.mq-notes .mq-note { font-size: 11px; line-height: 1.6; padding: 0 4px; }

/* ---- shop directory, second pass (2026-10-14) ---- */
/* The card: the icon top-right, the name and the place at most two lines each, the paid mark
   pinned top-left as a gold pill. */
.shop-card { position: relative; grid-template-columns: auto 1fr; align-items: start; }
.shop-slide { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; text-decoration: none; color: inherit; }
.shop-body b, .shop-body small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.shop-card-ad .shop-body { padding-left: 54px; }
.shop-meta { display: flex; gap: 10px; align-items: center; margin-top: 3px; }
.ad-tag { border: 0; background: linear-gradient(135deg, #C99625, #F3D58A); color: #1A1203; font-weight: 700; }
:root[data-theme='light'] .ad-tag { color: #1A1203; }
.ad-tag.corner { position: absolute; top: 10px; left: 10px; margin: 0; }

/* The search box with its clear button (the button sits at the end of the field, on the left in RTL). */
.shop-search-box { position: relative; flex: 1; min-width: 0; display: block; }
.shop-search-box input { width: 100%; box-sizing: border-box; padding-left: 44px; }
.shop-search-box input::-webkit-search-cancel-button { display: none; }
.shop-search-clear { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 12px; background: transparent; color: var(--text-3, inherit); display: grid; place-items: center; cursor: pointer; }
.shop-search-clear[hidden] { display: none; }
.shop-search-clear:hover { color: var(--gold-ink, #8a6a1c); }

/* Social links: an icon each, two to a row. */
.shop-socials span { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shop-soc { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; text-decoration: none; }
.shop-soc .ico { color: var(--gold-ink, #8a6a1c); flex: none; }
