/* Xamiya Chinese Editorial Type v1.5 — ARCHIVE PAGE 41820 + POSITIVELY ALLOWLISTED ARTICLES ONLY.
 * Loaded only by the corresponding WordPress plugin on an approved Page.
 * No global Header/Footer or customer Post overrides.
 * Match actual Xamiya Shared Brand Chrome v0.2 header width formula:
 *   width: min(1440px, calc(100% - clamp(32px, 7vw, 116px)))
 */

/* SINGLE SOURCE OF TRUTH — update these values once, not seven times in Elementor. */
body.xamiya-chinese-type-on .elementor.elementor-41820 {
  --xe-frame: min(1440px, calc(100% - clamp(32px, 7vw, 116px)));
  --xe-ink: #352e29;
  --xe-gold: #b89b72;
  --xe-burgundy: #590710;
  --xe-line: #d6cfc3;
  --xe-intro-max: 1000px;
  --xe-body-size: clamp(18px, calc(17px + 0.20vw), 20px);
  --xe-body-leading: 1.78;
  --xe-h1-size: clamp(29px, 2.30vw, 41px);
  --xe-h2-size: clamp(24px, 1.75vw, 32px);
  --xe-card-size: clamp(18px, calc(17px + 0.20vw), 20px);
}

/* Keep the two existing sibling Elementor containers, but give BOTH the
   same centered usable width as XSC Header (all display sizes). */
body.xamiya-chinese-type-on .elementor.elementor-41820 > .e-con,
body.xamiya-chinese-type-on .elementor.elementor-41820 > .elementor-section {
  --width: var(--xe-frame) !important;
  --max-width: var(--xe-frame) !important;
  box-sizing: border-box !important;
  width: var(--xe-frame) !important;
  max-width: var(--xe-frame) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  min-width: 0 !important;
}

/* Elementor boxed Container's internal wrapper must not re-center an older 1120px cap. */
body.xamiya-chinese-type-on .elementor.elementor-41820 > .e-con > .e-con-inner,
body.xamiya-chinese-type-on .elementor.elementor-41820 > .elementor-section > .elementor-container {
  --content-width: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Only the very first heading/intro container gets the main page top spacing. */
body.xamiya-chinese-type-on .elementor.elementor-41820 > .e-con:first-child,
body.xamiya-chinese-type-on .elementor.elementor-41820 > .elementor-section:first-child {
  padding-top: clamp(22px, 2.3vw, 36px) !important;
  padding-bottom: 0 !important;
}

/* The list/section container follows intro without Elementor double-padding. */
body.xamiya-chinese-type-on .elementor.elementor-41820 > .e-con:not(:first-child),
body.xamiya-chinese-type-on .elementor.elementor-41820 > .elementor-section:not(:first-child) {
  padding-top: clamp(23px, 2.25vw, 36px) !important;
  padding-bottom: clamp(56px, 6vw, 90px) !important;
}

/* Force a consistent title style across all seven responsive previews. */
body.xamiya-chinese-type-on .elementor.elementor-41820 .elementor-widget-heading .elementor-heading-title {
  color: var(--xe-ink) !important;
  font-family: 'PingFang SC','Noto Sans CJK SC','Microsoft YaHei',system-ui,sans-serif !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
body.xamiya-chinese-type-on .elementor.elementor-41820 .elementor-widget-heading .elementor-heading-title:is(h1, .h1) {
  font-size: var(--xe-h1-size) !important;
  line-height: 1.25 !important;
}
body.xamiya-chinese-type-on .elementor.elementor-41820 .elementor-widget-heading .elementor-heading-title:is(h2, .h2) {
  font-size: var(--xe-h2-size) !important;
  line-height: 1.30 !important;
}

/* Minimize inherited extra Elementor widget gaps; preserve widget order. */
body.xamiya-chinese-type-on .elementor.elementor-41820 .elementor-widget-heading {
  margin-bottom: 0 !important;
}
body.xamiya-chinese-type-on .elementor.elementor-41820 > .e-con:first-child .elementor-widget-heading + .elementor-widget-text-editor {
  margin-top: clamp(10px, 1.1vw, 18px) !important;
}

/* Both the Text Editor widget and paragraphs override stale per-device letter spacing. */
body.xamiya-chinese-type-on .elementor.elementor-41820 .elementor-widget-text-editor,
body.xamiya-chinese-type-on .elementor.elementor-41820 .elementor-widget-text-editor .elementor-widget-container,
body.xamiya-chinese-type-on .elementor.elementor-41820 .elementor-widget-text-editor p,
body.xamiya-chinese-type-on .elementor.elementor-41820 .elementor-widget-text-editor li {
  color: var(--xe-ink) !important;
  font-family: 'PingFang SC','Noto Sans CJK SC','Microsoft YaHei',system-ui,sans-serif !important;
  font-size: var(--xe-body-size) !important;
  font-weight: 400 !important;
  line-height: var(--xe-body-leading) !important;
  letter-spacing: 0 !important;
  word-break: normal;
  overflow-wrap: anywhere;
}
body.xamiya-chinese-type-on .elementor.elementor-41820 .elementor-widget-text-editor {
  max-width: var(--xe-intro-max) !important;
}
body.xamiya-chinese-type-on .elementor.elementor-41820 .elementor-widget-text-editor p {
  margin-top: 0 !important;
  margin-bottom: clamp(12px, 1.25vw, 19px) !important;
}
body.xamiya-chinese-type-on .elementor.elementor-41820 .elementor-widget-text-editor p:last-child { margin-bottom: 0 !important; }
body.xamiya-chinese-type-on .elementor.elementor-41820 .elementor-widget-text-editor p:empty { display: none !important; }

/* Scoped EA Post Grid: keep existing Manual Selection query and layout logic. */
body.xamiya-chinese-type-on .elementor.elementor-41820 .eael-entry-title,
body.xamiya-chinese-type-on .elementor.elementor-41820 .eael-entry-title a,
body.xamiya-chinese-type-on .elementor.elementor-41820 .eael-post-grid .eael-entry-title {
  color: var(--xe-ink) !important;
  font-family: 'PingFang SC','Noto Sans CJK SC','Microsoft YaHei',system-ui,sans-serif !important;
  font-size: var(--xe-card-size) !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  overflow-wrap: anywhere;
}
body.xamiya-chinese-type-on .elementor.elementor-41820 .eael-post-grid .eael-entry-wrapper {
  box-sizing: border-box;
}
body.xamiya-chinese-type-on .elementor.elementor-41820 .eael-grid-post .eael-entry-meta,
body.xamiya-chinese-type-on .elementor.elementor-41820 .eael-grid-post .eael-meta-posted-on,
body.xamiya-chinese-type-on .elementor.elementor-41820 .eael-grid-post .eael-posted-by {
  font: 400 14px/1.55 'PingFang SC','Noto Sans CJK SC','Microsoft YaHei',system-ui,sans-serif !important;
  letter-spacing: .02em !important;
  color: #6e5b4a !important;
}
body.xamiya-chinese-type-on .elementor.elementor-41820 .eael-grid-post .eael-post-elements-readmore-btn,
body.xamiya-chinese-type-on .elementor.elementor-41820 .eael-grid-post .eael-post-elements-readmore-btn a,
body.xamiya-chinese-type-on .elementor.elementor-41820 .eael-grid-post .eael-read-more,
body.xamiya-chinese-type-on .elementor.elementor-41820 .eael-post-grid a.eael-post-elements-readmore-btn {
  color: var(--xe-burgundy) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  letter-spacing: 0 !important;
}
body.xamiya-chinese-type-on .elementor.elementor-41820 a:focus-visible {
  outline: 2px solid var(--xe-gold);
  outline-offset: 3px;
}

/* iPad portrait and mobile: one comfortable card per row, no overflow.
   No seven parallel hand-managed CSS sets are needed. */
@media (max-width: 900px) {
  body.xamiya-chinese-type-on .elementor.elementor-41820 .eael-post-grid .eael-grid-post {
    width: 100% !important;
    max-width: 100% !important;
  }
  body.xamiya-chinese-type-on .elementor.elementor-41820 .elementor-widget-text-editor { max-width: 100% !important; }
}

/* One mobile breakpoint for body scale and spacing; landscape naturally adapts. */
@media (max-width: 600px) {
  body.xamiya-chinese-type-on .elementor.elementor-41820 {
    --xe-body-size: 18px;
    --xe-body-leading: 1.78;
    --xe-h1-size: clamp(29px, 7.4vw, 33px);
    --xe-h2-size: clamp(23px, 5.8vw, 27px);
  }
  body.xamiya-chinese-type-on .elementor.elementor-41820 > .e-con:first-child,
  body.xamiya-chinese-type-on .elementor.elementor-41820 > .elementor-section:first-child { padding-top: 24px !important; }
  body.xamiya-chinese-type-on .elementor.elementor-41820 > .e-con:not(:first-child),
  body.xamiya-chinese-type-on .elementor.elementor-41820 > .elementor-section:not(:first-child) {
    padding-top: 26px !important;
    padding-bottom: 56px !important;
  }
  body.xamiya-chinese-type-on .elementor.elementor-41820 .elementor-widget-text-editor p { margin-bottom: 18px !important; }
}

/* An unusually short landscape viewport should retain useful vertical area. */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 950px) {
  body.xamiya-chinese-type-on .elementor.elementor-41820 > .e-con:first-child { padding-top: 18px !important; }
}

/* v1.2 - larger, accessible interactive text. Exact archive scope only. */
body.xamiya-chinese-type-on .elementor.elementor-41820 .eael-grid-post .eael-post-elements-readmore-btn,
body.xamiya-chinese-type-on .elementor.elementor-41820 .eael-grid-post .eael-post-elements-readmore-btn a,
body.xamiya-chinese-type-on .elementor.elementor-41820 .eael-grid-post .eael-read-more,
body.xamiya-chinese-type-on .elementor.elementor-41820 .eael-post-grid a.eael-post-elements-readmore-btn {
  font-size: max(16px, 1rem) !important;
  line-height: 1.5 !important;
}


/* v1.2: REAL SINGLE ARTICLE READABILITY.
 * Blocksy Gutenberg content is NOT the Elementor archive widget.
 * Selectors are guarded by a precise PHP editorial URL whitelist and body class.
 * This will NEVER target the customer invitation Post pool by category or post type.
 */
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single {
  --xet-reading-size: clamp(18px, calc(17.4px + 0.22vw), 20px);
  --xet-reading-leading: 1.82;
  --xet-reading-ink: #352e29;
}
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single :is(.entry-content, .ct-entry-content, .wp-block-post-content) {
  color: var(--xet-reading-ink) !important;
  font-family: 'PingFang SC','Noto Sans CJK SC','Microsoft YaHei',system-ui,sans-serif !important;
  font-size: var(--xet-reading-size) !important;
  line-height: var(--xet-reading-leading) !important;
  letter-spacing: 0 !important;
  overflow-wrap: break-word;
}
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single :is(.entry-content, .ct-entry-content, .wp-block-post-content) :is(p, li),
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single .elementor-widget-text-editor :is(p, li) {
  font-size: var(--xet-reading-size) !important;
  line-height: var(--xet-reading-leading) !important;
  letter-spacing: 0 !important;
  font-family: 'PingFang SC','Noto Sans CJK SC','Microsoft YaHei',system-ui,sans-serif !important;
  color: var(--xet-reading-ink) !important;
  font-weight: 400;
  overflow-wrap: break-word;
}
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single :is(.entry-content, .ct-entry-content, .wp-block-post-content) p,
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single .elementor-widget-text-editor p {
  margin-top: 0 !important;
  margin-bottom: clamp(16px, 1.55vw, 23px) !important;
}
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single :is(.entry-content, .ct-entry-content, .wp-block-post-content) :is(ul, ol) {
  margin-top: 0 !important;
  margin-bottom: clamp(16px, 1.55vw, 23px) !important;
  padding-inline-start: 1.55em !important;
}
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single :is(.entry-content, .ct-entry-content, .wp-block-post-content) li + li {
  margin-top: .25em !important;
}
/* Actual Blocksy Post hero title (outside .entry-content). */
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single :is(.hero-section, .entry-header) :is(h1.page-title, h1.entry-title, h1) {
  font-size: clamp(30px, 3.25vw, 46px) !important;
  line-height: 1.30 !important;
  letter-spacing: 0 !important;
  color: #352e29 !important;
  text-wrap: balance;
}
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single :is(.entry-content, .ct-entry-content, .wp-block-post-content) h2 {
  font-size: clamp(24px, 2.2vw, 32px) !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  margin-block: 1.75em .7em !important;
  font-weight: 650 !important;
  color: #352e29 !important;
}
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single :is(.entry-content, .ct-entry-content, .wp-block-post-content) h3 {
  font-size: clamp(21px, 1.82vw, 26px) !important;
  line-height: 1.40 !important;
  letter-spacing: 0 !important;
  margin-block: 1.50em .65em !important;
  font-weight: 600 !important;
  color: #352e29 !important;
}
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single :is(.entry-content, .ct-entry-content, .wp-block-post-content) h4 {
  font-size: clamp(19px,1.5vw,23px) !important;
  line-height: 1.40 !important;
  letter-spacing: 0 !important;
}
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single :is(.entry-content, .ct-entry-content, .wp-block-post-content) :is(img, figure, video, iframe) {
  max-width: 100% !important;
}
/* Preserve real publication date and categories, hide old admin name / personal avatar
 * only on these approved editorial items. WordPress author metadata itself
 * is unchanged; audit author/schema separately before changing it. */
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single .entry-meta .meta-author,
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single .ct-author-box,
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single .author-box { display: none !important; }
@media (max-width: 600px) {
  body.xamiya-chinese-type-on.xamiya-chinese-editorial-single { --xet-reading-size: 18px; }
  body.xamiya-chinese-type-on.xamiya-chinese-editorial-single :is(.entry-content, .ct-entry-content, .wp-block-post-content) h2 { margin-block: 1.55em .6em !important; }
}

/* v1.2: restrict Blocksy author identity masking to approved editorial pages,
   never theme-wide and never to actual client invitations. Preserve date. */
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single :is(.entry-meta, .post-meta, .ct-meta-container) :is(.meta-author, .ct-meta-element-author, .byline, .posted-by, [data-id="author"], [data-type="author"]),
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single :is(.hero-section, .entry-header) :is(.meta-author, .author-avatar, .ct-author-avatar, img.avatar),
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single :is(.ct-author-box, .author-box, .blog-post-author, .post-author-avatar) {
  display: none !important;
}
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single .xamiya-editorial-brand-byline {
  font: 600 14px/1.5 Inter,'Avenir Next',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif !important;
  color: #6e5b4a !important;
  letter-spacing: .015em !important;
  margin: 0 0 clamp(16px, 1.5vw, 22px) !important;
}
/* Curated archive cards may also carry the internal admin label. */
body.xamiya-chinese-type-on .elementor.elementor-41820 :is(.eael-posted-by, .eael-post-author, .eael-author-name) {
  display: none !important;
}


/* v1.3 — ONLY the allowlisted Chinese editorial single article.
 * Fix the actual visible misalignment: previously the inserted editorial byline
 * was a separate direct child of Blocksy's entry-content grid, while the
 * Gutenberg image may use theme-wide full/wide alignment.  The plugin now
 * wraps byline + Gutenberg article blocks under a common content column.
 * Don't alter the existing main header/title or customer invitation Posts.
 */
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single .xamiya-editorial-reading-flow {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin-inline: auto !important;
  padding: 0 !important;
  text-align: start !important;
}
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single .xamiya-editorial-reading-flow > .xamiya-editorial-brand-byline {
  display: block !important;
  position: static !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 0 clamp(16px, 1.5vw, 22px) !important;
  padding: 0 !important;
  text-align: start !important;
  overflow-wrap: anywhere;
}
/* Neutralize Blocksy/Gutenberg's wide or full bleed figure *within this article*.
 * The photo is now a normal-width visual element beneath the introduction.
 * Both figure wrappers and images adapt naturally across all seven sizes.
 */
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single .xamiya-editorial-reading-flow :is(.wp-block-image, figure.wp-block-image, .wp-block-image.alignwide, .wp-block-image.alignfull) {
  position: static !important;
  float: none !important;
  clear: both !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
  left: auto !important;
  right: auto !important;
}
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single .xamiya-editorial-reading-flow :is(figure.wp-block-image, .wp-block-image) :is(img, picture) {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin-inline: 0 !important;
  object-fit: contain;
}
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single .xamiya-editorial-reading-flow .wp-block-image figcaption {
  font-size: 14px !important;
  line-height: 1.55 !important;
  margin: 8px 0 0 !important;
  color: #6e5b4a !important;
}
/* The article body is not the WordPress Gutenberg archive Page: use one
 * reader column for every element.  Never affect Page 41820 or other Posts. */
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single .xamiya-editorial-reading-flow > :is(p, h2, h3, h4, ul, ol, blockquote, .wp-block-image, figure, .wp-block-group) {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
@media (max-width: 600px) {
  body.xamiya-chinese-type-on.xamiya-chinese-editorial-single .xamiya-editorial-reading-flow { width: 100% !important; }
}


/* v1.4 — reading alignment fix for the exact approved article. We must
   treat the wrapper as ONE full grid-column child of Blocksy's .entry-content,
   rather than letting its nested Gutenberg image re-enter Blocksy's wide-bleed
   rules. Maximum measure is separately constrained for legibility. */
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single :is(.entry-content, .ct-entry-content, .wp-block-post-content) > .xamiya-editorial-reading-flow {
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  width: min(100%, 820px) !important;
  max-width: min(100%, 820px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single .xamiya-editorial-reading-flow > :is(.wp-block-image, figure, .wp-block-group, .wp-block-columns, blockquote, p, ul, ol, h2, h3, h4) {
  grid-column: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-inline: 0 !important;
}
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single .xamiya-editorial-reading-flow :is(.alignwide, .alignfull) {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: none !important;
  left: auto !important;
  right: auto !important;
}
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single .xamiya-editorial-reading-flow img {
  height: auto !important;
  max-width: 100% !important;
}

/* v1.4 — styling only on the one dedicated WordPress Category archive:
   /category/chinese-wedding-etiquette/ . No changes to other category
   archives, post queries, search, canonical/indexing, global chrome or client
   invitation URLs. Blocksy own category structure remains functional. */
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category {
  --xet-archive-frame: min(1440px, calc(100% - clamp(32px, 7vw, 116px)));
  --xet-archive-text: #352e29;
  --xet-archive-muted: #6e5b4a;
  --xet-archive-burgundy: #590710;
  --xet-archive-gold: #b89b72;
  --xet-archive-border: #e5ddd3;
  --xet-archive-size: clamp(17px, calc(16.5px + 0.2vw), 19px);
  color: var(--xet-archive-text);
}
/* Align archive heading and results frame with Xamiya branded Header. */
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category #main > :is(.ct-container, .ct-container-fluid),
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category :is(.hero-section, .ct-hero-section) > .ct-container,
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category :is(.hero-section, .ct-hero-section) > .ct-container-fluid,
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category .ct-content > .ct-container {
  width: var(--xet-archive-frame) !important;
  max-width: var(--xet-archive-frame) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
/* Use a real title instead of decorative oversized category hero. */
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category :is(.hero-section, .ct-hero-section) :is(.page-title, h1.entry-title, h1) {
  color: var(--xet-archive-text) !important;
  font-family: 'PingFang SC','Noto Sans CJK SC','Microsoft YaHei',system-ui,sans-serif !important;
  font-size: clamp(30px, 2.35vw, 42px) !important;
  line-height: 1.3 !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-wrap: balance;
}
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category :is(.hero-section, .ct-hero-section) :is(.page-description, .taxonomy-description, .term-description, p) {
  color: var(--xet-archive-muted) !important;
  font-family: 'PingFang SC','Noto Sans CJK SC','Microsoft YaHei',system-ui,sans-serif !important;
  font-size: var(--xet-archive-size) !important;
  line-height: 1.78 !important;
  letter-spacing: 0 !important;
  max-width: 840px;
}
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category :is(.entries, .ct-posts, .ct-archive-posts) {
  --grid-columns-gap: clamp(20px, 2vw, 30px);
  --grid-rows-gap: clamp(22px, 3vw, 42px);
  gap: clamp(20px, 2.5vw, 36px) !important;
}
/* Blocksy supports several different category-card structures. */
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category article.entry-card,
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category .entries > article {
  border: 1px solid var(--xet-archive-border) !important;
  border-radius: 3px !important;
  overflow: hidden !important;
  background: #fffdfb !important;
  box-shadow: 0 2px 16px rgba(53,46,41,.035) !important;
  min-width: 0 !important;
}
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category article.entry-card :is(.entry-title, .entry-title a),
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category .entries > article :is(.entry-title, .entry-title a) {
  color: var(--xet-archive-text) !important;
  font-family: 'PingFang SC','Noto Sans CJK SC','Microsoft YaHei',system-ui,sans-serif !important;
  font-size: clamp(20px, 1.55vw, 24px) !important;
  font-weight: 620 !important;
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category :is(article.entry-card, .entries > article) :is(.entry-title a:hover, .entry-title a:focus-visible) {
  color: var(--xet-archive-burgundy) !important;
}
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category :is(article.entry-card, .entries > article) :is(.entry-excerpt, .entry-excerpt p) {
  font-size: clamp(17px, 1.15vw, 18px) !important;
  line-height: 1.72 !important;
  letter-spacing: 0 !important;
  color: var(--xet-archive-muted) !important;
  overflow-wrap: anywhere;
}
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category :is(article.entry-card, .entries > article) :is(.entry-meta, .entry-meta span, .ct-meta-element, .ct-meta-element a) {
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: var(--xet-archive-muted) !important;
}
/* Don't leak the WordPress admin username or personal Gmail avatar into the
   BRAND category archive. We do not fake or mutate the underlying WP author. */
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category :is(article.entry-card, .entries > article) :is(.meta-author, .ct-meta-element-author, .author-avatar, .ct-author-avatar, .posted-by, [data-id="author"], [data-type="author"], img.avatar) {
  display: none !important;
}
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category :is(article.entry-card, .entries > article) :is(.ct-image-container, .entry-thumbnail, .post-thumbnail) {
  overflow: hidden !important;
  max-width: 100%;
}
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category :is(article.entry-card, .entries > article) :is(.ct-image-container, .entry-thumbnail) img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category :is(.ct-pagination, nav.pagination) :is(a, span) {
  font-size: 16px !important;
  line-height: 1.5 !important;
}
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category :is(a, button):focus-visible {
  outline: 2px solid var(--xet-archive-gold) !important;
  outline-offset: 3px !important;
}
@media (max-width: 768px) {
  body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category :is(.entries, .ct-posts, .ct-archive-posts) {
    grid-template-columns: minmax(0,1fr) !important;
  }
  body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category :is(.hero-section, .ct-hero-section) :is(.page-title,h1) {
    font-size: clamp(28px, 7vw, 34px) !important;
  }
}


/* v1.5 — BLOCKSY THEME FEATURED IMAGE, NOT A GUTENBERG INSERT.
 * Founder has enabled Customizer → Single Posts → Featured Image.
 * Blocksy renders it OUTSIDE .entry-content, so v1.3/1.4 Gutenberg image
 * selectors cannot align it. Precisely limited to the single approved Post.
 * No image is inserted by this plugin and no gallery/animation is altered.
 */
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single {
  --xet-article-measure: min(820px, calc(100vw - 40px));
}

/* Use a single centrally aligned measure for the title, content and theme
 * generated featured image, even when Blocksy uses different wrappers. */
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single :is(
  .hero-section .ct-container,
  .ct-hero-section .ct-container,
  .hero-section .ct-container-fluid,
  header.entry-header,
  .entry-header,
  .post-title,
  .ct-post-title
) {
  max-width: var(--xet-article-measure) !important;
  width: min(100%, var(--xet-article-measure)) !important;
  box-sizing: border-box !important;
  margin-inline: auto !important;
  min-width: 0 !important;
}

/* The next selectors are specific to Blocksy/WordPress featured-image
 * containers; DON'T generalize them to all img/figures in the site. */
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single :is(
  .ct-featured-image,
  .entry-featured-image,
  .post-featured-image,
  .post-thumbnail,
  figure.wp-block-post-featured-image,
  .ct-post-featured-image,
  .ct-featured-image-container,
  .featured-image
) {
  box-sizing: border-box !important;
  width: min(100%, var(--xet-article-measure)) !important;
  max-width: var(--xet-article-measure) !important;
  margin-inline: auto !important;
  margin-block: 24px 32px !important;
  padding: 0 !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  float: none !important;
  clear: both !important;
  grid-column: 1 / -1 !important;
  justify-self: center !important;
}
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single :is(
  .ct-featured-image,
  .entry-featured-image,
  .post-featured-image,
  .post-thumbnail,
  figure.wp-block-post-featured-image,
  .ct-post-featured-image,
  .ct-featured-image-container,
  .featured-image
) :is(img, picture, .ct-image-container) {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  box-sizing: border-box !important;
  margin-inline: 0 !important;
  object-fit: contain;
}

/* Some Blocksy builds use an unsuffixed top-level ct-image-container for
 * their single-post Featured Image. Limit this fix to the featured image
 * when it is an immediate child of the post template / article wrapper;
 * this intentionally does NOT target all nested content photographs. */
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single :is(
  article.post,
  article.type-post,
  .ct-posts-container,
  .site-main
) > .ct-image-container {
  box-sizing: border-box !important;
  width: min(100%, var(--xet-article-measure)) !important;
  max-width: var(--xet-article-measure) !important;
  margin: 24px auto 32px !important;
  left: auto !important;
  right: auto !important;
  float: none !important;
  transform: none !important;
  grid-column: 1 / -1 !important;
  justify-self: center !important;
}

/* The brand byline remains part of the post content, not a standalone
 * site-width layer. Keep it aligned with the heading/body after the Theme
 * Featured Image (as determined by Blocksy template order). */
body.xamiya-chinese-type-on.xamiya-chinese-editorial-single :is(
  .entry-content, .ct-entry-content, .wp-block-post-content
) > .xamiya-editorial-reading-flow {
  box-sizing: border-box !important;
  width: min(100%, var(--xet-article-measure)) !important;
  max-width: var(--xet-article-measure) !important;
  min-width: 0 !important;
  margin-inline: auto !important;
  grid-column: 1 / -1 !important;
  justify-self: center !important;
}

/* Follow the same visual identity for the one named category archive;
 * styling only, not a query rewrite, no customer Post/category changes.
 * Wider single-column results are easier to scan as more guides arrive. */
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category :is(
  article.entry-card, .entries > article
) :is(.entry-content, .entry-card-content, .entry-wrapper) {
  min-width: 0 !important;
}
body.xamiya-chinese-type-on.xamiya-chinese-etiquette-category :is(
  article.entry-card, .entries > article
) :is(.ct-image-container, .entry-thumbnail, .post-thumbnail) {
  border-radius: 2px 2px 0 0 !important;
}

@media (max-width: 600px) {
  body.xamiya-chinese-type-on.xamiya-chinese-editorial-single {
    --xet-article-measure: min(820px, calc(100vw - 32px));
  }
}
