/* ==========================================================================
   GoldMarketDaily: unify.css (tool + coin pages)            draft 2026-11-15
   Loaded last in wp_head, only on tool and coin pages, which also carry
   body.gmd-unified. Every rule is scoped to `html body.gmd-unified #primary`
   (main#primary exists on every page in scope), so nothing leaks to the
   header, ticker, cookie bar, popups or footer.

   !important policy (measured, not guessed). The theme stack already
   declares many of these properties with !important (redesign.css
   `html body.gmd-edition :is(...)`, site.css, a11y.css), and several
   blocks carry inline style="" attributes; a plain declaration cannot beat
   either. Every declaration was tested on all 38 pages at 1440 and 390 with
   the flag removed: it keeps !important only if it then lost the cascade on
   a real element, if it overlaps another rule of this file on the same
   element and property, or if no page exercises it (hover, focus,
   disabled). Everything else is a plain declaration. See report.md.

   Palette: navy #0B231E, gold #C29A45, gold text #87661F, off-white.
   Type: Fraunces (display), Inter (everything else).
   ========================================================================== */

html body.gmd-unified {
  --u-navy: #0B231E;
  --u-gold: #C29A45;
  --u-gold-text: #87661F;
  --u-slate: #475569;        /* labels, secondary text: 7.6:1 on white */
  --u-control: #64748B;      /* control borders: 4.8:1 on white */
  --u-border: #E2E8F0;       /* card borders */
  --u-rule: #EDF0F4;         /* hairlines inside cards */
  --u-warm: #FBF8F0;         /* result surface */
  --u-warm-border: #EADFC2;
  --u-shadow: 0 1px 2px rgba(11,35,30, .04), 0 2px 8px rgba(11,35,30, .04);
  --u-radius: 12px;
  --u-ctl-radius: 8px;
  --u-frame: 1152px;     /* = header / ticker / home content width */
  --u-gutter: 24px;
  --u-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --u-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}
@media (max-width: 900px) { html body.gmd-unified { --u-gutter: 20px; } }
@media (max-width: 600px) { html body.gmd-unified { --u-gutter: 16px; } }/* --------------------------------------------------------------------------
   1. ONE PAGE FRAME
   entry-content becomes the single column: 1152px, the same width and left
   edge as the header, ticker and home page. Every template wrapper inside it drops its own
   max-width and side padding, so H1, cards, sections, the follow-up block
   and the related grid all start on one left edge.
   Beats: redesign.css wrapper max-width:1080px!important, site.css
   .gmd-calc-wrap padding!important, inline style on .gmd-breadcrumbs.
   -------------------------------------------------------------------------- */


html body.gmd-unified #primary.site-main,
html body.gmd-unified #primary .inside-article,
html body.gmd-unified #primary .inside-article > .entry-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
html body.gmd-unified #primary .inside-article > .entry-content {
  box-sizing: border-box;
  max-width: calc(var(--u-frame) + 2 * var(--u-gutter)) !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--u-gutter) !important;
  padding-right: var(--u-gutter) !important;
}
html body.gmd-unified #primary .entry-content > :is(
  .gmd-tool, .gmd-calc-wrap, .gmd-karat-wrap, .gmd-scrap-wrap, .gmd-hist-wrap,
  .gmd-ratio-wrap, .gmd-coin-wrap, .gmd-pa, .gd-desk, .gr-reserves,
  .gmd-content-section, .gmd-link-cta, .gmd-tool-extra),
html body.gmd-unified #primary .entry-content > #gmd {
  max-width: none !important;
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
html body.gmd-unified #primary .entry-content > :is(.gmd-tool, .gd-desk:not(.gj-followup), .gr-reserves) {
  padding-top: 0;
  padding-bottom: 0;
}/* breadcrumb stays on one line on phones; the current page name truncates
   instead of wrapping under a dangling slash. The <ol>/<li> carry inline
   flex styles, hence !important. */

html body.gmd-unified #primary .gmd-breadcrumbs ol { flex-wrap: nowrap !important; min-width: 0; }
html body.gmd-unified #primary .gmd-breadcrumbs li { flex: 0 0 auto; }
html body.gmd-unified #primary .gmd-breadcrumbs li:last-child { flex: 0 1 auto !important; min-width: 0; overflow: hidden; }
html body.gmd-unified #primary .gmd-breadcrumbs li:last-child > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }/* inline style: max-width:1200px; padding:0 32px */

html body.gmd-unified #primary .gmd-breadcrumbs {
  max-width: none !important;
  margin: 0;
  padding: 20px 0 0 !important;
}/* --------------------------------------------------------------------------
   2. ONE HERO: eyebrow, H1, intro. Left aligned (the karat / gold calculator
   / currency pattern), same spacing on every template.
   Beats: redesign.css hero padding/margin/text-align!important, site.css
   centred calc-hero with grey background!important, 428-454.css
   h1 font-size:56px!important.
   -------------------------------------------------------------------------- */


html body.gmd-unified #primary :is(
  .gmd-tool-hero, .gmd-calc-hero, .gmd-karat-hero, .gmd-scrap-hero, .gmd-hist-hero,
  .gmd-ratio-hero, .gmd-coin-hero, .gmd-pa-hero, .gd-intro, .gr-intro, .gj-heading, [id=gmd] .gmd-page-hero) {
  text-align: left;
  background: transparent !important;
  border: 0;
  border-bottom: 1px solid var(--u-border);
  border-radius: 0;
  box-shadow: none;
  margin: 0 0 32px !important;
  padding: 28px 0 28px !important;
  max-width: none !important;
}
html body.gmd-unified #primary :is(.gmd-calc-hero, .gmd-karat-hero, .gmd-ratio-hero, .gmd-coin-hero)::before {
  display: none !important;
}/* eyebrow */

html body.gmd-unified #primary :is(
  .gmd-tool-eyebrow, .gmd-calc-eyebrow, .gmd-karat-eyebrow, .gmd-scrap-eyebrow, .gmd-hist-eyebrow,
  .gmd-ratio-eyebrow, .gmd-coin-eyebrow, .gmd-pa-eyebrow, .gr-kicker, .gd-intro .gd-label, .gj-heading .gd-label,
  [id=gmd] .gmd-page-hero-tag) {
  display: block;
  font: 600 12px/1.5 var(--u-sans) !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  color: var(--u-gold-text) !important;
  text-align: left !important;
  margin: 0 0 10px !important;
}/* H1 */

html body.gmd-unified #primary :is(
  .gmd-tool-hero, .gmd-calc-hero, .gmd-karat-hero, .gmd-scrap-hero, .gmd-hist-hero,
  .gmd-ratio-hero, .gmd-coin-hero, .gmd-pa-hero, .gd-intro, .gr-intro, .gj-heading, [id=gmd] .gmd-page-hero) h1,
html body.gmd-unified #primary h1.gmd-page-title {
  font-family: var(--u-serif) !important;
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 46px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.02em !important;
  color: var(--u-navy);
  text-align: left !important;
  max-width: 22ch !important;
  margin: 0 0 14px !important;
}/* italic accent: gold text colour (4.5:1), and a little room so the
   italic overhang no longer eats the following space ("SpreadCalculator") */

html body.gmd-unified #primary h1 em {
  color: var(--u-gold-text);
  font-style: italic;
  font-weight: 500;
  padding-right: .1em;
}/* intro */

html body.gmd-unified #primary :is(
  .gmd-tool-intro, .gmd-coin-intro, .gmd-pa-intro, .gd-intro .gd-deck,
  .gmd-calc-hero > p, .gmd-karat-hero > p, .gmd-scrap-hero > p, .gmd-hist-hero > p,
  .gmd-ratio-hero > p, .gr-intro > p:not(.gr-kicker), .gj-heading > div > p:last-child, [id=gmd] .gmd-page-hero > p) {
  font: 400 17px/1.6 var(--u-sans) !important;
  color: var(--u-slate) !important;
  text-align: left !important;
  max-width: 68ch !important;
  margin: 0 !important;
}
html body.gmd-unified #primary :is(.gmd-coin-hero, .gmd-calc-hero, .gmd-karat-hero, .gmd-ratio-hero) .gmd-live-badge {
  margin: 0 0 14px !important;
}/* coin flag emoji block in the minority coin hero (already hidden by redesign.css) */

html body.gmd-unified #primary .gmd-coin-hero-flag { display: none !important; }/* --------------------------------------------------------------------------
   3. CARDS. Input card = white; result card = warm surface. One border,
   one radius, one shadow, one padding.
   Beats: redesign.css :is(.gmd-calc-card,.gmd-facts-card,...) grey surface
   !important and :is(.gmd-tool-inputs,.gmd-tool-results) padding!important;
   site.css #gmd .gmd-calc-result grey!important.
   -------------------------------------------------------------------------- */


html body.gmd-unified #primary :is(
  .gmd-tool-inputs, .gmd-calc-input-section, .gmd-scrap-wrap .gmd-calc-card, .gmd-prem-card,
  .gmd-pa-form, .gmd-dg-inputs, .pg-offer, .gr-explorer, .gd-desk form:not([data-gd-feedback]),
  .gmd-facts-card, .gmd-price-calc-card, .gmd-dealer-card, .gmd-chart-box, .gmd-vol-chart-wrap,
  .gr-overview) {
  background: #FFFFFF !important;
  border: 1px solid var(--u-border) !important;
  border-radius: var(--u-radius) !important;
  box-shadow: var(--u-shadow) !important;
  padding: 28px !important;
  box-sizing: border-box;
}
html body.gmd-unified #primary :is(
  .gmd-tool-out, .gmd-tool-results, .gmd-calc-result, .gmd-dg-result, .gmd-ratio-card,
  .gmd-prem-results, .pg-comparison, .gmd-spot-bar, .gmd-fx-bar) {
  background: var(--u-warm);
  border: 1px solid var(--u-warm-border);
  border-radius: var(--u-radius);
  box-shadow: var(--u-shadow) !important;
  padding: 28px !important;
  box-sizing: border-box;
}/* gold / karat calculator: the outer grey container is flattened and its
   two columns become the input card and the result card */

html body.gmd-unified #primary .gmd-calc-wrap .gmd-calc-card,
html body.gmd-unified #primary .gmd-karat-wrap .gmd-calc-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
  border-radius: 0 !important;
  padding: 0;
  margin: 0 0 48px;
}
html body.gmd-unified #primary .gmd-calc-grid {
  gap: 24px !important;
  align-items: start;
}/* card headings */

html body.gmd-unified #primary :is(
  .gmd-tool-inputs, .gmd-tool-out, .gmd-tool-results, .gmd-calc-input-section, .gmd-calc-result,
  .gmd-scrap-wrap .gmd-calc-card, .gmd-prem-card, .gmd-facts-card, .gmd-price-calc-card,
  .gmd-dealer-card) > :is(h2, h3) {
  text-transform: none;
  font-family: var(--u-serif) !important;
  font-weight: 600 !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
  letter-spacing: -.01em !important;
  color: var(--u-navy) !important;
  margin: 0 0 20px !important;
}
html body.gmd-unified #primary :is(.gmd-tool-grid, .gmd-calc-grid) {
  gap: 24px !important;
}/* both columns' headings on one line (the result column sat ~60px lower) */

html body.gmd-unified #primary .gmd-tool-grid { align-items: start; }/* stacked cards get one vertical rhythm */


html body.gmd-unified #primary :is(.gmd-spot-bar, .gmd-facts-card, .gmd-price-calc-card,
  .gmd-dealer-card, .gmd-prem-card, .gmd-prem-results, .gmd-pa-form, .gmd-dg-result,
  .gmd-dg-inputs, .gmd-ratio-card, .gmd-fx-bar, .gmd-chart-box) {
  margin: 0 0 24px !important;
}
html body.gmd-unified #primary .gmd-tool-grid { margin-bottom: 40px; }/* --------------------------------------------------------------------------
   4. FLATTEN grey-inside-grey: notes, context tiles, stat tiles, size cards
   become white cards or plain text with a hairline.
   -------------------------------------------------------------------------- */


html body.gmd-unified #primary :is(.gmd-tool-note, .gmd-pa-note, .gmd-alloc-context) {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--u-rule);
  border-radius: 0;
  padding: 14px 0 0;
  font: 400 13px/1.6 var(--u-sans);
  color: var(--u-slate);
}
html body.gmd-unified #primary :is(.gmd-dg-ctx, .gmd-stat-card, .gmd-size-card, .gmd-st-card,
  .gmd-vol-regime, .gmd-md-card, .gmd-pa-cur, .gmd-fx-card, .gmd-related-coins a,
  .gmd-item-row, .gmd-sp-flow, .gmd-prem-stat, .gmd-related-tools a) {
  background: #FFFFFF !important;
  border: 1px solid var(--u-border);
  border-radius: 10px;
  box-shadow: none;
}
html body.gmd-unified #primary :is(.gmd-tool-out, .gmd-tool-results, .gmd-calc-result) :is(.gmd-sp-flow, .gmd-st-card) {
  background: #FFFFFF !important;
}/* spot strip (coins + scrap): label/price left, source right, warm card */

html body.gmd-unified #primary .gmd-spot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 18px 24px !important;
}/* minority coin template prints label, price and source as three loose
   spans; put the label on its own line so it reads like the majority card
   (label over price, source on the right) */

html body.gmd-unified #primary .gmd-spot-bar > .gmd-spot-label { flex: 0 0 100%; margin: 0 0 -6px; }
html body.gmd-unified #primary .gmd-spot-bar > div { display: flex; flex-direction: column; gap: 2px; }
html body.gmd-unified #primary .gmd-spot-bar .gmd-spot-price {
  font: 600 24px/1.2 var(--u-serif);
  color: var(--u-navy);
  font-variant-numeric: tabular-nums;
}
html body.gmd-unified #primary .gmd-spot-bar .gmd-spot-source {
  font: 400 13px/1.5 var(--u-sans);
  color: var(--u-slate);
}/* --------------------------------------------------------------------------
   5. LABELS: Inter 13px 600, slight tracking, slate, sentence case.
   Data labels (fact, stat, result, spot) share the same face at 12px.
   Beats: per-page 'JetBrains Mono' tracked caps; redesign.css .gd-label
   font!important; site.css label colours!important.
   -------------------------------------------------------------------------- */


html body.gmd-unified #primary :is(.gmd-tool, .gmd-calc-wrap, .gmd-karat-wrap, .gmd-scrap-wrap,
  .gmd-pa, .gd-desk, .gr-reserves, .gmd-coin-wrap) label:not(:has(input[type=checkbox], input[type=radio])) {
  display: block;
  font: 600 13px/1.4 var(--u-sans);
  letter-spacing: .01em;
  text-transform: none;
  color: var(--u-slate);
  margin: 0 0 6px;
}
html body.gmd-unified #primary :is(
  .gmd-fact-label, .gmd-spot-label, .gmd-size-name, .gmd-stat-label, .gmd-sp-lbl, .gmd-fv-lbl,
  .gmd-fv-stat-lbl, .gmd-tool-result-lbl, .gmd-tool-stat-lbl, .gmd-dg-lbl, .gmd-dg-ctx-lbl,
  .gmd-result-label, .gmd-breakdown-label, .gmd-pure-gold-label, .gmd-result-name,
  .gmd-price-cell .label, .gmd-ratio-label, .gmd-prem-stat .lbl, .gmd-prem-spot-lbl,
  .gmd-pa-cur-lbl, .gmd-fx-spot-lbl, .gmd-md-name, .gmd-item-label, .gmd-sp-flow-side .lbl,
  .gmd-price-calc-sub, .gmd-size-premium, .gmd-api-quick-label, .gmd-related-eyebrow,
  .gmd-tip-card strong, .gmd-callout-title) {
  font-family: var(--u-sans) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  letter-spacing: .02em !important;
  text-transform: none;
  color: var(--u-slate) !important;
}
html body.gmd-unified #primary :is(.gmd-tip-card strong, .gmd-callout-title, .gmd-related-eyebrow) {
  color: var(--u-gold-text) !important;
}
html body.gmd-unified #primary :is(.gmd-price-calc-sub, .gmd-size-premium) {
  font-weight: 400 !important;
  font-size: 13px !important;
}/* --------------------------------------------------------------------------
   6. RESULT VALUES: one treatment. Headline numbers Fraunces 600 navy,
   tabular figures; secondary stat values Inter 600 navy.
   Beats: a11y.css / site.css result colours and sizes!important.
   -------------------------------------------------------------------------- */


html body.gmd-unified #primary :is(
  .gmd-sp-val, .gmd-fv-val, .gmd-tool-result-val, .gmd-result-value, .gmd-dg-val,
  .gmd-result-amount, .gmd-pure-gold-value, .gmd-ratio-number, .pg-result-value, .gmd-md-val) {
  font-family: var(--u-serif);
  font-weight: 600;
  color: var(--u-navy) !important;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -.01em;
  line-height: 1.1;
}
html body.gmd-unified #primary :is(.gmd-sp-val, .gmd-fv-val, .gmd-tool-result-val, .gmd-result-value,
  .gmd-dg-val, .gmd-result-amount, .pg-result-value) {
  font-size: clamp(30px, 3vw, 38px) !important;
}
html body.gmd-unified #primary :is(
  .gmd-sp-stat-val, .gmd-fv-stat-val, .gmd-tool-stat-val, .gmd-breakdown-value, .gmd-dg-ctx-val,
  .gmd-stat-value, .gmd-size-value, .gmd-price-cell .value, .gmd-prem-stat .val,
  .gmd-prem-spot-val, .gmd-pa-cur-val, .gmd-fx-spot-val, .gmd-sp-flow-side .num, .gmd-item-result strong) {
  font-family: var(--u-sans) !important;
  font-weight: 600 !important;
  color: var(--u-navy) !important;
  font-variant-numeric: tabular-nums lining-nums !important;
  letter-spacing: 0;
}/* portfolio allocation: the results were bare <dl> numbers in heavy sans */

html body.gmd-unified #primary .gmd-scenario-results > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--u-rule);
}
html body.gmd-unified #primary .gmd-scenario-results dt {
  font: 600 12px/1.45 var(--u-sans);
  letter-spacing: .02em;
  text-transform: none;
  color: var(--u-slate);
  margin: 0 0 4px;
}
html body.gmd-unified #primary .gmd-scenario-results dd {
  margin: 0;
  font: 600 26px/1.15 var(--u-serif) !important;
  color: var(--u-navy);
  font-variant-numeric: tabular-nums lining-nums;
}
html body.gmd-unified #primary .gmd-scenario-results > div:first-child dd { font-size: clamp(30px, 3vw, 38px) !important; }/* the gap between a bold value and its running text ("7.1%to break even") */

html body.gmd-unified #primary :is(.gmd-tool-out, .gmd-tool-results) strong + span { margin-left: .25em; }/* --------------------------------------------------------------------------
   7. CONTROLS: 44px, 1px slate border, 8px radius, Inter 16px, gold focus
   ring, custom select chevron, gold accent on range/checkbox.
   Beats: redesign.css :is(.gmd-tool,.gmd-calc-card,.gmd-pa) inputs
   min-height:46px / radius:3px !important and the gd-desk control rules.
   -------------------------------------------------------------------------- */


html body.gmd-unified #primary :is(.gmd-tool, .gmd-calc-wrap, .gmd-karat-wrap, .gmd-scrap-wrap,
  .gmd-pa, .gd-desk, .gr-reserves, .gmd-dg-inputs)
  :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=submit]):not([type=button]), select) {
  box-sizing: border-box;
  height: 44px !important;
  min-height: 44px !important;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 14px;
  border: 1px solid var(--u-control);
  border-radius: var(--u-ctl-radius);
  background-color: #FFFFFF;
  color: var(--u-navy);
  font: 400 16px/42px var(--u-sans) !important;
  box-shadow: none;
  outline: none;
}
html body.gmd-unified #primary :is(.gmd-tool, .gmd-calc-wrap, .gmd-karat-wrap, .gmd-scrap-wrap,
  .gmd-pa, .gd-desk, .gr-reserves, .gmd-dg-inputs) select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  line-height: normal !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23475569' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px 8px !important;
  cursor: pointer;
}
html body.gmd-unified #primary :is(.gmd-tool, .gmd-calc-wrap, .gmd-karat-wrap, .gmd-scrap-wrap,
  .gmd-pa, .gd-desk, .gr-reserves) textarea {
  box-sizing: border-box;
  min-height: 132px !important;
  padding: 12px 14px;
  border: 1px solid var(--u-control);
  border-radius: var(--u-ctl-radius);
  background: #FFFFFF;
  color: var(--u-navy);
  font: 400 16px/1.5 var(--u-sans);
  resize: vertical;
}
html body.gmd-unified #primary :is(input, select, textarea):focus-visible,
html body.gmd-unified #primary :is(input, select, textarea):focus {
  border-color: var(--u-gold-text) !important;
  outline: 2px solid var(--u-gold-text) !important;
  outline-offset: 1px !important;
  box-shadow: 0 0 0 5px rgba(194,154,69, .28) !important;
}
html body.gmd-unified #primary input[type=range] {
  accent-color: var(--u-gold);
  width: 100%;
  min-height: 44px;
  background: transparent;
  border: 0;
}
html body.gmd-unified #primary :is(input[type=checkbox], input[type=radio]) {
  accent-color: var(--u-gold-text) !important;
  width: 18px;
  height: 18px;
}
html body.gmd-unified #primary :is(input, select, textarea)::placeholder { color: #64748B !important; opacity: 1; }/* help text under a field */

html body.gmd-unified #primary :is(.gmd-tool-row .help, .gmd-tool-help, .pg-help) {
  font: 400 13px/1.5 var(--u-sans);
  color: var(--u-slate) !important;
}
html body.gmd-unified #primary .gmd-tool-row { margin-bottom: 18px; }/* --------------------------------------------------------------------------
   8. BUTTONS. Primary: navy fill, white Inter 600, 8px radius, 44px.
   Secondary: white, navy border. Segmented choices (metal / karat / unit)
   are secondary buttons whose active state is the primary fill.
   No dashed borders anywhere.
   Beats: redesign.css .gd-button gold fill, decision-desk.css 48px/4px,
   394.css dashed .gmd-add-row, per-page gold/caps buttons.
   -------------------------------------------------------------------------- */


html body.gmd-unified #primary :is(
  .gd-button, .pg-button, .gmd-pa-btn, button.gmd-md-retry, .gmd-link-btn, .gmd-dealer-cta,
  .gj-followup .gd-button, .gmd-tool-inputs button[type=submit]:not([class])) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  box-sizing: border-box !important;
  min-height: 44px !important;
  height: auto !important;
  padding: 10px 20px !important;
  background: var(--u-navy) !important;
  border: 1px solid var(--u-navy) !important;
  border-radius: var(--u-ctl-radius) !important;
  color: #FFFFFF !important;
  font: 600 15px/1.3 var(--u-sans) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
html body.gmd-unified #primary :is(.gd-button, .pg-button, .gmd-pa-btn, button.gmd-md-retry, .gmd-link-btn, .gmd-dealer-cta):hover {
  background: #1E293B !important;
  border-color: #1E293B !important;
  color: #FFFFFF !important;
}
html body.gmd-unified #primary :is(.gd-secondary, .gj-button, .gmd-add-row,
  .gmd-metal-btn, .gmd-karat-btn, .gmd-unit-btn) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  min-height: 44px !important;
  height: auto !important;
  padding: 10px 18px !important;
  background: #FFFFFF !important;
  border: 1px solid var(--u-navy) !important;
  border-style: solid !important;
  border-radius: var(--u-ctl-radius) !important;
  color: var(--u-navy) !important;
  font: 600 15px/1.3 var(--u-sans) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
}
html body.gmd-unified #primary :is(.gd-secondary, .gj-button, .gmd-add-row, .gmd-metal-btn, .gmd-karat-btn, .gmd-unit-btn):hover {
  background: #F8FAFC !important;
}/* tools hub search button and filter chips */

html body.gmd-unified #primary :is(.gj-search-row button, .gj-filters button) {
  min-height: 44px;
  border: 1px solid var(--u-control) !important;
  border-radius: var(--u-ctl-radius);
  background: #FFFFFF !important;
  color: var(--u-navy) !important;
  font: 600 14px/1.3 var(--u-sans);
}
html body.gmd-unified #primary .gj-filters button[aria-pressed=true] {
  background: var(--u-navy) !important;
  border-color: var(--u-navy) !important;
  color: #FFFFFF !important;
}/* segmented choices: quieter border until chosen */

html body.gmd-unified #primary :is(.gmd-metal-btn, .gmd-karat-btn, .gmd-unit-btn) {
  border-color: var(--u-control) !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  white-space: nowrap;
}
html body.gmd-unified #primary .gmd-karat-btn { flex-direction: column; gap: 2px; padding: 8px 6px !important; }
html body.gmd-unified #primary .gmd-karat-btn small { font: 500 11px/1.2 var(--u-sans); opacity: .85; }/* the unit toggle sat in a grey tray: flatten it to a row of choices */

html body.gmd-unified #primary .gmd-unit-toggle {
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: 10px;
}
html body.gmd-unified #primary :is(.gmd-metal-btn, .gmd-karat-btn, .gmd-unit-btn):is(.active, [aria-pressed=true], [aria-checked=true]) {
  background: var(--u-navy) !important;
  border-color: var(--u-navy) !important;
  color: #FFFFFF !important;
}
html body.gmd-unified #primary :is(.gmd-metal-buttons, .gmd-karat-buttons, .gmd-unit-toggle) {
  gap: 8px;
}/* the scrap "+ Add another item" control: was a full-width dashed bar */

html body.gmd-unified #primary .gmd-add-row {
  width: auto;
  margin: 4px 0 24px !important;
}
html body.gmd-unified #primary .gmd-remove-btn {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--u-border);
  border-radius: var(--u-ctl-radius);
  background: #FFFFFF;
  color: var(--u-slate);
}
html body.gmd-unified #primary :is(.gd-button, .gd-secondary, .gj-button, .pg-button, .gmd-pa-btn,
  .gmd-link-btn, .gmd-metal-btn, .gmd-karat-btn, .gmd-unit-btn, .gmd-add-row, .gmd-md-retry):focus-visible {
  outline: 2px solid var(--u-gold-text) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px rgba(194,154,69, .28) !important;
}
html body.gmd-unified #primary :is(.gd-button, .pg-button, .gmd-pa-btn, .gmd-md-retry):disabled {
  background: #CBD5E1 !important;
  border-color: #CBD5E1 !important;
  color: #334155 !important;
}/* --------------------------------------------------------------------------
   9. "READ THE GUIDE" link strip on the gold / karat / history pages
   -------------------------------------------------------------------------- */


html body.gmd-unified #primary .gmd-link-cta {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  background: #FFFFFF !important;
  border: 1px solid var(--u-border);
  border-radius: var(--u-radius);
  box-shadow: none;
  padding: 24px 28px !important;
  margin: 0 0 48px !important;
  text-align: left;
}
html body.gmd-unified #primary .gmd-link-cta h3 {
  font: 600 20px/1.3 var(--u-serif);
  color: var(--u-navy);
  margin: 0 !important;
}
html body.gmd-unified #primary .gmd-link-cta .gmd-link-btn { white-space: nowrap; }/* --------------------------------------------------------------------------
   10. CONTENT SECTIONS below the tool: one heading colour (navy), one rhythm
   -------------------------------------------------------------------------- */


html body.gmd-unified #primary :is(.gmd-content-section, .gmd-coin-section, .gmd-tool-extra, .gmd-tool-explainer, .gr-method) {
  margin: 48px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent;
  max-width: none !important;
}
html body.gmd-unified #primary :is(.gmd-content-section, .gmd-coin-section, .gmd-tool-extra, .gmd-tool-explainer, .gr-method) > h2 {
  font: 600 30px/1.2 var(--u-serif) !important;
  letter-spacing: -.015em;
  color: var(--u-navy);
  margin: 0 0 16px !important;
}
html body.gmd-unified #primary :is(.gmd-content-section, .gmd-coin-section, .gmd-tool-extra) > h2 {
  border-bottom: 0;
  padding-bottom: 0;
}
html body.gmd-unified #primary :is(.gmd-content-section, .gmd-coin-section, .gmd-tool-extra) > :is(ul, ol) { max-width: 75ch; }
html body.gmd-unified #primary :is(.gmd-content-section, .gmd-coin-section, .gmd-tool-extra) h2 em { color: var(--u-gold-text); }
html body.gmd-unified #primary :is(.gmd-content-section, .gmd-coin-section, .gmd-tool-extra) > h3 {
  font: 600 21px/1.3 var(--u-serif) !important;
  color: var(--u-navy) !important;
  margin: 28px 0 10px !important;
}
html body.gmd-unified #primary :is(.gmd-content-section, .gmd-coin-section, .gmd-tool-extra, .gmd-tool-explainer) :is(p, li) {
  font-size: 16px;
  line-height: 1.7 !important;
  color: #1E293B !important;
}
html body.gmd-unified #primary :is(.gmd-content-section, .gmd-coin-section, .gmd-tool-extra) > p { max-width: 75ch; }
html body.gmd-unified #primary :is(.gmd-content-section, .gmd-coin-section) strong { color: var(--u-navy) !important; }
html body.gmd-unified #primary .gmd-tool-extra { border-top: 1px solid var(--u-border) !important; padding-top: 40px !important; }
html body.gmd-unified #primary :is(.gmd-tip-card, .gmd-callout) {
  background: var(--u-warm);
  border: 0;
  border-left: 3px solid var(--u-gold);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
}/* --------------------------------------------------------------------------
   11. COIN PAGES: majority template (Eagle, Krugerrand, Maple, Sovereign,
   Britannia, Philharmonic) is the model; Kangaroo, Panda, Libertad and
   Buffalo are pulled onto it.
   -------------------------------------------------------------------------- */


html body.gmd-unified #primary .gmd-facts-card > h2,
html body.gmd-unified #primary .gmd-price-calc-card > h2,
html body.gmd-unified #primary .gmd-dealer-card > h2 {
  font-size: 26px !important;
}
html body.gmd-unified #primary .gmd-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 32px;
}
html body.gmd-unified #primary .gmd-facts-grid > * {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--u-rule);
}
html body.gmd-unified #primary .gmd-fact-value {
  font: 500 16px/1.45 var(--u-sans);
  color: var(--u-navy);
}
html body.gmd-unified #primary .gmd-fact-value strong { color: var(--u-navy); font-weight: 600; }
html body.gmd-unified #primary .gmd-price-calc-sub { margin: 0 0 20px; }
html body.gmd-unified #primary .gmd-size-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px;
}
html body.gmd-unified #primary .gmd-size-card {
  padding: 18px 16px;
  text-align: left;
}
html body.gmd-unified #primary .gmd-size-weight {
  font: 600 20px/1.2 var(--u-serif);
  color: var(--u-navy);
  margin: 2px 0 10px;
}
html body.gmd-unified #primary .gmd-size-value { font-size: 20px; }/* FAQ list (coins and calculators) */

html body.gmd-unified #primary .gmd-faq-item {
  border: 0 !important;
  border-bottom: 1px solid var(--u-border);
  padding: 20px 0;
  margin: 0;
  background: transparent;
}
html body.gmd-unified #primary .gmd-faq-item:first-of-type { border-top: 1px solid var(--u-border) !important; }
html body.gmd-unified #primary .gmd-faq-item :is(h3, h4) {
  font: 600 18px/1.4 var(--u-sans);
  color: var(--u-navy) !important;
  margin: 0 0 8px !important;
}
html body.gmd-unified #primary .gmd-faq-item p { margin: 0; }/* related coins */

html body.gmd-unified #primary .gmd-related-coins {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px;
}
html body.gmd-unified #primary .gmd-related-coins a { padding: 18px 20px; text-decoration: none !important; }
html body.gmd-unified #primary .gmd-related-coins a:hover { border-color: var(--u-gold-text) !important; }
html body.gmd-unified #primary .gmd-related-name { font: 600 19px/1.3 var(--u-serif); color: var(--u-navy); }/* minority template sections take the majority rhythm */

html body.gmd-unified #primary .gmd-coin-section > h3 { font-family: var(--u-serif) !important; }
html body.gmd-unified #primary .gmd-dealer-card :is(p, li) { font-size: 16px; line-height: 1.7; color: #1E293B !important; }
html body.gmd-unified #primary .gmd-coin-wrap > .gmd-dealer-card { margin: 48px 0 0 !important; }/* table of contents strip under the coin hero */

html body.gmd-unified #primary details.gmd-toc {
  background: #FFFFFF;
  border: 1px solid var(--u-border) !important;
  border-radius: 10px !important;
  margin: 20px 0 0 !important;
  max-width: 68ch;
}/* coins hub cards */

html body.gmd-unified #primary #gmd .gmd-explore-card {
  background: #FFFFFF;
  border: 1px solid var(--u-border);
  border-radius: var(--u-radius);
  box-shadow: var(--u-shadow) !important;
}
html body.gmd-unified #primary #gmd .gmd-explore-card:hover { border-color: var(--u-gold-text) !important; }
html body.gmd-unified #primary #gmd .gmd-explore-cta { color: var(--u-gold-text); }
html body.gmd-unified #primary #gmd .gmd-guides-header { text-align: left; }
html body.gmd-unified #primary #gmd :is(.gmd-guides, .gmd-guides-inner) {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent;
}/* --------------------------------------------------------------------------
   12. SHARED FOOTER BLOCKS: "Put this in context" (gj-followup), the
   "Did this help?" disclosure and the related grid (#gmd-rel).
   One white card on the column edge, even padding; related grid without
   the grey band. Beats: reader-journeys.css max-width:1000px + surface,
   redesign.css #gmd-rel padding/background!important, per-page #gmd-rel.
   -------------------------------------------------------------------------- */


html body.gmd-unified #primary .entry-content > .gj-followup,
html body.gmd-unified #primary .gj-followup {
  max-width: none !important;
  margin: 56px 0 0 !important;
  padding: 28px !important;
  background: #FFFFFF;
  border: 1px solid var(--u-border);
  border-top: 3px solid var(--u-gold);
  border-radius: var(--u-radius);
  box-shadow: var(--u-shadow);
}
html body.gmd-unified #primary .gj-followup-links { gap: 24px; align-items: center; }
html body.gmd-unified #primary .gj-followup-links h2 {
  font: 600 24px/1.25 var(--u-serif);
  color: var(--u-navy);
  margin: 0 0 6px !important;
}
html body.gmd-unified #primary .gj-followup-links p { font-size: 15px; color: var(--u-slate) !important; margin: 0; }
html body.gmd-unified #primary .gj-feedback {
  margin: 24px 0 0 !important;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--u-rule);
}
html body.gmd-unified #primary .gj-feedback > p { margin: 0 0 12px; color: var(--u-slate) !important; }
html body.gmd-unified #primary .gj-feedback form .gd-button { margin-top: 16px; }/* every disclosure: custom +/− instead of the native triangle */

html body.gmd-unified #primary .entry-content details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  cursor: pointer;
  font-family: var(--u-sans) !important;
  font-weight: 600 !important;
  color: var(--u-navy);
}
html body.gmd-unified #primary .entry-content details > summary::-webkit-details-marker { display: none !important; }
html body.gmd-unified #primary .entry-content details:not(.gmd-toc) > summary::after {
  content: '+';
  flex: 0 0 auto;
  font: 400 22px/1 var(--u-sans);
  color: var(--u-gold-text);
}
html body.gmd-unified #primary .entry-content details[open]:not(.gmd-toc) > summary::after { content: '\2212'; }/* related grid */

html body.gmd-unified #primary #gmd-rel {
  max-width: none !important;
  margin: 56px 0 0 !important;
  padding: 40px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--u-border) !important;
  border-radius: 0 !important;
}
html body.gmd-unified #primary #gmd-rel .gmd-rel-header { text-align: left; margin: 0 0 20px; }
html body.gmd-unified #primary #gmd-rel .gmd-rel-header h2 {
  font: 600 26px/1.25 var(--u-serif);
  color: var(--u-navy);
  margin: 0 0 4px !important;
}
html body.gmd-unified #primary #gmd-rel .gmd-rel-header p { font-size: 15px; color: var(--u-slate) !important; }
html body.gmd-unified #primary #gmd-rel .gmd-rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 12px !important;
}
html body.gmd-unified #primary #gmd-rel .gmd-rel-card {
  background: #FFFFFF;
  border: 1px solid var(--u-border) !important;
  border-radius: 10px !important;
  box-shadow: none;
  padding: 18px 20px !important;
  text-align: left;
  align-items: flex-start;
  height: auto;
  transform: none;
}
html body.gmd-unified #primary #gmd-rel .gmd-rel-card:hover { border-color: var(--u-gold-text) !important; }
html body.gmd-unified #primary #gmd-rel .gmd-rel-title { font: 600 18px/1.3 var(--u-serif); color: var(--u-navy); }
html body.gmd-unified #primary #gmd-rel .gmd-rel-meta { font: 400 13px/1.55 var(--u-sans); color: var(--u-slate) !important; margin: 6px 0 10px !important; }
html body.gmd-unified #primary #gmd-rel .gmd-rel-cta {
  font: 600 13px/1.4 var(--u-sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--u-gold-text);
}/* --------------------------------------------------------------------------
   13. INLINE-STYLED REFERENCE + FAQ SECTIONS (world currencies, premium
   over spot, price alerts). These carry their own inline grey background,
   centred 760-920px columns and boxed <details>; every override here needs
   !important because the value is set in a style="" attribute.
   -------------------------------------------------------------------------- */


html body.gmd-unified #primary .entry-content > section[style] {
  background: transparent !important;
  padding: 48px 0 0 !important;
  margin: 48px 0 0 !important;
  border-top: 1px solid var(--u-border) !important;
}
html body.gmd-unified #primary .entry-content > section[style] > div[style] {
  max-width: none !important;
  margin: 0 !important;
}
html body.gmd-unified #primary .entry-content > section[style] > div[style] > div[style]:first-child {
  text-align: left !important;
  margin-bottom: 20px !important;
}
html body.gmd-unified #primary .entry-content > section[style] > div[style] > div[style]:first-child > div[style] {
  font: 600 12px/1.5 var(--u-sans) !important;
  letter-spacing: .08em !important;
  color: var(--u-gold-text);
}
html body.gmd-unified #primary .entry-content > section[style] details[style] {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--u-border) !important;
  border-radius: 0 !important;
  padding: 4px 0 !important;
  margin: 0 !important;
}
html body.gmd-unified #primary .entry-content > section[style] details[style] > summary[style] {
  font: 600 17px/1.4 var(--u-sans) !important;
}/* --------------------------------------------------------------------------
   14. TEMPLATE ODDITIES
   -------------------------------------------------------------------------- *//* central bank reserves: section headings start at the card edge */



html body.gmd-unified #primary .gr-section-heading { margin: 0 0 14px; }
html body.gmd-unified #primary .gr-section-heading > h2 { margin-top: 0 !important; }/* storage cost result rows */

html body.gmd-unified #primary .gmd-st-card { padding: 16px 18px; }
html body.gmd-unified #primary .gmd-st-card h3 { margin: 0 0 6px !important; font-size: 18px !important; }
html body.gmd-unified #primary .gmd-st-card h3 .price { font-family: var(--u-sans); font-weight: 600; font-variant-numeric: tabular-nums; }/* market report: the body column (inline max-width:720px; margin:0 auto)
   sat centred under a left-aligned H1; pin it to the frame edge */

html body.gmd-unified #primary .entry-content > h1.gmd-page-title { margin-top: 24px !important; }
html body.gmd-unified #primary .entry-content > h1.gmd-page-title + div[style] {
  margin-left: 0 !important;
  margin-right: auto;
  max-width: 75ch !important;
}/* price history timeline: heading on the left edge like every other section */

html body.gmd-unified #primary .gmd-timeline > h2 { text-align: left; }/* gold-to-silver ratio: was a centred grey box; now a result card */

html body.gmd-unified #primary .gmd-ratio-meaning { text-align: left; margin-left: 0; max-width: 60ch; }
html body.gmd-unified #primary .gmd-ratio-card { text-align: left; }
html body.gmd-unified #primary .gmd-ratio-number { font-size: clamp(48px, 6vw, 64px); }
html body.gmd-unified #primary .gmd-ratio-prices { justify-content: flex-start; }/* price history stat tiles */

html body.gmd-unified #primary .gmd-stats-grid { gap: 12px; margin: 0 0 40px; }
html body.gmd-unified #primary .gmd-stat-card { padding: 20px; }
html body.gmd-unified #primary .gmd-stat-value { font: 600 26px/1.15 var(--u-serif) !important; }/* dow:gold context tiles */

html body.gmd-unified #primary .gmd-dg-ctx { padding: 18px; text-align: left; }
html body.gmd-unified #primary .gmd-dg-result { text-align: left; }/* per-gram fieldsets: no raw legend cutting the border */

html body.gmd-unified #primary .pg-comparator fieldset {
  border: 1px solid var(--u-border) !important;
  border-radius: var(--u-radius) !important;
  padding: 24px !important;
  margin: 0 0 16px;
  background: #FFFFFF !important;
}
html body.gmd-unified #primary .pg-comparator legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 16px;
  font: 600 20px/1.3 var(--u-serif);
  color: var(--u-navy);
}
html body.gmd-unified #primary .pg-comparator legend + * { clear: both; }
html body.gmd-unified #primary .pg-comparator .pg-input-guide {
  background: var(--u-warm);
  border-radius: 0 8px 8px 0;
}
html body.gmd-unified #primary .pg-comparator .pg-result {
  background: #FFFFFF;
  border: 1px solid var(--u-border);
  border-radius: 10px;
}
html body.gmd-unified #primary .pg-comparator .pg-result.pg-lower-cost { border-color: var(--u-gold-text) !important; }
html body.gmd-unified #primary .pg-comparator .pg-comparison :is(h2, h3):first-child { margin-top: 0 !important; }
html body.gmd-unified #primary .pg-comparator .pg-summary {
  background: var(--u-warm);
  border-left: 3px solid var(--u-gold);
}/* scrap offer result: was #f1f5f9 grey with a brown rule */

html body.gmd-unified #primary .gmd-scrap-wrap .gmd-offer-result {
  background: var(--u-warm);
  border: 1px solid var(--u-warm-border);
  border-left: 3px solid var(--u-gold);
  border-radius: 10px;
}
html body.gmd-unified #primary .gmd-scrap-wrap :is(.gmd-pure-gold-summary, .gmd-result-col.featured) {
  background: var(--u-warm);
  border: 1px solid var(--u-warm-border);
  border-radius: 10px;
}
html body.gmd-unified #primary .gmd-scrap-wrap .gmd-item-grid { align-items: start; }
html body.gmd-unified #primary .gmd-scrap-wrap .gmd-pure-gold-summary { margin: 0 0 12px; }
html body.gmd-unified #primary .gmd-scrap-wrap .gmd-result-col.featured { margin: 0 0 32px; }/* central bank reserves table area */

html body.gmd-unified #primary .gr-table-scroll { border: 1px solid var(--u-border); border-radius: 10px; }/* volatility examples: boxed disclosures in one style */

html body.gmd-unified #primary .gd-vol-example {
  border: 1px solid var(--u-border);
  border-radius: 10px;
  padding: 0 20px;
  margin: 0 0 12px;
  background: #FFFFFF;
}/* the gd-desk narrow column (inflation, volatility) uses the full frame */

html body.gmd-unified #primary .gd-narrow { max-width: none !important; }
html body.gmd-unified #primary .gd-desk form:not([data-gd-feedback]) .gd-tool-grid { gap: 16px 20px; }
html body.gmd-unified #primary .gd-desk form:not([data-gd-feedback]) .gd-button { margin-top: 20px; }/* macro dashboard */

html body.gmd-unified #primary .gmd-md-controls { margin: 0 0 24px; }
html body.gmd-unified #primary #gmd-md-grid .gmd-md-card { padding: 20px; }/* tables inside cards and sections */

html body.gmd-unified #primary :is(.gmd-karat-table, .gmd-conv-table) { background: #FFFFFF; }
html body.gmd-unified #primary :is(.gmd-tablewrap, .gmd-table-wrap) table { font-variant-numeric: tabular-nums; }/* --------------------------------------------------------------------------
   15. PHONE: smaller hero so the first input shows on a 390x844 screen,
   single-column grids, 44px targets. Phone overrides use a doubled body
   class so they always outrank the desktop rule they replace.
   -------------------------------------------------------------------------- */


@media (max-width: 900px) {
  html body.gmd-unified.gmd-unified #primary :is(.gmd-tool-grid, .gmd-calc-grid) {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  html body.gmd-unified.gmd-unified #primary .gmd-breadcrumbs { padding-top: 12px !important; }
  html body.gmd-unified.gmd-unified #primary :is(
    .gmd-tool-hero, .gmd-calc-hero, .gmd-karat-hero, .gmd-scrap-hero, .gmd-hist-hero,
    .gmd-ratio-hero, .gmd-coin-hero, .gmd-pa-hero, .gd-intro, .gr-intro, .gj-heading, [id=gmd] .gmd-page-hero) {
    padding: 12px 0 16px !important;
    margin: 0 0 16px !important;
  }
  html body.gmd-unified.gmd-unified #primary :is(
    .gmd-tool-hero, .gmd-calc-hero, .gmd-karat-hero, .gmd-scrap-hero, .gmd-hist-hero,
    .gmd-ratio-hero, .gmd-coin-hero, .gmd-pa-hero, .gd-intro, .gr-intro, .gj-heading, [id=gmd] .gmd-page-hero) h1,
  html body.gmd-unified.gmd-unified #primary h1.gmd-page-title {
    font-size: 30px !important;
    line-height: 1.15 !important;
    margin: 0 0 10px !important;
  }
  html body.gmd-unified.gmd-unified #primary :is(
    .gmd-tool-eyebrow, .gmd-calc-eyebrow, .gmd-karat-eyebrow, .gmd-scrap-eyebrow, .gmd-hist-eyebrow,
    .gmd-ratio-eyebrow, .gmd-coin-eyebrow, .gmd-pa-eyebrow, .gr-kicker, .gd-intro .gd-label, .gj-heading .gd-label,
    [id=gmd] .gmd-page-hero-tag) {
    font-size: 11px !important;
    margin: 0 0 6px !important;
  }/* intro: three lines, then the tool. Text is not removed, only clamped
     visually on tool pages; coin intros stay in full. */
  
  html body.gmd-unified.gmd-unified #primary :is(.gmd-tool-intro, .gmd-pa-intro, .gd-intro .gd-deck,
    .gmd-calc-hero > p, .gmd-karat-hero > p, .gmd-scrap-hero > p, .gmd-hist-hero > p, .gmd-ratio-hero > p) {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }
  html body.gmd-unified.gmd-unified #primary p.gmd-coin-intro.gmd-coin-intro { font-size: 15px !important; line-height: 1.6 !important; }
  html body.gmd-unified.gmd-unified #primary :is(
    .gmd-tool-inputs, .gmd-tool-out, .gmd-tool-results, .gmd-calc-input-section, .gmd-calc-result,
    .gmd-scrap-wrap .gmd-calc-card, .gmd-prem-card, .gmd-prem-results, .gmd-pa-form, .gmd-dg-inputs,
    .gmd-dg-result, .pg-offer, .pg-comparison, .gr-explorer, .gd-desk form:not([data-gd-feedback]),
    .gmd-facts-card, .gmd-price-calc-card, .gmd-dealer-card, .gmd-ratio-card, .gmd-chart-box,
    .gmd-vol-chart-wrap, .gr-overview, .gmd-fx-bar) {
    padding: 20px 16px !important;
  }
  html body.gmd-unified.gmd-unified #primary :is(.gmd-tool-inputs, .gmd-tool-out, .gmd-tool-results,
    .gmd-calc-input-section, .gmd-calc-result, .gmd-scrap-wrap .gmd-calc-card, .gmd-prem-card,
    .gmd-facts-card, .gmd-price-calc-card, .gmd-dealer-card) > :is(h2, h3) {
    font-size: 20px !important;
    margin: 0 0 14px !important;
  }
  html body.gmd-unified.gmd-unified #primary .gmd-spot-bar { padding: 14px 16px !important; }
  html body.gmd-unified.gmd-unified #primary .gmd-facts-grid { grid-template-columns: minmax(0, 1fr) !important; }
  html body.gmd-unified.gmd-unified #primary .gmd-size-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html body.gmd-unified.gmd-unified #primary .gmd-related-coins { grid-template-columns: minmax(0, 1fr) !important; }
  html body.gmd-unified.gmd-unified #primary :is(.gmd-content-section, .gmd-coin-section, .gmd-tool-extra, .gmd-tool-explainer, .gr-method) > h2 {
    font-size: 25px !important;
  }
  html body.gmd-unified.gmd-unified #primary .gj-followup { padding: 20px 16px !important; margin-top: 40px !important; }
  html body.gmd-unified.gmd-unified #primary .gj-followup-links { display: block; }
  html body.gmd-unified.gmd-unified #primary .gj-followup-links > a { margin-top: 16px; width: 100%; }
  html body.gmd-unified.gmd-unified #primary #gmd-rel { padding-top: 32px !important; margin-top: 40px !important; }
  html body.gmd-unified.gmd-unified #primary #gmd-rel .gmd-rel-grid { grid-template-columns: minmax(0, 1fr) !important; }
  html body.gmd-unified.gmd-unified #primary .gmd-link-cta { padding: 20px 16px !important; }
  html body.gmd-unified.gmd-unified #primary .gmd-link-cta .gmd-link-btn { white-space: normal; width: 100%; }
  html body.gmd-unified.gmd-unified #primary :is(.gmd-metal-btn, .gmd-karat-btn, .gmd-unit-btn) { padding: 10px 8px !important; }
}/* --------------------------------------------------------------------------
   16. DARK CARD EXCEPTION
   The API "Try it right now" card is navy by design: its label needs the
   bright gold (8.9:1), not the slate data-label colour.
   -------------------------------------------------------------------------- */


html body.gmd-unified #primary .gmd-api-quick .gmd-api-quick-label { color: #E2C27A !important; }
