/*
Theme Name: Golden Commerce Demo
Author: Golden Commerce
Description: The Golden Commerce demo store, served from its Claude Design export (the source of truth) with live store data; store pages are WooCommerce and the Golden Commerce plugin inside the design's own header and footer. Rebuild with tools/build_theme.py in ~/dev/gc-demo-site.
Version: 0.1.3
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: gc-demo
*/

/* Store pages: the design's base rules (each drawn page sets these in its own head). */
body.gcx-store { margin: 0; background: #FFFFFF; color: #172026; font-family: Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.gcx-store header *, body.gcx-store footer * { box-sizing: border-box; }
body.gcx-store header a, body.gcx-store footer a { text-decoration: none; }
body.gcx-store header a:hover, body.gcx-store footer a:hover { color: inherit; }
body.gcx-store :focus-visible { outline: 2px solid #172026; outline-offset: 2px; }
body.gcx-store header input, body.gcx-store header button, body.gcx-store footer input, body.gcx-store footer button { font: inherit; }
body.gcx-store [data-gcx-menu][hidden] { display: none !important; }
body.gcx-store .wp-site-blocks > div:first-child { position: relative; z-index: 50; }

/* Plain pages (policies, FAQ, Education, posts) in the design's type. */
.gcx-page { padding: 40px 24px 72px; }
.gcx-page > * { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
.gcx-page h1 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 20px; }
.gcx-page h2 { font-size: 22px; font-weight: 600; margin: 32px 0 10px; }
.gcx-page h3 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
.gcx-page p, .gcx-page li { font-size: 16px; line-height: 1.65; color: #3A444C; }
.gcx-page a { color: #172026; text-decoration: underline; }
.gcx-page .gcx-post-card { padding: 20px 0; border-bottom: 1px solid #DDE1E5; }
.gcx-page .gcx-post-card h2 { margin: 0 0 6px; }
.gcx-page .gcx-post-card h2 a { text-decoration: none; }
.gcx-page .wp-block-query-pagination a { display: inline-flex; align-items: center; min-height: 44px; }
/* FAQ-style questions (details/summary): a full-width 44px row with an open/close mark (grade r1). */
.gcx-page details { border-bottom: 1px solid #DDE1E5; }
.gcx-page details > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 10px 0; cursor: pointer; list-style: none; font-size: 16px; font-weight: 600; color: #172026; }
.gcx-page details > summary::-webkit-details-marker { display: none; }
.gcx-page details > summary::after { content: "+"; flex: none; font-size: 20px; font-weight: 400; color: #5B626B; }
.gcx-page details[open] > summary::after { content: "\2212"; }
.gcx-page details > :not(summary) { margin-top: 0; padding-bottom: 12px; }
/* Store pages carry the wide layouts (cart, checkout, account) at the design's 1320px. */
.gcx-page:has(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout, .woocommerce-MyAccount-navigation) > * { max-width: 1320px; }
