/* Xamiya English Editorial Type v1.2 — ARCHIVE PAGE 16360 + 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-english-type-on .elementor.elementor-16360 {
  --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: 840px;
  --xe-body-size: clamp(18px, calc(16.8px + 0.21vw), 20px);
  --xe-body-leading: 1.72;
  --xe-h1-size: clamp(38px, 3.25vw, 58px);
  --xe-h2-size: clamp(27px, 2.0vw, 37px);
  --xe-card-size: clamp(18px, calc(17.2px + 0.20vw), 21px);
}

/* Keep the two existing sibling Elementor containers, but give BOTH the
   same centered usable width as XSC Header (all display sizes). */
body.xamiya-english-type-on .elementor.elementor-16360 > .e-con,
body.xamiya-english-type-on .elementor.elementor-16360 > .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-english-type-on .elementor.elementor-16360 > .e-con > .e-con-inner,
body.xamiya-english-type-on .elementor.elementor-16360 > .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-english-type-on .elementor.elementor-16360 > .e-con:first-child,
body.xamiya-english-type-on .elementor.elementor-16360 > .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-english-type-on .elementor.elementor-16360 > .e-con:not(:first-child),
body.xamiya-english-type-on .elementor.elementor-16360 > .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-english-type-on .elementor.elementor-16360 .elementor-widget-heading .elementor-heading-title {
  color: var(--xe-ink) !important;
  font-family: 'Iowan Old Style',Baskerville,'Cormorant Garamond',Georgia,serif !important;
  font-weight: 500 !important;
  letter-spacing: -.02em !important;
  text-transform: none !important;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
body.xamiya-english-type-on .elementor.elementor-16360 .elementor-widget-heading .elementor-heading-title:is(h1, .h1) {
  font-size: var(--xe-h1-size) !important;
  line-height: 1.17 !important;
}
body.xamiya-english-type-on .elementor.elementor-16360 .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-english-type-on .elementor.elementor-16360 .elementor-widget-heading {
  margin-bottom: 0 !important;
}
body.xamiya-english-type-on .elementor.elementor-16360 > .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-english-type-on .elementor.elementor-16360 .elementor-widget-text-editor,
body.xamiya-english-type-on .elementor.elementor-16360 .elementor-widget-text-editor .elementor-widget-container,
body.xamiya-english-type-on .elementor.elementor-16360 .elementor-widget-text-editor p,
body.xamiya-english-type-on .elementor.elementor-16360 .elementor-widget-text-editor li {
  color: var(--xe-ink) !important;
  font-family: Inter,'Avenir Next',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,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-english-type-on .elementor.elementor-16360 .elementor-widget-text-editor {
  max-width: var(--xe-intro-max) !important;
}
body.xamiya-english-type-on .elementor.elementor-16360 .elementor-widget-text-editor p {
  margin-top: 0 !important;
  margin-bottom: clamp(12px, 1.25vw, 19px) !important;
}
body.xamiya-english-type-on .elementor.elementor-16360 .elementor-widget-text-editor p:last-child { margin-bottom: 0 !important; }
body.xamiya-english-type-on .elementor.elementor-16360 .elementor-widget-text-editor p:empty { display: none !important; }

/* Scoped EA Post Grid: keep existing Manual Selection query and layout logic. */
body.xamiya-english-type-on .elementor.elementor-16360 .eael-entry-title,
body.xamiya-english-type-on .elementor.elementor-16360 .eael-entry-title a,
body.xamiya-english-type-on .elementor.elementor-16360 .eael-post-grid .eael-entry-title {
  color: var(--xe-ink) !important;
  font-family: Inter,'Avenir Next',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif !important;
  font-size: var(--xe-card-size) !important;
  font-weight: 600 !important;
  line-height: 1.42 !important;
  letter-spacing: 0 !important;
  overflow-wrap: anywhere;
}
body.xamiya-english-type-on .elementor.elementor-16360 .eael-post-grid .eael-entry-wrapper {
  box-sizing: border-box;
}
body.xamiya-english-type-on .elementor.elementor-16360 .eael-grid-post .eael-entry-meta,
body.xamiya-english-type-on .elementor.elementor-16360 .eael-grid-post .eael-meta-posted-on,
body.xamiya-english-type-on .elementor.elementor-16360 .eael-grid-post .eael-posted-by {
  font: 400 14px/1.55 Inter,'Avenir Next',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif !important;
  letter-spacing: .02em !important;
  color: #6e5b4a !important;
}
body.xamiya-english-type-on .elementor.elementor-16360 .eael-grid-post .eael-post-elements-readmore-btn,
body.xamiya-english-type-on .elementor.elementor-16360 .eael-grid-post .eael-post-elements-readmore-btn a,
body.xamiya-english-type-on .elementor.elementor-16360 .eael-grid-post .eael-read-more,
body.xamiya-english-type-on .elementor.elementor-16360 .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-english-type-on .elementor.elementor-16360 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-english-type-on .elementor.elementor-16360 .eael-post-grid .eael-grid-post {
    width: 100% !important;
    max-width: 100% !important;
  }
  body.xamiya-english-type-on .elementor.elementor-16360 .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-english-type-on .elementor.elementor-16360 {
    --xe-body-size: 18px;
    --xe-body-leading: 1.72;
    --xe-h1-size: clamp(34px, 8vw, 41px);
    --xe-h2-size: clamp(27px, 6.5vw, 31px);
  }
  body.xamiya-english-type-on .elementor.elementor-16360 > .e-con:first-child,
  body.xamiya-english-type-on .elementor.elementor-16360 > .elementor-section:first-child { padding-top: 24px !important; }
  body.xamiya-english-type-on .elementor.elementor-16360 > .e-con:not(:first-child),
  body.xamiya-english-type-on .elementor.elementor-16360 > .elementor-section:not(:first-child) {
    padding-top: 26px !important;
    padding-bottom: 56px !important;
  }
  body.xamiya-english-type-on .elementor.elementor-16360 .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-english-type-on .elementor.elementor-16360 > .e-con:first-child { padding-top: 18px !important; }
}

/* The original English Blog may also have a Blocksy-provided page title outside Elementor. */
body.xamiya-english-type-on h1.entry-title,
body.xamiya-english-type-on .entry-header h1.page-title {
  font: 500 clamp(38px, 3.25vw, 58px)/1.17 'Iowan Old Style',Baskerville,'Cormorant Garamond',Georgia,serif !important;
  letter-spacing:-.025em !important;
  color:#352e29 !important;
}

/* v1.2 - larger, accessible interactive text. Exact archive scope only. */
body.xamiya-english-type-on .elementor.elementor-16360 .eael-grid-post .eael-post-elements-readmore-btn,
body.xamiya-english-type-on .elementor.elementor-16360 .eael-grid-post .eael-post-elements-readmore-btn a,
body.xamiya-english-type-on .elementor.elementor-16360 .eael-grid-post .eael-read-more,
body.xamiya-english-type-on .elementor.elementor-16360 .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-english-type-on.xamiya-english-editorial-single {
  --xet-reading-size: clamp(18px, calc(17.4px + 0.22vw), 20px);
  --xet-reading-leading: 1.75;
  --xet-reading-ink: #352e29;
}
body.xamiya-english-type-on.xamiya-english-editorial-single :is(.entry-content, .ct-entry-content, .wp-block-post-content) {
  color: var(--xet-reading-ink) !important;
  font-family: Inter,'Avenir Next',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,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-english-type-on.xamiya-english-editorial-single :is(.entry-content, .ct-entry-content, .wp-block-post-content) :is(p, li),
body.xamiya-english-type-on.xamiya-english-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: Inter,'Avenir Next',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif !important;
  color: var(--xet-reading-ink) !important;
  font-weight: 400;
  overflow-wrap: break-word;
}
body.xamiya-english-type-on.xamiya-english-editorial-single :is(.entry-content, .ct-entry-content, .wp-block-post-content) p,
body.xamiya-english-type-on.xamiya-english-editorial-single .elementor-widget-text-editor p {
  margin-top: 0 !important;
  margin-bottom: clamp(16px, 1.55vw, 23px) !important;
}
body.xamiya-english-type-on.xamiya-english-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-english-type-on.xamiya-english-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-english-type-on.xamiya-english-editorial-single :is(.hero-section, .entry-header) :is(h1.page-title, h1.entry-title, h1) {
  font-size: clamp(32px, 3.35vw, 49px) !important;
  line-height: 1.30 !important;
  letter-spacing: 0 !important;
  color: #352e29 !important;
  text-wrap: balance;
}
body.xamiya-english-type-on.xamiya-english-editorial-single :is(.entry-content, .ct-entry-content, .wp-block-post-content) h2 {
  font-size: clamp(26px, 2.2vw, 34px) !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-english-type-on.xamiya-english-editorial-single :is(.entry-content, .ct-entry-content, .wp-block-post-content) h3 {
  font-size: clamp(22px, 1.82vw, 27px) !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-english-type-on.xamiya-english-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-english-type-on.xamiya-english-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-english-type-on.xamiya-english-editorial-single .entry-meta .meta-author,
body.xamiya-english-type-on.xamiya-english-editorial-single .ct-author-box,
body.xamiya-english-type-on.xamiya-english-editorial-single .author-box { display: none !important; }
@media (max-width: 600px) {
  body.xamiya-english-type-on.xamiya-english-editorial-single { --xet-reading-size: 18px; }
  body.xamiya-english-type-on.xamiya-english-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-english-type-on.xamiya-english-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-english-type-on.xamiya-english-editorial-single :is(.hero-section, .entry-header) :is(.meta-author, .author-avatar, .ct-author-avatar, img.avatar),
body.xamiya-english-type-on.xamiya-english-editorial-single :is(.ct-author-box, .author-box, .blog-post-author, .post-author-avatar) {
  display: none !important;
}
body.xamiya-english-type-on.xamiya-english-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-english-type-on .elementor.elementor-16360 :is(.eael-posted-by, .eael-post-author, .eael-author-name) {
  display: none !important;
}
