/*
Theme Name: AuPMB
Theme URI: https://aupmb.com/
Author: AuPMB
Description: Lightweight custom block theme for AuPMB — Gold & Precious Metals Buyers. White canvas, charcoal type, restrained gold accents. No page builder.
Version: 0.2.4
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
License: Proprietary
Text Domain: aupmb
*/

/* Palette and type scale live in theme.json; this file holds layout and
   component styles only. Colour variables below alias the theme.json presets. */
:root {
  --au-white: var(--wp--preset--color--white);
  --au-charcoal: var(--wp--preset--color--charcoal);
  --au-ink: var(--wp--preset--color--ink);
  --au-muted: var(--wp--preset--color--muted);
  --au-gold: var(--wp--preset--color--gold);
  --au-gold-deep: var(--wp--preset--color--gold-deep);
  --au-gold-light: var(--wp--preset--color--gold-light); /* gold that passes AA on charcoal */
  --au-on-dark: #e4e4e4;
  --au-on-dark-muted: #cfcfcf;
  --au-gold-tint: var(--wp--preset--color--gold-tint);
  --au-surface: var(--wp--preset--color--surface);
  --au-line: var(--wp--preset--color--line);
  --au-radius: 4px;
  --au-gutter: clamp(16px, 4vw, 32px);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { overflow-x: clip; }
img, svg { max-width: 100%; height: auto; }

/* Focus — visible on every interactive element */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--au-gold); outline-offset: 3px; border-radius: 2px;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; background: var(--au-charcoal); color: #fff; padding: 12px 18px; text-decoration: none; }

/* ---------- Section rhythm ---------- */
.aupmb-section { padding-block: clamp(48px, 7vw, 96px); }
.aupmb-section--tight { padding-block: clamp(28px, 4vw, 48px); }
.aupmb-section--surface { background: var(--au-surface); }
.aupmb-section--dark { background: var(--au-charcoal); color: var(--au-on-dark); }
.aupmb-section--dark a { color: #fff; }
.aupmb-section--dark h2, .aupmb-section--dark h3 { color: #fff; }
.aupmb-section--dark p, .aupmb-section--dark .aupmb-lede { color: var(--au-on-dark); }
.aupmb-section--dark .aupmb-eyebrow { color: var(--au-gold-light); }
.aupmb-eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--au-gold-deep); margin-bottom: 0.75rem;
}
.aupmb-lede { font-size: 1.125rem; color: var(--au-muted); max-width: 62ch; }
.aupmb-section-head { max-width: 62ch; margin-bottom: clamp(24px, 4vw, 40px); }
.aupmb-section-head h2 { margin-bottom: 0.5rem; }

/* ---------- Sticky header + price ticker ----------
   The template-part wrapper (header + ticker) is the sticky element: it is a
   direct child of .wp-site-blocks, so it stays pinned for the whole page.
   --aupmb-sticky-h is measured by assets/js/header.js; the values below are
   the fallback until it runs. The admin bar is fixed above 600px and scrolls
   away below that (core admin-bar.css), so the offset follows it. */
html {
  --aupmb-sticky-h: 105px; /* measured: 69px header + 36px ticker (67 + 36 on phones) */
  --aupmb-admin-offset: var(--wp-admin--admin-bar--height, 0px);
}
@media (max-width: 600px) { html { --aupmb-admin-offset: 0px; } }
html:root { scroll-padding-top: calc(var(--aupmb-admin-offset) + var(--aupmb-sticky-h) + 16px); }
.aupmb-header-part, .wp-block-template-part:has(> .aupmb-header) { position: sticky; top: var(--aupmb-admin-offset); z-index: 40; }

.aupmb-header { position: static; background: var(--au-white); border-bottom: 1px solid var(--au-line); } /* the menu panel positions against the sticky wrapper, below the ticker */
.aupmb-header-inner {
  display: flex; align-items: center; gap: 12px 20px; min-height: 66px;
  padding-block: 8px;
}
.aupmb-header .aupmb-brand-slot { margin-right: auto; }
.aupmb-header-inner > *, .aupmb-header > .aupmb-menu { margin-block: 0; } /* flow-layout block gap does not belong in this flex row */

/* Hamburger: a 44px target with a visible "Menu" label from 600px up */
.aupmb-menu-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-width: 44px; min-height: 44px;
  padding: 8px 10px; margin-right: -10px; background: transparent; border: 0; border-radius: var(--au-radius);
  color: var(--au-charcoal); font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer;
}
.aupmb-menu-toggle:hover { color: var(--au-gold-deep); }
.aupmb-menu-icon { position: relative; display: block; width: 24px; height: 18px; }
.aupmb-menu-icon::before, .aupmb-menu-icon::after, .aupmb-menu-icon span {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.aupmb-menu-icon::before { top: 0; }
.aupmb-menu-icon span { top: 8px; }
.aupmb-menu-icon::after { top: 16px; }
.is-menu-open .aupmb-menu-icon::before { transform: translateY(8px) rotate(45deg); }
.is-menu-open .aupmb-menu-icon span { opacity: 0; }
.is-menu-open .aupmb-menu-icon::after { transform: translateY(-8px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .aupmb-menu-icon::before, .aupmb-menu-icon::after, .aupmb-menu-icon span { transition: none; } }
@media (max-width: 599px) {
  .aupmb-menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Menu panel: drops below the ticker (positioned against the sticky wrapper),
   overlays the page so opening it never shifts the layout. */
.aupmb-menu { display: none; }
.is-menu-open .aupmb-menu {
  display: block; position: absolute; top: 100%; right: max(var(--au-gutter), calc((100% - 1160px) / 2));
  width: min(340px, calc(100% - 2 * var(--au-gutter))); max-height: calc(100dvh - var(--aupmb-admin-offset) - var(--aupmb-sticky-h) - 16px);
  box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; margin: 0 !important; padding: 12px 24px 18px;
  background: var(--au-white); border: 1px solid var(--au-line); border-top: 3px solid var(--au-gold);
  border-radius: 0 0 var(--au-radius) var(--au-radius); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
}
@media (max-width: 599px) {
  .is-menu-open .aupmb-menu { right: 0; width: 100%; border-inline: 0; border-radius: 0; padding-inline: var(--au-gutter); }
}
.aupmb-nav ul { list-style: none; margin: 0; padding: 0; }
.aupmb-nav li { border-bottom: 1px solid var(--au-line); }
.aupmb-nav li:last-child { border-bottom: 0; }
.aupmb-nav a { display: block; padding: 12px 0; font-size: 1.05rem; font-weight: 600; text-decoration: none; color: var(--au-charcoal); }
.aupmb-nav a:hover, .aupmb-nav a[aria-current="page"] { color: var(--au-gold-deep); }
.aupmb-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--au-gold); text-underline-offset: 4px; }

/* Header CTA: long label on desktop, short label on small screens */
.aupmb-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--au-charcoal); color: #fff !important; text-decoration: none;
  font-weight: 700; font-size: 0.95rem; line-height: 1.2; padding: 11px 20px;
  border-radius: var(--au-radius); border: 2px solid var(--au-charcoal); white-space: nowrap;
  min-height: 44px; box-sizing: border-box; /* tap size; width stays compact beside the logo and menu */
}
.aupmb-cta:hover { background: var(--au-ink); border-color: var(--au-ink); }
.aupmb-cta .cta-short { display: none; }
@media (max-width: 979px) {
  .aupmb-header-inner { gap: 12px; }
  .aupmb-header .aupmb-cta { padding: 10px 14px; font-size: 0.875rem; }
  .aupmb-cta .cta-long { display: none; }
  .aupmb-cta .cta-short { display: inline; }
}

/* ---------- Brand lockup (provisional; swap parts/brand.html for a real logo) ---------- */
.aupmb-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.aupmb-mark {
  display: inline-grid; justify-items: center; align-content: center;
  width: 50px; height: 50px; border: 1.5px solid var(--au-gold); background: var(--au-white);
  line-height: 1;
}
.aupmb-mark-au { font-family: var(--wp--preset--font-family--serif); font-size: 25px; color: var(--au-gold); margin-top: 1px; }
.aupmb-mark-pmb { font-family: var(--wp--preset--font-family--sans); font-size: 9.5px; font-weight: 700; letter-spacing: 0.18em; color: #000; margin-left: 0.18em; margin-top: 3px; }
.aupmb-brand-text { display: grid; line-height: 1.15; }
.aupmb-brand-name { font-family: var(--wp--preset--font-family--serif); font-size: 1.35rem; letter-spacing: 0.01em; color: var(--au-charcoal); }
.aupmb-brand-name .au { color: var(--au-gold); }
.aupmb-brand-tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--au-muted); }
@media (max-width: 479px) { .aupmb-brand-tag { display: none; } .aupmb-brand { gap: 10px; } .aupmb-mark { width: 44px; height: 44px; } .aupmb-mark-au { font-size: 22px; } }
.aupmb-footer .aupmb-mark { background: transparent; border-color: var(--au-gold-light); }
.aupmb-footer .aupmb-brand-name, .aupmb-footer .aupmb-brand-tag { color: #fff; }
.aupmb-footer .aupmb-mark-pmb { color: #fff; }
.aupmb-footer .aupmb-mark-au, .aupmb-footer .aupmb-brand-name .au { color: var(--au-gold-light); }
/* Header lockup (owner, Oct 26): the square mark unchanged, beside "Gold & Precious Metals Buyers" in place of
   the AuPMB wordmark; one line on wide screens, two lines ("Gold & Precious" / "Metals Buyers") below 1000px. */
.aupmb-brand-wordmark { display: grid; font-family: var(--wp--preset--font-family--serif); font-size: 1.2rem; line-height: 1.12; letter-spacing: 0.005em; color: var(--au-charcoal); white-space: nowrap; }
.aupmb-brand-wordmark .aupmb-brand-gold { color: var(--au-gold); } /* owner, Oct 27: only "Gold" in the brand gold */
@media (min-width: 1000px) { .aupmb-brand-wordmark { display: block; font-size: 1.3rem; } }
/* Phones: measured to fit beside "Sell Your Metals" and the menu button (button text unchanged). */
@media (max-width: 599px) { .aupmb-brand-wordmark { font-size: 15px; } }
@media (max-width: 414px) {
  .aupmb-brand--header { gap: 8px; } .aupmb-header-inner { column-gap: 8px; }
  .aupmb-brand-wordmark { font-size: 14px; }
  .aupmb-header .aupmb-cta { padding: 10px 12px; font-size: 0.8125rem; }
}
@media (max-width: 374px) {
  .aupmb-header-inner { column-gap: 6px; }
  .aupmb-brand-wordmark { font-size: 13px; }
  .aupmb-header .aupmb-cta { padding: 9px 11px; font-size: 0.8rem; }
}
/* Below 360px there is no room beside the button: the square mark stands alone, as the AuPMB wordmark did. */
@media (max-width: 359px) { .aupmb-brand-wordmark { display: none; } }

/* ---------- Buttons ---------- */
.wp-block-button__link { font-weight: 700; padding: 14px 26px; border-radius: var(--au-radius); border: 2px solid var(--au-charcoal); }
.is-style-outline .wp-block-button__link, .wp-block-button.is-style-outline>.wp-block-button__link { background: transparent; color: var(--au-charcoal); }
.aupmb-section--dark .is-style-outline .wp-block-button__link { color: #fff; border-color: #fff; }
.aupmb-section--dark .wp-block-button__link:not(.is-style-outline) { background: #fff; color: var(--au-charcoal); border-color: #fff; }
.aupmb-textlink { font-weight: 600; color: var(--au-charcoal); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--au-gold); }
.aupmb-textlink:hover { color: var(--au-gold-deep); }
/* Content CTA groups (docs/40): on phones, primary buttons fill the content column and stack, and the
   secondary link sits 16px below with a comfortable tap area. Scoped to main: the header CTA keeps its own size. */
.aupmb-hero-actions .aupmb-textlink { display: inline-block; padding-block: 4px; }
@media (max-width: 599px) {
  main .wp-block-buttons { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  main .wp-block-buttons > .wp-block-button { width: 100%; margin: 0; }
  main .wp-block-buttons .wp-block-button__link { display: block; width: 100%; box-sizing: border-box; text-align: center; }
  .aupmb-hero-actions { flex-direction: column; align-items: flex-start; }
  .aupmb-hero-actions > .wp-block-buttons { width: 100%; }
  .aupmb-hero-actions > p { align-self: center; } /* the secondary link sits centred under the full-width button */
}

/* ---------- Hero ---------- */
.aupmb-hero { padding-block: clamp(32px, 4.5vw, 60px) clamp(36px, 5vw, 64px); }
.aupmb-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.aupmb-hero .aupmb-eyebrow { margin-bottom: 0.6rem; }
/* Headline: ~2 lines at desktop, 3 at mobile; width in ch keeps breaks natural at every size */
.aupmb-hero h1 { font-size: clamp(1.95rem, 1.2rem + 2.3vw, 3rem); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.9rem; max-width: 22ch; text-wrap: balance; }
.aupmb-hero .aupmb-lede { margin-bottom: 1.25rem; font-size: 1.0625rem; }
.aupmb-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-bottom: 0; }
.aupmb-hero-actions > p { margin: 0; }
.aupmb-hero-support { font-size: 0.925rem; color: var(--au-muted); margin: 0; }
.aupmb-hero-actions + .aupmb-hero-support, .aupmb-hero-actions + .aupmb-call-line { margin-top: 20px; }
.aupmb-hero-media .aupmb-photo { aspect-ratio: 5 / 4; }
@media (max-width: 859px) {
  .aupmb-hero { padding-block: 20px 40px; }
  .aupmb-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .aupmb-hero-grid > *, .aupmb-buy-intro-grid > *, .aupmb-split > * { margin-block: 0; } /* the flow layout's 24px margin doubled the gap */
  .aupmb-split { row-gap: 36px; }
  /* No reordering: visual order = DOM order = keyboard order (eyebrow, headline, copy, CTA, welcome line, photo) */
  .aupmb-hero-media .aupmb-photo { aspect-ratio: 16 / 9; }
  .aupmb-hero h1 { max-width: 20ch; }
  .aupmb-hero .aupmb-lede { font-size: 1rem; }
}
@media (min-width: 600px) and (max-width: 859px) {
  .aupmb-hero-media .aupmb-photo { aspect-ratio: 2 / 1; }
  .aupmb-hero h1 { max-width: 24ch; }
}

/* ---------- Photography placeholders ---------- */
.aupmb-photo {
  box-sizing: border-box; position: relative; display: grid; place-items: center; text-align: center; padding: 24px;
  aspect-ratio: 4 / 3; border: 2px dashed var(--au-gold); background:
    repeating-linear-gradient(135deg, var(--au-gold-tint) 0 14px, #fff 14px 28px);
  color: var(--au-ink); border-radius: var(--au-radius);
}
.aupmb-photo--wide { aspect-ratio: 16 / 7; }
.aupmb-photo--square { aspect-ratio: 1; }
.aupmb-photo span { background: rgba(255,255,255,0.92); padding: 10px 14px; border-radius: 3px; font-size: 0.85rem; font-weight: 600; max-width: 36ch; }
.aupmb-photo span::before { content: "PLACEHOLDER PHOTO"; display: block; color: var(--au-gold-deep); font-size: 0.7rem; letter-spacing: 0.14em; margin-bottom: 4px; }

/* Text placeholders — unknown business details */
.aupmb-placeholder, .wp-block-group .aupmb-placeholder {
  display: inline; background: #fff7e0; border-bottom: 2px dotted var(--au-gold); padding: 0 3px;
}
.aupmb-sample-banner {
  display: flex; gap: 10px; align-items: center; font-size: 0.85rem; font-weight: 600;
  background: #fff7e0; border: 1px solid var(--au-gold); color: var(--au-gold-deep);
  padding: 10px 14px; border-radius: var(--au-radius); margin-bottom: 20px;
}

/* ---------- Proof strip ---------- */
.aupmb-proof { border-block: 1px solid var(--au-line); }
.aupmb-proof-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; list-style: none; margin: 0; padding: 0; }
.aupmb-proof-list li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; line-height: 1.35; }
.aupmb-proof-list li::before { content: ""; flex: 0 0 10px; width: 10px; height: 10px; margin-top: 7px; background: var(--au-gold); transform: rotate(45deg); }
@media (max-width: 719px) { .aupmb-proof-list { grid-template-columns: 1fr; gap: 14px; } }
.aupmb-proof-note { margin: 20px 0 0; color: var(--au-muted); } /* homepage corridor line, moved out of the hero (docs/40) */
.aupmb-section-note { margin: 0.5rem 0 0; font-size: 0.95rem; color: var(--au-muted); } /* homepage welcome line (docs/40) */

/* ---------- Card grids ---------- */
.aupmb-grid { display: grid; gap: 20px; }
.aupmb-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.aupmb-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aupmb-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aupmb-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1023px) { .aupmb-grid-5, .aupmb-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aupmb-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .aupmb-grid-5, .aupmb-grid-4, .aupmb-grid-3, .aupmb-grid-2 { grid-template-columns: 1fr; } }

.aupmb-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px;
  border: 1px solid var(--au-line); border-radius: var(--au-radius); background: var(--au-white);
  position: relative;
}
.aupmb-card h3 { margin: 0; font-size: 1.15rem; }
.aupmb-card p { margin: 0; color: var(--au-muted); font-size: 0.95rem; }
.aupmb-card > a.aupmb-card-link { margin-top: auto; }
.aupmb-card .aupmb-photo { aspect-ratio: 3 / 2; padding: 12px; margin-bottom: 4px; overflow: hidden; }
.aupmb-photo img { width: 100%; height: 100%; object-fit: cover; display: block; } /* real photos crop to the box, never distort */
/* Real image variant: same box/aspect rules, no placeholder stripes, border or label */
.aupmb-photo--img { display: block; padding: 0; border: 0; background: var(--au-surface); overflow: hidden; }
.aupmb-photo--img img { position: absolute; inset: 0; }
.aupmb-card .aupmb-photo--img { padding: 0; }
@media (max-width: 599px) { .aupmb-card .aupmb-photo { aspect-ratio: auto; height: 120px; } }
.aupmb-card .aupmb-photo span { font-size: 0.72rem; padding: 6px 8px; }
.aupmb-card .aupmb-photo span::before { display: none; }
.aupmb-card--link:hover { border-color: var(--au-gold); }
.aupmb-card--link:focus-within { outline: 3px solid var(--au-gold); outline-offset: 2px; }
.aupmb-card--link a.aupmb-card-link { text-decoration: none; color: var(--au-charcoal); font-weight: 700; }
.aupmb-card--link a.aupmb-card-link::after { content: ""; position: absolute; inset: 0; }
.aupmb-card--link a.aupmb-card-link:focus { outline: none; }
.aupmb-card--link a.aupmb-card-link span { text-decoration: underline; text-decoration-color: var(--au-gold); text-underline-offset: 3px; }

/* Note box (e.g., dental gold referral) */
.aupmb-note {
  margin-top: 24px; padding: 16px 20px; border-left: 3px solid var(--au-gold); background: var(--au-surface);
  font-size: 0.95rem; color: var(--au-ink);
}
.aupmb-note p { margin: 0; }

/* ---------- Steps ---------- */
.aupmb-steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.aupmb-steps li { counter-increment: step; padding-top: 16px; border-top: 2px solid var(--au-line); position: relative; }
.aupmb-steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font-family: var(--wp--preset--font-family--serif);
  font-size: 1.6rem; color: var(--au-gold); margin-bottom: 8px; line-height: 1;
}
.aupmb-steps h3 { font-size: 1.1rem; margin: 0 0 6px; }
.aupmb-steps p { margin: 0; color: var(--au-muted); font-size: 0.95rem; }
@media (max-width: 899px) { .aupmb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 539px) { .aupmb-steps { grid-template-columns: 1fr; } }

/* ---------- Two-column feature (evaluation, appointments) ---------- */
.aupmb-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 859px) { .aupmb-split { grid-template-columns: 1fr; } }
/* Evaluation methods: heading + explanation per method, single clean column */
.aupmb-methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.aupmb-methods li { padding-left: 18px; border-left: 2px solid var(--au-gold-light); }
.aupmb-methods h3 { font-size: 1.02rem; margin: 0 0 4px; color: #fff; }
.aupmb-methods p { margin: 0; font-size: 0.95rem; color: var(--au-on-dark-muted); line-height: 1.55; }
.aupmb-split .aupmb-methods { margin-top: 6px; }

/* ---------- Evaluation & transparency (aupmb/evaluation): short blocks, then methods ---------- */
.aupmb-eval-head .aupmb-lede { margin-bottom: 0; }
.aupmb-eval-points { list-style: none; margin: clamp(28px, 4vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.aupmb-eval-points li { padding: 20px 20px 22px; border: 1px solid rgba(255, 255, 255, 0.14); border-top: 2px solid var(--au-gold-light); border-radius: var(--au-radius); background: #313131; }
.aupmb-eval-points h3 { font-family: inherit; font-size: 1.02rem; font-weight: 700; line-height: 1.3; margin: 0 0 8px; }
.aupmb-eval-points p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--au-on-dark-muted); }
.aupmb-eval-methods { margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.aupmb-eval-methods > h3 { font-family: inherit; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--au-gold-light); margin: 0 0 16px; }
.aupmb-eval .aupmb-methods { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 20px; }
.aupmb-eval .aupmb-methods li { padding-left: 14px; }
.aupmb-eval .aupmb-methods h4 { font-family: inherit; font-size: 0.95rem; font-weight: 700; line-height: 1.3; margin: 0 0 4px; color: #fff; }
.aupmb-eval .aupmb-methods p { font-size: 0.9rem; line-height: 1.5; }
@media (max-width: 1099px) {
  .aupmb-eval-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aupmb-eval .aupmb-methods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .aupmb-eval-points { grid-template-columns: 1fr; gap: 12px; }
  .aupmb-eval-points li { padding: 16px 16px 18px; }
  .aupmb-eval .aupmb-methods { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Homepage spot price table (aupmb/spot-prices block) ---------- */
.aupmb-prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.aupmb-prices th, .aupmb-prices td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--au-line); }
.aupmb-prices th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--au-muted); font-weight: 700; }
.aupmb-prices td:last-child, .aupmb-prices th:last-child { text-align: right; }
.aupmb-prices-meta { font-size: 0.85rem; color: var(--au-muted); margin-top: 10px; }
.aupmb-prices-wrap { overflow-x: auto; }
.aupmb-spot-note {
  font-size: 0.92rem; color: var(--au-ink); background: var(--au-surface); border-left: 3px solid var(--au-gold);
  padding: 10px 14px; margin: 0 0 16px; border-radius: 0 var(--au-radius) var(--au-radius) 0;
}
.aupmb-spot-note--unavailable { font-weight: 600; padding-block: 16px; }
.aupmb-spot.is-failed .aupmb-prices td:last-child, .aupmb-spot.is-overdue .aupmb-prices td:last-child { color: var(--au-muted); }
.aupmb-prices-note { font-size: 0.8rem; color: var(--au-muted); margin-top: 6px; max-width: 60ch; }

/* ---------- Live Spot Price ticker (aupmb/spot-ticker block, under the header) ----------
   One slim row. The label and the "Ask" basis stay put; the prices and status loop
   from right to left (.is-marquee, set by spot-prices.js), pausing on hover or focus.
   Without JavaScript or with reduced motion, the row scrolls sideways by hand. */
.aupmb-ticker { background: var(--au-charcoal); color: var(--au-on-dark); font-size: 0.875rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.aupmb-ticker-inner {
  box-sizing: border-box; display: flex; align-items: center; gap: 16px; width: 100%; min-height: 36px;
  max-width: calc(1160px + 2 * var(--au-gutter)); margin-inline: auto; padding-inline: var(--au-gutter);
}
.aupmb-ticker-label { flex: 0 0 auto; margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--au-gold-light); }
.aupmb-ticker-scroll {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px 20px; padding-block: 8px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; white-space: nowrap;
}
.aupmb-ticker-scroll::-webkit-scrollbar { display: none; }
.aupmb-ticker-scroll:focus-visible { outline: 2px solid var(--au-gold-light); outline-offset: -2px; }
.aupmb-ticker-track { display: flex; flex: 0 0 auto; }
.aupmb-ticker-group { display: flex; flex: 0 0 auto; align-items: center; gap: 8px 28px; }
.aupmb-ticker-list { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.aupmb-ticker-list li { display: inline-flex; align-items: baseline; gap: 6px; }
.aupmb-ticker-metal { color: var(--au-on-dark-muted); }
.aupmb-ticker-price { color: #fff; font-weight: 700; }
.aupmb-ticker-meta { display: flex; align-items: baseline; gap: 12px; margin: 0 0 0 auto; font-size: 0.78rem; color: var(--au-on-dark-muted); }
.aupmb-ticker-status strong { color: var(--au-gold-light); }
.aupmb-ticker-flag {
  background: var(--au-gold-light); color: var(--au-charcoal); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 6px; border-radius: 2px;
}
.aupmb-ticker.is-failed .aupmb-ticker-price, .aupmb-ticker.is-overdue .aupmb-ticker-price { color: var(--au-on-dark); font-weight: 600; }
/* Refresh failed / overdue: outside the scroll row, beside the label, so it never scrolls out of view. */
.aupmb-ticker-alert {
  flex: 0 0 auto; margin: 0; font-size: 0.72rem; font-weight: 700; line-height: 1.2; white-space: nowrap;
  color: var(--au-charcoal); background: var(--au-gold-light); border-radius: 2px; padding: 2px 7px;
}
/* Price basis ("Ask"): first in the scroll row so it shows on phones without scrolling; links to the table's explanation. */
.aupmb-ticker-basis {
  flex: 0 0 auto; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--au-gold-light) !important; text-decoration: none; border: 1px solid var(--au-gold-light); border-radius: 2px; padding: 1px 6px;
}
.aupmb-ticker-basis:hover { background: var(--au-gold-light); color: var(--au-charcoal) !important; }
.aupmb-ticker-basis:focus-visible { outline: 2px solid var(--au-gold-light); outline-offset: 2px; }
/* When the row overflows (spot-prices.js marks it focusable), fade the right edge so the
   sideways scroll is discoverable; end padding keeps the last item clear of the fade. */
.aupmb-ticker-scroll[tabindex] { padding-right: 28px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
/* Continuous loop: the group is cloned until it fills the row; the track moves by one group width
   (--aupmb-ticker-shift), where the next identical copy starts, so the restart is invisible. */
.aupmb-ticker.is-marquee .aupmb-ticker-scroll { overflow: hidden; padding-right: 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 24px), transparent); }
.aupmb-ticker.is-marquee .aupmb-ticker-group { padding-right: 28px; }
.aupmb-ticker.is-marquee .aupmb-ticker-meta { margin-left: 0; }
.aupmb-ticker.is-marquee .aupmb-ticker-track { animation: aupmb-ticker-loop var(--aupmb-ticker-duration, 30s) linear infinite; will-change: transform; }
.aupmb-ticker.is-marquee .aupmb-ticker-scroll:hover .aupmb-ticker-track,
.aupmb-ticker.is-marquee .aupmb-ticker-scroll:focus-within .aupmb-ticker-track { animation-play-state: paused; }
@keyframes aupmb-ticker-loop { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-1 * var(--aupmb-ticker-shift, 0px)), 0, 0); } }
@media (prefers-reduced-motion: reduce) { .aupmb-ticker.is-marquee .aupmb-ticker-track { animation: none; } }
/* The edge fade (mask-image) also clips the row's own focus ring, so drop it while the row has keyboard focus. */
.aupmb-ticker-scroll:focus-visible, .aupmb-ticker.is-marquee .aupmb-ticker-scroll:focus-visible { -webkit-mask-image: none; mask-image: none; }
/* Pause/Play (added by spot-prices.js whenever the row would move): same outline chip as "Ask", after the row. */
.aupmb-ticker-pause {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0; padding: 0;
  background: transparent; color: var(--au-gold-light); border: 1px solid var(--au-gold-light); border-radius: 2px; cursor: pointer;
}
.aupmb-ticker-pause:hover { background: var(--au-gold-light); color: var(--au-charcoal); }
.aupmb-ticker-pause:focus-visible { outline: 2px solid var(--au-gold-light); outline-offset: 2px; }
.aupmb-ticker-pause svg { display: block; width: 12px; height: 12px; fill: currentColor; }
.aupmb-ticker-pause[data-state="moving"] .aupmb-icon-play, .aupmb-ticker-pause[data-state="paused"] .aupmb-icon-pause { display: none; }
@media (max-width: 599px) {
  .aupmb-ticker-inner { gap: 10px; }
  .aupmb-ticker-alert { font-size: 0.68rem; padding: 2px 5px; }
  .aupmb-ticker-label { font-size: 0.7rem; letter-spacing: 0.08em; }
  .aupmb-ticker-list, .aupmb-ticker-group { column-gap: 24px; }
  .aupmb-ticker.is-marquee .aupmb-ticker-group { padding-right: 24px; }
}

/* ---------- FAQ ---------- */
.aupmb-faq .wp-block-details { border-top: 1px solid var(--au-line); padding: 14px 0; margin: 0; }
.aupmb-faq .wp-block-details:last-child { border-bottom: 1px solid var(--au-line); }
.aupmb-faq summary { font-weight: 700; cursor: pointer; padding: 6px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.aupmb-faq summary::-webkit-details-marker { display: none; }
.aupmb-faq summary::after { content: "+"; color: var(--au-gold); font-size: 1.4rem; line-height: 1; flex: 0 0 auto; }
.aupmb-faq details[open] summary::after { content: "–"; }
.aupmb-faq .wp-block-details > :not(summary) { color: var(--au-muted); margin: 8px 0 0; max-width: 70ch; }

/* ---------- Final CTA ---------- */
.aupmb-final h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 0.75rem; }
.aupmb-final .aupmb-lede { color: var(--au-on-dark); }
/* Mobile pages: appointment details above the final CTA, call line beside each CTA */
.aupmb-expect-inner .aupmb-defs { margin-top: 1.1rem; }
.aupmb-call-line { margin: 12px 0 0; font-size: 0.95rem; }
.aupmb-final .aupmb-call-line { margin-top: 16px; }
.aupmb-call-line a, .aupmb-call-line span { white-space: nowrap; }
/* Regional links under the final CTA: their own line, set apart from the button and call line (docs/40) */
.aupmb-cta-links { margin: 32px 0 0; font-size: 0.95rem; }
@media (max-width: 599px) {
  .aupmb-cta-links { display: grid; justify-items: start; gap: 12px; }
  .aupmb-cta-links .aupmb-sep { display: none; }
  .aupmb-cta-links a { padding-block: 2px; }
}
@media (max-width: 359px) { .aupmb-cta { padding: 9px 11px; font-size: 0.8rem; } .aupmb-header-inner { gap: 8px; } }

/* ---------- Footer ---------- */
.aupmb-footer { background: var(--au-charcoal); color: #d6d6d6; padding-block: clamp(40px, 6vw, 72px) 28px; font-size: 0.93rem; }
.aupmb-footer a { color: #fff; text-decoration: none; }
.aupmb-footer a:hover { color: var(--au-gold); }
.aupmb-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.aupmb-footer h2 { font-family: var(--wp--preset--font-family--sans); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.aupmb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.aupmb-footer-brand p { margin: 12px 0 0; max-width: 32ch; }
.aupmb-footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.82rem; color: #b8b8b8; }
.aupmb-footer-bottom p { margin: 0; }
.aupmb-footer .aupmb-placeholder { background: #3d3d3d; color: #fff; border-bottom-color: var(--au-gold-light); }
@media (max-width: 899px) { .aupmb-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 539px) { .aupmb-footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Inner placeholder pages ---------- */
.aupmb-page-head { padding-block: clamp(40px, 6vw, 72px) 0; }
.aupmb-page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 0; }
.aupmb-page-body { padding-block: 24px clamp(48px, 7vw, 96px); }
.aupmb-page-body .aupmb-placeholder { display: block; padding: 16px; border: 2px dashed var(--au-gold); }

/* Review-only ribbon so screenshots are never mistaken for production */
.aupmb-preview-ribbon {
  background: var(--au-gold-tint); color: var(--au-gold-deep); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; text-align: center; padding: 6px var(--au-gutter);
}

/* ---------- Sell page (/sell/) ---------- */
.aupmb-sell-intro { padding-top: clamp(32px, 4.5vw, 56px); padding-bottom: 8px; }
.aupmb-sell-intro h1 { font-size: clamp(1.95rem, 1.2rem + 2.3vw, 3rem); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.75rem; max-width: 22ch; }
.aupmb-sell-intro .aupmb-lede { margin: 0; }
.aupmb-sell { padding-top: 16px; }
.aupmb-sell-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.aupmb-sell-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--aupmb-admin-offset) + var(--aupmb-sticky-h) + 24px); }
.aupmb-aside-card { padding: 20px 22px; border: 1px solid var(--au-line); border-radius: var(--au-radius); background: var(--au-white); }
.aupmb-aside-card h2 { font-family: var(--wp--preset--font-family--sans); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--au-gold-deep); margin: 0 0 12px; }
.aupmb-aside-card p { margin: 0 0 10px; font-size: 0.93rem; color: var(--au-ink); }
.aupmb-aside-card p:last-child { margin-bottom: 0; }
.aupmb-aside-card--quiet { background: var(--au-surface); }
.aupmb-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.93rem; color: var(--au-ink); line-height: 1.5; }
.aupmb-checks li { padding-left: 22px; position: relative; }
.aupmb-checks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 9px; height: 9px; background: var(--au-gold); transform: rotate(45deg); }
@media (max-width: 899px) {
  .aupmb-sell-layout { grid-template-columns: 1fr; }
  .aupmb-sell-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aupmb-aside-card--quiet { grid-column: 1 / -1; }
}
@media (max-width: 599px) { .aupmb-sell-aside { grid-template-columns: 1fr; } }

/* ---------- Inner pages: How It Works, Contact, FAQs ---------- */
.aupmb-page-intro { padding-top: clamp(32px, 4.5vw, 56px); padding-bottom: 8px; }
.aupmb-page-intro h1 { font-size: clamp(1.95rem, 1.2rem + 2.3vw, 3rem); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.75rem; max-width: 24ch; }
.aupmb-page-intro .aupmb-lede { margin: 0; }
/* Opt-in (used by /metal-prices/ only): H1 and lede start at the content column's left edge (where the
   constrained layout places full-width children) instead of being centred at their narrower max-width. */
.aupmb-page-intro.aupmb-page-intro--start > h1.wp-block-heading,
.aupmb-page-intro.aupmb-page-intro--start > p.aupmb-lede { margin-left: max(0px, (100% - var(--wp--style--global--content-size)) / 2) !important; }
.aupmb-callout { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--au-line); border-left: 4px solid var(--au-gold); border-radius: var(--au-radius); background: var(--au-surface); }
.aupmb-callout h2 { font-family: var(--wp--preset--font-family--sans); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--au-gold-deep); margin: 0 0 14px; }
.aupmb-defs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; margin: 0; }
.aupmb-defs div { margin: 0; }
.aupmb-defs dt { font-weight: 700; margin-bottom: 4px; }
.aupmb-defs dd { margin: 0; color: var(--au-ink); font-size: 0.95rem; line-height: 1.55; }
.aupmb-defs--stack { grid-template-columns: 1fr; gap: 12px; }
@media (max-width: 719px) { .aupmb-defs { grid-template-columns: 1fr; } }

/* Numbered process (How It Works) */
.aupmb-process { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 820px; }
.aupmb-process li { counter-increment: step; position: relative; padding: 24px 0 28px 76px; border-top: 1px solid var(--au-line); }
.aupmb-process li:last-child { border-bottom: 1px solid var(--au-line); }
.aupmb-process li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 22px; font-family: var(--wp--preset--font-family--serif);
  font-size: 1.9rem; color: var(--au-gold); line-height: 1;
}
.aupmb-process-who { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--au-muted); margin-bottom: 4px; }
.aupmb-process h3 { font-size: 1.15rem; margin: 0 0 8px; }
.aupmb-process p { margin: 0 0 8px; color: var(--au-ink); max-width: 68ch; }
.aupmb-process p:last-child { margin-bottom: 0; }
.aupmb-process-note { font-size: 0.92rem; color: var(--au-muted); padding-left: 14px; border-left: 2px solid var(--au-gold-light); }
@media (max-width: 539px) { .aupmb-process li { padding-left: 0; padding-top: 52px; } .aupmb-process li::before { top: 16px; } }
.aupmb-card-title { font-family: var(--wp--preset--font-family--sans); font-size: 1.15rem; font-weight: 700; margin: 0; }
.aupmb-card p { color: var(--au-ink); }

/* Contact */
.aupmb-contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.aupmb-contact-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--aupmb-admin-offset) + var(--aupmb-sticky-h) + 24px); }
.aupmb-contact-block { padding: 24px 0 28px; border-top: 1px solid var(--au-line); }
.aupmb-contact-block:first-child { border-top: 0; padding-top: 0; }
.aupmb-contact-block h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 0 0 10px; }
.aupmb-contact-block p { max-width: 68ch; color: var(--au-ink); }
.aupmb-contact-block .aupmb-next { margin: 12px 0; }
.aupmb-contact-block .wp-block-button__link { display: inline-block; text-decoration: none; }
.aupmb-next { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--au-ink); }
.aupmb-hint { color: var(--au-muted); font-size: 0.92rem; }
@media (max-width: 899px) {
  .aupmb-contact-grid { grid-template-columns: 1fr; }
  .aupmb-contact-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aupmb-contact-aside .aupmb-aside-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 599px) { .aupmb-contact-aside { grid-template-columns: 1fr; } }

/* FAQs page */
.aupmb-jumplinks { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; }
.aupmb-jumplinks a { font-size: 0.9rem; font-weight: 600; text-decoration: none; padding: 8px 14px; border: 1px solid var(--au-line); border-radius: 999px; color: var(--au-charcoal); background: var(--au-white); }
.aupmb-jumplinks a:hover { border-color: var(--au-gold); color: var(--au-gold-deep); }
.aupmb-faq-page { padding-top: clamp(28px, 4vw, 48px); }
.aupmb-faq-group { max-width: 820px; margin-bottom: clamp(28px, 4vw, 44px); }
.aupmb-faq-group h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 0 0 10px; }
.aupmb-faq-group details > p { color: var(--au-muted); margin: 8px 0 0; max-width: 70ch; }
.aupmb-faq-group details > p a { color: var(--au-charcoal); }

/* ---------- Buying pages: What We Buy + metal pages ---------- */
.aupmb-photo--3x2 { aspect-ratio: 3 / 2; }
/* Breadcrumb in the eyebrow position (same type, links underlined) */
.aupmb-breadcrumb p { margin: 0 0 0.75rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--au-gold-deep); }
.aupmb-breadcrumb a { color: var(--au-gold-deep); text-decoration: underline; text-decoration-color: var(--au-gold-light); text-underline-offset: 3px; }
.aupmb-breadcrumb a:hover { color: var(--au-charcoal); }
.aupmb-breadcrumb .separator { padding: 0 0.35em; }
.aupmb-buy-path-note { margin: 18px 0 0; color: var(--au-ink); max-width: 68ch; }
.aupmb-buy-intro { padding-top: clamp(28px, 4vw, 52px); padding-bottom: clamp(32px, 4.5vw, 56px); }
.aupmb-buy-intro-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.aupmb-buy-intro h1 { font-size: clamp(1.95rem, 1.2rem + 2.3vw, 3rem); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.9rem; max-width: 20ch; text-wrap: balance; }
.aupmb-buy-intro .aupmb-lede { margin: 0 0 1.25rem; }
@media (max-width: 859px) {
  .aupmb-buy-intro { padding-top: 20px; }
  .aupmb-buy-intro-grid { grid-template-columns: 1fr; gap: 36px; } /* text, CTA, then photo: visual = DOM = keyboard order */
  .aupmb-buy-intro .aupmb-lede { font-size: 1rem; }
}
@media (min-width: 600px) and (max-width: 859px) { .aupmb-buy-intro .aupmb-photo--3x2 { aspect-ratio: 2 / 1; } } /* as the homepage hero */
/* Body copy with an "at a glance" card beside it */
.aupmb-buy-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 899px) { .aupmb-buy-body { grid-template-columns: 1fr; } }
.aupmb-buy-section h2 { margin: 0 0 0.5rem; }
/* Constrained layout centres any child with a max-width, which indents section
   heads from the content below them; on buying pages the head spans the content
   width and its text keeps the 62ch measure. */
.aupmb-buy-section > .aupmb-section-head { max-width: var(--wp--style--global--content-size) !important; }
.aupmb-buy-section > .aupmb-section-head > * { max-width: 62ch; }
.aupmb-buy-intro + .aupmb-buy-section { padding-top: clamp(16px, 3vw, 40px); }
.aupmb-prose { max-width: 70ch; }
.aupmb-prose > h2 { margin: 0 0 0.6rem; }
.aupmb-prose p, .aupmb-prose li { color: var(--au-ink); }
.aupmb-prose h3 { margin: 1.6em 0 0.4em; }
.aupmb-prose .aupmb-checks { margin: 0 0 1em; font-size: inherit; }
/* Reference tables (fineness marks, examples) */
.aupmb-table-wrap { overflow-x: auto; margin: 8px 0; }
.aupmb-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.aupmb-table caption { text-align: left; font-size: 0.85rem; color: var(--au-muted); padding-bottom: 10px; caption-side: top; }
.aupmb-table th, .aupmb-table td { text-align: left; vertical-align: top; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--au-line); }
.aupmb-table thead th { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--au-muted); font-weight: 700; }
.aupmb-table tbody th { font-weight: 700; }
.aupmb-table--names tbody th { width: 46%; }
.aupmb-table td { color: var(--au-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 479px) { .aupmb-table { font-size: 0.88rem; } .aupmb-table th, .aupmb-table td { padding-right: 8px; } }
.aupmb-source { font-size: 0.85rem; color: var(--au-muted); margin-top: 10px; }
/* Three-step summary (shared "photos to final offer" band) */
.aupmb-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 899px) { .aupmb-steps--3 { grid-template-columns: 1fr; } }
.aupmb-after-links { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
/* Related buying pages */
.aupmb-related h2 { font-family: var(--wp--preset--font-family--sans); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--au-gold-deep); margin: 0; }
.aupmb-related .aupmb-jumplinks { margin-top: 14px; }
/* What We Buy overview: one row per category */
.aupmb-cats { list-style: none; margin: 0; padding: 0; }
.aupmb-cat { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 48px); align-items: start; padding: clamp(24px, 3.5vw, 40px) 0; border-top: 1px solid var(--au-line); }
.aupmb-cat:last-child { border-bottom: 1px solid var(--au-line); }
.aupmb-cat h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 0 0 0.5rem; }
.aupmb-cat p { margin: 0 0 12px; color: var(--au-ink); max-width: 62ch; }
.aupmb-cat .aupmb-checks { margin-bottom: 16px; }
@media (max-width: 719px) { .aupmb-cat { grid-template-columns: 1fr; gap: 16px; } .aupmb-cat .aupmb-photo--3x2 { aspect-ratio: 16 / 9; } }

/* ---------- Business pages: For Businesses + four audience pages ---------- */
/* Audience questions: question and answer pairs, two columns on wide screens */
.aupmb-qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(28px, 4vw, 56px); }
.aupmb-qa > div { padding-top: 16px; border-top: 2px solid var(--au-line); }
.aupmb-qa h3 { font-size: 1.1rem; margin: 0 0 6px; }
.aupmb-qa p { margin: 0; color: var(--au-ink); max-width: 62ch; }
@media (max-width: 899px) { .aupmb-qa { grid-template-columns: 1fr; gap: 22px; } }
/* Related business and metal pages, side by side */
.aupmb-biz-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(28px, 5vw, 64px); }
.aupmb-biz-related p { margin: 0; }
.aupmb-biz-related .aupmb-jumplinks + p { margin-top: 14px; }
@media (max-width: 899px) { .aupmb-biz-related { grid-template-columns: 1fr; } }

/* ---------- Resources: hub, guides, downloads ---------- */
.aupmb-byline { margin: -0.35rem 0 1rem; font-size: 0.88rem; color: var(--au-muted); }
/* Draft notice on unconfirmed content (private preview only) */
.aupmb-draft-note { margin: 0 0 1.25rem; padding: 12px 16px; border: 1px solid var(--au-gold); border-left-width: 4px; border-radius: var(--au-radius); background: #fff7e0; color: var(--au-ink); font-size: 0.93rem; max-width: 62ch; }
.aupmb-draft-note strong { color: var(--au-gold-deep); }
.aupmb-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--au-gold); background: #fff7e0; color: var(--au-gold-deep); vertical-align: middle; }
/* Rank Math TOC block, styled as the site's jump links */
.aupmb-toc-section { padding-block: 0 clamp(8px, 2vw, 16px); }
.wp-block-rank-math-toc-block { border-block: 1px solid var(--au-line); padding: 18px 0 20px; }
.wp-block-rank-math-toc-block h2 { font-family: var(--wp--preset--font-family--sans); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--au-gold-deep); margin: 0; }
.wp-block-rank-math-toc-block nav ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.wp-block-rank-math-toc-block nav a { display: inline-block; font-size: 0.9rem; font-weight: 600; text-decoration: none; padding: 8px 14px; border: 1px solid var(--au-line); border-radius: 999px; color: var(--au-charcoal); background: var(--au-white); }
.wp-block-rank-math-toc-block nav a:hover { border-color: var(--au-gold); color: var(--au-gold-deep); }
/* Formula and worked example */
.aupmb-formula { margin: 18px 0; padding: 16px 20px; border-left: 3px solid var(--au-gold); background: var(--au-surface); font-weight: 700; color: var(--au-charcoal); }
.aupmb-formula span { display: block; font-weight: 400; font-size: 0.93rem; color: var(--au-ink); margin-top: 6px; }
/* Download list */
.aupmb-downloads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.aupmb-download { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--au-line); border-radius: var(--au-radius); background: var(--au-white); }
.aupmb-download h3 { margin: 0; font-size: 1.15rem; }
.aupmb-download p { margin: 0; color: var(--au-ink); font-size: 0.95rem; }
.aupmb-download-meta { font-size: 0.85rem; color: var(--au-muted) !important; }
.aupmb-download a.aupmb-textlink { margin-top: auto; }
@media (max-width: 719px) { .aupmb-downloads { grid-template-columns: 1fr; } }
.aupmb-aside-card .aupmb-download-meta { font-size: 0.82rem; }
.aupmb-aside-card ul.aupmb-checks + p { margin-top: 14px; }
/* Wide comparison tables stack into labelled rows on phones (no sideways scroll) */
@media (max-width: 599px) {
  .aupmb-table--stack thead, .aupmb-table--stack thead tr, .aupmb-table--stack thead th { position: absolute; display: block; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .aupmb-table--stack tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--au-line); }
  .aupmb-table--stack tbody th, .aupmb-table--stack td { display: block; padding: 3px 0; border: 0; width: auto !important; }
  .aupmb-table--stack td[data-label]::before { content: attr(data-label); display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--au-muted); margin-top: 6px; }
}
