/* Joymax theme, batch C3: Status page, the 5 footer pages (4 policies + Contact) and WooCommerce's category boxes.
   Loaded only there (inc/pages.php, body classes jx-status / jx-page-legal / jx-page-contact / jx-cat). Looks only:
   content, Elementor layout, forms, links and the joymax-status plugin's data, script and refresh stay as they are.
   Design reference: site-demo status.html, terms.html / contact.html (.page-head), overwatch.html. Colours = main.css tokens. */

/* ====================== 1. Status page (joymax-status plugin, front-end block only) ======================
   The plugin's own status.css stays loaded; these rules load after it and only change looks.
   Its colour names are pointed at our tokens, so anything we don't restyle still follows dark / light. */
html body.joymax-theme.jx-status #content .jxs {
  --jxs-gold: var(--gold-text); --jxs-card: var(--plate); --jxs-line: var(--edge); --jxs-text: var(--paper);
  --jxs-muted: var(--ash); --jxs-wash: var(--chip-bg); --jxs-green: var(--live); --jxs-orange: var(--gold-text); --jxs-red: var(--warn);
  max-width: calc(960px + 2 * clamp(16px, 4vw, 32px)); padding-bottom: 96px;   /* 960 px of content + the plugin's side padding */ color: var(--paper); font-family: var(--body); }
/* Page wrapper only (not the plugin): Astra's boxed-article background photo (space picture) off, as in the demo */
html body.joymax-theme.jx-status #content article.ast-article-single { background: none; }
/* Status colours as in the demo: Undetected green, Patching (plugin: "updating") gold, Down red */
html body.joymax-theme.jx-status #content .jxs-s-undetected { --jxs-c: var(--live); }
html body.joymax-theme.jx-status #content .jxs-s-updating { --jxs-c: var(--gold-text); }
html body.joymax-theme.jx-status #content .jxs-s-down { --jxs-c: var(--warn); }
html body.joymax-theme.jx-status #content .jxs :is(h1, h2, h3) { font-family: var(--head); color: var(--paper); }
html body.joymax-theme.jx-status #content .jxs[dir="rtl"] :is(h1, h2, .jxs-eyebrow, .jxs-totals strong) { font-family: var(--ar); }

/* Title block: big outlined "STATUS" behind, gold line above, title, intro */
html body.joymax-theme.jx-status #content .jxs-hero { padding: 56px 0 8px; }
html body.joymax-theme.jx-status #content .jxs-watermark {
  inset: 44px 0 auto; display: block; text-align: center; z-index: 0; opacity: 1; font: 700 132px/1 var(--head); letter-spacing: .04em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--gold) 16%, transparent); user-select: none; }
html body.joymax-theme.jx-status #content .jxs-hero > :not(.jxs-watermark) { position: relative; z-index: 1; }
html body.joymax-theme.jx-status #content .jxs-eyebrow { margin: 0 0 10px; color: var(--gold-text); font: 600 var(--t-14)/1.4 var(--body); letter-spacing: 0; }
html body.joymax-theme.jx-status #content .jxs-hero h1 { font: 700 var(--t-49)/1.05 var(--head); }
html body.joymax-theme.jx-status #content .jxs-hero h1 span { color: var(--gold-text); }
html body.joymax-theme.jx-status #content .jxs-intro { margin: 12px 0 0; color: var(--ash); }

/* Totals: one quiet strip, number in the status colour */
html body.joymax-theme.jx-status #content .jxs-totals {
  display: inline-flex; flex-wrap: wrap; gap: 0; margin: 28px 0 0; padding: 0;
  background: var(--plate); border: 1px solid var(--edge); border-radius: var(--r-card); }
html body.joymax-theme.jx-status #content .jxs-totals li { gap: 12px; padding: 14px 24px; margin: 0; background: none; border: 0; border-radius: 0; }
html body.joymax-theme.jx-status #content .jxs-totals li + li { border-inline-start: 1px solid var(--edge); }
html body.joymax-theme.jx-status #content .jxs-totals .jxs-dot { display: none; }
html body.joymax-theme.jx-status #content .jxs-totals strong { font: 700 var(--t-31)/1 var(--head); color: var(--jxs-c); font-variant-numeric: tabular-nums; }
html body.joymax-theme.jx-status #content .jxs-totals span:last-child { color: var(--paper); font-weight: 600; font-size: var(--t-14); line-height: 1.3; }

/* Toolbar: "Live product overview", green Live, quiet Refresh button */
html body.joymax-theme.jx-status #content .jxs-toolbar {
  align-items: flex-end; gap: 12px 24px; margin: 48px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--edge); }
html body.joymax-theme.jx-status #content .jxs-toolbar h2 { font-size: var(--t-25); font-weight: 700; line-height: 1.2; }
html body.joymax-theme.jx-status #content .jxs-toolbar p { margin: 6px 0 0; color: var(--ash); font-size: var(--t-14); }
html body.joymax-theme.jx-status #content .jxs-live { gap: 8px; color: var(--live); font-size: var(--t-14); }
html body.joymax-theme.jx-status #content .jxs-live::before { width: 8px; height: 8px; }
/* (0.6.15 speed) The plugin's pulse dot rests while the page scrolls or while it is off screen (classes set by header.js). */
html.jx-scrolling body.joymax-theme.jx-status #content .jxs-live::before,
html body.joymax-theme.jx-status #content .jxs-live.jx-off::before { animation-play-state: paused; }
html body.joymax-theme.jx-status #content .jxs-refresh {
  min-height: 44px; gap: 8px; padding: 0 16px; border: 1px solid var(--edge); border-radius: var(--r-btn); background: transparent;
  color: var(--paper); font: 600 var(--t-14) var(--body); transition: border-color var(--out) ease, color var(--out) ease; }
html body.joymax-theme.jx-status #content .jxs-refresh:is(:hover, :focus-visible) { border-color: var(--gold); color: var(--gold-text); }

/* Rows as plate cards: picture, name, status pill, gold Buy */
html body.joymax-theme.jx-status #content .jxs-list { gap: 10px; }
html body.joymax-theme.jx-status #content .jxs-row {
  grid-template-columns: 72px 1fr auto auto; gap: 20px; padding: 12px 16px 12px 12px;
  background: var(--plate); border: 1px solid var(--edge); border-radius: var(--r-card);
  box-shadow: inset 3px 0 0 var(--jxs-c); transition: border-color var(--out) ease; }
html body.joymax-theme.jx-status #content .jxs[dir="rtl"] .jxs-row { padding: 12px 12px 12px 16px; box-shadow: inset -3px 0 0 var(--jxs-c); }
@media (hover: hover) and (pointer: fine) {
  html body.joymax-theme.jx-status #content .jxs-row:hover { border-color: color-mix(in srgb, var(--jxs-c) 45%, var(--edge)); }
}
html body.joymax-theme.jx-status #content .jxs-image { width: 72px; height: 72px; border-radius: var(--r-btn); background: #0A0A0B; color: #EFC31A; }
html body.joymax-theme.jx-status #content .jxs-s-down .jxs-image img { filter: grayscale(1) brightness(.6); }
html body.joymax-theme.jx-status #content .jxs-name h3 { margin: 0; font-size: var(--t-20); font-weight: 700; line-height: 1.25; }
html body.joymax-theme.jx-status #content .jxs-badge {
  gap: 10px; min-height: 36px; padding: 0 14px 0 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--jxs-c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--jxs-c) 40%, transparent);
  color: var(--paper); font: 600 var(--t-14)/1.2 var(--body); }
html body.joymax-theme.jx-status #content .jxs[dir="rtl"] .jxs-badge { font-family: var(--ar); }
html body.joymax-theme.jx-status #content .jxs-dot { width: 10px; height: 10px; background: var(--jxs-c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--jxs-c) 22%, transparent); }
/* Buy: the plugin forces dark text with !important (same colour as ours), so only shape and gold change here */
html body.joymax-theme.jx-status #content a.jxs-buy {
  min-height: 44px; min-width: 104px; justify-content: center; gap: 8px; padding: 0 18px; border-radius: var(--r-btn);
  background: var(--gold); color: var(--on-gold); font: 700 var(--t-14) var(--body); filter: none; transition: background-color var(--out) ease; }
html body.joymax-theme.jx-status #content a.jxs-buy svg { width: 16px; height: 16px; stroke: var(--on-gold); transition: transform var(--out) ease; }
html body.joymax-theme.jx-status #content a.jxs-buy:is(:hover, :focus-visible) { background: #FFD43A; filter: none; }
html body.joymax-theme.jx-status #content .jxs:not([dir="rtl"]) a.jxs-buy:hover svg { transform: translateX(3px); }
html body.joymax-theme.jx-status #content .jxs a:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
html body.joymax-theme.jx-status #content .jxs-empty { margin: 24px 0 0; color: var(--ash); }

@media (max-width: 700px) {
  html body.joymax-theme.jx-status #content .jxs-hero { padding-top: 40px; }
  html body.joymax-theme.jx-status #content .jxs-watermark { inset-block-start: 20px; font-size: 72px; }
  html body.joymax-theme.jx-status #content .jxs-hero h1 { font-size: var(--t-39); }
  html body.joymax-theme.jx-status #content .jxs-totals { display: flex; flex-wrap: nowrap; }
  html body.joymax-theme.jx-status #content .jxs-totals li { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 8px; }
  html body.joymax-theme.jx-status #content .jxs-totals strong { font-size: var(--t-31); }
  html body.joymax-theme.jx-status #content .jxs-totals span:last-child { font-size: var(--t-14); text-align: center; white-space: normal; }
  html body.joymax-theme.jx-status #content .jxs-toolbar { margin-top: 36px; align-items: center; }
  html body.joymax-theme.jx-status #content .jxs-row { grid-template-columns: 64px 1fr; grid-template-areas: "i n" "i b" "y y"; gap: 8px 14px; padding: 12px; }
  html body.joymax-theme.jx-status #content .jxs-image { grid-area: i; width: 64px; height: 64px; }
  html body.joymax-theme.jx-status #content .jxs-name { grid-area: n; }
  html body.joymax-theme.jx-status #content .jxs-badge { grid-area: b; justify-self: start; }
  html body.joymax-theme.jx-status #content a.jxs-buy { grid-area: y; margin-top: 4px; }
  html body.joymax-theme.jx-status #content .jxs-buy-gap { display: none; }
  html body.joymax-theme.jx-status #content .jxs-name h3 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html body.joymax-theme.jx-status #content a.jxs-buy svg { transition: none; }
}

/* ====================== 2. Footer pages: 4 policies (plain WordPress text) ======================
   Title like the demo's .page-head, text max ~72 characters wide, no white box (Astra's boxed article). */
/* Page width = header width (1200 px, 16 px gutters on phones), as on product pages */
html body.joymax-theme.jx-page-legal #content > .ast-container { width: min(var(--wrap), 100% - 32px); max-width: none; margin-inline: auto; padding-inline: 0; }
html body.joymax-theme.jx-page-legal #primary { width: 100%; margin: 0; padding: 0; }
html body.joymax-theme.jx-page-legal #content article.ast-article-single {
  margin: 0; padding: 0 0 64px; background: none; border: 0; border-radius: 0; box-shadow: none; }
html body.joymax-theme.jx-page-legal #content .entry-header { margin: 0 0 24px; padding: 0; border: 0; text-align: start; }
html body.joymax-theme.jx-page-legal #content .entry-title { margin: 0; font: 700 var(--t-39)/1.15 var(--head); color: var(--paper); }
html body.joymax-theme.jx-page-legal #content .entry-content { max-width: 72ch; color: var(--ash); font-size: var(--t-16); line-height: 1.6; }
html body.joymax-theme.jx-page-legal #content .entry-content > * { margin: 0 0 16px; }
html body.joymax-theme.jx-page-legal #content .entry-content :is(h2, h3, h4) { margin: 32px 0 12px; font: 700 var(--t-25)/1.25 var(--head); color: var(--paper); }
html body.joymax-theme.jx-page-legal #content .entry-content :is(h3, h4) { font-size: var(--t-20); }
html body.joymax-theme.jx-page-legal #content .entry-content :is(strong, b) { color: var(--paper); }
html body.joymax-theme.jx-page-legal #content .entry-content a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
html body.joymax-theme.jx-page-legal #content .entry-content a:hover { text-decoration-thickness: 2px; }
html body.joymax-theme.jx-page-legal #content .entry-content :is(ul, ol) { padding-inline-start: 1.4em; }
html body.joymax-theme.jx-page-legal #content .entry-content li { margin: 0 0 6px; }
html body.joymax-theme.jx-page-legal #content .entry-content li::marker { color: var(--gold-text); }
@media (max-width: 700px) {
  html body.joymax-theme.jx-page-legal #content .entry-title { font-size: var(--t-31); }
}

/* ====================== 2b. Contact (Elementor + WPForms): colours only ======================
   Elementor's layout, sizes and spacing stay; texts, icons, lines and the form follow dark / light. */
html body.joymax-theme.jx-page-contact #content .elementor :is(h1, h2, h3, h4, h5, h6, .elementor-heading-title) { color: var(--paper); }
html body.joymax-theme.jx-page-contact #content .elementor :is(p, .elementor-icon-box-description, .elementor-text-editor) { color: var(--ash); }
html body.joymax-theme.jx-page-contact #content .elementor :is(.elementor-icon, .elementor-icon-box-icon, .elementor-icon-list-icon) { color: var(--gold-text); fill: var(--gold-text); }
html body.joymax-theme.jx-page-contact #content .elementor :is(.elementor-icon, .elementor-icon-list-icon) svg { fill: var(--gold-text); }
html body.joymax-theme.jx-page-contact #content .elementor .elementor-divider-separator { border-color: var(--edge); }
/* (0.6.11) Elementor's white lines (top line, divider between address and email, form box) in the theme line colour */
html body.joymax-theme.jx-page-contact #content .elementor :is(.elementor-section, .elementor-column, .elementor-widget-wrap) { border-color: var(--edge); }
/* (0.6.11) The form's box = theme card (same plate + thin line as our other cards, dark and light) */
html body.joymax-theme.jx-page-contact #content .elementor .elementor-inner-section:has(.wpforms-container) {
  border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--plate); overflow: hidden; }
html body.joymax-theme.jx-page-contact #content .elementor a:not(.elementor-button) { color: var(--gold-text); }
/* Form fields like checkout fields (colours only) */
html body.joymax-theme.jx-page-contact #content .wpforms-container .wpforms-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], textarea, select) {
  background-color: var(--field-bg); color: var(--paper); border-color: var(--edge); }
html body.joymax-theme.jx-page-contact #content .wpforms-container .wpforms-form :is(input, textarea)::placeholder { color: var(--dim); opacity: 1; }
html body.joymax-theme.jx-page-contact #content .wpforms-container .wpforms-form :is(input, textarea, select):focus { border-color: var(--gold); box-shadow: none; outline: 2px solid var(--gold); outline-offset: 1px; }
html body.joymax-theme.jx-page-contact #content .wpforms-container :is(.wpforms-field-label, .wpforms-field-sublabel, .wpforms-field-description) { color: var(--ash); }
html body.joymax-theme.jx-page-contact #content .wpforms-container :is(label.wpforms-error, .wpforms-error-container, .wpforms-required-label) { color: var(--warn); }
html body.joymax-theme.jx-page-contact #content .wpforms-container .wpforms-confirmation-container-full { background: var(--plate); border-color: var(--edge); color: var(--paper); }
html body.joymax-theme.jx-page-contact #content .wpforms-container button.wpforms-submit { border-color: var(--gold-text); color: var(--gold-text); }
html body.joymax-theme.jx-page-contact #content .wpforms-container button.wpforms-submit:hover { background-color: var(--gold); border-color: var(--gold); color: var(--on-gold); }

/* ====================== 3. Category boxes (WooCommerce li.product-category) ======================
   Same look as our shop cards (shop.css): picture, name, count, "View" pill. Links and order unchanged; the
   "View" word is drawn by CSS (::after), the box stays WooCommerce's single link. */
html body.joymax-theme.jx-cat #content ul.products > li.product.product-category {
  display: flex; width: auto; margin: 0; padding: 0; float: none; clear: none; text-align: start; overflow: hidden;
  border: 1px solid var(--edge) !important; border-radius: var(--r-card); background: var(--plate) !important; box-shadow: none !important;
  transition: border-color var(--out) var(--ease-out); }
html body.joymax-theme.jx-cat #content li.product-category > a {
  flex: 1; display: flex; flex-direction: column; min-width: 0; color: var(--paper); text-decoration: none; }
html body.joymax-theme.jx-cat #content li.product-category > a:focus-visible { outline: none; }
html body.joymax-theme.jx-cat #content li.product-category:has(> a:focus-visible) { border-color: var(--gold) !important; outline: 2px solid var(--gold); outline-offset: 2px; }
/* (0.6.15 round 4) Every box's picture area has the homepage tile's wide shape (768 × 345). WooCommerce's placeholder
   (no picture at all) is shown whole in it. */
html body.joymax-theme.jx-cat #content li.product-category > a > img {
  display: block; width: 100%; height: auto; aspect-ratio: 768 / 345; margin: 0; object-fit: contain; border-radius: 0; background: var(--chip-bg); }
html body.joymax-theme.jx-cat #content li.product-category .jx-cat-tile {
  position: relative; display: block; aspect-ratio: 768 / 345; overflow: hidden; background: #0A0A0B; }
html body.joymax-theme.jx-cat #content li.product-category .jx-cat-tile img {
  position: relative; display: block; width: 100%; height: 100%; margin: 0; border-radius: 0; }
/* Category with a homepage tile: the tile picture fills the box like on the homepage (right side, game logos, kept
   whole) with the same gold tint (keep in step with --tint in home.css); "original colours" tiles: no tint */
html body.joymax-theme.jx-cat #content li.product-category .jx-cat-banner img {
  object-fit: cover; object-position: 100% 50%; filter: hue-rotate(190deg) saturate(1.3) brightness(1.12); }
html body.joymax-theme.jx-cat #content li.product-category .jx-cat-banner.jx-orig img { filter: none; }
/* Category without a tile: its own picture whole on a blurred, darkened copy of itself */
html body.joymax-theme.jx-cat #content li.product-category .jx-cat-fit::before {
  content: ""; position: absolute; inset: -24px; background: var(--jx-tile) center / cover no-repeat; filter: blur(16px) brightness(.5); }
html body.joymax-theme.jx-cat #content li.product-category .jx-cat-fit img { object-fit: contain; }
/* Name on top; count + "View" pill on the bottom row (the empty ::before forces the line break) */
html body.joymax-theme.jx-cat #content li.product-category .woocommerce-loop-category__title {
  position: static; flex: 1; display: flex; flex-wrap: wrap; align-items: center; align-content: space-between; gap: 12px 8px;
  margin: 0; padding: 16px !important; background: none !important; border: 0; color: var(--paper) !important; text-align: start;
  font: 600 var(--t-16)/1.3 var(--head) !important; text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
html body.joymax-theme.jx-cat #content li.product-category .woocommerce-loop-category__title::before { content: ""; order: 1; flex-basis: 100%; height: 0; }
html body.joymax-theme.jx-cat #content li.product-category .woocommerce-loop-category__title mark.count {
  order: 2; flex: 1 1 auto; display: inline; margin: 0; padding: 0; background: none !important; color: var(--dim) !important;
  font: 500 var(--t-12)/1.4 var(--body); opacity: 1; }
html body.joymax-theme.jx-cat #content li.product-category .woocommerce-loop-category__title::after {
  content: "View"; order: 3; flex: none; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--edge);
  background: var(--chip-bg); color: var(--paper); font: 600 var(--t-12)/1.4 var(--body);
  transition: background-color var(--out) ease, color var(--out) ease, border-color var(--out) ease; }
@media (hover: hover) and (pointer: fine) {
  html body.joymax-theme.jx-cat #content ul.products > li.product.product-category:has(> a:hover) { border-color: var(--gold) !important; transition-duration: var(--in); }
  html body.joymax-theme.jx-cat #content li.product-category > a:hover .woocommerce-loop-category__title { background: none !important; }
  html body.joymax-theme.jx-cat #content li.product-category > a:hover .woocommerce-loop-category__title::after { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
}
/* (0.6.16a) Same picture zoom as the product cards (shop.css): 8 %, 300 ms, mouse only, off for reduce motion. Only the
   picture inside its clipped box (.jx-cat-tile); grows from the right edge so the game logos stay whole, like the
   homepage tiles. Placeholder pictures (no box around them) don't zoom. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html body.joymax-theme.jx-cat #content li.product-category .jx-cat-tile img { transform-origin: 100% 50%; transition: transform 300ms var(--ease-out); }
  html body.joymax-theme.jx-cat #content li.product-category .jx-cat-fit img { transform-origin: 50% 50%; }
  html body.joymax-theme.jx-cat #content li.product-category > a:hover .jx-cat-tile img { transform: scale(1.08); }
}
@media (max-width: 900px) {
  html body.joymax-theme.jx-cat #content li.product-category .woocommerce-loop-category__title { padding: 12px !important; gap: 10px 8px; }
}
