/*
 * ساتیار گلد: طراحی ۲ (satyargold-design 2.3.0)
 * Skin 1, body.sgd-bullion: model Royal Mint (royalmint.com/invest) for melted gold, coins, prices, cities, guides.
 * Skin 2, body.sgd-jewel:   model Altinbas (altinbas.com) for the gallery (page 314), the jewellery category and product pages.
 * No image, logo or text of the model sites is used. Persian text keeps the default tracking and case (no spacing, no transforms).
 *
 * Contrast pairs introduced here (WCAG ratio; text needs 4.5, large text 3, lines and icons 3):
 *   body text   #5F5B57 on stone #F4F1EB 5.97 | on band #EDEAE5 5.61 | on white 6.73
 *   H2/H3       #483C78 on stone 8.49 | on band 7.98 | on picked chip #E7E3EF 7.58
 *   H1 ink      #0E072C on stone 17.2
 *   links       #4F4A6B on stone 7.38 | on band 6.93
 *   white       on header #211C35 16.4 | on ticker #2E2A42 13.8 | on mustard #86723F 4.67 | on muted #726D7F 4.99
 *   mustard-lt  #C9B67F on header 8.17 | on ticker 6.87 (current-item underline, ticker lead)
 *   dark button #211C35 on mustard #86723F 3.50 (shape, 3 needed); white on dark button 16.4
 *   tile word   #EADFBE on dark #211C35 12.32; tile frame and icon #C9B67F on #211C35 8.17; notice #55514D on #E4E0D8 5.97; hero H1 #483C78 on stone 8.49
 *   footer      links #DCD9E6 on #211C35 11.8 | copyright #BDB9CC 8.56
 *   calculator  ink #211C35 on band 13.65 | text #55514D on band 6.55 | field border #7D776E on white 4.43, on band 3.70
 *   big number  mustard #86723F on stone 4.15 (large text, 3 needed)
 *   jewel       slate #2B2D3A on white 13.6 | on tint #F5F8FB 12.8 | accent #5B5675 on white 6.92 | on tint 6.50
 *               quiet #4A4C5A on white 8.49 | on tint 7.97 | on banner #EEF3F8 7.61 | WhatsApp cue #1F8F4F on white 4.12 (icon)
 * Specificity is raised with ID-level selectors (#page, #masthead) instead of the important flag; nothing needs it.
 */

@font-face {
	font-family: "Markazi Text";
	src: url("fonts/MarkaziText-arabic.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
	font-family: "Markazi Text";
	src: url("fonts/MarkaziText-latin.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--sgd-stone: #f4f1eb;
	--sgd-band: #edeae5;
	--sgd-dark: #211c35;
	--sgd-dark2: #2e2a42;
	--sgd-mustard: #86723f;
	--sgd-mustard-lt: #c9b67f;
	--sgd-muted: #726d7f;
	--sgd-purple: #483c78;
	--sgd-ink: #0e072c;
	--sgd-body: #5f5b57;
	--sgd-link: #4f4a6b;
	--sgd-line: #d6d1c7;
	--sgd-picked: #e7e3ef;
	--sgd-tile-a: #6a5fb0;
	--sgd-tile-b: #4a3f8c;
	--sgd-tile-c: #30286a;
	--sgd-on-dark: #dcd9e6;
	--sgd-note: #e4e0d8;
	--sgd-hero-frame: #d8d3c8;
	--sgd-hero-light: #e7e2d6;
	--sgd-serif: "Markazi Text", "Vazirmatn", Georgia, serif;
	--sgd-serif-w: 400;
	--sgd-sans: var(--sg-font, "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif);
	--sgd-w: 1100px;
	/* jewellery skin */
	--sgd-j-accent: #5b5675;
	--sgd-j-tint: #f5f8fb;
	--sgd-j-slate: #2b2d3a;
	--sgd-j-quiet: #4a4c5a;
	--sgd-j-line: #dfe5ec;
}

/* Languages other than Persian (2.3.0).
   Sorani Kurdish: the headline face Markazi Text has none of the letters ڕ ڵ ۆ ێ ە, so a Kurdish headline would be drawn in two
   typefaces with broken joins; Kurdish headlines use Vazirmatn alone (it has every Sorani letter) in a heavier weight, which gives
   the sans face the presence Markazi has at 400. Arabic keeps Markazi Text (its Arabic subset covers the whole alphabet). */
:root:lang(ckb),
:lang(ckb) {
	--sgd-serif: "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif;
	--sgd-serif-w: 600;
}

/* Arabic and Sorani headlines need a little more line height for the marks above and below the letters. */
:lang(ar) body.sgd-bullion #page :is(h1, h2, h3, h4, .entry-title),
:lang(ckb) body.sgd-bullion #page :is(h1, h2, h3, h4, .entry-title) {
	line-height: 1.5;
}

/* Numbers and prices inside a line of the other direction keep their own order (Latin digits in Arabic or Kurdish text, a price
   after a city name in an English line). */
.sgd-ticker__item > span,
.sgh-coin__amount,
.sgh-coin__value,
.sgh-coin__cur,
.sgd-coin__meta,
.sgh-coin__meta {
	unicode-bidi: isolate;
}

/* Integration fixes (2.3.0, 2026-11-18), languages other than Persian only (the Persian page keeps html lang="fa-IR"):
   1. the numbered steps of the home page counted in Persian digits («۱ ۲ ۳ ۴») on English, Arabic and Kurdish pages;
   2. the site title is the Latin brand «Satyar Gold» in every language: on Kurdish pages it took the Vazirmatn 600 headline face
      and wrapped to two lines on phones; it keeps the face of the other languages;
   3. the rate of a city (24,540,000) broke inside the number in the two-column city cards on phones (Kurdish also on the
      prices page): one line, a size that fits the card. */
html:not([lang="fa-IR"]) .sgh-steps > li::before {
	content: counter(sgh-step);
}

html:lang(ckb) :is(body.sgd-bullion, body.sgd-hdr-dark, body.sgd-hdr-light) #masthead :is(.site-title, .site-title a, .ast-site-identity .site-title a) {
	font-family: "Markazi Text", Georgia, serif;
	font-weight: 400;
}

@media (max-width: 1024px) {
	/* 2.3.1: also Persian (owner 2026-11-18); html keeps it above the base rule */ html body.sgd-bullion .sg-gram .sg-rate__value {
		font-size: clamp(22px, 7.2vw, 34px);
		white-space: nowrap;
	}

	html:lang(ckb) body.sgd-bullion .sg-gram .sg-rate__value {
		font-size: clamp(19px, 5.9vw, 30px);
	}
}

/* ====================================================================== 1. Base */

body.sgd-bullion,
body.sgd-jewel {
	font-family: var(--sgd-sans);
	font-weight: 350;
	letter-spacing: normal;
	text-transform: none;
}

body.sgd-bullion {
	background: var(--sgd-stone);
	color: var(--sgd-body);
}

body.sgd-jewel {
	background: #fff;
	color: var(--sgd-j-slate);
}

/* Astra paints the content wrappers itself; both skins own the page colour. */
body.sgd-bullion #content,
body.sgd-bullion .site-content,
body.sgd-bullion #primary,
body.sgd-bullion .ast-container {
	background: transparent;
}

body.sgd-bullion #content .ast-container,
body.sgd-jewel #content .ast-container {
	display: block;
}

body.sgd-bullion #page,
body.sgd-jewel #page {
	overflow-x: clip;
}

body.sgd-bullion .entry-content,
body.sgd-jewel .entry-content {
	font-size: 18px;
	line-height: 1.95;
}

body.sgd-bullion .entry-content :where(p, li, td, th, dd) {
	font-weight: 350;
	color: var(--sgd-body);
}

body.sgd-jewel .entry-content :where(p, li, td, th, dd) {
	font-weight: 300;
	color: var(--sgd-j-quiet);
}

/* Headings, Royal Mint: Markazi Text at large sizes, regular weight, purple (H1 ink). */
body.sgd-bullion #page :is(h1, h2, h3, h4, .entry-title) {
	font-family: var(--sgd-serif);
	font-weight: var(--sgd-serif-w, 400);
	letter-spacing: normal;
	text-transform: none;
	line-height: 1.3;
	text-wrap: balance;
}

body.sgd-bullion #page :is(h2, h3, h4) {
	color: var(--sgd-purple);
}

body.sgd-bullion #page :is(h1, .entry-title) {
	color: var(--sgd-ink);
	font-size: clamp(34px, 4vw, 46px);
	text-align: center;
}

body.sgd-bullion .entry-content > h1:first-child {
	margin-block: 60px 20px;
}

body.sgd-bullion #page .entry-content .sg-hero h1 {
	text-align: start;
}

body.sgd-bullion #page .entry-content h2 {
	font-size: clamp(32px, 4vw, 44px);
	margin-block: 1.3em 0.45em;
}

body.sgd-bullion #page .entry-content h3 {
	font-size: clamp(26px, 3vw, 32px);
	line-height: 1.35;
	margin-block: 1.4em 0.4em;
}

body.sgd-bullion #page .entry-content h4 {
	font-size: 24px;
}

/* Long text: a reading column of about 900px, as on the reference. */
body.sgd-bullion .entry-content > :where(h1, h2, h3, h4, p, ul.wp-block-list, ol.wp-block-list, dl, blockquote, figure.wp-block-table, details) {
	max-width: 900px;
	margin-inline: auto;
}

body.sgd-bullion .entry-content > h1 + p,
body.sgd-bullion .entry-content > p.has-small-font-size {
	text-align: center;
}

body.sgd-bullion .entry-content > p.has-small-font-size {
	font-size: 15px;
	line-height: 1.8;
}

body.sgd-bullion .entry-content > .sg-gram.sg-calc {
	max-width: 900px;
	margin-inline: auto;
}

/* Underlined links, quiet colour (the reference's caption links). The child theme draws a gold underline; here it follows the text. */
body.sgd-bullion .entry-content a:not(.wp-element-button):not(.wp-block-button__link):not(.button):not(.sgd-btn):not(.sg-btn),
body.sgd-bullion .entry-content a:not(.wp-element-button):not(.wp-block-button__link):not(.button):not(.sgd-btn):not(.sg-btn):hover {
	color: var(--sgd-link);
	text-decoration-line: underline;
	text-decoration-color: currentcolor;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}

body.sgd-bullion .entry-content a:not(.wp-element-button):not(.wp-block-button__link):not(.button):not(.sgd-btn):not(.sg-btn):hover {
	color: var(--sgd-ink);
	text-decoration-thickness: 2px;
}

/* Lists in text */
body.sgd-bullion .entry-content :where(ul.wp-block-list, ol.wp-block-list) li::marker {
	color: var(--sgd-mustard);
}

/* Tables: hairlines only. */
body.sgd-bullion .entry-content .wp-block-table table {
	border: 0;
	border-collapse: collapse;
	font-size: 16px;
}

body.sgd-bullion .entry-content .wp-block-table :is(th, td) {
	border: 0;
	border-bottom: 1px solid var(--sgd-line);
	padding: 12px 14px;
	background: transparent;
}

body.sgd-bullion .entry-content .wp-block-table thead th {
	font-weight: 500;
	color: var(--sgd-ink);
	border-bottom: 1px solid var(--sgd-muted);
}

/* ====================================================================== 2. Buttons */

body.sgd-bullion #page :is(.sgd-btn, .wp-element-button, .wp-block-button__link, .ast-button, .button, button.single_add_to_cart_button, input[type="submit"], .woocommerce a.button, .woocommerce button.button) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 28px;
	border: 1px solid var(--sgd-muted);
	border-radius: 0;
	background: var(--sgd-muted);
	color: #fff;
	font-family: var(--sgd-sans);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.4;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
}

body.sgd-bullion #page :is(.sgd-btn, .wp-element-button, .wp-block-button__link, .ast-button, .button, button.single_add_to_cart_button, input[type="submit"], .woocommerce a.button, .woocommerce button.button):is(:hover, :focus-visible) {
	background: var(--sgd-dark);
	border-color: var(--sgd-dark);
	color: #fff;
}

/* Secondary: a 1px dark outline. */
body.sgd-bullion #page :is(.wp-block-button.is-style-outline > .wp-block-button__link, .sgd-btn--line) {
	background: transparent;
	border-color: var(--sgd-dark);
	color: var(--sgd-dark);
}

body.sgd-bullion #page :is(.wp-block-button.is-style-outline > .wp-block-button__link, .sgd-btn--line):is(:hover, :focus-visible) {
	background: var(--sgd-dark);
	color: #fff;
}

body.sgd-bullion .wp-block-buttons {
	gap: 14px;
	justify-content: center;
}

/* ====================================================================== 3. Strips around the header */

.sgd-ticker {
	background: var(--sgd-dark2);
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
}

.sgd-ticker__in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	max-width: 1200px;
	margin-inline: auto;
	padding: 8px 20px;
}

.sgd-ticker__lead {
	margin-inline-end: 18px;
	color: var(--sgd-mustard-lt);
}

.sgd-ticker__item {
	padding-inline: 18px;
	border-inline-start: 1px solid rgba(255, 255, 255, 0.28);
}

.sgd-ticker__lead + .sgd-ticker__item {
	border-inline-start: 0;
}

.sgd-ticker__item b {
	font-weight: 500;
	margin-inline-end: 4px;
}

.sgd-bar {
	background: var(--sgd-mustard);
	color: #fff;
}

.sgd-bar__in {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	max-width: 1200px;
	margin-inline: auto;
	padding: 14px 20px;
}

body #page .sgd-bar__text {
	margin: 0;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.5;
	color: #fff;
}

body #page .sgd-bar__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 28px;
	border: 0;
	border-radius: 0;
	background: var(--sgd-dark);
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: none;
}

body #page .sgd-bar__btn:is(:hover, :focus-visible) {
	background: #000;
	color: #fff;
}

.sgd-bar__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.sgd-note {
	background: var(--sgd-note);
}

body #page .sgd-note__text {
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 24px;
	font-size: 13px;
	font-weight: 350;
	line-height: 1.7;
	text-align: start;
	color: #55514d;
}

.sgd-promo {
	background: var(--sgd-j-tint);
}

body #page .sgd-promo__text {
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 20px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.7;
	text-align: center;
	color: var(--sgd-j-slate);
}

/* ====================================================================== 4. Header, dark (bullion pages and the dark jewellery variant) */

:is(body.sgd-bullion, body.sgd-hdr-dark) #masthead :is(.ast-primary-header-bar, .ast-main-header-wrap) {
	background: var(--sgd-dark);
	border-bottom: 0;
}

:is(body.sgd-bullion, body.sgd-hdr-dark) #masthead .site-title,
:is(body.sgd-bullion, body.sgd-hdr-dark) #masthead .site-title a,
:is(body.sgd-bullion, body.sgd-hdr-dark) #masthead .ast-site-identity .site-title a {
	font-family: var(--sgd-serif);
	font-size: 44px;
	font-weight: var(--sgd-serif-w, 400);
	line-height: 1.2;
	letter-spacing: normal;
	color: #fff;
	text-decoration: none;
}

/* Desktop: two rows. Row 1 = title at the inline start, icons at the inline end; row 2 = the centred menu. */
#masthead #ast-desktop-header .ast-primary-header-bar .site-primary-header-wrap .ast-builder-grid-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-areas: "brand tools" "nav nav";
	align-items: center;
	column-gap: 24px;
	row-gap: 0;
}

#masthead #ast-desktop-header .ast-primary-header-bar,
#masthead #ast-desktop-header .site-primary-header-wrap {
	min-height: 0;
}

#masthead #ast-desktop-header .site-header-primary-section-left {
	grid-area: brand;
	justify-self: start;
	padding-block: 22px 8px;
}

#masthead #ast-desktop-header .site-header-primary-section-right {
	grid-area: tools;
	justify-self: end;
	align-self: center;
	display: flex;
	align-items: center;
	gap: 18px;
	padding-block: 22px 8px;
}

#masthead #ast-desktop-header .site-header-primary-section-center {
	grid-area: nav;
	justify-self: center;
	width: 100%;
	justify-content: center;
	padding-block: 8px 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

#masthead #ast-desktop-header .ast-builder-menu-1 .main-header-menu {
	justify-content: center;
	flex-wrap: wrap;
	gap: 0 8px;
}

#masthead #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item {
	line-height: 1.6; /* Astra sets the menu item line-height to the 88px bar height */
}

#masthead #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
	padding: 6px 20px;
	font-family: var(--sgd-sans);
	font-size: 19px;
	font-weight: 300;
	letter-spacing: normal;
	line-height: 1.6;
	color: #fff;
	border-bottom: 1px solid transparent;
	text-decoration: none;
}

#masthead #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item:is(:hover, :focus-within) > .menu-link,
#masthead #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-item > .menu-link,
#masthead #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-ancestor > .menu-link {
	color: #fff;
	border-bottom-color: var(--sgd-mustard-lt);
}

#masthead .ast-builder-menu-1 .menu-item > .ast-menu-toggle,
#masthead .ast-builder-menu-1 .dropdown-menu-toggle {
	color: inherit;
}

#masthead #ast-desktop-header .ast-builder-menu-1 .sub-menu {
	background: var(--sgd-dark2);
	border: 0;
	border-top: 1px solid var(--sgd-mustard-lt);
	border-radius: 0;
	box-shadow: none;
	min-width: 200px;
}

#masthead #ast-desktop-header .ast-builder-menu-1 .sub-menu .menu-item {
	line-height: 1.6;
	border: 0;
}

#masthead #ast-desktop-header .ast-builder-menu-1 .sub-menu .menu-link {
	padding: 10px 20px;
	font-size: 16px;
	font-weight: 300;
	color: #fff;
	border: 0;
}

#masthead #ast-desktop-header .ast-builder-menu-1 .sub-menu .menu-item:hover > .menu-link {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

/* Icons (search, account): white line icons on the dark header. */
#masthead :is(.ast-header-search, .ast-header-account) :is(a, .ast-icon, .ahfb-svg-iconset) {
	color: #fff;
}

#masthead .ast-header-search .ast-search-icon svg,
#masthead .ast-header-search .ast-icon svg {
	width: 22px;
	height: 22px;
	fill: #fff;
}

#masthead .ast-header-account-wrap .ast-header-account-type-icon .ahfb-svg-iconset svg {
	width: 26px;
	height: 26px;
}

#masthead .ast-header-account-wrap .ast-header-account-type-icon .ahfb-svg-iconset svg :is(path, circle):not(.ast-hf-account-unfill) {
	fill: #fff;
}

#masthead .ast-search-menu-icon.slide-search .search-field {
	background: #fff;
	color: var(--sgd-dark);
	border-radius: 0;
}

/* Mobile: one compact dark row (title, icons, hamburger). */
:is(body.sgd-bullion, body.sgd-hdr-dark) #masthead #ast-mobile-header .ast-primary-header-bar {
	min-height: 0;
	padding-block: 6px;
}

#masthead #ast-mobile-header .ast-primary-header-bar,
#masthead #ast-mobile-header .site-primary-header-wrap {
	min-height: 0;
}

:is(body.sgd-bullion, body.sgd-hdr-dark) #masthead #ast-mobile-header .site-title,
:is(body.sgd-bullion, body.sgd-hdr-dark) #masthead #ast-mobile-header .site-title a {
	font-size: 38px;
}

:is(body.sgd-bullion, body.sgd-hdr-dark) #masthead #ast-mobile-header .menu-toggle {
	color: #fff;
}

:is(body.sgd-bullion, body.sgd-hdr-dark) #masthead #ast-mobile-header :is(.menu-toggle, .ast-mobile-svg) {
	fill: #fff;
}

:is(body.sgd-bullion, body.sgd-hdr-dark) #masthead #ast-mobile-header :is(.ast-mobile-header-content, .main-header-bar-navigation, .ast-header-search) {
	background: var(--sgd-dark2);
}

:is(body.sgd-bullion, body.sgd-hdr-dark) #masthead #ast-mobile-header .main-header-menu {
	background: transparent;
}

:is(body.sgd-bullion, body.sgd-hdr-dark) #masthead #ast-mobile-header .main-header-menu .menu-link {
	background: transparent;
	color: #fff;
	font-weight: 300;
	font-size: 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

:is(body.sgd-bullion, body.sgd-hdr-dark) #masthead #ast-mobile-header .main-header-menu :is(.ast-menu-toggle, .dropdown-menu-toggle) {
	color: #fff;
}

:is(body.sgd-bullion, body.sgd-hdr-dark) #masthead #ast-mobile-header .main-header-menu .menu-item:is(:hover, .current-menu-item) > .menu-link {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

:is(body.sgd-bullion, body.sgd-hdr-dark) #masthead #ast-mobile-header .main-header-menu .sub-menu {
	background: rgba(0, 0, 0, 0.16);
}

/* ====================================================================== 5. Header, light (jewellery pages: the Altinbas header) */

body.sgd-hdr-light #masthead :is(.ast-primary-header-bar, .ast-main-header-wrap) {
	background: #fff;
	border-bottom: 1px solid var(--sgd-j-line);
}

/* The one accent both skins share: a thin mustard line under the header. */
body.sgd-hdr-light #masthead {
	border-bottom: 2px solid var(--sgd-mustard-lt);
}

body.sgd-hdr-light #masthead .site-title,
body.sgd-hdr-light #masthead .site-title a,
body.sgd-hdr-light #masthead .ast-site-identity .site-title a {
	font-family: var(--sgd-serif);
	font-size: 46px;
	font-weight: var(--sgd-serif-w, 400);
	line-height: 1.2;
	letter-spacing: normal;
	color: var(--sgd-j-accent);
	text-decoration: none;
}

body.sgd-hdr-light #masthead #ast-desktop-header .ast-primary-header-bar .site-primary-header-wrap .ast-builder-grid-row {
	grid-template-columns: 1fr auto 1fr;
	grid-template-areas: ". brand tools" "nav nav nav";
}

body.sgd-hdr-light #masthead #ast-desktop-header .site-header-primary-section-left {
	justify-self: center;
}

body.sgd-hdr-light #masthead #ast-desktop-header .site-header-primary-section-center {
	border-top: 0;
	padding-block: 0 14px;
}

body.sgd-hdr-light #masthead #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
	font-size: 17px;
	font-weight: 350;
	color: var(--sgd-j-slate);
}

body.sgd-hdr-light #masthead #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item:is(:hover, :focus-within) > .menu-link,
body.sgd-hdr-light #masthead #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-item > .menu-link,
body.sgd-hdr-light #masthead #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-ancestor > .menu-link {
	color: var(--sgd-j-accent);
	border-bottom-color: var(--sgd-j-accent);
}

body.sgd-hdr-light #masthead #ast-desktop-header .ast-builder-menu-1 .sub-menu {
	background: #fff;
	border: 1px solid var(--sgd-j-line);
	border-top: 1px solid var(--sgd-j-accent);
	border-radius: 0;
	box-shadow: none;
}

body.sgd-hdr-light #masthead #ast-desktop-header .ast-builder-menu-1 .sub-menu .menu-link {
	color: var(--sgd-j-slate);
	font-size: 16px;
	font-weight: 350;
	padding: 10px 20px;
}

body.sgd-hdr-light #masthead #ast-desktop-header .ast-builder-menu-1 .sub-menu .menu-item:hover > .menu-link {
	background: var(--sgd-j-tint);
	color: var(--sgd-j-accent);
}

body.sgd-hdr-light #masthead :is(.ast-header-search, .ast-header-account) :is(a, .ast-icon, .ahfb-svg-iconset) {
	color: var(--sgd-j-slate);
}

body.sgd-hdr-light #masthead .ast-header-search :is(.ast-search-icon, .ast-icon) svg {
	fill: var(--sgd-j-slate);
}

body.sgd-hdr-light #masthead .ast-header-account-wrap .ast-header-account-type-icon .ahfb-svg-iconset svg :is(path, circle):not(.ast-hf-account-unfill) {
	fill: var(--sgd-j-slate);
}

body.sgd-hdr-light #masthead #ast-mobile-header .ast-primary-header-bar {
	min-height: 0;
	padding-block: 6px;
}

body.sgd-hdr-light #masthead #ast-mobile-header .site-title,
body.sgd-hdr-light #masthead #ast-mobile-header .site-title a {
	font-size: 40px;
}

body.sgd-hdr-light #masthead #ast-mobile-header :is(.menu-toggle, .ast-mobile-svg) {
	color: var(--sgd-j-slate);
	fill: var(--sgd-j-slate);
}

body.sgd-hdr-light #masthead #ast-mobile-header :is(.ast-mobile-header-content, .main-header-bar-navigation, .ast-header-search) {
	background: #fff;
}

body.sgd-hdr-light #masthead #ast-mobile-header .main-header-menu {
	background: #fff;
}

body.sgd-hdr-light #masthead #ast-mobile-header .main-header-menu .menu-link {
	background: transparent;
	color: var(--sgd-j-slate);
	font-weight: 350;
	font-size: 17px;
	border-bottom: 1px solid var(--sgd-j-line);
}

body.sgd-hdr-light #masthead #ast-mobile-header .main-header-menu .menu-item:is(:hover, .current-menu-item) > .menu-link {
	background: var(--sgd-j-tint);
	color: var(--sgd-j-accent);
}

/* ====================================================================== 6. Hero (home) */

/* Astra gives every child of .entry-content a max-width of the container (0,2,0), hence the longer selectors. */
body .entry-content > .sgd-hero,
body .entry-content > .sgd-tiles,
body .entry-content > .sgd-pills {
	max-width: var(--sgd-w);
}

.sgd-hero {
	margin: 36px auto 0;
	position: relative;
}

.sgd-hero__banner {
	position: relative;
	display: flex;
	align-items: stretch;
	justify-content: center;
	height: 430px;
	overflow: hidden;
	background: #101010;
}

.sgd-hero__img {
	display: block;
	flex: 1 1 0;
	min-width: 0;
	width: 0;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
	margin-inline: -30px;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%, #000 74%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 26%, #000 74%, transparent 100%);
}

/* Light variant: a framed banner (1px border, a shade darker than the page) with four pendants standing clear of the card. */
.sgd-hero--light .sgd-hero__banner {
	box-sizing: border-box;
	background: var(--sgd-hero-light);
	border: 1px solid var(--sgd-hero-frame);
	padding: 28px 40px 70px;
	gap: 26px;
}

.sgd-hero--light .sgd-hero__img:nth-child(n + 5) {
	display: none;
}

.sgd-hero--light .sgd-hero__img {
	flex: none;
	width: auto;
	height: 100%;
	align-self: flex-end;
	margin-inline: 0;
	mix-blend-mode: multiply;
	filter: brightness(1.05) contrast(1.06); /* pushes the off-white studio background to pure white so multiply leaves only the band colour */
	-webkit-mask-image: none;
	mask-image: none;
}

.sgd-hero__card {
	position: relative;
	z-index: 1;
	width: min(72%, 800px);
	margin: -64px auto 0;
	padding: 34px 48px 12px;
	background: var(--sgd-stone);
	text-align: center;
}

body.sgd-bullion #page .sgd-hero__title {
	margin: 0 0 14px;
	font-size: clamp(30px, 3.5vw, 44px);
	font-weight: 400;
	line-height: 1.4;
	color: var(--sgd-purple);
}

body #page .sgd-hero__lead {
	margin: 0 auto;
	max-width: 520px;
	font-size: 18px;
	line-height: 1.9;
	font-weight: 350;
	color: var(--sgd-body);
}

.sgd-hero__act {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	margin-top: 24px;
}

.sgd-rule {
	flex: 1 1 0;
	max-width: 120px;
	height: 1px;
	background: var(--sgd-muted);
	opacity: 0.7;
}

/* ====================================================================== 7. Tiles (home) */

.sgd-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	max-width: var(--sgd-w);
	margin: 56px auto 0;
	padding: 0;
	list-style: none;
}

.sgd-tile {
	margin: 0;
	padding: 0;
}

.sgd-tile__face {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--sgd-dark);
	color: var(--sgd-mustard-lt);
	text-decoration: none;
}

.sgd-tile__face::after {
	content: "";
	position: absolute;
	inset: 14px;
	z-index: 2;
	border: 1px solid rgba(201, 182, 127, 0.6);
	pointer-events: none;
}

.sgd-tile__face .sgd-ico {
	position: relative;
	z-index: 1;
	width: 76px;
	height: 76px;
	color: var(--sgd-mustard-lt);
	opacity: 0.5;
}

body.sgd-bullion #page .sgd-tile__word {
	position: relative;
	z-index: 1;
	font-family: var(--sgd-serif);
	font-size: 46px;
	font-weight: var(--sgd-serif-w, 400);
	line-height: 1.2;
	color: #eadfbe;
}

/* The jewellery tile: our own crown-ring photo, darkened at the foot for the word. */
.sgd-tile__pic {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 38%;
}

.sgd-tile__face--jewel {
	justify-content: flex-end;
	padding-bottom: 34px;
}

.sgd-tile__face--jewel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(33, 28, 53, 0.92) 0%, rgba(33, 28, 53, 0) 58%);
}

.sgd-tile__cap {
	padding: 20px 12px 22px;
	border-inline: 1px solid var(--sgd-line);
	text-align: center;
}

body #page .sgd-tile__title {
	margin: 0 0 2px;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.7;
	color: var(--sgd-dark);
}

body.sgd-bullion #page .entry-content a.sgd-tile__link {
	font-size: 16px;
	font-weight: 350;
}

/* ====================================================================== 7b. Coin photos (2.1.0): home coin tile and the [satyargold_coins] cards */

/* Two round faces of one coin, the front one overlapping the back one. Real photographs, cropped to a square per face; the circle is CSS only.
   The image is 3% larger than its circle so a hair of the photo's own rim is clipped and no white background shows at the edge. */
.sgd-faces {
	--sgd-d: 120px;
	position: relative;
	display: block;
	flex: none;
	width: calc(var(--sgd-d) * 1.62);
	height: var(--sgd-d);
}

.sgd-face {
	position: absolute;
	top: 0;
	display: block;
	width: var(--sgd-d);
	height: var(--sgd-d);
	overflow: hidden;
	border-radius: 50%;
	background: var(--sgd-mustard-lt);
}

.sgd-face--front {
	inset-inline-start: 0;
	z-index: 1;
}

.sgd-face--back {
	inset-inline-end: 0;
	z-index: 0;
}

.sgd-face__img {
	display: block;
	width: 103%;
	height: 103%;
	max-width: none;
	margin: -1.5%;
	border-radius: 0;
	object-fit: cover;
}

/* On the dark tile: a ring in the tile colour separates the front coin, a soft shadow lifts both. */
.sgd-faces--tile .sgd-face {
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.42);
}

.sgd-faces--tile .sgd-face--front {
	box-shadow: 0 0 0 3px var(--sgd-dark), 0 8px 18px rgba(0, 0, 0, 0.42);
}

.sgd-tile__face--coin .sgd-faces {
	--sgd-d: 100px;
	position: relative;
	z-index: 1;
	/* Counts as 76px of layout height (the same as the line icons on the other tiles), so the word «سکه» stays level with the other two words; the coins rise above that line. */
	margin-top: calc(76px - var(--sgd-d));
}

/* One quiet credit line (tiles and cards). */
.sgd-credit {
	margin: 16px auto 0;
	font-size: 14px;
	line-height: 1.8;
	text-align: center;
	color: #5c5769;
}

.sgd-credit__nb {
	white-space: nowrap;
}

body.sgd-bullion #page .entry-content .sgd-credit a {
	font-weight: 350;
	white-space: nowrap;
}

body .entry-content > .sgd-credit {
	max-width: var(--sgd-w);
}

body.sgd-bullion #page .entry-content .sgd-credit {
	font-size: 14px;
	line-height: 1.8;
	color: #5c5769;
}

body .entry-content > .sgd-coins {
	max-width: var(--sgd-w);
}

.sgd-coins {
	max-width: var(--sgd-w);
	margin: 56px auto 0;
}

body.sgd-bullion #page .entry-content .sgd-coins__title {
	margin-block: 0 28px;
	text-align: center;
}

body.sgd-bullion #page .entry-content .sgd-coins__title::before {
	content: "";
	display: block;
	width: 48px;
	height: 2px;
	margin: 0 auto 20px;
	background: var(--sgd-mustard);
}

.sgd-coins__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The card: a light square panel, as on the Royal Mint coin pages (white picture area, name, one spec line, one quiet link). */
.sgd-coin {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid var(--sgd-line);
	text-align: center;
}

.sgd-coin__pic {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
	padding: 36px 16px;
	background: var(--sgd-band);
}

.sgd-coin__name-note {
	white-space: nowrap;
}

.sgd-faces--card {
	--sgd-d: 130px;
}

.sgd-faces--card .sgd-face {
	box-shadow: 0 4px 12px rgba(33, 28, 53, 0.22);
}

.sgd-faces--card .sgd-face--front {
	box-shadow: 0 0 0 3px var(--sgd-band), 0 4px 12px rgba(33, 28, 53, 0.28);
}

.sgd-coin__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	padding: 0 20px 28px;
}

body.sgd-bullion #page .entry-content .sgd-coin__name {
	margin: 0 0 10px;
	font-size: 28px;
	line-height: 1.4;
	text-align: center;
}

body.sgd-bullion #page .entry-content .sgd-coin__meta {
	margin: 0;
	font-size: 16px;
	line-height: 1.8;
	color: var(--sgd-ink);
}

body.sgd-bullion #page .entry-content .sgd-coin__note {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.8;
	color: var(--sgd-muted);
}

body.sgd-bullion #page .entry-content a.sgd-coin__link {
	margin-top: auto;
	font-size: 16px;
	font-weight: 400;
}

@media (max-width: 921px) {
	.sgd-tile__face--coin .sgd-faces {
		--sgd-d: 92px;
	}

	.sgd-coins__grid {
		grid-template-columns: 1fr;
		gap: 18px;
		max-width: 480px;
		margin-inline: auto;
	}

	.sgd-coins {
		margin-top: 40px;
	}

}

@media (max-width: 420px) {
	.sgd-tile__face--coin .sgd-faces {
		--sgd-d: 88px;
	}
}

/* Phone (2.1.0): compact horizontal cards, so the three coins do not push the calculator far down the page.
   Picture panel on the start side (right in RTL), text beside it, vertically centred. */
@media (max-width: 600px) {
	.sgd-coins {
		margin-top: 32px;
	}

	body.sgd-bullion #page .entry-content .sgd-coins__title {
		margin-block: 0 16px;
	}

	body.sgd-bullion #page .entry-content .sgd-coins__title::before {
		margin-bottom: 12px;
	}

	.sgd-coins__grid {
		gap: 12px;
		max-width: none;
	}

	.sgd-coin {
		flex-direction: row;
		align-items: stretch;
		text-align: start;
	}

	.sgd-coin__pic {
		flex: none;
		width: 112px;
		margin: 0;
		padding: 10px 6px;
	}

	.sgd-faces--card {
		--sgd-d: 56px;
	}

	.sgd-faces--card .sgd-face--front {
		box-shadow: 0 0 0 2px var(--sgd-band), 0 3px 8px rgba(33, 28, 53, 0.28);
	}

	.sgd-coin__body {
		flex: 1;
		min-width: 0;
		align-items: flex-start;
		justify-content: center;
		padding: 8px 14px;
	}

	body.sgd-bullion #page .entry-content .sgd-coin__name {
		margin: 0 0 2px;
		font-size: 18px;
		line-height: 1.3;
		text-align: start;
	}

	body.sgd-bullion #page .entry-content .sgd-coin__meta {
		font-size: 14px;
		line-height: 1.5;
	}

	body.sgd-bullion #page .entry-content .sgd-coin__note {
		margin: 0;
		font-size: 13px;
		line-height: 1.5;
	}

	body.sgd-bullion #page .entry-content a.sgd-coin__link {
		display: inline-flex;
		align-items: center;
		min-height: 32px;
		margin-top: 0;
		font-size: 15px;
	}
}

/* ====================================================================== 8. Round thumbnails (home) */

.sgd-rounds {
	margin-top: 56px;
	padding-block: 34px 30px;
	background: var(--sgd-band);
	box-shadow: 0 0 0 100vmax var(--sgd-band);
	clip-path: inset(0 -100vmax);
}

.sgd-rounds__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 26px 44px;
	max-width: var(--sgd-w);
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.sgd-rounds__item {
	margin: 0;
	padding: 0;
}

body.sgd-bullion #page .entry-content a.sgd-rounds__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	color: #4a4a49;
	text-decoration: none;
}

.sgd-rounds__pic {
	display: block;
	width: 112px;
	height: 112px;
	margin: 5px;
	overflow: hidden;
	border-radius: 50%;
	background: #dcd8d0;
	box-shadow: 0 0 0 3px var(--sgd-band), 0 0 0 5px var(--sgd-mustard-lt); /* a 3px gap and a thin mustard ring: the dark crops read as medallions */
}

.sgd-rounds__pic img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.2);
}

.sgd-rounds__label {
	font-size: 15px;
	font-weight: 350;
	line-height: 1.5;
	text-align: center;
}

body.sgd-bullion #page .entry-content a.sgd-rounds__link:hover .sgd-rounds__label {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

/* ====================================================================== 9. The home hero section with the calculator, cards, bands */

body.sgd-bullion .entry-content .sg-hero:not(.alignfull) {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding-inline: 0;
	padding-block: 64px 24px;
}

body.sgd-bullion .entry-content .sg-hero h1 {
	font-size: clamp(34px, 4vw, 46px);
}

body.sgd-bullion .entry-content .sg-hero p {
	font-size: 18px;
	color: var(--sgd-body);
}

body.sgd-bullion .entry-content .sg-section {
	padding-block: 80px;
}

body.sgd-bullion .entry-content .sg-section--band:not(.alignfull) {
	border: 0;
	border-radius: 0;
	padding-inline: 0;
	background: var(--sgd-band);
	box-shadow: 0 0 0 100vmax var(--sgd-band);
	clip-path: inset(0 -100vmax);
}

body.sgd-bullion .entry-content .sg-section > :is(h2, h3, p, ul, ol),
body.sgd-bullion .entry-content .sg-hero > :is(h2, p) {
	max-width: 900px;
	margin-inline: auto;
}

body.sgd-bullion .entry-content .sg-section h2,
body.sgd-bullion .entry-content .sg-hero h2 {
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 400;
	line-height: 1.3;
	margin-block: 0 0.45em;
}

/* Calculator and gram components: the stone / band / purple palette, soft square controls. */
body.sgd-bullion :is(.sg-gram, .sg-hero, .sg-section, .sg-steps, .sg-why, .sg-faq) {
	--sgg-white: #fff;
	--sgg-band: #edeae5;
	--sgg-line: #d6d1c7;
	--sgg-chip-line: #9a948a;
	--sgg-field: #7d776e;
	--sgg-gold: var(--sgd-muted);
	--sgg-gold-hover: var(--sgd-dark);
	--sgg-deep: var(--sgd-purple);
	--sgg-ink: var(--sgd-dark);
	--sgg-text: #55514d;
	--sgg-muted: #5f5b57;
	--sgg-picked: var(--sgd-picked);
	--sgg-r-card: 6px;
	--sgg-r-ctl: 2px;
}

body.sgd-bullion .sg-calc {
	border: 0;
	background: var(--sgd-band);
	padding: 28px;
}

body.sgd-bullion .sg-section--band .sg-calc {
	background: var(--sgd-stone);
}

body.sgd-bullion #page .sg-gram :is(.sg-calc__title, .sg-ccard__title, .sg-pcard__title, .sg-contact__title) {
	margin: 0;
	font-family: var(--sgd-serif);
	font-weight: var(--sgd-serif-w, 400);
	font-size: 30px;
	line-height: 1.35;
	color: var(--sgd-purple);
}

body.sgd-bullion .sg-gram .sg-label {
	font-weight: 500;
	color: var(--sgd-dark);
}

body.sgd-bullion .sg-gram :is(.sg-seg, .sg-out, .sg-summary) {
	background: var(--sgd-stone);
	border: 0;
}

body.sgd-bullion .sg-gram .sg-seg {
	border: 1px solid var(--sgd-line);
}

body.sgd-bullion .sg-gram .sg-seg__btn {
	border-radius: 0;
	font-weight: 400;
}

body.sgd-bullion .sg-gram .sg-seg__btn[aria-pressed="true"] {
	background: var(--sgd-dark);
	border-color: var(--sgd-dark);
	color: #fff;
	font-weight: 400;
	box-shadow: none;
}

body.sgd-bullion .sg-gram :is(.sg-chip, .sg-coin, .sg-stepper, .sg-input) {
	border-radius: 0;
}

body.sgd-bullion .sg-gram :is(.sg-chip, .sg-coin) {
	font-weight: 400;
}

body.sgd-bullion .sg-gram :is(.sg-chip, .sg-coin)[aria-pressed="true"] {
	font-weight: 500;
}

body.sgd-bullion .sg-gram .sg-stepper__btn {
	border-radius: 0;
}

body.sgd-bullion .sg-gram :is(.sg-stepper__input, .sg-out__num, .sg-out__bignum, .sg-coin__name, .sg-rate__value) {
	font-weight: 500;
}

body.sgd-bullion .sg-gram .sg-out__bignum {
	font-family: var(--sgd-serif);
	font-weight: var(--sgd-serif-w, 400);
	color: var(--sgd-mustard);
}

body.sgd-bullion .sg-gram .sg-btn {
	border-radius: 0;
	font-weight: 400;
	min-height: 52px;
	font-size: 17px;
}

body.sgd-bullion .sg-gram .sg-btn--primary:not(.sg-contact__call),
body.sgd-bullion .sg-gram .sg-btn--primary:not(.sg-contact__call):focus {
	background: var(--sgd-muted);
	color: #fff;
}

body.sgd-bullion .sg-gram .sg-btn--primary:not(.sg-contact__call):hover {
	background: var(--sgd-dark);
	color: #fff;
}

body.sgd-bullion .sg-gram .sg-btn--ghost {
	border-color: var(--sgd-dark);
	color: var(--sgd-dark);
	font-weight: 400;
}

body.sgd-bullion .sg-gram .sg-tags li {
	border-radius: 0;
	font-weight: 400;
}

/* Contact box inside the calculator: a quiet hairline box with dark square buttons. */
body.sgd-bullion .sg-calc .sg-contact {
	background: #fff;
	border: 1px solid var(--sgd-line);
	border-radius: 0;
}

body.sgd-bullion .sg-gram .sg-contact__phones a.sg-btn.sg-btn--primary.sg-contact__call {
	background: var(--sgd-dark);
	border: 0;
	border-radius: 0;
	color: #fff;
	font-weight: 400;
}

body.sgd-bullion .sg-gram .sg-contact__phones a.sg-btn.sg-btn--primary.sg-contact__call:is(:hover, :focus-visible) {
	background: #000;
	color: #fff;
}

body.sgd-bullion .sg-gram .sg-contact__phones .sg-contact__num {
	font-weight: 500;
}

/* The small green WhatsApp cue (light green on the dark button: 9:1). */
body.sgd-bullion .sg-gram .sg-contact__phones .sg-contact__wa svg {
	color: #5bd58a;
}

/* Astra's scroll-to-top button (bottom corner): the muted button colour instead of gold. Position is not touched. */
body.sgd-bullion #ast-scroll-top,
body.sgd-jewel #ast-scroll-top {
	background: var(--sgd-muted);
	color: #fff;
	border-radius: 0;
}

/* Cards: the toolkit cards of the reference = band background, no border, no shadow. */
body.sgd-bullion .entry-content :is(.sg-steps > li, .sg-steps > .wp-block-column, .sg-why > li, .sg-why > .wp-block-column) {
	background: var(--sgd-band);
	border: 0;
	border-radius: 6px;
	padding: 32px 28px;
	align-items: center;
	text-align: center;
	font-size: 17px;
}

body.sgd-bullion .sg-section--band :is(.sg-steps > li, .sg-why > li, .sg-why > .wp-block-column, .sg-steps > .wp-block-column) {
	background: var(--sgd-stone);
}

body.sgd-bullion :is(.sg-steps, .sg-why) h3 {
	font-family: var(--sgd-serif);
	font-size: 30px;
	font-weight: var(--sgd-serif-w, 400);
	line-height: 1.35;
	color: var(--sgd-purple);
}

body.sgd-bullion :is(.sg-steps, .sg-why) p {
	font-size: 17px;
	font-weight: 350;
	color: var(--sgd-body);
}

body.sgd-bullion .sg-steps > li::before,
body.sgd-bullion .sg-steps > .wp-block-column::before {
	border-radius: 50%;
	font-family: var(--sgd-serif);
	font-size: 26px;
	font-weight: var(--sgd-serif-w, 400);
}

body.sgd-bullion .sg-pcard,
body.sgd-bullion .sg-ccard {
	background: var(--sgd-band);
	border: 0;
	border-radius: 6px;
}

body.sgd-bullion .sg-section--band :is(.sg-pcard, .sg-ccard) {
	background: var(--sgd-stone);
}

body.sgd-bullion .sg-pcard__icon {
	background: var(--sgd-stone);
	border-radius: 50%;
}

body.sgd-bullion .sg-section--band .sg-pcard__icon {
	background: var(--sgd-band);
}

body.sgd-bullion .sg-ctable-wrap {
	border: 0;
	border-radius: 0;
	background: transparent;
}

body.sgd-bullion .sg-gram .sg-ctable thead th {
	background: transparent;
	font-weight: 500;
	border-bottom: 1px solid var(--sgd-muted);
}

body.sgd-bullion .sg-gram .sg-ctable :is(th, td) {
	color: var(--sgd-dark);
	border-bottom-color: var(--sgd-line);
}

body.sgd-bullion .sg-gram :is(.sg-cell, .sg-crow) {
	border-radius: 0;
	font-weight: 500;
}

/* FAQ: hairlines, no box. */
body.sgd-bullion .sg-faq {
	border: 0;
	border-block: 1px solid var(--sgd-line);
	border-radius: 0;
	background: transparent;
	max-width: 900px;
	margin-inline: auto;
}

body.sgd-bullion .entry-content .sg-faq summary {
	font-family: var(--sgd-sans);
	font-size: 18px;
	font-weight: 400;
	color: var(--sgd-dark);
}

body.sgd-bullion .sg-faq summary:hover {
	background: var(--sgd-band);
}

body.sgd-bullion .sg-faq details {
	border-top-color: var(--sgd-line);
}

body.sgd-bullion .entry-content .sg-faq details > :not(summary) {
	font-weight: 350;
	color: var(--sgd-body);
}

body.sgd-bullion .sg-gated-jewelry .sg-section {
	padding-block: 56px;
}

/* ====================================================================== 10. Prices: the mustard stats band */

body.sgd-bullion .sg-rates__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	max-width: none;
	margin-block: 28px;
	background: var(--sgd-mustard);
	box-shadow: 0 0 0 100vmax var(--sgd-mustard);
	clip-path: inset(0 -100vmax);
}

body.sgd-bullion .sg-gram .sg-rate,
body.sgd-bullion .sg-gram .sg-rate:focus {
	align-items: center;
	gap: 8px;
	padding: 26px 16px 24px;
	border: 0;
	border-inline-start: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 0;
	background: transparent;
	color: #fff;
	text-align: center;
}

body.sgd-bullion .sg-rates__grid > .sg-rate:first-child {
	border-inline-start: 0;
}

body.sgd-bullion .sg-gram .sg-rate:hover {
	background: rgba(0, 0, 0, 0.1);
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}

body.sgd-bullion .sg-gram .sg-rate[aria-pressed="true"],
body.sgd-bullion .sg-gram .sg-rate[aria-pressed="true"]:hover,
body.sgd-bullion .sg-gram .sg-rate[aria-pressed="true"]:focus {
	background: rgba(0, 0, 0, 0.14);
	border-color: rgba(255, 255, 255, 0.5);
	box-shadow: inset 0 -3px 0 #fff;
}

body.sgd-bullion .sg-rate .sg-ico--check,
body.sgd-bullion .sg-rate__sep {
	display: none;
}

body.sgd-bullion .sg-rate__head {
	justify-content: center;
}

body.sgd-bullion .sg-rate__title {
	align-items: center;
}

body.sgd-bullion .sg-gram .sg-rate__name {
	font-family: var(--sgd-serif);
	font-size: 34px;
	font-weight: var(--sgd-serif-w, 400);
	line-height: 1.2;
	color: #fff;
}

body.sgd-bullion .sg-gram :is(.sg-rate__country, .sg-rate__label, .sg-rate__time, .sg-rate__cur) {
	font-size: 15px;
	font-weight: 350;
	color: #fff;
}

body.sgd-bullion .sg-gram .sg-rate__value {
	font-family: var(--sgd-serif);
	font-size: 40px;
	font-weight: var(--sgd-serif-w, 400);
	color: #fff;
}

body.sgd-bullion .sg-gram :is(.sg-rate__closed, .sg-rate__note) {
	font-size: 16px;
	font-weight: 350;
	color: #fff;
}

body.sgd-bullion .sg-rate__body {
	align-items: center;
}

/* ====================================================================== 11. Contact band (final call to action and the gram contact box) */

body.sgd-bullion .entry-content .sg-section--band:not(.alignfull):has(> .wp-block-buttons) {
	background: var(--sgd-muted);
	box-shadow: 0 0 0 100vmax var(--sgd-muted);
	text-align: center;
}

body.sgd-bullion #page .entry-content .sg-section--band:has(> .wp-block-buttons) :is(h2, p) {
	color: #fff;
}

body.sgd-bullion .entry-content .sg-section--band:has(> .wp-block-buttons) .wp-block-buttons {
	margin-top: 26px;
}

body.sgd-bullion #page .sg-section--band:has(> .wp-block-buttons) :is(.wp-block-button__link, .wp-block-button.is-style-outline > .wp-block-button__link) {
	background: var(--sgd-dark);
	border-color: var(--sgd-dark);
	color: #fff;
}

body.sgd-bullion #page .sg-section--band:has(> .wp-block-buttons) .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border-color: #fff;
}

body.sgd-bullion #page .sg-section--band:has(> .wp-block-buttons) .wp-block-button__link:is(:hover, :focus-visible) {
	background: #000;
	border-color: #000;
	color: #fff;
}

/* The gram contact box printed as its own block ([satyargold_contact], contact page, melted-gold page). */
body.sgd-bullion .sg-contact-wrap {
	margin-block: 40px;
}

body.sgd-bullion .sg-contact-wrap > .sg-contact {
	align-items: center;
	padding: 56px 20px 52px;
	border: 0;
	border-radius: 0;
	background: var(--sgd-muted);
	box-shadow: 0 0 0 100vmax var(--sgd-muted);
	clip-path: inset(0 -100vmax);
	text-align: center;
	gap: 14px;
}

body.sgd-bullion #page .sg-contact-wrap .sg-contact__title {
	color: #fff;
	font-size: clamp(32px, 4vw, 44px);
}

body.sgd-bullion .sg-contact-wrap :is(.sg-contact__note, .sg-contact__final) {
	color: #fff;
	max-width: 640px;
}

body.sgd-bullion .sg-contact-wrap .sg-contact__final {
	font-size: 15px;
}

body.sgd-bullion .sg-contact-wrap .sg-contact__phones {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	width: 100%;
	margin-top: 6px;
}

body.sgd-bullion .sg-contact-wrap .sg-contact__phones > li {
	flex: 0 1 280px;
}

body.sgd-bullion .sg-contact-wrap .sg-contact__phones a.sg-btn.sg-btn--primary.sg-contact__call {
	min-height: 60px;
}

/* ====================================================================== 12. Footer */

body.sgd-bullion #colophon,
body.sgd-hdr-dark #colophon,
body.sgd-jewel #colophon {
	background: var(--sgd-dark);
	color: var(--sgd-on-dark);
	margin-top: 0;
}

#colophon :is(.site-primary-footer-wrap, .site-below-footer-wrap) {
	background: var(--sgd-dark);
	border: 0;
}

#colophon .site-primary-footer-wrap .ast-builder-grid-row-container-inner,
#colophon .site-below-footer-wrap .ast-builder-grid-row-container-inner {
	max-width: 1100px;
	margin-inline: auto;
}

#colophon .site-primary-footer-wrap {
	padding-block: 44px 8px;
}

#colophon .ast-builder-footer-grid-columns {
	display: block;
}

#colophon .site-footer-primary-section-1,
#colophon .site-footer-primary-section-2 {
	display: block;
	width: 100%;
}

#colophon #astra-footer-menu {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

#colophon #astra-footer-menu > li {
	margin: 0;
	padding: 6px 22px;
	border-inline-start: 1px solid rgba(255, 255, 255, 0.22);
	text-align: center;
}

#colophon #astra-footer-menu > li:nth-child(3n + 1) {
	border-inline-start: 0;
}

#colophon #astra-footer-menu > li:nth-child(n + 4) {
	margin-top: 10px;
}

#colophon #astra-footer-menu .menu-link {
	display: block;
	padding: 10px 4px;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.8;
	color: var(--sgd-on-dark);
	text-decoration: none;
	background: transparent;
}

#colophon #astra-footer-menu .menu-link:is(:hover, :focus-visible) {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.3em;
	background: transparent;
}

#colophon .footer-social-inner-wrap {
	justify-content: center;
	margin-top: 22px;
}

#colophon .footer-social-inner-wrap .ast-builder-social-element {
	--color: var(--sgd-on-dark);
	--background-color: transparent;
	background: transparent;
	color: var(--sgd-on-dark);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
}

#colophon .ast-builder-social-element svg {
	fill: var(--sgd-on-dark);
}

#colophon .site-below-footer-wrap {
	padding-block: 22px 28px;
}

#colophon .site-below-footer-wrap .ast-builder-grid-row-container-inner {
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	padding-top: 18px;
}

#colophon .ast-footer-copyright,
#colophon .ast-footer-copyright p {
	text-align: center;
	font-size: 14px;
	font-weight: 300;
	color: #bdb9cc;
}

/* ====================================================================== 13. Jewellery skin: gallery page */

body.sgd-jewel #page :is(h1, h2, h3, h4, .entry-title) {
	font-family: var(--sgd-sans);
	font-weight: 300;
	letter-spacing: normal;
	text-transform: none;
	line-height: 1.5;
	color: var(--sgd-j-slate);
	text-align: center;
}

/* (a) the pale band with the centred title */
body.sgd-jewel .entry-header:not(.ast-no-title),
body.sgd-jewel .woocommerce-products-header {
	margin: 0 0 8px;
	padding: 34px 0 30px;
	background: var(--sgd-j-tint);
	box-shadow: 0 0 0 100vmax var(--sgd-j-tint);
	clip-path: inset(0 -100vmax);
	text-align: center;
}

body.sgd-jewel #page :is(.entry-header .entry-title, .woocommerce-products-header__title) {
	margin: 0;
	font-size: 30px;
	font-weight: 300;
	color: var(--sgd-j-accent);
}

body.sgd-jewel .woocommerce-products-header .term-description {
	max-width: 760px;
	margin: 12px auto 0;
	font-size: 16px;
	color: var(--sgd-j-quiet);
}

body.sgd-jewel .entry-content > :is(p:first-child, .sgd-trust + p) {
	max-width: 780px;
	margin: 28px auto 0;
	text-align: center;
}

body.sgd-jewel .entry-content a:not(.wp-element-button):not(.wp-block-button__link):not(.button):not(.sgd-btn):not(.sgd-pills__link):not(.sgd-cap__ask):not(.sgd-trust__link) {
	color: var(--sgd-j-accent);
	text-decoration-line: underline;
	text-decoration-color: currentcolor;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}

/* Buttons: square, outlined. */
body.sgd-jewel #page :is(.sgd-btn, .wp-element-button, .wp-block-button__link, .ast-button, .button, button.single_add_to_cart_button, input[type="submit"], .woocommerce a.button, .woocommerce button.button) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 30px;
	border: 1px solid var(--sgd-j-accent);
	border-radius: 0;
	background: transparent;
	color: var(--sgd-j-accent);
	font-family: var(--sgd-sans);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: normal;
	text-decoration: none;
	box-shadow: none;
}

body.sgd-jewel #page :is(.sgd-btn, .wp-element-button, .wp-block-button__link, .ast-button, .button, button.single_add_to_cart_button, input[type="submit"], .woocommerce a.button, .woocommerce button.button):is(:hover, :focus-visible) {
	background: var(--sgd-j-accent);
	color: #fff;
	border-color: var(--sgd-j-accent);
}

/* (b) pills */
.sgd-pills {
	margin: 30px auto 0;
	max-width: 1160px;
}

.sgd-pills__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sgd-pills__item {
	margin: 0;
	padding: 0;
}

body.sgd-jewel #page .entry-content a.sgd-pills__link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding-block: 5px;
	padding-inline: 8px 22px;
	border: 1px solid var(--sgd-j-accent);
	border-radius: 999px;
	background: #fff;
	font-size: 15px;
	font-weight: 350;
	line-height: 1.4;
	color: var(--sgd-j-slate);
	text-decoration: none;
}

body.sgd-jewel #page .entry-content a.sgd-pills__link:is(:hover, :focus-visible) {
	background: var(--sgd-j-tint);
	color: var(--sgd-j-accent);
}

.sgd-pills__pic {
	display: grid;
	flex: none;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--sgd-j-accent);
	background: var(--sgd-j-tint);
	border: 1px solid var(--sgd-j-line);
}

.sgd-pills__pic .sgd-ico {
	width: 24px;
	height: 24px;
}

/* (c) trust row */
body #page .entry-content > .sgd-trust {
	margin: 40px 0 0;
}

.sgd-trust {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px 28px;
	margin: 40px 0 0;
	padding: 32px 0;
	list-style: none;
	background: var(--sgd-j-tint);
	box-shadow: 0 0 0 100vmax var(--sgd-j-tint);
	clip-path: inset(0 -100vmax);
}

.sgd-trust__item {
	margin: 0;
	padding: 0;
}

.sgd-trust__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	color: var(--sgd-j-slate);
	text-align: center;
	text-decoration: none;
}

body.sgd-jewel #page .entry-content a.sgd-trust__link {
	color: var(--sgd-j-slate);
	text-decoration: none;
}

.sgd-trust__badge {
	display: flex;
	flex: none;
	color: var(--sgd-j-accent);
}

.sgd-trust__title {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
	text-wrap: balance;
}

@media (min-width: 1240px) {
	.sgd-trust__title {
		white-space: nowrap;
	}
}

/* banner */
.sgd-jb {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
	align-items: center;
	margin: 28px 0 0;
	height: 340px;
	background: #eef3f8;
	box-shadow: 0 0 0 100vmax #eef3f8;
	clip-path: inset(0 -100vmax);
}

.sgd-jb__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 32px 56px;
}

body #page .sgd-jb__title {
	margin: 0;
	font-size: clamp(28px, 3.4vw, 42px);
	font-weight: 300;
	line-height: 1.4;
	color: var(--sgd-j-slate);
}

body #page .sgd-jb__sub {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 300;
	color: var(--sgd-j-quiet);
}

.sgd-jb__photos {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 40px;
	box-sizing: border-box;
	height: 340px;
	padding: 24px 8% 0;
	overflow: hidden;
}

.sgd-jb__photos img {
	filter: brightness(1.05) contrast(1.06);
	display: block;
	flex: none;
	width: auto;
	max-width: none;
	height: 290px;
	margin-inline: 0;
	object-fit: contain;
	object-position: 50% 100%;
	mix-blend-mode: multiply;
}

/* (d) section titles */
body.sgd-jewel .entry-content h2.wp-block-heading {
	margin: 72px 0 10px;
	font-size: clamp(28px, 3vw, 36px);
	scroll-margin-top: 24px;
}

body.sgd-jewel .entry-content h2.wp-block-heading + p {
	max-width: 760px;
	margin: 0 auto 28px;
	text-align: center;
}

/* (e) the product grid: four square pale tiles, two on phones. :not(#individual-image) matches the weight of core/gallery and of the page's own inline rule. */
body.sgd-jewel .entry-content .wp-block-gallery.sg-jewelry-grid.has-nested-images {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 44px 26px;
	margin: 0;
}

body.sgd-jewel .entry-content .wp-block-gallery.sg-jewelry-grid.has-nested-images figure.wp-block-image:not(#individual-image) {
	position: relative;
	isolation: isolate;
	display: block;
	width: auto;
	margin: 0;
	aspect-ratio: auto;
	flex-grow: 0;
}

body.sgd-jewel .entry-content .wp-block-gallery.sg-jewelry-grid.has-nested-images figure.wp-block-image:not(#individual-image)::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 0;
	aspect-ratio: 1 / 1;
	background: var(--sgd-j-tint);
}

body.sgd-jewel .entry-content .wp-block-gallery.sg-jewelry-grid.has-nested-images figure.wp-block-image:not(#individual-image) img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	box-sizing: border-box;
	padding: 6px;
	object-fit: contain;
	flex: none;
	mix-blend-mode: multiply;
}

.sgd-cap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding-top: 16px;
	text-align: center;
}

.sgd-cap__name {
	direction: inherit;
	unicode-bidi: isolate; /* a Latin letter inside the name keeps its place in the sentence */
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--sgd-j-slate);
}

/* Spec line under the name (2.1.1): weight and karat as the partner shop states them. */
.sgd-cap__spec {
	direction: inherit;
	unicode-bidi: isolate;
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.7;
	color: var(--sgd-j-quiet);
}

/* Today's price under the photo (2.1.2): printed only when the price list has a fresh price for the piece. */
.sgd-cap__price {
	direction: inherit;
	unicode-bidi: isolate;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.7;
	color: var(--sgd-j-slate);
}

.sgd-cap__stone {
	direction: inherit;
	unicode-bidi: isolate;
	font-family: inherit;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.7;
	color: var(--sgd-j-quiet);
}

.sgd-cap [hidden] {
	display: none;
}

/* The question link repeats under every photo, so it stays quiet: small, no underline until hover or focus. */
body.sgd-jewel #page a.sgd-cap__ask {
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.7;
	color: var(--sgd-j-accent);
	text-decoration-line: none;
	text-underline-offset: 0.3em;
}

body.sgd-jewel #page a.sgd-cap__ask:is(:hover, :focus-visible) {
	color: var(--sgd-j-slate);
	text-decoration-line: underline;
}

/* Shop photos (every section except the studio letter pendants) fill a 4:5 tile edge to edge, so the grid is even;
   the studio pendants keep the pale square with the cut-out look. The id inside :not() outweighs the rule above. */
body.sgd-jewel .entry-content h2:not(#letter-pendants) + p + .wp-block-gallery.sg-jewelry-grid.has-nested-images figure.wp-block-image:not(#individual-image)::before {
	content: none;
}

body.sgd-jewel .entry-content h2:not(#letter-pendants) + p + .wp-block-gallery.sg-jewelry-grid.has-nested-images figure.wp-block-image:not(#individual-image) img {
	aspect-ratio: 4 / 5;
	padding: 0;
	object-fit: cover;
	mix-blend-mode: normal;
}

/* The gallery page has the wide pale banner right under its title, so the title itself sits on white (one pale block, not two). */
body.sgd-jewel.page-id-314 .entry-header:not(.ast-no-title), body.sgd-jewel.sgi-src-314 .entry-header:not(.ast-no-title) {
	padding: 30px 0 14px;
	background: none;
	box-shadow: none;
}

.sgd-trust__badge svg {
	width: 34px;
	height: 34px;
}

/* (f) the gram contact box, quiet */
body.sgd-jewel .sg-contact-wrap {
	margin-top: 72px;
	--sgg-white: #fff;
	--sgg-band: var(--sgd-j-tint);
	--sgg-line: var(--sgd-j-line);
	--sgg-deep: var(--sgd-j-accent);
	--sgg-ink: var(--sgd-j-slate);
	--sgg-text: var(--sgd-j-quiet);
	--sgg-muted: var(--sgd-j-quiet);
	--sgg-picked: var(--sgd-j-tint);
	--sgg-r-ctl: 0;
}

body.sgd-jewel .sg-contact-wrap > .sg-contact {
	align-items: center;
	padding: 44px 20px 40px;
	border: 0;
	border-radius: 0;
	background: var(--sgd-j-tint);
	box-shadow: 0 0 0 100vmax var(--sgd-j-tint);
	clip-path: inset(0 -100vmax);
	text-align: center;
}

body.sgd-jewel .sg-gram .sg-contact__title {
	font-size: 28px;
	font-weight: 300;
	color: var(--sgd-j-slate);
}

body.sgd-jewel .sg-gram :is(.sg-contact__note, .sg-contact__final) {
	color: var(--sgd-j-quiet);
	font-weight: 300;
}

body.sgd-jewel .sg-contact-wrap .sg-contact__phones {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
}

body.sgd-jewel .sg-contact-wrap .sg-contact__phones > li {
	flex: 0 1 280px;
}

body.sgd-jewel .sg-gram .sg-contact__phones a.sg-btn.sg-btn--primary.sg-contact__call {
	min-height: 56px;
	border: 1px solid var(--sgd-j-accent);
	border-radius: 0;
	background: #fff;
	color: var(--sgd-j-accent);
	font-weight: 400;
}

body.sgd-jewel .sg-gram .sg-contact__phones a.sg-btn.sg-btn--primary.sg-contact__call:is(:hover, :focus-visible) {
	background: var(--sgd-j-accent);
	color: #fff;
}

body.sgd-jewel .sg-gram .sg-contact__phones .sg-contact__wa .sg-ico,
body.sgd-jewel .sg-gram .sg-contact__phones .sg-contact__wa svg {
	color: #1f8f4f;
}

body.sgd-jewel .sg-gram .sg-contact__phones .sg-contact__wa:is(:hover, :focus-visible) svg {
	color: #fff;
}

/* ====================================================================== 14. WooCommerce jewellery pages */

body.sgd-jewel #content #primary,
body.sgd-bullion #content #primary {
	margin-block-start: 0;
}

/* The loop button is replaced by the WhatsApp question printed by the plugin (.sgd-cap--loop). */
body.sgd-jewel #page ul.products li.product :is(.button, .ast-on-card-button, .added_to_cart) {
	display: none;
}

.sgd-cap--loop {
	padding-top: 0;
}

body.sgd-jewel .woocommerce-breadcrumb {
	margin: 14px 0;
	font-size: 13px;
	font-weight: 300;
	color: var(--sgd-j-quiet);
}

body.sgd-jewel .woocommerce-breadcrumb a {
	color: var(--sgd-j-quiet);
}

body.sgd-jewel .woocommerce-result-count,
body.sgd-jewel .woocommerce-ordering {
	margin-block: 10px 26px;
	font-size: 14px;
	font-weight: 300;
	color: var(--sgd-j-quiet);
}

body.sgd-jewel .woocommerce ul.products,
body.sgd-jewel ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 44px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.sgd-jewel ul.products::before,
body.sgd-jewel ul.products::after {
	display: none;
}

body.sgd-jewel ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	text-align: center;
}

body.sgd-jewel ul.products li.product .astra-shop-thumbnail-wrap {
	position: relative;
	margin: 0;
	background: var(--sgd-j-tint);
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

body.sgd-jewel ul.products li.product .astra-shop-thumbnail-wrap img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	box-sizing: border-box;
	padding: 6%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

body.sgd-jewel ul.products li.product :is(.woocommerce-loop-product__title, h2.woocommerce-loop-product__title) {
	margin: 16px 0 2px;
	font-size: 15px;
	font-weight: 350;
	line-height: 1.6;
	color: var(--sgd-j-slate);
	text-align: center;
}

body.sgd-jewel ul.products li.product .ast-woo-product-category {
	display: none;
}

body.sgd-jewel.single-product div.product .product_title {
	font-size: clamp(28px, 3vw, 36px);
	text-align: start;
	color: var(--sgd-j-slate);
}

body.sgd-jewel.single-product div.product .woocommerce-product-gallery {
	background: var(--sgd-j-tint);
}

body.sgd-jewel.single-product div.product .woocommerce-product-gallery img {
	mix-blend-mode: multiply;
}

body.sgd-jewel.single-product .woocommerce-tabs ul.tabs li a {
	font-weight: 350;
	color: var(--sgd-j-slate);
}

/* ====================================================================== 14b. Listing-intro rhythm, calculator band, prices first, product page */

/* The hero section that holds the calculator (home, coins, melted gold): centred title and lead, then the calculator as one band block,
   like the reference's listing intro (centred title, paragraph, then the tool). Replaces the two-column split. */
@media (min-width: 782px) {
	body.sgd-bullion .entry-content .sg-hero:has(> .sg-gram) {
		column-count: 1;
	}
}

body.sgd-bullion .entry-content .sg-hero:not(.alignfull):has(> .sg-gram) {
	padding-block: 72px 24px;
}

body.sgd-bullion .entry-content .sg-hero:has(> .sg-gram) > :is(h1, p) {
	max-width: 820px;
	margin-inline: auto;
	text-align: center;
}

body.sgd-bullion .entry-content .sg-hero:has(> .sg-gram) > p.sg-byline {
	font-size: 14px;
}

body.sgd-bullion .entry-content .sg-hero > .sg-gram.sg-calc {
	max-width: 820px;
	margin: 40px auto 0;
	padding: 40px;
	border-radius: 0;
	background: var(--sgd-band);
}

body.sgd-bullion .sg-calc {
	--sgg-white: var(--sgd-stone);
}

body.sgd-bullion .sg-gram .sg-seg {
	background: transparent;
	border-color: var(--sgd-muted);
}

body.sgd-bullion .sg-gram .sg-seg__btn {
	background: transparent;
	color: var(--sgd-dark);
}

body.sgd-bullion .sg-gram .sg-seg__btn[aria-pressed="true"] {
	color: #fff;
}

/* Option cards: square, 1px field border; the chosen one is tinted with a 2px mustard foot. */
body.sgd-bullion .sg-gram :is(.sg-chip, .sg-coin)[aria-pressed="true"],
body.sgd-bullion .sg-gram :is(.sg-chip, .sg-coin)[aria-pressed="true"]:hover,
body.sgd-bullion .sg-gram :is(.sg-chip, .sg-coin)[aria-pressed="true"]:focus {
	background: var(--sgd-picked);
	border: 1px solid var(--sgg-field);
	border-bottom: 2px solid var(--sgd-mustard);
	font-weight: 500;
}

/* Section titles: centred, with a short mustard hairline above, as on the reference. */
body.sgd-bullion #page .entry-content :is(.sg-section, .sg-hero:not(:has(> .sg-gram))) > h2,
body.sgd-bullion #page .entry-content > h2 {
	text-align: center;
}

body.sgd-bullion #page .entry-content > h2 {
	margin-block: 72px 14px;
}

body.sgd-bullion #page .entry-content .sg-section > h2::before,
body.sgd-bullion #page .entry-content > h2::before {
	content: "";
	display: block;
	width: 48px;
	height: 2px;
	margin: 0 auto 20px;
	background: var(--sgd-mustard);
}

body.sgd-bullion #page .entry-content .sg-section--band:has(> .wp-block-buttons) > h2::before {
	background: #fff;
}

/* Prices: the mustard band comes first (as on the reference gold-price page), the title and text follow. */
body.sgd-bullion .entry-content:has(> .sg-rates) {
	display: flex;
	flex-direction: column;
}

body.sgd-bullion .entry-content:has(> .sg-rates) > * {
	box-sizing: border-box;
	width: 100%;
}

body.sgd-bullion .entry-content:has(> .sg-rates) > .sg-rates {
	order: -1;
	max-width: none;
}

body.sgd-bullion .entry-content:has(> .sg-rates) > .sg-rates .sg-rates__grid {
	margin-block: 0 36px;
}

/* Contact buttons: one height, one line per label. */
body.sgd-bullion .sg-contact__phones a.sg-btn.sg-contact__call {
	min-height: 64px;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
}

body.sgd-bullion .sg-contact__phones .sg-contact__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	white-space: nowrap;
}

body.sgd-bullion .sg-contact-wrap .sg-contact__phones > li {
	flex: 0 1 300px;
}

/* Inside the calculator the three contact buttons stack at full width. */
body.sgd-bullion .sg-calc .sg-contact__phones {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

/* Product page (jewellery skin): picture and text side by side, text centred against the picture, plain tabs, one WhatsApp button. */
@media (min-width: 922px) {
	body.sgd-jewel.single-product div.product {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 56px;
		align-items: center;
	}

	body.sgd-jewel.single-product #page div.product > :is(.woocommerce-product-gallery, .summary) {
		float: none;
		width: 100%;
		max-width: none;
		margin: 0;
	}

	body.sgd-jewel.single-product div.product > :not(.woocommerce-product-gallery):not(.summary) {
		grid-column: 1 / -1;
	}
}

body.sgd-jewel.single-product div.product .summary {
	padding-block: 24px;
}

body.sgd-jewel.single-product div.product {
	padding-top: 24px;
}

body.sgd-jewel.single-product .single-product-category {
	display: none; /* the breadcrumb above the title already names the category */
}

body.sgd-jewel.single-product .woocommerce-breadcrumb {
	margin-top: 28px;
}

body.sgd-jewel .sgd-ask {
	margin: 28px 0 0;
}

body.sgd-jewel.single-product .woocommerce-tabs ul.tabs {
	display: flex;
	justify-content: center;
	gap: 36px;
	margin: 56px 0 28px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--sgd-j-line);
}

body.sgd-jewel.single-product .woocommerce-tabs ul.tabs::before,
body.sgd-jewel.single-product .woocommerce-tabs ul.tabs::after {
	display: none;
}

body.sgd-jewel.single-product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

body.sgd-jewel.single-product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 10px 6px;
	border-bottom: 1px solid transparent;
	font-size: 16px;
	font-weight: 350;
}

body.sgd-jewel.single-product .woocommerce-tabs ul.tabs li.active a {
	border-bottom-color: var(--sgd-j-accent);
	color: var(--sgd-j-accent);
}

/* ====================================================================== 15. Phones */

@media (max-width: 921px) {
	.sgd-jb {
		height: auto;
	}

	.sgd-bar__in {
		flex-direction: column;
		gap: 8px;
		padding: 10px 16px 12px;
	}

	.sgd-bar__text {
		text-align: center;
	}

	body #page .sgd-bar__btn {
		width: 100%;
	}

	.sgd-note__text {
		font-size: 13px;
		padding-inline: 16px;
	}

	.sgd-hero {
		margin-top: 0;
	}

	.sgd-hero__banner {
		height: 56vw;
		min-height: 230px;
	}

	.sgd-hero--light .sgd-hero__banner {
		padding: 16px 16px 48px;
		gap: 12px;
	}

	.sgd-hero__img {
		margin-inline: -42px;
	}

	.sgd-hero--light .sgd-hero__img:nth-child(n + 4) {
		display: none;
	}

	/* One photo is enough on a phone: the crown ring fills the banner. */
	.sgd-hero--dark .sgd-hero__img:not(:nth-child(2)) {
		display: none;
	}

	.sgd-hero--dark .sgd-hero__img {
		margin-inline: 0;
		-webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
		mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
	}

	.sgd-hero__card {
		width: calc(100% - 32px);
		margin-top: -48px;
		padding: 24px 18px 6px;
	}

	.sgd-hero__act .sgd-rule {
		display: none; /* both hairlines or none: on a phone the button takes the row */
	}

	.sgd-hero__act .sgd-btn {
		width: 100%;
	}

	.sgd-tiles {
		grid-template-columns: 1fr;
		gap: 22px;
		margin-top: 40px;
	}

	.sgd-tile__face {
		aspect-ratio: 16 / 10;
	}

	.sgd-rounds {
		margin-top: 40px;
		padding-block: 28px 22px;
	}

	.sgd-rounds__list {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 22px 8px;
		max-width: 420px;
	}

	.sgd-rounds__pic {
		width: 84px;
		height: 84px;
	}

	.sgd-rounds__label {
		font-size: 14px;
	}

	body.sgd-bullion .sg-rates__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	body.sgd-bullion .sg-rates__grid > .sg-rate:nth-child(odd) {
		border-inline-start: 0;
	}

	body.sgd-bullion .sg-rates__grid > .sg-rate:nth-child(n + 3) {
		border-top: 1px solid rgba(255, 255, 255, 0.5);
	}

	#colophon #astra-footer-menu {
		grid-template-columns: 1fr;
	}

	#colophon #astra-footer-menu > li {
		border-inline-start: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.18);
	}

	#colophon #astra-footer-menu > li:first-child {
		border-top: 0;
	}

	#colophon #astra-footer-menu > li:nth-child(n + 4) {
		margin-top: 0;
	}

	body.sgd-bullion .sg-calc {
		padding: 20px 16px;
	}

	.sgd-pills__list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	body.sgd-jewel #page .entry-content a.sgd-pills__link {
		width: 100%;
		box-sizing: border-box;
		gap: 8px;
		padding-block: 5px;
		padding-inline: 6px 10px;
		font-size: 14px;
	}

	.sgd-trust {
		grid-template-columns: repeat(2, 1fr);
		gap: 22px 10px;
	}

	.sgd-trust__title {
		font-size: 14px;
	}

	/* the floating WhatsApp button sits bottom right: leave it room at the end of the page */
	#colophon {
		padding-bottom: 72px;
	}

	.sgd-jb {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.sgd-jb__text {
		align-items: center;
		padding: 28px 20px 8px;
		text-align: center;
	}

	.sgd-jb__photos {
		min-width: 0;
		height: 200px;
		gap: 12px;
		padding: 16px 6% 0;
		overflow: hidden;
	}

	.sgd-jb__photos img {
		height: 180px;
		max-width: 30%;
	}

	.sgd-jb__photos img:nth-child(n + 4) {
		display: none;
	}

	body.sgd-jewel .entry-content .wp-block-gallery.sg-jewelry-grid.has-nested-images,
	body.sgd-jewel ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 30px 14px;
	}

	body.sgd-jewel .entry-content h2.wp-block-heading {
		margin-top: 52px;
	}
}

@media (max-width: 600px) {
	/* Full-bleed hero banner on a phone, as on the reference. */
	body .entry-content > .sgd-hero {
		max-width: none;
		width: 100vw;
		margin-inline: calc(50% - 50vw);
	}

	body.sgd-bullion .entry-content {
		font-size: 17px;
	}

	body.sgd-bullion .sg-gram .sg-rate__name {
		font-size: 28px;
	}

	body.sgd-bullion .sg-gram .sg-rate {
		padding: 20px 8px;
	}

	/* the estimate sentence is also in the calculator's own contact box, so the home page drops the strip on a phone */
	body:has(.sgd-hero) .sgd-note {
		display: none;
	}

	body #page .sgd-bar__btn {
		min-height: 40px;
	}

	.sgd-ticker__in {
		font-size: 13px;
		padding-inline: 12px;
	}

	.sgd-ticker__item {
		padding-inline: 10px;
	}
}

/* ====================================================================== 16. Motion and focus */

@media (prefers-reduced-motion: no-preference) {
	body.sgd-bullion #page :is(.sgd-btn, .wp-block-button__link, .sgd-bar__btn),
	body.sgd-jewel #page :is(.sgd-btn, .wp-block-button__link),
	.sgd-pills__link {
		transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	}
}

body.sgd-bullion #page :focus-visible {
	outline: 2px solid var(--sgd-purple);
	outline-offset: 2px;
}

#masthead :focus-visible,
#colophon :focus-visible,
.sgd-bar :focus-visible {
	outline: 2px solid var(--sgd-mustard-lt);
	outline-offset: 2px;
}

body.sgd-jewel #page :focus-visible {
	outline: 2px solid var(--sgd-j-accent);
	outline-offset: 2px;
}

body.sgd-hdr-light #masthead :focus-visible {
	outline-color: var(--sgd-j-accent);
}

/* The arrow buttons of the phone menu keep the menu colour (Astra paints them ivory). */
#masthead #ast-mobile-header .main-header-menu .ast-menu-toggle {
	background: transparent;
}

/* ====================================================================== 17. Home page (2.2.x)
 *
 * Since 2.2.0; this text is 2.2.1 (its changes are marked 2.2.1).
 * Only the front page (page 62) uses these classes: sgh-* (the [satyargold_home_*] shortcodes and the home groups). body.home
 * scopes the few rules that touch shared blocks (hero, tiles, round strip, calculator, FAQ, closing band). Tokens, fonts, buttons
 * and bands are the 2.1.0 ones; nothing above this section changed. The hero banner is the framed 2.1.0 banner (the edge-to-edge
 * option is src/home-wide-hero.css, not shipped).
 * Rhythm: one content width (--sgd-w) with the same two edges for every part, 64 px between parts, real photos in every screen,
 * few words, serif titles without a second label above them (as on the model), hairlines instead of boxes.
 * Contrast (WCAG): titles purple #483C78 on stone 8.49, on band 7.98 | line text #5F5B57 on stone 5.97, on band 5.61
 *   | steps, addresses ink #0E072C on band 16.1 | step numbers mustard #86723F on band 3.9 and coin prices mustard on stone 4.15
 *   (large text of 26 px and more, 3 needed) | coin prices on phones (22 px, not large text) bronze #6F5E31 on stone 5.61, on the
 *   plinth colour 5.27 (4.5 needed; 2.2.1) | promise icons mustard on stone 4.15 (icons, 3 needed) | WhatsApp glyph #1F8F4F on band
 *   3.4 (icon, 3 needed) | white on the dark call button #211C35 16.4 | dark text and outline on band 13.65.
 */

body.sgd-bullion .entry-content > :is(.sgh-coins, .sgh-tool, .sgh-visit, .sgh-jewels, .sgh-guide) {
	box-sizing: border-box;
	max-width: var(--sgd-w);
	margin-inline: auto;
}

/* Astra pads every top-level group block (54 px on desktop, 25.5 px on phones); the home groups and the FAQ drop that
   padding, so every part of the page starts and ends on the same two lines. */
body.sgd-bullion .entry-content > :is(.sgh-tool, .sgh-visit, .sgh-guide),
body.sgd-bullion.home .entry-content > #faq.sg-section, body.sgd-bullion.sgi-src-62 .entry-content > #faq.sg-section {
	padding-inline: 0;
}

/* Lists of the home parts: no theme indent (the theme gives lists a start margin, which moved rows off the edge). */
body.sgd-bullion #page .entry-content :is(ul.sgh-promises, ul.sgh-coins__row, ul.sgh-coin__prices, ul.sgh-mosaic, ul.sgh-shop, ol.sgh-steps, ul.sgh-cities, ul.sgh-guide__list) {
	margin-inline: 0;
	padding: 0;
	list-style: none;
}

body.sgd-bullion #page .entry-content :is(.sgh-promises, .sgh-coins__row, .sgh-coin__prices, .sgh-mosaic, .sgh-shop, .sgh-steps, .sgh-cities, .sgh-guide__list) > li {
	margin: 0;
}

/* Running text of the home parts: no single word left alone on a last line (progressive; the H1 is not touched). Not the city
   entries (2.2.1): an address breaks best where a line is full, after a comma, with its last part («صندوق پستی ۱۱۲») on the next. */
body.sgd-bullion #page .entry-content :is(.sgh-promise__title, .sgh-steps > li, .sgh-cities__note, .sgh-lead, .sgh-tool__lead, .sgh-rates__hint, .sgh-today__line, .sgh-today__note, .sgh-coins__rule) {
	text-wrap: pretty;
}

body.sgd-bullion.home #page .entry-content > #faq :is(summary, p), body.sgd-bullion.sgi-src-62 #page .entry-content > #faq :is(summary, p) {
	text-wrap: pretty;
}

/* ---------------------------------------------------------------------- section head */

/* Serif title, a quiet "see all" link at the far end of the title row (with a small note under it when there is one). */
.sgh-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 32px;
	margin: 0 0 26px;
}

.sgh-head__text {
	min-width: 0;
}

body.sgd-bullion #page .entry-content :is(.sgh-title, .sgh-tool > h2, .sgh-visit > h2) {
	margin: 0;
	font-size: clamp(32px, 3.2vw, 42px);
	line-height: 1.25;
	text-align: start;
}

body.sgd-bullion #page .entry-content h3.sgh-title {
	font-size: clamp(26px, 2.6vw, 32px);
}

body.sgd-bullion #page .entry-content .sgh-lead {
	margin: 8px 0 0;
	font-size: 16px;
	line-height: 1.8;
	color: var(--sgd-body);
}

body.sgd-bullion #page .entry-content :is(a.sgh-more, .sgh-tool__more > a) {
	flex: none;
	padding-bottom: 6px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	white-space: nowrap;
}

/* the link and its note (when the coin prices were entered) at the far end, ending on the title's last line */
.sgh-head__end {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: flex-end;
}

body.sgd-bullion #page .entry-content .sgh-head__end a.sgh-more {
	padding-bottom: 2px;
}

body.sgd-bullion #page .entry-content .sgh-head__note {
	margin: 0 0 4px;
	font-size: 13px;
	line-height: 1.6;
	white-space: nowrap;
	color: var(--sgd-body);
}

/* The ticker above the header (2.1.0): on the home page assets/home.js keeps its rates current and hides it when no city
   has a fresh rate any more. */
body.sgd-bullion.home .sgd-ticker[hidden], body.sgd-bullion.sgi-src-62 .sgd-ticker[hidden] {
	display: none;
}

/* ---------------------------------------------------------------------- hero (the framed 2.1.0 banner, as accepted)

   Tablets and phones show one photo, the crown ring; 2.1.0 crops it at 30 % from the top, which cut the crown's upper arcs.
   On the home page the crop starts higher, so the whole crown and the ring stand in the banner. */
@media (max-width: 921px) {
	body.sgd-bullion.home .entry-content > .sgd-hero--dark .sgd-hero__img, body.sgd-bullion.sgi-src-62 .entry-content > .sgd-hero--dark .sgd-hero__img {
		object-position: 50% 15%;
	}
}

/* ---------------------------------------------------------------------- the three tiles (2.1.0, kept right under the hero)

   [satyargold_tiles] keeps its place under the hero, its gap there (as live), its credit line and its whole look: the owner
   accepted this first screen. One correction on the home page: the theme's list padding (20 px at the start side) no longer
   pushes the row off the content edge, so the three tiles end on the same two edges as every part (live they stood 20 px in
   on the right). Tablets: the three tiles stay side by side, as on desktop, instead of three tall boxes one under the other;
   the faces are square there, the icon keeps its size, and the word and the coins scale down a little on narrow tablets so they
   stay inside the gold frame. Phones: the 2.1.0 tiles, with a little less air in the caption boxes. */
body.sgd-bullion.home .entry-content > .sgd-tiles, body.sgd-bullion.sgi-src-62 .entry-content > .sgd-tiles {
	padding: 0;
}

@media (min-width: 601px) and (max-width: 921px) {
	body.sgd-bullion.home .entry-content > .sgd-tiles, body.sgd-bullion.sgi-src-62 .entry-content > .sgd-tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}

	body.sgd-bullion.home .entry-content > .sgd-tiles .sgd-tile__face, body.sgd-bullion.sgi-src-62 .entry-content > .sgd-tiles .sgd-tile__face {
		aspect-ratio: 1 / 1;
	}

	body.sgd-bullion.home #page .entry-content > .sgd-tiles .sgd-tile__word, body.sgd-bullion.sgi-src-62 #page .entry-content > .sgd-tiles .sgd-tile__word {
		font-size: clamp(36px, 5.2vw, 46px);
	}

	body.sgd-bullion.home .entry-content > .sgd-tiles .sgd-tile__face--coin .sgd-faces, body.sgd-bullion.sgi-src-62 .entry-content > .sgd-tiles .sgd-tile__face--coin .sgd-faces {
		--sgd-d: clamp(72px, 11vw, 92px);
	}
}

/* ---------------------------------------------------------------------- four promises, one quiet line under the tiles */

body.sgd-bullion #page .entry-content > ul.sgh-promises {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	box-sizing: border-box;
	max-width: var(--sgd-w);
	margin: 30px auto 0;
	border-block: 1px solid var(--sgd-line);
}

.sgh-promise {
	padding: 15px 12px;
	border-inline-start: 1px solid var(--sgd-line);
	text-align: center;
}

.sgh-promise:first-child {
	border-inline-start: 0;
}

body.sgd-bullion #page .entry-content a.sgh-promise__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--sgd-ink);
	text-decoration-line: none;
}

body.sgd-bullion #page .entry-content a.sgh-promise__link:is(:hover, :focus-visible) .sgh-promise__title {
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}

.sgh-promise__ico {
	display: inline-flex;
	flex: none;
	color: var(--sgd-mustard);
}

/* ---------------------------------------------------------------------- coins as objects */

body.sgd-bullion .entry-content > .sgh-coins {
	padding-block: 64px 0;
}

body.sgd-bullion #page .entry-content .sgh-coins__row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	max-width: none;
}

.sgh-coin {
	text-align: center;
}

.sgh-coin__plinth {
	display: grid;
	place-items: center;
	aspect-ratio: 11 / 5;
	background: var(--sgd-band);
}

/* the face pair grows with the plinth: 122 px faces at 1366 px, smaller on narrow desktops so it never touches the plinth's edge */
.sgd-faces--home {
	--sgd-d: clamp(96px, 9vw, 122px);
}

.sgd-faces--home .sgd-face {
	box-shadow: 0 8px 18px rgba(33, 28, 53, 0.22);
}

.sgd-faces--home .sgd-face--front {
	box-shadow: 0 0 0 3px var(--sgd-band), 0 8px 18px rgba(33, 28, 53, 0.28);
}

body.sgd-bullion #page .entry-content .sgh-coin__name {
	margin: 16px 0 2px;
	font-size: 25px;
	line-height: 1.35;
	text-align: center;
}

body.sgd-bullion #page .entry-content a.sgh-coin__link {
	color: var(--sgd-purple);
	text-decoration-line: none;
}

body.sgd-bullion #page .entry-content a.sgh-coin__link:is(:hover, :focus-visible) {
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
}

body.sgd-bullion #page .entry-content .sgh-coin__meta {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--sgd-ink);
}

body.sgd-bullion #page .entry-content .sgh-coin__note {
	margin: 0;
	font-size: 13px;
	line-height: 1.7;
	color: #5c5769;
}

/* With fresh prices: each coin's price as an elegant large number (the reference's price page), cities with the same price
   on one line; when the prices were recorded stands once under «قیمت امروز سکه» in the head, with the label of the rates band,
   so the row keeps its height whatever the times are. */
body.sgd-bullion #page .entry-content ul.sgh-coin__prices {
	display: grid;
	justify-content: center;
	gap: 0;
	margin-block: 8px 4px;
}

body.sgd-bullion #page .entry-content .sgh-coin__prices > li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 0 8px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--sgd-body);
}

/* the amount and its currency never part: on a narrow line they go under the city names together */
.sgh-coin__amount {
	white-space: nowrap;
}

.sgh-coin__cur {
	margin-inline-start: 4px;
}

.sgh-coin__value {
	font-family: var(--sgd-serif);
	font-size: 26px;
	line-height: 1.15;
	color: var(--sgd-mustard);
	unicode-bidi: isolate;
}

/* From 601 px up the three coins share their lines (2.2.1): the plinth, the name (two lines for all when one name needs two),
   the weight, the price and the strike year stand at the same height across the row. Each coin is a subgrid of the row's five
   lines and its text box is transparent to it. A browser without subgrid keeps each coin's own lines, as in 2.2.0. */
@supports (grid-template-rows: subgrid) {
	@media (min-width: 601px) {
		body.sgd-bullion #page .entry-content .sgh-coins__row {
			grid-template-rows: repeat(5, auto);
			row-gap: 0;
		}

		.sgh-coin {
			display: grid;
			grid-row: span 5;
			grid-template-rows: subgrid;
		}

		.sgh-coin__text {
			display: contents;
		}

		.sgh-coin__plinth {
			grid-row: 1;
			justify-self: stretch;
		}

		body.sgd-bullion #page .entry-content .sgh-coin__name {
			grid-row: 2;
		}

		body.sgd-bullion #page .entry-content .sgh-coin__meta {
			grid-row: 3;
		}

		body.sgd-bullion #page .entry-content ul.sgh-coin__prices {
			grid-row: 4;
		}

		body.sgd-bullion #page .entry-content .sgh-coin__note {
			grid-row: 5;
		}
	}
}

body.sgd-bullion #page .entry-content .sgh-coins__rule {
	max-width: none;
	margin: 20px auto 0;
	font-size: 16px;
	line-height: 1.9;
	text-align: center;
}

body.sgd-bullion #page .entry-content .sgh-credit {
	margin: 4px auto 0;
	font-size: 13px;
}

/* ---------------------------------------------------------------------- price and calculator (the reference's toolkit) */

body.sgd-bullion .entry-content > .sgh-tool {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 350px);
	grid-template-areas:
		"title more"
		"lead lead"
		"rates rates"
		"calc side";
	column-gap: 28px;
	align-items: start;
	padding-block: 64px 0;
}

.sgh-tool > * {
	margin: 0;
}

.sgh-tool > h2 {
	grid-area: title;
}

.sgh-tool > .sgh-tool__more {
	grid-area: more;
	align-self: end;
	justify-self: end;
}

/* the theme's paragraph margin would otherwise add a line of air under the link */
body.sgd-bullion #page .entry-content .sgh-tool > .sgh-tool__more {
	margin: 0;
}

body.sgd-bullion #page .entry-content .sgh-tool > .sgh-tool__lead {
	grid-area: lead;
	max-width: 780px;
	margin: 12px 0 0;
	font-size: 16.5px;
	line-height: 1.9;
}

.sgh-tool > .sgh-rates {
	grid-area: rates;
	margin-top: 22px;
}

body.sgd-bullion #page .sgh-rates__hint {
	margin: 0 0 10px;
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--sgd-body);
}

body.sgd-bullion .entry-content .sgh-rates .sg-rates__grid {
	margin-block: 0;
}

body.sgd-bullion .sgh-rates .sg-gram .sg-rate,
body.sgd-bullion .sgh-rates .sg-gram .sg-rate:focus {
	padding: 16px 14px 14px;
}

body.sgd-bullion .sgh-rates .sg-gram .sg-rate__name {
	font-size: 28px;
}

body.sgd-bullion .sgh-rates .sg-gram .sg-rate__value {
	font-size: 34px;
}

/* the update line of a city: when it needs two lines, never the hour alone on the second (2.2.1; narrow desktop columns
   ended with «۱۴:۰۱» alone). «pretty» only moves «ساعت» down with it; «balance» would part the day from the year on phones. */
body.sgd-bullion .sgh-rates .sg-gram .sg-rate__time {
	text-wrap: pretty;
}

/* The calculator: the satyargold-gram markup and script untouched, on the band colour like the reference's toolkit cards. */
body.sgd-bullion .entry-content .sgh-tool > .sg-gram.sg-calc {
	grid-area: calc;
	max-width: none;
	margin: 22px 0 0;
	padding: 28px 30px 30px;
	border: 0;
	border-radius: 0;
	background: var(--sgd-band);
}

body.sgd-bullion #page .sgh-tool .sg-gram .sg-calc__title {
	font-size: 27px;
}

/* Its own contact box: the card beside it carries the same numbers, so they are not shown twice. Its message line stays. */
body.sgd-bullion.home .sgh-tool .sg-calc .sg-contact, body.sgd-bullion.sgi-src-62 .sgh-tool .sg-calc .sg-contact {
	display: none;
}

body.sgd-bullion.home .sgh-tool .sg-calc .sg-calc__cta:not([hidden]), body.sgd-bullion.sgi-src-62 .sgh-tool .sg-calc .sg-calc__cta:not([hidden]) {
	display: contents;
}

/* The message line (aria-live) stays in the accessibility tree while it is empty, so what the script writes into it later is
   announced; it only takes no room until then. */
body.sgd-bullion.home .sgh-tool .sg-gram .sg-msg:empty, body.sgd-bullion.sgi-src-62 .sgh-tool .sg-gram .sg-msg:empty {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Desktop: gold or coin and the title across the top, the choices at the start and the estimate beside them, top-aligned.
   The visible panel is transparent to the grid (display: contents); the hidden one stays hidden. */
@media (min-width: 922px) {
	body.sgd-bullion .sgh-tool .sg-calc__view {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: 28px;
		row-gap: 18px;
		align-items: start;
	}

	body.sgd-bullion .sgh-tool .sg-calc__panel:not([hidden]) {
		display: contents;
	}

	body.sgd-bullion .sgh-tool .sg-calc__view > :is(.sg-seg, .sg-calc__empty) {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	body.sgd-bullion .sgh-tool .sg-calc__panel > .sg-calc__title {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	body.sgd-bullion .sgh-tool .sg-calc__panel > .sg-field {
		grid-column: 1;
	}

	body.sgd-bullion .sgh-tool .sg-calc__panel > .sg-out {
		grid-column: 2;
		grid-row: 3 / span 2;
		align-self: start;
		justify-content: flex-start;
	}

	body.sgd-bullion .sgh-tool .sg-gram .sg-msg:not(:empty) {
		grid-column: 1 / -1;
	}

	/* the calculator and the card beside it end on one line, whichever is taller */
	body.sgd-bullion .entry-content .sgh-tool > :is(.sg-gram.sg-calc, .sgh-today) {
		align-self: stretch;
	}

	/* the four cities and the four quick amounts as even 2 x 2 grids in the narrow choice column */
	body.sgd-bullion .sgh-tool .sg-gram :is(.sg-chips--city, .sg-chips--quick:not(.sg-chips--qty)) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* wide screens: the four quick amounts fit in one row */
@media (min-width: 1200px) {
	body.sgd-bullion .sgh-tool .sg-gram .sg-chips--quick:not(.sg-chips--qty) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* The card beside the calculator: one photo, today's rate in one calm line, the call buttons. */
.sgh-tool > .sgh-today {
	grid-area: side;
	margin-top: 22px;
	background: var(--sgd-band);
}

.sgh-today__pic {
	margin: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--sgd-dark);
}

.sgh-today__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: var(--sgh-pos, 50% 50%);
}

.sgh-today__body {
	padding: 20px 24px 24px;
}

body.sgd-bullion #page .entry-content .sgh-today__title {
	margin: 0;
	font-size: 30px;
	line-height: 1.3;
	text-align: start;
}

body.sgd-bullion #page .entry-content .sgh-today__line {
	margin: 4px 0 16px;
	font-size: 16px;
	line-height: 1.85;
}

.sgh-calls {
	display: grid;
	gap: 8px;
}

/* no sentence on the card (the owner emptied it in the satyargold-gram settings): the buttons keep their distance from the title */
.sgh-today__title + .sgh-calls {
	margin-top: 14px;
}

body.sgd-bullion #page a.sgd-btn.sgh-call {
	justify-content: space-between;
	width: 100%;
	min-height: 48px;
	box-sizing: border-box;
	padding: 0 18px;
	background: var(--sgd-dark);
	border-color: var(--sgd-dark);
	color: #fff;
	font-size: 15.5px;
}

body.sgd-bullion #page a.sgd-btn.sgh-call:is(:hover, :focus-visible) {
	background: var(--sgd-muted);
	border-color: var(--sgd-muted);
	color: #fff;
}

body.sgd-bullion #page a.sgd-btn.sgh-call--wa {
	background: transparent;
	border-color: var(--sgd-dark);
	color: var(--sgd-dark);
}

body.sgd-bullion #page a.sgd-btn.sgh-call--wa:is(:hover, :focus-visible) {
	background: var(--sgd-dark);
	border-color: var(--sgd-dark);
	color: #fff;
}

.sgh-call__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.sgh-call__num {
	font-size: 17px;
	font-weight: 500;
	white-space: nowrap;
	unicode-bidi: isolate;
}

/* a phone line without a label (2.2.1): its number stands where the other numbers stand, at the far end of the button.
   The number is set left to right (dir="ltr"), so the margin towards the start of the button is its END margin. */
.sgh-call__num:only-child {
	margin-inline-end: auto;
}

.sgh-call--wa .sgh-wa {
	color: #1f8f4f;
}

body.sgd-bullion #page a.sgh-call--wa:is(:hover, :focus-visible) .sgh-wa {
	color: #fff;
}

body.sgd-bullion #page .entry-content .sgh-today__note {
	margin: 14px 0 0;
	font-size: 13.5px;
	line-height: 1.8;
}

/* ---------------------------------------------------------------------- buying in person: the steps, the cities, the licence */

body.sgd-bullion .entry-content > .sgh-visit {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
	grid-template-rows: repeat(4, auto) 1fr auto;
	column-gap: 64px;
	align-items: start;
	margin-top: 64px;
	padding-block: 48px;
	background: var(--sgd-band);
	box-shadow: 0 0 0 100vmax var(--sgd-band);
	clip-path: inset(0 -100vmax);
}

.sgh-visit > * {
	grid-column: 1;
	margin: 0;
}

.sgh-visit > .sgh-still {
	position: relative;
	grid-column: 2;
	grid-row: 1 / 6;
	align-self: stretch;
	min-height: 480px;
}

.sgh-still {
	margin: 0;
	overflow: hidden;
	background: var(--sgd-dark);
}

.sgh-still__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: var(--sgh-pos, 50% 50%);
}

.sgh-visit > .sgh-still .sgh-still__img {
	position: absolute;
	inset: 0;
}

body.sgd-bullion .entry-content .sgh-visit > ol.sgh-steps {
	display: grid;
	gap: 8px;
	margin-top: 20px;
	counter-reset: sgh-step;
}

body.sgd-bullion #page .entry-content .sgh-steps > li {
	position: relative;
	min-height: 34px;
	padding-inline-start: 50px;
	font-size: 16px;
	font-weight: 350;
	line-height: 1.75;
	color: var(--sgd-ink);
	counter-increment: sgh-step;
}

.sgh-steps > li::before {
	content: counter(sgh-step, persian);
	position: absolute;
	inset-inline-start: 0;
	top: -4px;
	width: 34px;
	font-family: var(--sgd-serif);
	font-size: 38px;
	line-height: 1;
	text-align: center;
	color: var(--sgd-mustard);
}

body.sgd-bullion #page .entry-content .sgh-visit > h3.sgh-cities__title {
	margin-top: 24px;
	padding-top: 0;
	font-size: 26px;
	line-height: 1.35;
	text-align: start;
}

/* one calm line under the title of the city list: call before you come */
body.sgd-bullion #page .entry-content .sgh-visit > .sgh-cities__note {
	margin: 2px 0 0;
	font-size: 15px;
	line-height: 1.8;
	color: var(--sgd-body);
}

/* The four cities (2.2.1): each one is the city's name, the address on a line of its own in the text colour, what is sold there
   and in which currency (the quieter line, a span), and the link to the city's page. Two columns only where each gets at least
   260 px (the second track size: never more than two columns, never a column narrower than 260 px); otherwise one column, so
   an address is never set in a narrow strip (phones, and desktops up to about 1,085 px where the photo stands beside the list). */
body.sgd-bullion #page .entry-content .sgh-visit > ul.sgh-cities {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-columns: repeat(auto-fit, minmax(max(min(260px, 100%), calc(50% - 16px)), 1fr));
	gap: 14px 32px;
	margin-top: 10px;
}

body.sgd-bullion #page .entry-content .sgh-cities > li {
	font-size: 15px;
	line-height: 1.75;
	color: var(--sgd-ink);
}

body.sgd-bullion #page .entry-content .sgh-cities > li > span {
	font-size: 14px;
	color: var(--sgd-body);
}

body.sgd-bullion #page .entry-content .sgh-cities strong {
	display: block;
	font-family: var(--sgd-serif);
	font-size: 26px;
	font-weight: var(--sgd-serif-w, 400);
	line-height: 1.3;
	color: var(--sgd-purple);
}

body.sgd-bullion #page .entry-content .sgh-cities a {
	font-size: 15px;
}

body.sgd-bullion #page .entry-content .sgh-visit > .sgh-licence {
	grid-column: 1 / -1;
	grid-row: 6;
	margin-top: 22px;
	padding-top: 14px;
	border-top: 1px solid var(--sgd-line);
	font-size: 14px;
	line-height: 1.95;
	color: var(--sgd-body);
	text-wrap: balance;
}

body.sgd-bullion #page .entry-content .sgh-licence a {
	white-space: nowrap;
}

/* ---------------------------------------------------------------------- jewellery: one large photo beside four */

body.sgd-bullion .entry-content > .sgh-jewels {
	padding-block: 64px 0;
}

body.sgd-bullion #page .entry-content .sgh-mosaic {
	display: grid;
	grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
	gap: 22px 24px;
	max-width: none;
}

.sgh-tile {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sgh-tile--feature {
	grid-row: span 2;
}

body.sgd-bullion #page .entry-content a.sgh-tile__pic {
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: var(--sgd-dark);
	text-decoration: none;
}

body.sgd-bullion #page .entry-content .sgh-tile--feature a.sgh-tile__pic {
	flex: 1 1 0;
	min-height: 0;
	aspect-ratio: auto;
}

.sgh-tile__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: var(--sgh-pos, 50% 50%);
}

@media (prefers-reduced-motion: no-preference) {
	.sgh-tile__img {
		transition: transform 0.5s ease;
	}

	.sgh-tile__pic:hover .sgh-tile__img {
		transform: scale(1.04);
	}
}

/* The reference's caption box: thin side rules, centred name, an underlined text link. */
.sgh-tile__cap {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 9px 10px 0;
	border-inline: 1px solid var(--sgd-line);
	text-align: center;
}

body.sgd-bullion #page .entry-content a.sgh-tile__name {
	font-size: 15.5px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--sgd-ink);
	text-decoration-line: none;
}

body.sgd-bullion #page .entry-content a.sgh-tile__name:is(:hover, :focus-visible) {
	text-decoration-line: underline;
}

body.sgd-bullion #page .entry-content a.sgh-tile__ask {
	font-size: 14px;
	line-height: 1.7;
}

/* ---------------------------------------------------------------------- the round strip (2.1.0), now under the jewellery photos

   [satyargold_rounds] stands where the six text links to the same six gallery sections were: the words became photos. Its band,
   medallions, mustard rings and labels stay as accepted. Home only: 64 px from the photos above (the rhythm of every part), the
   six spread from edge to edge of the content (the same two edges as the photos), and the shop's four jewellery categories
   (list block sgh-shop) follow on the same band, which ends there. */
body.sgd-bullion.home .entry-content > .sgd-rounds, body.sgd-bullion.sgi-src-62 .entry-content > .sgd-rounds {
	margin-top: 64px;
	padding-block: 38px 10px;
}

/* the theme's list margin and start padding (which put the live strip 40 px off centre) are reset here */
body.sgd-bullion.home .entry-content > .sgd-rounds .sgd-rounds__list, body.sgd-bullion.sgi-src-62 .entry-content > .sgd-rounds .sgd-rounds__list {
	justify-content: space-between;
	gap: 26px 24px;
	margin: 0 auto;
	padding: 0;
}

body.sgd-bullion #page .entry-content > ul.sgh-shop {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 0;
	box-sizing: border-box;
	max-width: var(--sgd-w);
	margin: -1px auto 0; /* overlaps the strip by one pixel: no hairline seam where the two bands meet at a fractional height */
	padding: 11px 0 34px;
	background: var(--sgd-band);
	box-shadow: 0 0 0 100vmax var(--sgd-band);
	clip-path: inset(0 -100vmax);
}

body.sgd-bullion #page .entry-content > ul.sgh-shop > li {
	padding: 0 16px;
	font-size: 14px;
	line-height: 1.8;
	border-inline-start: 1px solid var(--sgd-line);
}

body.sgd-bullion #page .entry-content > ul.sgh-shop > li:first-child {
	border-inline-start: 0;
}

/* tablets: the six medallions in one row across the content width; below 700 px the 2.1.0 grid of three, as wide as the content */
@media (min-width: 700px) and (max-width: 921px) {
	body.sgd-bullion.home .entry-content > .sgd-rounds .sgd-rounds__list, body.sgd-bullion.sgi-src-62 .entry-content > .sgd-rounds .sgd-rounds__list {
		display: flex;
		max-width: var(--sgd-w);
	}
}

@media (max-width: 921px) {
	body.sgd-bullion.home .entry-content > .sgd-rounds, body.sgd-bullion.sgi-src-62 .entry-content > .sgd-rounds {
		padding-block: 30px 8px;
	}
}

@media (max-width: 699px) {
	body.sgd-bullion.home .entry-content > .sgd-rounds .sgd-rounds__list, body.sgd-bullion.sgi-src-62 .entry-content > .sgd-rounds .sgd-rounds__list {
		max-width: var(--sgd-w);
	}
}

/* ---------------------------------------------------------------------- FAQ, the guide links and the closing band, calmer on the home page */

body.sgd-bullion.home .entry-content > #faq.sg-section, body.sgd-bullion.sgi-src-62 .entry-content > #faq.sg-section {
	padding-block: 56px 0;
}

body.sgd-bullion.home #page .entry-content > #faq.sg-section > h2, body.sgd-bullion.sgi-src-62 #page .entry-content > #faq.sg-section > h2 {
	font-size: clamp(30px, 3vw, 38px);
}

body.sgd-bullion.home #page .entry-content > #faq.sg-section > h2::before, body.sgd-bullion.sgi-src-62 #page .entry-content > #faq.sg-section > h2::before {
	content: none;
}

body.sgd-bullion.home .entry-content > #faq .sg-faq summary, body.sgd-bullion.sgi-src-62 .entry-content > #faq .sg-faq summary {
	min-height: 0;
	padding: 12px 18px;
	font-size: 17px;
	line-height: 1.7;
}

body.sgd-bullion.home .entry-content > #faq > p:last-child, body.sgd-bullion.sgi-src-62 .entry-content > #faq > p:last-child {
	margin-top: 18px;
	font-size: 15px;
	text-align: center;
}

body.sgd-bullion .entry-content > .sgh-guide {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	column-gap: 64px;
	align-items: baseline;
	margin-top: 32px;
	padding-block: 24px 44px;
	border-top: 1px solid var(--sgd-line);
}

body.sgd-bullion #page .entry-content .sgh-guide > h2 {
	margin: 0;
	font-size: clamp(28px, 2.6vw, 34px);
	text-align: start;
}

body.sgd-bullion #page .entry-content .sgh-guide > ul.sgh-guide__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px 32px;
	max-width: none;
}

body.sgd-bullion #page .entry-content .sgh-guide__list > li {
	font-size: 15.5px;
	line-height: 2;
}

body.sgd-bullion.home .entry-content > .sg-section--band:has(> .wp-block-buttons), body.sgd-bullion.sgi-src-62 .entry-content > .sg-section--band:has(> .wp-block-buttons) {
	padding-block: 44px 48px;
}

body.sgd-bullion.home #page .entry-content > .sg-section--band:has(> .wp-block-buttons) > h2, body.sgd-bullion.sgi-src-62 #page .entry-content > .sg-section--band:has(> .wp-block-buttons) > h2 {
	font-size: clamp(30px, 3vw, 38px);
}

body.sgd-bullion.home .entry-content > .sg-section--band:has(> .wp-block-buttons) .wp-block-buttons, body.sgd-bullion.sgi-src-62 .entry-content > .sg-section--band:has(> .wp-block-buttons) .wp-block-buttons {
	margin-top: 20px;
}

@media (min-width: 922px) {
	/* FAQ: the title and the link to all questions at the start, the questions beside them (the guide row below uses the same columns). */
	body.sgd-bullion.home .entry-content > #faq.sg-section, body.sgd-bullion.sgi-src-62 .entry-content > #faq.sg-section {
		display: grid;
		grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
		grid-template-rows: auto 1fr;
		column-gap: 64px;
		align-items: start;
		box-sizing: border-box;
		max-width: var(--sgd-w);
		margin-inline: auto;
	}

	body.sgd-bullion.home #page .entry-content > #faq.sg-section > h2, body.sgd-bullion.sgi-src-62 #page .entry-content > #faq.sg-section > h2 {
		grid-column: 1;
		grid-row: 1;
		max-width: none;
		margin: 0;
		text-align: start;
	}

	body.sgd-bullion.home .entry-content > #faq.sg-section > .sg-faq, body.sgd-bullion.sgi-src-62 .entry-content > #faq.sg-section > .sg-faq {
		grid-column: 2;
		grid-row: 1 / span 2;
		max-width: none;
		margin: 0;
	}

	body.sgd-bullion.home .entry-content > #faq.sg-section > p:last-child, body.sgd-bullion.sgi-src-62 .entry-content > #faq.sg-section > p:last-child {
		grid-column: 1;
		grid-row: 2;
		max-width: none;
		margin: 14px 0 0;
		text-align: start;
	}

	/* Closing band: the title and its line at the start, the three buttons at the end of the same row. */
	body.sgd-bullion.home .entry-content > .sg-section--band:has(> .wp-block-buttons), body.sgd-bullion.sgi-src-62 .entry-content > .sg-section--band:has(> .wp-block-buttons) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 48px;
		align-items: center;
		box-sizing: border-box;
		max-width: var(--sgd-w);
		margin-inline: auto;
		text-align: start;
	}

	body.sgd-bullion.home #page .entry-content > .sg-section--band:has(> .wp-block-buttons) > h2, body.sgd-bullion.sgi-src-62 #page .entry-content > .sg-section--band:has(> .wp-block-buttons) > h2 {
		grid-column: 1;
		grid-row: 1;
		max-width: none;
		margin: 0;
		text-align: start;
	}

	body.sgd-bullion.home #page .entry-content > .sg-section--band:has(> .wp-block-buttons) > h2::before, body.sgd-bullion.sgi-src-62 #page .entry-content > .sg-section--band:has(> .wp-block-buttons) > h2::before {
		margin-inline: 0 auto;
	}

	body.sgd-bullion.home .entry-content > .sg-section--band:has(> .wp-block-buttons) > p, body.sgd-bullion.sgi-src-62 .entry-content > .sg-section--band:has(> .wp-block-buttons) > p {
		grid-column: 1;
		grid-row: 2;
		max-width: none;
		margin: 6px 0 0;
	}

	body.sgd-bullion.home .entry-content > .sg-section--band:has(> .wp-block-buttons) > .wp-block-buttons, body.sgd-bullion.sgi-src-62 .entry-content > .sg-section--band:has(> .wp-block-buttons) > .wp-block-buttons {
		grid-column: 2;
		grid-row: 1 / span 2;
		margin: 0;
		justify-content: flex-end;
	}
}

/* ---------------------------------------------------------------------- tablets (and phones) */

@media (max-width: 921px) {
	body.sgd-bullion .entry-content > .sgh-guide {
		display: block;
	}

	/* FAQ: the title and the line under the questions start at the start edge, like every other title of the page (2.2.1; on
	   tablets and phones they were centred between start-aligned titles) */
	body.sgd-bullion.home #page .entry-content > #faq.sg-section > h2, body.sgd-bullion.sgi-src-62 #page .entry-content > #faq.sg-section > h2,
	body.sgd-bullion.home .entry-content > #faq.sg-section > p:last-child, body.sgd-bullion.sgi-src-62 .entry-content > #faq.sg-section > p:last-child {
		text-align: start;
	}

	/* the price part in one column, in the page order: without a fresh rate the card with the numbers, then the calculator;
	   with fresh rates the mustard band, the calculator, then the card to buy (the shortcodes stand in that order) */
	body.sgd-bullion .entry-content > .sgh-tool {
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	/* the link to all rates closes the head, at its far end, as in the other heads of the page */
	body.sgd-bullion #page .entry-content .sgh-tool > .sgh-tool__more {
		align-self: flex-end;
		margin-top: 4px;
	}

	body.sgd-bullion .entry-content .sgh-tool > .sg-gram.sg-calc {
		margin-top: 20px;
		padding: 22px 18px;
	}

	.sgh-tool > .sgh-today {
		display: grid;
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
		margin-top: 24px;
	}

	.sgh-today__pic {
		aspect-ratio: auto;
		min-height: 200px;
	}

	.sgh-head {
		margin-bottom: 22px;
	}

	/* the link and its note go under the title when the row is too narrow for both, at the far end; a long note (a time per
	   city, or «از … تا …») wraps there instead of widening the page */
	.sgh-head:has(> .sgh-head__end) {
		flex-wrap: wrap;
	}

	.sgh-head__end {
		flex: 0 1 auto;
		max-width: 100%;
		margin-inline-start: auto;
	}

	body.sgd-bullion #page .entry-content .sgh-head__note {
		white-space: normal;
		text-align: end;
		text-wrap: balance;
	}
}

/* Tablets: the coin pair smaller, on a taller plinth, so it stays inside it from 601 px up. */
@media (min-width: 601px) and (max-width: 921px) {
	.sgh-coin__plinth {
		aspect-ratio: 16 / 9;
	}

	.sgd-faces--home {
		--sgd-d: clamp(68px, 11vw, 101px);
	}

	/* the full coin's name on two lines that mean something: «سکهٔ تمام بهار آزادی», and «(طرح امامی)» under it (2.2.1; before,
	   it broke between «بهار» and «آزادی»). The size follows the column so the first line fits from 601 px. */
	body.sgd-bullion #page .entry-content .sgh-coin__name {
		font-size: clamp(20px, 3.2vw, 25px);
	}

	.sgh-coin__name .sgd-coin__name-note {
		display: block;
	}

	/* the three columns are too narrow for cities, amount and currency on one line: the cities always stand over the amount, for
	   every coin alike (2.2.1; before, a price of eight digits stayed on one line beside two of nine digits that wrapped) */
	body.sgd-bullion #page .entry-content .sgh-coin__prices > li {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: center;
	}

	/* Buying in person: the photo beside the title and the steps, never wider than its file; the cities and the licence across
	   the full width under them. The crop keeps the pendant, the earrings and the bracelet in frame. */
	body.sgd-bullion .entry-content > .sgh-visit {
		grid-template-columns: minmax(0, 1fr) minmax(0, 36%);
		grid-template-rows: auto 1fr;
		column-gap: 32px;
	}

	/* no aspect-ratio here: with a stretched height it would set the width too; a minimum height keeps the crop upright */
	.sgh-visit > .sgh-still {
		grid-row: 1 / 3;
		min-height: clamp(260px, 36vw, 340px);
	}

	.sgh-visit > .sgh-still .sgh-still__img {
		object-position: 50% 20%;
	}

	body.sgd-bullion #page .entry-content .sgh-visit > :is(h3.sgh-cities__title, .sgh-cities__note, ul.sgh-cities, .sgh-licence) {
		grid-column: 1 / -1;
		grid-row: auto;
	}
}

/* ---------------------------------------------------------------------- phones */

@media (max-width: 600px) {
	body.sgd-bullion #page .entry-content :is(.sgh-title, .sgh-tool > h2, .sgh-visit > h2) {
		font-size: 30px;
	}

	body.sgd-bullion #page .entry-content h3.sgh-title {
		font-size: 25px;
	}

	body.sgd-bullion #page .entry-content :is(a.sgh-more, .sgh-tool__more > a) {
		font-size: 15px;
	}

	body.sgd-bullion #page .entry-content .sgh-lead {
		font-size: 15px;
	}

	/* the 2.1.0 tiles: the same faces and captions, a little less air between them and inside the caption boxes */
	body.sgd-bullion.home .entry-content > .sgd-tiles, body.sgd-bullion.sgi-src-62 .entry-content > .sgd-tiles {
		gap: 16px;
	}

	body.sgd-bullion.home .entry-content > .sgd-tiles .sgd-tile__cap, body.sgd-bullion.sgi-src-62 .entry-content > .sgd-tiles .sgd-tile__cap {
		padding: 14px 12px 16px;
	}

	/* promises: two by two, the icon above its line */
	body.sgd-bullion #page .entry-content > ul.sgh-promises {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: 26px;
	}

	.sgh-promise {
		padding: 11px 8px;
	}

	.sgh-promise:nth-child(odd) {
		border-inline-start: 0;
	}

	.sgh-promise:nth-child(n + 3) {
		border-top: 1px solid var(--sgd-line);
	}

	body.sgd-bullion #page .entry-content a.sgh-promise__link {
		flex-direction: column;
		gap: 4px;
		font-size: 14.5px;
		line-height: 1.55;
	}

	/* coins: three compact rows, the coin pair on a small plinth at the start, the text beside it */
	body.sgd-bullion .entry-content > .sgh-coins {
		padding-top: 48px;
	}

	body.sgd-bullion #page .entry-content .sgh-coins__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.sgh-coin {
		display: flex;
		align-items: stretch;
		text-align: start;
	}

	.sgh-coin__plinth {
		flex: none;
		width: 124px;
		aspect-ratio: auto;
		padding: 14px 6px;
	}

	.sgh-coin__text {
		display: flex;
		flex: 1;
		flex-direction: column;
		justify-content: center;
		min-width: 0;
		padding: 6px 14px;
	}

	.sgd-faces--home {
		--sgd-d: 62px;
	}

	body.sgd-bullion #page .entry-content .sgh-coin__name {
		margin: 0 0 2px;
		font-size: 19px;
		text-align: start;
	}

	body.sgd-bullion #page .entry-content .sgh-coin__meta {
		font-size: 13.5px;
	}

	body.sgd-bullion #page .entry-content ul.sgh-coin__prices {
		justify-content: start;
		gap: 2px;
		margin-block: 4px 2px;
	}

	/* the cities always stand over the amount, for every coin alike, at every phone width (2.2.1; before, a price of eight
	   digits stayed beside its cities at 390 px while the two prices of nine digits wrapped under theirs) */
	body.sgd-bullion #page .entry-content .sgh-coin__prices > li {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: flex-start;
		font-size: 13px;
	}

	/* 22 px is not large text: the darker bronze reaches 4.5:1 on the page colour, which the mustard of the larger sizes does not */
	.sgh-coin__value {
		font-size: 22px;
		color: #6f5e31;
	}

	body.sgd-bullion #page .entry-content .sgh-coins__rule {
		margin-top: 20px;
		font-size: 15px;
	}

	/* price and calculator; with fresh rates the mustard band of the four cities is a little more compact here than on /prices/ */
	body.sgd-bullion .entry-content > .sgh-tool {
		padding-top: 48px;
	}

	body.sgd-bullion .sgh-rates .sg-gram .sg-rate,
	body.sgd-bullion .sgh-rates .sg-gram .sg-rate:focus {
		gap: 4px;
		padding: 12px 6px 10px;
	}

	body.sgd-bullion .sgh-rates .sg-gram .sg-rate__name {
		font-size: 25px;
	}

	body.sgd-bullion .sgh-rates .sg-gram .sg-rate__value {
		font-size: 29px;
	}

	body.sgd-bullion .sgh-rates .sg-gram :is(.sg-rate__country, .sg-rate__label, .sg-rate__time, .sg-rate__cur) {
		font-size: 13.5px;
	}

	body.sgd-bullion #page .entry-content .sgh-tool > .sgh-tool__lead {
		font-size: 15.5px;
	}

	.sgh-tool > .sgh-today {
		display: block;
	}

	.sgh-today__pic {
		aspect-ratio: 2 / 1;
		min-height: 0;
	}

	.sgh-today__body {
		padding: 18px 18px 20px;
	}

	body.sgd-bullion #page .entry-content .sgh-today__title {
		font-size: 27px;
	}

	/* buying in person: the photo across the top, then the steps, the cities and the licence */
	body.sgd-bullion .entry-content > .sgh-visit {
		display: block;
		margin-top: 48px;
		padding-block: 36px;
	}

	.sgh-visit > .sgh-still {
		min-height: 0;
		margin-bottom: 28px;
	}

	/* the crop holds the necklace with its pendant and both earrings whole, with air under them (2.2.1; before, the top of the
	   photo: the pendant stood close to the lower edge and the tip of the earring stand showed in a corner) */
	.sgh-visit > .sgh-still .sgh-still__img {
		position: static;
		aspect-ratio: 4 / 3;
		height: auto;
		object-position: 50% 16%;
	}

	body.sgd-bullion .entry-content .sgh-visit > ol.sgh-steps {
		margin-top: 16px;
	}

	body.sgd-bullion #page .entry-content .sgh-steps > li {
		padding-inline-start: 44px;
		font-size: 15.5px;
	}

	.sgh-steps > li::before {
		font-size: 34px;
	}

	body.sgd-bullion #page .entry-content .sgh-visit > .sgh-cities__note {
		font-size: 14px;
	}

	/* the four cities one under the other, each address across the full width in the text colour (the grid rule above does it) */
	body.sgd-bullion #page .entry-content .sgh-visit > ul.sgh-cities {
		gap: 12px 18px;
	}

	body.sgd-bullion #page .entry-content .sgh-cities > li > span {
		font-size: 13.5px;
	}

	body.sgd-bullion #page .entry-content .sgh-cities strong {
		font-size: 23px;
	}

	body.sgd-bullion #page .entry-content .sgh-cities a {
		font-size: 14px;
	}

	/* jewellery: the large photo across, the other four two by two, names without the WhatsApp line under the small ones */
	body.sgd-bullion .entry-content > .sgh-jewels {
		padding-top: 48px;
	}

	body.sgd-bullion #page .entry-content .sgh-mosaic {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 10px;
	}

	.sgh-tile--feature {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	body.sgd-bullion #page .entry-content .sgh-tile--feature a.sgh-tile__pic {
		flex: none;
		aspect-ratio: 4 / 5;
	}

	.sgh-tile__cap {
		padding-top: 8px;
		border-inline: 0;
	}

	.sgh-tile:not(.sgh-tile--feature) .sgh-tile__ask {
		display: none;
	}

	body.sgd-bullion #page .entry-content a.sgh-tile__name {
		font-size: 14.5px;
	}

	/* the round strip (2.1.0 grid of three on phones, with its 8 px column gap so three medallions fit from 320 px) and the shop
	   links on its band, two by two (no stray rule at a line start) */
	body.sgd-bullion.home .entry-content > .sgd-rounds, body.sgd-bullion.sgi-src-62 .entry-content > .sgd-rounds {
		margin-top: 48px;
	}

	body.sgd-bullion.home .entry-content > .sgd-rounds .sgd-rounds__list, body.sgd-bullion.sgi-src-62 .entry-content > .sgd-rounds .sgd-rounds__list {
		row-gap: 16px;
		column-gap: 8px;
	}

	body.sgd-bullion #page .entry-content > ul.sgh-shop {
		display: grid;
		grid-template-columns: repeat(2, auto);
		justify-content: center;
		padding-bottom: 30px;
	}

	body.sgd-bullion #page .entry-content > ul.sgh-shop > li {
		padding: 0 10px;
		font-size: 13.5px;
	}

	body.sgd-bullion #page .entry-content > ul.sgh-shop > li:nth-child(odd) {
		border-inline-start: 0;
	}

	/* FAQ, guide, band */
	body.sgd-bullion.home .entry-content > #faq.sg-section, body.sgd-bullion.sgi-src-62 .entry-content > #faq.sg-section {
		padding-top: 44px;
	}

	body.sgd-bullion.home .entry-content > #faq .sg-faq summary, body.sgd-bullion.sgi-src-62 .entry-content > #faq .sg-faq summary {
		padding: 12px 10px;
		font-size: 16px;
	}

	body.sgd-bullion .entry-content > .sgh-guide {
		margin-top: 28px;
		padding-block: 24px 40px;
	}

	/* the guide title and its links at the start edge, like every other title of the page (2.2.1; they were centred) */
	body.sgd-bullion #page .entry-content .sgh-guide > ul.sgh-guide__list {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 8px;
	}

	body.sgd-bullion #page .entry-content .sgh-guide__list > li {
		font-size: 15px;
		line-height: 2.1;
	}

	body.sgd-bullion.home .entry-content > .sg-section--band:has(> .wp-block-buttons), body.sgd-bullion.sgi-src-62 .entry-content > .sg-section--band:has(> .wp-block-buttons) {
		padding-block: 40px 44px;
	}
}
