/* MetalRates portal styles, 1.4.0 "assay office" look (Arslan approved 2026-10-13: Zilla Slab + Lato, dark default
   with a light theme). Gold only where metal is; rules instead of floating cards; prices in tabular figures.
   Dark tokens sit on the root (default); html[data-mr-theme="light"] swaps them. Kadence's --global-paletteN are
   re-pointed at the same tokens so theme parts (header, body text, links) follow the switch. */

html:not([data-mr-theme="light"]) {
	--mr-bg: #10161e; --mr-surface: #161e28; --mr-ink: #eef1f5; --mr-ink-2: #9aa5b4; --mr-rule: #2a3442; --mr-rule-strong: #d5dbe3;
	--mr-gold: #d6a548; --mr-gold-hi: #f0cd7c; --mr-gold-lo: #8a5f14;
	--mr-btn-bg: #d6a548; --mr-btn-fg: #10161e; --mr-btn-hover: #f0cd7c;
	--mr-up: #4cc28a; --mr-down: #f07a6c; --mr-code-inline: #1d2733;
	--global-palette1: #d6a548; --global-palette2: #f0cd7c; --global-palette3: #eef1f5; --global-palette4: #d5dbe3;
	--global-palette5: #9aa5b4; --global-palette6: #7c8796; --global-palette7: #2a3442; --global-palette8: #10161e; --global-palette9: #161e28;
	--global-palette-btn: #10161e; --global-palette-btn-hover: #10161e;
	color-scheme: dark;
}
html[data-mr-theme="light"] {
	--mr-bg: #eceef1; --mr-surface: #f7f8fa; --mr-ink: #131c28; --mr-ink-2: #4a5566; --mr-rule: #c5cbd3; --mr-rule-strong: #131c28;
	--mr-gold: #a8741a; --mr-gold-hi: #e2b85a; --mr-gold-lo: #7a520e;
	--mr-btn-bg: #131c28; --mr-btn-fg: #f7f8fa; --mr-btn-hover: #7a520e;
	--mr-up: #1f7a4d; --mr-down: #b3382c; --mr-code-inline: #dfe3e8;
	--global-palette1: #a8741a; --global-palette2: #7a520e; --global-palette3: #131c28; --global-palette4: #1f2a38;
	--global-palette5: #4a5566; --global-palette6: #6b7685; --global-palette7: #c5cbd3; --global-palette8: #eceef1; --global-palette9: #f7f8fa;
	--global-palette-btn: #f7f8fa; --global-palette-btn-hover: #ffffff;
	color-scheme: light;
}
:root { --mr-mono: "Source Code Pro", ui-monospace, Consolas, monospace; --mr-code-bg: #0b1017; --mr-code-fg: #dfe4ea; }

body, .site, .content-bg, body.content-style-unboxed .site { background: var(--mr-bg); color: var(--mr-ink); }
body { font-variant-numeric: lining-nums tabular-nums; }
.site-header-row-container-inner, .site-main-header-wrap .site-header-row-container-inner, #mobile-header .site-header-row-container-inner { background: var(--mr-surface) !important; }
#mobile-drawer .drawer-inner { background: var(--mr-surface); }
h1, h2, h3, h4 { color: var(--mr-ink); text-wrap: balance; }
a { color: var(--mr-gold); }
:focus-visible { outline: 2px solid var(--mr-gold); outline-offset: 3px; }

/* ---------- Header button and all primary buttons ---------- */
.wp-block-button__link, .mr-btn, .header-button, .mobile-header-button-wrap .button {
	background: var(--mr-btn-bg) !important; color: var(--mr-btn-fg) !important; border: 1.5px solid var(--mr-btn-bg) !important;
	border-radius: 2px !important; font-weight: 700; box-shadow: none !important; transition: background .15s ease, border-color .15s ease;
}
.wp-block-button__link:hover, .mr-btn:hover, .header-button:hover { background: var(--mr-btn-hover) !important; border-color: var(--mr-btn-hover) !important; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent !important; color: var(--mr-ink) !important; border-color: var(--mr-ink) !important; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--mr-ink) !important; color: var(--mr-bg) !important; }
.mr-btn { display: inline-block; padding: .8em 1.4em; cursor: pointer; text-decoration: none; font-size: 1rem; }
.mr-btn-primary { background: var(--mr-btn-bg); color: var(--mr-btn-fg); }

/* ---------- Price strip + theme switch ---------- */
.mr-strip { display: flex; align-items: stretch; border-bottom: 1px solid var(--mr-rule); background: var(--mr-bg); }
.mr-tape { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.mr-tape-in { display: flex; gap: 34px; width: max-content; padding: 9px 0 9px 20px; font-size: 13px; line-height: 1; color: var(--mr-ink-2); animation: mr-tape 55s linear infinite; }
.mr-tape-in span { white-space: nowrap; }
.mr-tape-dup { display: contents; }
.mr-tape b { color: var(--mr-ink); font-weight: 700; }
.mr-tape:hover .mr-tape-in { animation-play-state: paused; }
@keyframes mr-tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mr-tape-in { animation: none; } }
.mr-theme-switch {
	flex: 0 0 auto; border: 0; border-left: 1px solid var(--mr-rule); background: var(--mr-surface); color: var(--mr-ink);
	font: 700 12px/1 var(--global-body-font-family, sans-serif); letter-spacing: .04em; padding: 0 16px; cursor: pointer;
}
.mr-theme-switch:hover { color: var(--mr-gold); }
.mr-ts-light { display: none; }
html[data-mr-theme="light"] .mr-ts-light { display: inline; }
html[data-mr-theme="light"] .mr-ts-dark { display: none; }

/* ---------- Sections ---------- */
.mr-section { padding-block: clamp(44px, 6vw, 80px); border-top: 1px solid var(--mr-rule); }
.entry-content .alignfull.mr-section { padding-left: var(--global-content-edge-padding, 1.5rem); padding-right: var(--global-content-edge-padding, 1.5rem); }
.entry-content > .wp-block-group.alignfull.mr-section { margin-top: 0; margin-bottom: 0; }
.mr-page .content-container, .mr-page .entry-content-wrap { padding-top: 0; padding-bottom: 0; }
.mr-page .entry-content > .wp-block-group.alignfull:first-child { margin-top: 0; border-top: 0; }
.mr-section-tight { padding-block: clamp(32px, 4vw, 56px); }
.mr-alt { background: var(--mr-surface); }
.mr-dark { background: var(--mr-surface); }
.mr-muted, .mr-dark .mr-muted { color: var(--mr-ink-2); }
.mr-small { font-size: .85rem; }
.mr-lead { font-size: 1.12rem; color: var(--mr-ink-2); }
/* Constrained layouts centre narrower children, so line length is limited with right padding to keep the left edge. */
.mr-section > h1, .mr-hero > p, .mr-section > .mr-lead { padding-right: max(0px, calc(100% - 780px)); }
.mr-center { text-align: left; }

.mr-hero { padding-block: clamp(44px, 7vw, 88px); background: var(--mr-bg); }
.mr-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.06; letter-spacing: -.01em; margin-bottom: .45em; }
.mr-hero h1 em { font-style: normal; color: inherit; }
.mr-hero p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--mr-ink-2); }
.mr-hero .wp-block-columns { align-items: center; gap: 56px; }
.mr-fine { font-size: .9rem !important; color: var(--mr-ink-2); }

/* Side heading + content, the backbone of the homepage. */
.mr-split { gap: 48px !important; }
@media (min-width: 782px) { .mr-split > .wp-block-column:first-child { flex: 0 0 300px !important; } .mr-split > .wp-block-column:last-child { min-width: 0; } }
.mr-split h2 { font-size: 1.9rem; margin-top: 0; }
.mr-split > .wp-block-column:first-child p { color: var(--mr-ink-2); }
.mr-more { font-weight: 700; text-decoration: none; }
.mr-more::after { content: " \2192"; }

/* No pills: an eyebrow, where one is left, is plain small caps text. */
.mr-eyebrow-wrap { margin-bottom: 10px; }
.mr-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mr-gold); }

/* ---------- Gold bar ---------- */
.mr-bar-stage { display: grid; gap: 14px; justify-items: center; }
.mr-bar {
	width: min(100%, 440px); aspect-ratio: 2.15 / 1; position: relative; color: #3b2706; text-align: center;
	background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0) 38%), linear-gradient(100deg, #7a520e 0%, #e2b85a 28%, #f6dc9a 46%, #a8741a 70%, #7a520e 100%);
	clip-path: polygon(9% 0, 91% 0, 100% 100%, 0 100%); display: grid; place-content: center; gap: 4px;
}
.mr-bar::after { content: ""; position: absolute; inset: 9% 13% 11%; border: 1.5px solid rgba(59,39,6,.35); clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%); }
.mr-bar-stamp { font: 700 13px/1 var(--global-heading-font-family, serif); letter-spacing: .22em; }
.mr-bar-price { font-weight: 800; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.05; }
.mr-bar-per { font-weight: 700; font-size: 12px; letter-spacing: .08em; }
.mr-bar-cap { font-size: 14px; color: var(--mr-ink-2); text-align: center; margin: 0; }

/* ---------- Hallmark grid ---------- */
.mr-marks { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--mr-rule-strong); }
.mr-mark { padding: 18px 16px 20px; border-bottom: 1px solid var(--mr-rule); border-right: 1px solid var(--mr-rule); display: grid; gap: 10px; }
.mr-mark:nth-child(4n) { border-right: 0; }
.mr-punch { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; line-height: 1; padding: 6px 9px; border: 1.5px solid var(--mr-ink); border-radius: 9px 2px 9px 2px; }
.mr-punch small { font-size: 11px; letter-spacing: .1em; color: var(--mr-ink-2); }
.mr-mark-sar { font-weight: 700; font-size: 22px; line-height: 1; }
.mr-mark-usd { font-size: 14px; line-height: 1; color: var(--mr-ink-2); }
@media (max-width: 781px) {
	.mr-marks { grid-template-columns: repeat(2, 1fr); }
	.mr-mark:nth-child(4n) { border-right: 1px solid var(--mr-rule); }
	.mr-mark:nth-child(2n) { border-right: 0; }
}

/* ---------- Cards become ruled blocks ---------- */
.mr-cards { gap: 28px !important; }
.mr-card { background: transparent; border: 0; border-top: 2px solid var(--mr-rule-strong); border-radius: 0; padding: 18px 0 8px; height: 100%; box-shadow: none; }
.mr-card h3 { font-size: 1.25rem; margin: 0 0 .4em; }
.mr-card > * { margin-block: 0 10px !important; }
.mr-card p { color: var(--mr-ink-2); margin-bottom: .8em; }
.mr-card .mr-card-link { font-weight: 700; text-decoration: none; }
.mr-card .mr-card-link::after { content: " \2192"; }
.mr-card a:hover h3, .mr-card .mr-card-link:hover { color: var(--mr-gold); }
/* Element symbols (Au, Ag, FX) as small hallmark punches, not icon tiles. */
.mr-card-icon { display: inline-block; font-weight: 700; font-size: 14px; line-height: 1; padding: 6px 9px; margin: 0 0 12px; border: 1.5px solid var(--mr-ink); border-radius: 9px 2px 9px 2px; color: var(--mr-ink); }

/* ---------- Live rate cards (kept for other pages) ---------- */
.mr-rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 8px; }
.mr-rate-card { border-top: 2px solid var(--mr-rule-strong); padding: 14px 0; color: inherit; }
.mr-rate-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mr-gold); font-weight: 700; }
.mr-rate-value { font-weight: 800; font-size: 1.7rem; line-height: 1.2; margin: 6px 0 2px; }
.mr-rate-sub { font-size: .92rem; color: var(--mr-ink-2); }
.mr-rate-time { font-size: .78rem; color: var(--mr-ink-2); margin-top: 8px; }
.mr-fx { list-style: none; margin: 8px 0 0; padding: 0; font-size: .95rem; }
.mr-fx li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--mr-rule); }
.mr-rates-note { font-size: .85rem; margin-top: 12px; }
.mr-up { color: var(--mr-up); }
.mr-down { color: var(--mr-down); }

/* ---------- Code (always dark, both themes) ---------- */
.mr-code { background: var(--mr-code-bg); border: 1px solid #1c2531; border-radius: 3px; overflow: hidden; margin: 1.2em 0; color: var(--mr-code-fg); }
.mr-code-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; border-bottom: 1px solid #1c2531; font-size: .82rem; color: #8d98a8; min-height: 42px; }
.mr-code pre { margin: 0; padding: 18px 20px; background: transparent; color: inherit; overflow-x: auto; font: 400 .88rem/1.65 var(--mr-mono); border: 0; border-radius: 0; }
.mr-code code { font-family: inherit; background: none; color: inherit; padding: 0; }
.mr-code [role="tablist"] { display: flex; flex-wrap: wrap; }
.mr-code [role="tab"], .mr-copy { background: transparent; color: #8d98a8; border: 0; border-radius: 0; padding: 13px 12px; font: 600 .8rem/1 var(--mr-mono); cursor: pointer; }
.mr-code [role="tab"][aria-selected="true"] { color: #fff; box-shadow: inset 0 -2px 0 #e2b85a; }
.mr-copy { border: 1px solid #2a3442; border-radius: 2px; padding: 6px 10px; }
.mr-copy:hover, .mr-code [role="tab"]:hover { color: #fff; }
.mr-code-response pre { max-height: 520px; }
:not(pre) > code { font-family: var(--mr-mono); font-size: .86em; background: var(--mr-code-inline); color: var(--mr-ink); padding: 2px 6px; border-radius: 2px; }

/* ---------- Tables: rules, no boxes ---------- */
.mr-table-wrap, .mr-section .wp-block-table { overflow-x: auto; border: 0; border-radius: 0; background: transparent; }
.mr-table, .mr-section .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.mr-table th, .mr-table td, .mr-section .wp-block-table th, .mr-section .wp-block-table td { padding: 11px 14px 11px 0; text-align: left; border: 0; border-bottom: 1px solid var(--mr-rule); }
.mr-table thead th, .mr-section .wp-block-table thead th { background: transparent; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mr-ink-2); border-bottom: 2px solid var(--mr-rule-strong); }
.mr-section .wp-block-table thead { border-bottom: 0; }
.mr-section .wp-block-table td code { white-space: nowrap; }
.mr-table td:not(:first-child) { font-weight: 600; }

/* ---------- Pricing ---------- */
.mr-price { position: relative; display: flex; flex-direction: column; }
.mr-price.mr-featured { border-top-color: var(--mr-gold); border-top-width: 4px; }
.mr-price .mr-badge { display: inline-block; align-self: flex-start; color: var(--mr-gold); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.mr-price-amount { font-weight: 800; font-size: 2.2rem; line-height: 1.1; color: var(--mr-ink); margin: .2em 0; }
.mr-price-amount small { font-size: .95rem; font-weight: 400; color: var(--mr-ink-2); }
.mr-price ul, .mr-price ul.wp-block-list { list-style: none; padding: 0; margin: 1em 0 1.4em; }
.mr-price li { padding: 6px 0 6px 22px; position: relative; color: var(--mr-ink); border-bottom: 1px solid var(--mr-rule); }
.mr-price li::before { content: "\2013"; position: absolute; left: 0; color: var(--mr-gold); font-weight: 700; }
.mr-price .wp-block-buttons { margin-top: auto; }
.mr-price .mr-badge + * { margin-top: 0 !important; }

/* ---------- Lists ---------- */
.mr-steps { counter-reset: mrstep; list-style: none; padding: 0; }
.mr-steps li { counter-increment: mrstep; position: relative; padding: 0 0 16px 40px; }
.mr-steps li::before { content: counter(mrstep); position: absolute; left: 0; top: 0; font-weight: 800; font-size: 1.1rem; color: var(--mr-gold); font-family: var(--global-heading-font-family, serif); }
.mr-checklist { list-style: none; padding: 0; border-top: 2px solid var(--mr-rule-strong); }
.mr-checklist li { padding: 9px 0 9px 22px; position: relative; border-bottom: 1px solid var(--mr-rule); }
.mr-checklist li::before { content: "\2013"; position: absolute; left: 0; color: var(--mr-gold); font-weight: 700; }

/* ---------- FAQ ---------- */
.mr-faq { border-top: 2px solid var(--mr-rule-strong); }
.mr-faq .wp-block-details { border: 0; border-bottom: 1px solid var(--mr-rule); border-radius: 0; padding: 16px 0; margin: 0; background: transparent; }
.mr-faq .wp-block-details summary { font-weight: 700; cursor: pointer; }
.mr-faq .wp-block-details[open] summary { margin-bottom: 8px; }
.mr-faq .wp-block-details p { color: var(--mr-ink-2); }

/* ---------- Forms ---------- */
.mr-form { display: grid; gap: 16px; max-width: 640px; }
.mr-field label, .mr-field legend { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.mr-field input[type="text"], .mr-field input[type="email"], .mr-field input[type="url"], .mr-field select, .mr-field textarea {
	width: 100%; padding: 11px 13px; border: 1px solid var(--mr-rule); border-bottom: 2px solid var(--mr-ink-2); border-radius: 2px; font: inherit; background: var(--mr-surface); color: var(--mr-ink);
}
.mr-field input:focus, .mr-field select:focus, .mr-field textarea:focus { outline: 2px solid var(--mr-gold); outline-offset: 1px; }
.mr-field fieldset { border: 0; padding: 0; margin: 0; }
.mr-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; font-weight: 400; }
.mr-checks label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 0; }
.mr-req { color: var(--mr-down); }
.mr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mr-notice { padding: 14px 18px; border-left: 3px solid; margin-bottom: 16px; background: var(--mr-surface); }
.mr-notice-ok { border-color: var(--mr-up); }
.mr-notice-err { border-color: var(--mr-down); }

/* ---------- Docs ---------- */
.mr-endpoint { font-family: var(--mr-mono); font-size: .95rem; background: var(--mr-surface); border: 1px solid var(--mr-rule); border-radius: 2px; padding: 10px 14px; display: inline-block; }
.mr-endpoint b { color: var(--mr-up); margin-right: 8px; }
.mr-docs-nav { position: sticky; top: 100px; font-size: .95rem; }
.mr-docs-nav ul { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--mr-rule-strong); }
.mr-docs-nav li a { display: block; padding: 7px 0; text-decoration: none; color: var(--mr-ink-2); border-bottom: 1px solid var(--mr-rule); }
.mr-docs-nav li a:hover { color: var(--mr-gold); }
@media (min-width: 782px) {
	.mr-docs > .wp-block-column:first-child { flex: 0 0 220px !important; }
	.mr-docs > .wp-block-column:last-child { flex: 1 1 auto !important; min-width: 0; }
}

/* ---------- Misc ---------- */
.mr-unavailable { font-style: italic; }
.mr-shot { margin: 0; }
.mr-shot img { border-radius: 2px; border: 1px solid var(--mr-rule); }
.mr-status { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.mr-status-live { color: var(--mr-up); }
.mr-status-planned { color: var(--mr-ink-2); }
.mr-status-live::before { content: "\25CF  "; }
.mr-status-planned::before { content: "\25CB  "; }

@media (max-width: 781px) {
	.mr-docs-nav { position: static; }
	.mr-hero .wp-block-columns { gap: 32px; }
	.mr-split { gap: 20px !important; }
}

/* Dark theme uses the light-text logo (media 7). */
html:not([data-mr-theme="light"]) img.custom-logo { content: url("/wp-content/uploads/2026/10/logo-light.png"); }
.mr-bar-cap code { white-space: nowrap; }
