/* The Gentle Fella (coded): WordPress and WooCommerce output the prototype never had.
   Tokens and components come from theme.css (the prototype stylesheet); nothing here adds a colour or font. */

/* Content from the block editor, inside .prose */
.prose :where(.wp-block-group, .wp-block-columns) > * + * { margin-top: 20px; }
.prose a { color: var(--primary); }
.prose h2 { scroll-margin-top: 24px; }
.page-prose > h2:first-child, .page-prose > :first-child h2:first-child { margin-top: 0; }
.prose details { background: var(--surface); border-radius: var(--r-md); }
.prose details + details { margin-top: 8px; }
.prose details summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 20px; font-weight: 600; color: var(--primary); cursor: pointer; }
.prose details summary::-webkit-details-marker { display: none; }
.prose details summary::after { content: "+"; font: 400 22px/1 var(--sans); color: var(--primary); transition: transform .18s ease; }
.prose details[open] summary::after { transform: rotate(45deg); }
.prose details > :not(summary) { padding: 0 20px; max-width: 68ch; }
.prose details > :last-child { padding-bottom: 20px; }
.prose details > summary + * { margin-top: 0; }
.prose .wp-block-table { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--primary); }
.prose .draft, .prose .wp-block-group.draft { padding: 14px 16px; background: var(--surface); border: 1px solid var(--accent); border-radius: var(--r-sm); font-size: 15px; }
.prose figure { margin: 32px 0 0; }
.prose img { border-radius: var(--r-md); height: auto; }
.about-rest { max-width: 880px; }
.about-rest h2 { font-size: clamp(28px, 3vw, 40px); }
.results-pages { list-style: none; padding: 0; display: grid; gap: 12px; }
.buy__brand { font-weight: 700; color: var(--muted); }
.buy__brand a { color: var(--muted); text-decoration: none; }
.buy__brand a:hover { text-decoration: underline; }
.label7 .prose { font-size: 17px; }
.label7 .prose > * + * { margin-top: 12px; }
.tgm-price-tbc { font-weight: 600; }
.form fieldset[disabled] :is(input, select, textarea, .btn) { opacity: .6; cursor: not-allowed; }

/* WordPress basics */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-inline: auto; }
.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-links .page-numbers.current { background: var(--primary); color: var(--bg); }

/* WooCommerce notices */
.woocommerce-notices-wrapper:empty { display: none; }
:is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); list-style: none; }
.woocommerce-error, .wc-block-components-notice-banner.is-error { border-color: var(--alert); color: var(--alert); }

/* Basket and checkout (WooCommerce blocks), restyled to cart.html and checkout.html */
:where(.wc-block-cart, .wc-block-checkout, .wp-block-woocommerce-empty-cart-block) { font-family: var(--sans); color: var(--ink); }
:where(.wc-block-cart, .wc-block-checkout) :is(h1, h2, h3, .wc-block-components-title) { font-family: var(--serif); font-weight: 400; color: var(--primary); }
.wc-block-components-button:not(.is-link), .wp-element-button, .woocommerce .button, .woocommerce button.button, .woocommerce a.button {
  min-height: 52px; padding: 14px 28px; border: 2px solid var(--primary); border-radius: var(--r-md); background: var(--primary); color: var(--bg);
  font: 600 16px/1.2 var(--sans); text-decoration: none; box-shadow: none; transition: background-color .18s ease, border-color .18s ease;
}
.wc-block-components-button:not(.is-link):hover, .wp-element-button:hover, .woocommerce .button:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.wc-block-components-button:not(.is-link):focus-visible, .wp-element-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; box-shadow: none; }
:where(.wc-block-components-text-input, .wc-block-components-combobox, .wc-blocks-components-select) :is(input, select) {
  border: 1px solid var(--support) !important; border-radius: var(--r-sm) !important; background: var(--surface) !important; color: var(--ink) !important; font: 400 16px/1.4 var(--sans) !important;
}
.wc-block-components-sidebar :is(.wc-block-components-totals-wrapper, .wp-block-woocommerce-checkout-order-summary-block), .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block {
  background: var(--surface); border-color: var(--line) !important; border-radius: var(--r-lg);
}
.wc-block-components-product-name { font-family: var(--serif); color: var(--primary); }
.wc-block-components-formatted-money-amount { font-weight: 600; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--primary); border-color: var(--primary); }
.wc-block-components-validation-error, .wc-block-components-validation-error p { color: var(--alert); font-weight: 600; }

/* My account (classic markup) */
.woocommerce-account .page-prose { display: grid; gap: 32px; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce-MyAccount-navigation a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--primary); color: var(--bg); }
.woocommerce form .form-row { display: grid; gap: 6px; margin-bottom: 16px; }
.woocommerce form .form-row label { font-weight: 600; }
.woocommerce form .form-row :is(input.input-text, select, textarea) { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--support); border-radius: var(--r-sm); background: var(--surface); font: 400 16px/1.4 var(--sans); color: var(--ink); }
.woocommerce form :is(.login, .register) { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.woocommerce .u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .woocommerce .u-columns.col2-set { grid-template-columns: 1fr; } }
