/* WordPress-only additions on top of site.css */

/* Admin bar: keep the sticky header below it */
body.admin-bar header#site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar header#site-header { top: 46px; } #wpadminbar { position: fixed; } }

/* Editor content (pages, posts, WooCommerce pages) */
.wp-main { padding-block: 48px 72px; }
.wp-extra { padding-block: 0 56px; }
.wp-content { font-size: 1.05rem; }
.wp-content.narrow { max-width: 780px; }
.wp-content > * + * { margin-top: 1em; }
.wp-content h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-top: 1.4em; }
.wp-content h3 { font-size: 1.5rem; margin-top: 1.2em; }
.wp-content a { color: var(--blue); }
.wp-content img { height: auto; border-radius: var(--radius); }
.wp-content blockquote { border-left: 4px solid var(--gold); margin-left: 0; padding-left: 16px; color: var(--muted); }
.wp-hero-img { margin: 0 0 24px; }
.wp-hero-img img { width: 100%; height: auto; border-radius: 14px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* News posts from WordPress */
.wp-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.wp-post { display: flex; flex-direction: column; gap: 10px; }
.wp-post > a img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; display: block; }
.wp-post h3 { font-size: 1.6rem; }
.wp-post h3 a { text-decoration: none; }
.wp-post h3 a:hover { color: var(--blue); }
.wp-post p { margin: 0; color: var(--muted); }
.wp-pager { margin-top: 32px; }
.wp-pager .page-numbers { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; margin-right: 4px; text-decoration: none; }
.wp-pager .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Sold-out sizes in the designed shop */
.sizes label.sold-out span { text-decoration: line-through; opacity: .45; cursor: not-allowed; }

/* WooCommerce in club colours */
.wc-wrap .button, .wc-wrap button.button, .wc-wrap input.button, .wc-wrap a.button, .wc-wrap #respond input#submit,
.woocommerce .wc-block-components-button:not(.is-link) {
  background: var(--blue) !important; color: #fff !important; border-radius: 999px !important;
  font-weight: 700 !important; padding: .7em 1.4em !important; border: 0 !important;
}
.wc-wrap .button.alt, .wc-wrap .checkout-button, .wc-wrap #place_order,
.woocommerce .wc-block-cart__submit-button, .woocommerce .wc-block-components-checkout-place-order-button {
  background: var(--gold) !important; color: #1a1306 !important;
}
.wc-wrap .price, .wc-wrap .amount { color: var(--fg); font-weight: 700; }
.wc-wrap ul.products li.product .woocommerce-loop-product__title { font-family: var(--display); text-transform: uppercase; font-size: 1.4rem; }
.wc-wrap ul.products li.product img { border-radius: 10px; }
.wc-wrap .woocommerce-message, .wc-wrap .woocommerce-info { border-top-color: var(--blue); }
.wc-wrap .woocommerce-message::before, .wc-wrap .woocommerce-info::before { color: var(--blue); }
.wc-wrap input.input-text, .wc-wrap select, .wc-wrap textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--surface); color: var(--fg); font: inherit;
}
.wc-wrap table.shop_table { border-radius: 10px; }
.wc-wrap .product_title { display: none; } /* the title is already in the page hero */
