:root {
  --chinalux-page-width: var(--wp--custom--layout--page-width, 1440px);
  --chinalux-wide-size: var(--wp--custom--layout--wide-size, 1324px);
  --chinalux-content-size: var(--wp--custom--layout--content-size, 1228px);
  --chinalux-page-gutter: var(--wp--custom--layout--page-gutter-desktop, var(--wp--preset--spacing--xl));
  --chinalux-card-radius: var(--wp--custom--radius--card, 12px);
  --chinalux-header-height-reference: var(--wp--custom--reference--header-height-desktop, 77px);
  --chinalux-footer-height-reference: var(--wp--custom--reference--footer-height-desktop, 274px);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--text-muted);
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--base);
}

:where(.wp-site-blocks) {
  min-height: 100vh;
}

:where(main) {
  display: block;
}

:where(h1, h2, h3, h4, h5, h6) {
  color: var(--wp--preset--color--text-muted);
  font-family: var(--wp--preset--font-family--heading);
  line-height: 1.2;
  letter-spacing: 0;
}

:where(p) {
  margin-block-start: 0;
}

:where(a) {
  color: var(--wp--preset--color--primary);
  text-underline-offset: 0.14em;
}

:where(img, svg, video) {
  max-width: 100%;
  height: auto;
}

:where(.wp-site-blocks > *) {
  margin-block-start: 0;
}

.is-layout-constrained > .alignwide {
  max-width: var(--wp--style--global--wide-size);
  margin-left: calc((100% - min(var(--chinalux-wide-size), calc(100vw - var(--chinalux-page-gutter) - var(--chinalux-page-gutter)))) / 2) !important;
  margin-right: calc((100% - min(var(--chinalux-wide-size), calc(100vw - var(--chinalux-page-gutter) - var(--chinalux-page-gutter)))) / 2) !important;
  width: min(var(--chinalux-wide-size), calc(100vw - var(--chinalux-page-gutter) - var(--chinalux-page-gutter)));
}

:where(.is-layout-constrained > .alignfull) {
  margin-left: calc((100% - 100vw) / 2) !important;
  margin-right: calc((100% - 100vw) / 2) !important;
  max-width: none;
  width: 100vw;
}

/* Lot 10B - accessible focus states. */
:where(a, button, summary, input, textarea, select, .wp-block-button__link, [tabindex]:not([tabindex="-1"])):focus-visible {
  border-radius: 4px;
  box-shadow: 0 0 0 2px var(--wp--preset--color--surface), 0 0 0 5px var(--wp--preset--color--accent);
  outline: 2px solid transparent;
  outline-offset: 3px;
}

:where(.chinalux-site-footer a, .chinalux-site-footer button, .chinalux-site-footer .wp-block-button__link):focus-visible,
:where(.chinalux-media-placeholder a, .chinalux-hero-page a, .chinalux-hero-home a, .chinalux-member-cta a):focus-visible {
  box-shadow: 0 0 0 2px var(--wp--preset--color--surface), 0 0 0 5px var(--wp--preset--color--accent);
}
