/*
 * All Valley — overrides for the editable sections (Golden Commerce, 2026-10-14).
 * The mockup used bare <div>/<span>/<a> tags in these spots; the editable versions
 * use paragraph/heading/group blocks, so these rules put the block wrappers back to
 * the mockup's exact look. Loaded after theme.css. No build step: edit this file and
 * bump ALLVALLEY_VERSION in functions.php.
 */

/* Home hero: the faded background coin is an Image block (was a CSS background on
   .hero-coin::before). Same box, fade and filter as the original. The upgraded group carries
   has-coin-block, which hides the old ::before — so a page that hasn't been upgraded still
   shows the coin, and deleting the Image block really removes it. */
.hero-coin.has-coin-block::before { display: none; }
.hero-coin > figure.hero-coin-img {
	position: absolute; left: 50%; top: 46%; width: 520px; height: 520px; margin: -260px 0 0 -260px;
	border-radius: 50%; overflow: hidden; opacity: 0.16;
	filter: saturate(0.15) brightness(1.35) contrast(0.92);
}
.hero-coin > figure.hero-coin-img img { width: 100% !important; height: 100% !important; object-fit: contain; display: block; max-width: none; }

/* Buy page tabs: <p> instead of <div> */
.buytabs > p.buytab { margin: 0 0 -1px; }

/* Buy page Jewelry panel: the kicker is a <p>, which picks up .buypanel p's line-height */
.buypanel p.kicker { line-height: 16px; }

/* Charts: pair label is a <p> instead of a <span> */
.chart-card .chart-head p.pair { margin: 0; font-size: 11.5px; letter-spacing: 0.14em; color: var(--color-muted); text-transform: uppercase; }

/* Video tiles: whole tile was a link */
.yt .yt-tile { display: block; }
.yt .yt-tile:hover .play { background: var(--color-gold); transform: translate(-50%, -50%) scale(1.07); }

/* Buy page category tiles link to their product category page (2026-10-17).
   The label keeps the tile's colours, and its link covers the whole tile so a
   click anywhere on the picture or the label opens the category. */
.bull-cell { position: relative; }
.bull-cell .cl p a { color: inherit; text-decoration: none; }
.bull-cell .cl p a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bull-cell .ci figure a { display: block; }
.bull-cell .cl p a:focus-visible { outline: none; }
.bull-cell:has(a:focus-visible) { outline: 2px solid var(--color-gold); outline-offset: 2px; }

/* Readability pass (2026-10-17): gold used as small text on the light cream
   backgrounds scored 1.9-2.9:1 against WCAG's 4.5:1. #7d621b passes on every light
   background the site uses (worst case 4.83:1 on the footer's #efeae3). Panels that
   really are navy keep the original gold. (Sections named "sec-dark" are light on
   this theme, so they are not excluded.) Buttons are untouched. */
:root body :is(.main-nav a.active, .overline, .kicker, p.type, p.title, .fp-meta, .testi-name, .testi-q, .footer-col h4, .mega-head, p.read, p.circle, p.mark):not(:is(.booking-card, .info-card, .spot-ticker, .mobile-nav, .mobile-sub) *) { color: #7d621b !important; transition: none !important; }

/* 2026-10-17: cart and checkout use WooCommerce's own page templates, which carry no side
   gutter, so text ran to the screen edge on phones and laptops. 24px matches every other page. */
body:is(.woocommerce-cart, .woocommerce-checkout) .wp-site-blocks > :is(header, main) { padding-inline: 24px; }

/* 2026-10-19: the Golden Commerce bank-transfer (ACH) fields ship with no styling of their own, and this
   theme strips form borders, so the boxes rendered invisible (no border, no background). These match the
   checkout's own text boxes: white, 1px dark-grey border, 4px corners, 50px tall. Scoped to .gc-ach-fields. */
.gc-ach-fields .form-row { display: block; float: none; width: auto; margin: 0 0 12px; padding: 0; }
.gc-ach-fields .form-row label { display: block; float: none; width: auto; text-align: left; margin: 0 0 4px; font-size: 14px; line-height: 1.4; }
.gc-ach-fields .woocommerce-input-wrapper { display: block; width: 100%; }
.gc-ach-fields .input-text,
.gc-ach-fields select.select { display: block; box-sizing: border-box; width: 100%; min-height: 50px; padding: 10px 12px; font-family: inherit; font-size: 16px; color: #2b2d2f; background: #fff; border: 1px solid rgba(43, 45, 47, 0.8); border-radius: 4px; appearance: auto; }
.gc-ach-fields .input-text:focus,
.gc-ach-fields select.select:focus { outline: 2px solid #7d621b; outline-offset: 1px; }
.gc-ach-fields .gc-ach-authorization label.checkbox { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.gc-ach-fields .input-checkbox { appearance: auto; flex: none; width: 16px; height: 16px; margin: 3px 0 0; }
