/* Final Editorial variant polish against the approved APSAIDAL references. */

/* Keep the editorial identity clearly separate from the breadcrumb trail. */
.aps-editorial-eyebrow {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.aps-editorial-eyebrow strong {
  padding: 6px 10px 5px;
  border: 1px solid rgba(111, 24, 34, .16);
  border-radius: 2px;
  background: #faf7f6;
  box-shadow: 0 4px 12px rgba(30, 39, 55, .07);
  color: var(--aps-editorial-deep);
  text-decoration: none;
  letter-spacing: .05em;
}

.aps-editorial-eyebrow strong + span:before {
  content: '';
  margin-right: 0;
}

.aps-editorial-eyebrow > span {
  margin-left: auto;
  color: #626262;
  text-align: right;
}

.aps-editorial-context-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.aps-editorial-context-links a,
.aps-editorial-context-links > span:not(.aps-editorial-context-links__sep) {
  color: #626262;
  text-decoration: none;
}

.aps-editorial-context-links a:hover,
.aps-editorial-context-links a:focus {
  color: var(--aps-editorial-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aps-editorial-context-links__sep {
  color: #b5b9bf;
}

/* No Editorial variant shows a standfirst before the hero. The opening text belongs after the image. */
.aps-editorial-header .aps-editorial-standfirst {
  display: none;
}

/* The editorial drop cap belongs to long-form Article and Opinion only. */
.aps-editorial-body--news > p:first-child:first-letter,
.aps-editorial-body--press-release > p:first-child:first-letter,
.aps-editorial-body--interview > p:first-child:first-letter,
.aps-editorial-body--report > p:first-child:first-letter {
  float: none;
  margin: 0;
  color: inherit;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* Reading measures: full template width without the old empty 26% column. */
.aps-editorial-body--article { max-width: 860px; }
.aps-editorial-body--news { max-width: 800px; line-height: 1.66; }
.aps-editorial-body--press-release { max-width: 860px; line-height: 1.66; }
.aps-editorial-body--interview { max-width: 960px; }
.aps-editorial-body--opinion { max-width: 900px; }

/* Force the reading system to start at the left edge of the editorial grid. */
.aps-editorial-content-main,
.elementor-widget-apsaidal-editorial-body {
  width: 100%;
  max-width: none;
  align-self: stretch;
}

.aps-editorial-body--article,
.aps-editorial-body--news,
.aps-editorial-body--press-release,
.aps-editorial-body--interview,
.aps-editorial-body--opinion,
.aps-editorial-source-card {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.aps-editorial-report-layout,
.aps-editorial-report-main,
.aps-editorial-body--report {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Voice-led variants give the person a little more presence in the identity row. */
.aps-editorial-header[data-editorial-variant="interview"] .aps-editorial-byline img,
.aps-editorial-header[data-editorial-variant="opinion"] .aps-editorial-byline img {
  width: 48px;
  height: 48px;
}

/* Interview copy reads as Q&A when editors begin paragraphs with a bold Q/A lead. */
.aps-editorial-body--interview p > strong:first-child {
  color: var(--aps-editorial-ink);
  font-weight: 600;
}

/* Report keeps its utility sidebar; every Editorial variant can also surface linked APSAIDAL entities and events. */
.aps-editorial-report-main .aps-editorial-pullquote {
  width: min(44%, 340px);
}

/* APSAIDAL typography: Brandon carries interface and reading copy; serif is reserved for display/editorial moments. */
.aps-editorial-breadcrumbs,
.aps-editorial-eyebrow,
.aps-editorial-meta-row,
.aps-editorial-byline,
.aps-editorial-publish-meta,
.aps-editorial-actions,
.aps-editorial-hero figcaption,
.aps-editorial-hero .apsaidal-media__caption,
.aps-editorial-body,
.aps-editorial-author-card,
.aps-editorial-source-card,
.aps-editorial-report-card,
.aps-editorial-key-finding,
.aps-editorial-card__meta {
  font-family: 'Brandon Grotesque Light', Arial, sans-serif;
}

.aps-editorial-eyebrow strong,
.aps-editorial-byline__name,
.aps-editorial-action,
.aps-editorial-author-card strong,
.aps-editorial-source-card__label,
.aps-editorial-report-card strong,
.aps-editorial-key-finding span {
  font-family: 'Brandon Grotesque Medium', Arial, sans-serif;
  font-weight: normal;
}

.aps-editorial-body {
  font-size: 16px;
  line-height: 1.68;
  letter-spacing: .005em;
}

.aps-editorial-breadcrumbs__section {
  color: #626262 !important;
  text-decoration: none !important;
  cursor: default;
}

/* Keep serif only where it provides deliberate editorial contrast. */
.aps-editorial-header h1,
.aps-editorial-body h2,
.aps-editorial-body h3,
.aps-editorial-pullquote,
.aps-editorial-section-head h2,
.aps-editorial-card__title,
.aps-editorial-source-card strong,
.aps-editorial-report-card h2,
.aps-editorial-key-finding strong {
  font-family: Georgia, 'Times New Roman', serif;
}

@media (max-width: 767px) {
  .aps-editorial-eyebrow {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-top: 14px;
    margin-bottom: 14px;
  }

  .aps-editorial-eyebrow > span {
    margin-left: 0;
    text-align: left;
  }

  .aps-editorial-context-links {
    justify-content: flex-start;
  }

  .aps-editorial-header[data-editorial-variant="interview"] .aps-editorial-byline img,
  .aps-editorial-header[data-editorial-variant="opinion"] .aps-editorial-byline img {
    width: 42px;
    height: 42px;
  }

  .aps-editorial-report-main .aps-editorial-pullquote {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .aps-editorial-key-findings__grid {
    grid-template-columns: 1fr;
  }
}


/* Context rail: use the right side to connect Editorial with People, Organizations, Places and Events. */
.aps-editorial-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 44px;
  align-items: start;
  width: 100%;
}

.aps-editorial-reading-layout--no-rail {
  grid-template-columns: minmax(0, 1fr);
}

.aps-editorial-reading-main {
  min-width: 0;
}

.aps-editorial-context-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 88px;
}

.aps-editorial-rail-card {
  overflow: hidden;
  border: 1px solid var(--aps-editorial-line);
  background: #fff;
  font-family: 'Brandon Grotesque Light', Arial, sans-serif;
}

.aps-editorial-rail-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2f1ef;
}

.aps-editorial-rail-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aps-editorial-rail-card__body {
  padding: 16px 17px 17px;
}

.aps-editorial-rail-card__label {
  display: block;
  margin-bottom: 6px;
  color: var(--aps-editorial-accent);
  font-family: 'Brandon Grotesque Medium', Arial, sans-serif;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.aps-editorial-rail-card h2 {
  margin: 0;
  color: var(--aps-editorial-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.12;
}

.aps-editorial-rail-card h2 a {
  color: inherit;
  text-decoration: none;
}

.aps-editorial-rail-card__subtitle {
  margin: 6px 0 0 !important;
  color: #6d7580;
  font-family: 'Brandon Grotesque Medium', Arial, sans-serif;
  font-size: 11px;
  line-height: 1.35;
}

.aps-editorial-rail-card__body > p:not(.aps-editorial-rail-card__subtitle) {
  margin: 8px 0 0;
  color: #606975;
  font-size: 12px;
  line-height: 1.45;
}

.aps-editorial-rail-card__link {
  display: inline-block;
  margin-top: 12px;
  color: var(--aps-editorial-deep);
  font-family: 'Brandon Grotesque Medium', Arial, sans-serif;
  font-size: 10px;
  text-decoration: none;
}

.aps-editorial-rail-event {
  border-top: 2px solid var(--aps-editorial-accent);
  background: #faf7f6;
}

.aps-editorial-report-sidebar .aps-editorial-rail-card {
  width: 100%;
}

@media (max-width: 1024px) {
  .aps-editorial-reading-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 28px;
  }
}

@media (max-width: 767px) {
  .aps-editorial-reading-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .aps-editorial-context-rail {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
  }
}


/* Core Variants mockup — first atomic pass: Article, News and Press Release only.
 * Existing dynamic widgets supply the title, standfirst, byline and hero.
 * The other Editorial variants remain unchanged. */
.aps-editorial-header[data-editorial-variant="article"] .aps-editorial-standfirst,
.aps-editorial-header[data-editorial-variant="news"] .aps-editorial-standfirst,
.aps-editorial-header[data-editorial-variant="press-release"] .aps-editorial-standfirst {
  display: block;
  max-width: 860px;
  margin: 14px 0 0;
  color: var(--aps-editorial-muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.38;
}
.aps-editorial-header[data-editorial-variant="article"] .aps-editorial-meta-row,
.aps-editorial-header[data-editorial-variant="news"] .aps-editorial-meta-row,
.aps-editorial-header[data-editorial-variant="press-release"] .aps-editorial-meta-row {
  margin-top: 20px;
  margin-bottom: 4px;
}
.aps-editorial-hero[data-editorial-variant="article"] img,
.aps-editorial-hero[data-editorial-variant="news"] img,
.aps-editorial-hero[data-editorial-variant="press-release"] img {
  max-height: 590px;
  object-fit: cover;
}
@media(max-width:767px) {
  .aps-editorial-header[data-editorial-variant="article"] .aps-editorial-standfirst,
  .aps-editorial-header[data-editorial-variant="news"] .aps-editorial-standfirst,
  .aps-editorial-header[data-editorial-variant="press-release"] .aps-editorial-standfirst {
    font-size: 16px;
    line-height: 1.45;
  }
  .aps-editorial-hero[data-editorial-variant="article"] img,
  .aps-editorial-hero[data-editorial-variant="news"] img,
  .aps-editorial-hero[data-editorial-variant="press-release"] img {
    max-height: none;
  }
}

/* Visualis approved bounded fix: hide geographical context ONLY when explicitly toggled on Elementor Header widget. */
.aps-visualis-hide-editorial-geography .aps-editorial-context-links, .aps-visualis-hide-editorial-geography .aps-editorial-eyebrow > span { display: none !important; }

/* Visualis approved reversible author-footer operation: preserve date, move writer identity to final author widget. */
.aps-visualis-author-at-end .aps-editorial-byline > img,
.aps-visualis-author-at-end .aps-editorial-byline > span:first-of-type { display:none !important; }
.aps-visualis-author-at-end .aps-editorial-byline { display:block; }
.aps-visualis-author-at-end .aps-editorial-publish-meta { display:block; margin:0; }

/* Explicitly enabled Visualis linked-profile rail: use the entire reading column beside real profile cards. */
.aps-editorial-reading-layout--profiles .aps-editorial-body{width:100%;max-width:none;margin-left:0;margin-right:0}
.aps-editorial-reading-layout--profiles .aps-editorial-reading-main{width:100%;min-width:0}

/* Weblyn / Visualis 383 — six retained Editorial variants, 2026-10-28.
   Presentation only. Existing widgets, relations and Visualis switches remain authoritative.
   Rollback: restore editorial-visual-polish.before.css. */
body.single-aps_editorial .aps-editorial-header[data-editorial-variant] .aps-editorial-standfirst {
  display:block; max-width:900px; margin:14px 0 0;
  font-family:'Source Sans Pro',Arial,sans-serif; font-size:clamp(16px,1.6vw,20px); line-height:1.45;
}
.aps-editorial-body {font-family:'Source Sans Pro',Arial,sans-serif;}
/* Article: long-form display hierarchy and a generous reading measure. */
body.single-aps_editorial .aps-editorial-header[data-editorial-variant="article"] h1 {max-width:1000px;font-size:clamp(36px,5vw,66px);line-height:1.04;}
.aps-editorial-body--article {max-width:860px;line-height:1.75;}
/* News: compact lead and image, followed by the existing related-news cards. */
body.single-aps_editorial .aps-editorial-header[data-editorial-variant="news"] h1 {max-width:940px;font-size:clamp(34px,4.3vw,56px);line-height:1.08;}
.aps-editorial-hero[data-editorial-variant="news"] img {max-height:440px;width:100%;object-fit:contain;background:#f7f7f5;}
.aps-editorial-body--news {max-width:800px;line-height:1.66;}
/* Press Release: official source identity and a horizontal source card. */
body.single-aps_editorial .aps-editorial-header[data-editorial-variant="press-release"] h1 {max-width:1000px;font-size:clamp(34px,4.4vw,58px);line-height:1.08;}
.aps-editorial-reading-layout[data-editorial-variant="press-release"] .aps-editorial-source-card {border-left:3px solid var(--aps-editorial-accent);padding:20px;}
.aps-editorial-related[data-editorial-variant="press-release"] .aps-editorial-card-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
/* Interview: prominent subject and question paragraphs distinct from answers. */
body.single-aps_editorial .aps-editorial-header[data-editorial-variant="interview"] .aps-editorial-byline img {width:56px;height:56px;object-fit:cover;}
.aps-editorial-body--interview p:has(>strong:only-child) {margin:24px 0 10px;padding:10px 14px;border-left:2px solid var(--aps-editorial-accent);background:#faf7f6;}
.aps-editorial-body--interview .aps-editorial-pullquote {border-left:2px solid var(--aps-editorial-accent);font-style:italic;}
/* Opinion: author-led identity and a strong, separately readable viewpoint quote. */
body.single-aps_editorial .aps-editorial-header[data-editorial-variant="opinion"] .aps-editorial-byline img {width:56px;height:56px;object-fit:cover;}
body.single-aps_editorial .aps-editorial-header[data-editorial-variant="opinion"] .aps-editorial-byline__name {font-size:16px;}
.aps-editorial-body--opinion .aps-editorial-pullquote {float:none;width:auto;max-width:720px;margin:28px 0;padding:12px 22px;border-left:3px solid var(--aps-editorial-accent);font-style:italic;}
/* Report: panoramic image, four real findings and existing utility modules. */
.aps-editorial-hero[data-editorial-variant="report"] img {width:100%;max-height:430px;object-fit:contain;background:#f7f7f5;}
.aps-editorial-key-findings__grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.aps-editorial-key-finding {min-height:108px;padding:16px;border-top:2px solid var(--aps-editorial-accent);}
.aps-editorial-report-sidebar {gap:20px;}
@media(max-width:1024px){.aps-editorial-key-findings__grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:767px){
 body.single-aps_editorial .aps-editorial-header[data-editorial-variant] .aps-editorial-standfirst{font-size:16px;line-height:1.45;}
 .aps-editorial-hero[data-editorial-variant="news"] img,.aps-editorial-hero[data-editorial-variant="report"] img{max-height:none;height:auto;}
 body.single-aps_editorial .aps-editorial-header[data-editorial-variant="interview"] .aps-editorial-byline img,body.single-aps_editorial .aps-editorial-header[data-editorial-variant="opinion"] .aps-editorial-byline img{width:44px;height:44px;}
 .aps-editorial-related[data-editorial-variant="press-release"] .aps-editorial-card-grid,.aps-editorial-key-findings__grid{grid-template-columns:1fr;}
 .aps-editorial-body--opinion .aps-editorial-pullquote{max-width:100%;padding:10px 16px;}
}

/* Keep mockup display hierarchy above the shared post typography rule. */
body.single-aps_editorial .aps-editorial-header[data-editorial-variant] h1{font-family:Georgia,"Times New Roman",serif!important;}
body.single-aps_editorial .aps-editorial-header[data-editorial-variant="article"] h1{font-size:clamp(36px,5vw,66px)!important;}
body.single-aps_editorial .aps-editorial-header[data-editorial-variant="news"] h1{font-size:clamp(34px,4.3vw,56px)!important;}
body.single-aps_editorial .aps-editorial-header[data-editorial-variant="press-release"] h1{font-size:clamp(34px,4.4vw,58px)!important;}
body.single-aps_editorial .aps-editorial-header[data-editorial-variant="interview"] h1,body.single-aps_editorial .aps-editorial-header[data-editorial-variant="opinion"] h1,body.single-aps_editorial .aps-editorial-header[data-editorial-variant="report"] h1{font-size:clamp(34px,4.6vw,60px)!important;}

/* Existing identity cards must use their text column when no portrait is available. */
.aps-editorial-source-card:not(:has(>img)),.aps-editorial-author-card:not(:has(>img)){grid-template-columns:minmax(0,1fr);}


/* WEBLYN approved six-variant corrections — owner approval, 2026-10-28.
 * Existing Elementor #907 and reconciled custom CSS are intentionally untouched.
 */
body.single-aps_editorial .aps-editorial-header[data-editorial-variant="article"] .aps-editorial-eyebrow{justify-content:flex-start;gap:14px;}
body.single-aps_editorial .aps-editorial-header[data-editorial-variant="article"] .aps-editorial-eyebrow strong{border:0;border-radius:0;box-shadow:none;background:transparent;padding:0;text-decoration:underline;text-underline-offset:4px;}
body.single-aps_editorial .aps-editorial-header[data-editorial-variant="article"] .aps-editorial-eyebrow>span{margin-left:0;text-align:left;}
body.single-aps_editorial .aps-editorial-hero.aps-weblyn-portrait-frame{width:100%!important;aspect-ratio:16/7!important;height:auto!important;min-height:0!important;max-height:none!important;display:flex!important;align-items:center;justify-content:center;background:#fafaf9;overflow:hidden;}
body.single-aps_editorial .aps-editorial-hero.aps-weblyn-portrait-frame>img{width:100%!important;height:100%!important;min-height:0!important;max-width:100%!important;max-height:100%!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;transform:none!important;}
body.single-aps_editorial .aps-weblyn-hero-credit{margin:9px 0 0;font-family:'Source Sans Pro',Arial,sans-serif;font-size:12px;line-height:1.5;color:#555d67;}
body.single-aps_editorial .aps-weblyn-hero-credit a{text-decoration:underline;text-underline-offset:2px;}
body.single-aps_editorial .aps-weblyn-source-card>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 20px;align-items:center;}
body.single-aps_editorial .aps-weblyn-source-card .aps-editorial-source-card__label{grid-column:1;grid-row:1;}
body.single-aps_editorial .aps-weblyn-source-card strong{grid-column:1;grid-row:2;}
body.single-aps_editorial .aps-weblyn-source-card>div>a{grid-column:2;grid-row:1/span 2;margin:0;}
body.single-aps_editorial .aps-weblyn-source-card>div>p{grid-column:1/-1;}
body.single-aps_editorial .aps-editorial-body--opinion>p.aps-weblyn-opinion-opening::first-letter{float:left!important;font-family:Georgia,'Times New Roman',serif!important;font-size:3.5em!important;line-height:.85!important;margin:.08em .12em 0 0!important;color:var(--aps-editorial-accent)!important;}
body.single-aps_editorial .aps-weblyn-real-findings{grid-template-columns:repeat(var(--aps-weblyn-findings-count,3),minmax(0,1fr));}
body.single-aps_editorial .aps-weblyn-report-index{margin-top:18px;min-width:0;}
body.single-aps_editorial .aps-weblyn-report-index>summary{cursor:pointer;padding:14px;border:1px solid var(--aps-editorial-line);background:#fafaf9;font-family:Georgia,'Times New Roman',serif;font-size:18px;}
body.single-aps_editorial .aps-weblyn-report-index>summary:focus-visible{outline:2px solid var(--aps-editorial-deep);outline-offset:3px;}
body.single-aps_editorial .aps-weblyn-report-index>.aps-editorial-report-toc{margin-top:8px;}
body.single-aps_editorial .aps-weblyn-report-index .aps-editorial-report-toc h2{display:none;}
body.single-aps_editorial .aps-editorial-body--report h2[id],body.single-aps_editorial .aps-editorial-body--report h3[id]{scroll-margin-top:100px;}
@media(min-width:1025px){
 body.single-aps_editorial .aps-weblyn-report-header{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:0 32px;align-items:start;}
 body.single-aps_editorial .aps-weblyn-report-header>.aps-editorial-eyebrow,body.single-aps_editorial .aps-weblyn-report-header>.aps-editorial-title-row,body.single-aps_editorial .aps-weblyn-report-header>.aps-editorial-standfirst,body.single-aps_editorial .aps-weblyn-report-header>.aps-editorial-meta-row{grid-column:1;}
 body.single-aps_editorial .aps-weblyn-report-index{grid-column:2;grid-row:1/span 4;margin-top:18px;}
 body.single-aps_editorial .aps-weblyn-report-index>summary{display:none;}
 body.single-aps_editorial .aps-weblyn-report-index .aps-editorial-report-toc h2{display:block;}
 body.single-aps_editorial .aps-weblyn-report-index>.aps-editorial-report-toc{margin-top:0;}
}
@media(max-width:767px){
 body.single-aps_editorial .aps-editorial-hero.aps-weblyn-portrait-frame{aspect-ratio:16/9!important;}
 body.single-aps_editorial .aps-editorial-header[data-editorial-variant="article"] .aps-editorial-eyebrow{align-items:flex-start;flex-direction:column;gap:9px;}
 body.single-aps_editorial .aps-weblyn-source-card>div{grid-template-columns:minmax(0,1fr);}
 body.single-aps_editorial .aps-weblyn-source-card>div>a{grid-column:1;grid-row:3;margin-top:6px;}
 body.single-aps_editorial .aps-weblyn-real-findings{grid-template-columns:minmax(0,1fr);}
}

/* APSAIDAL Editorial: consistent imported quotations and tighter reading rail.
   Scope exclusively to editorial posts; preserve pullquote widget and sidebar cards. */
@media (min-width: 768px) {
  body.single-aps_editorial .aps-editorial-reading-layout--with-rail {
    column-gap: 15px; /* previously 44px: approximately one third */
  }
}
body.single-aps_editorial .aps-editorial-body blockquote:not(.aps-editorial-pullquote) {
  margin: 28px 0;
  padding: 7px 0 7px 22px;
  border: 0;
  border-left: 2px solid var(--aps-editorial-accent, #F26071);
  background: transparent;
  color: #4c5561;
  font-family: var(--aps-editorial-serif, Georgia, serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
}
body.single-aps_editorial .aps-editorial-body blockquote:not(.aps-editorial-pullquote) p {
  margin: 0 0 8px;
  font: inherit;
  color: inherit;
}
body.single-aps_editorial .aps-editorial-body blockquote:not(.aps-editorial-pullquote) p:last-child { margin-bottom: 0; }
body.single-aps_editorial .aps-editorial-body blockquote:not(.aps-editorial-pullquote) cite {
  display: block; margin-top: 12px; font: normal 11px/1.5 Arial, sans-serif; color: #7a818a;
}
@media (max-width: 767px) {
  body.single-aps_editorial .aps-editorial-body blockquote:not(.aps-editorial-pullquote) {
    margin: 22px 0; padding-left: 15px; font-size: 20px;
  }
}


/* Editorial v2: fix actual gap caused by centered 900px article, not just grid gap. */
@media (min-width: 1025px) {
 body.single-aps_editorial .aps-editorial-reading-layout--with-rail {
   grid-template-columns: minmax(0, 1fr) 290px !important;
   gap: 15px !important;
 }
 body.single-aps_editorial .aps-editorial-reading-layout--with-rail .aps-editorial-reading-main > .aps-editorial-body {
   width: 100% !important;
   max-width: none !important;
   margin-left: 0 !important;
   margin-right: 0 !important;
 }
}
@media (min-width: 768px) and (max-width: 1024px) {
 body.single-aps_editorial .aps-editorial-reading-layout--with-rail { gap: 12px !important; }
 body.single-aps_editorial .aps-editorial-reading-layout--with-rail .aps-editorial-reading-main > .aps-editorial-body {
   width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important;
 }
}
/* Imported quotes: override inherited Elementor/body paragraph typography. */
body.single-aps_editorial .aps-editorial-reading-main .aps-editorial-body blockquote,
body.single-aps_editorial .aps-editorial-reading-main .aps-editorial-body blockquote p,
body.single-aps_editorial .aps-editorial-reading-main .aps-editorial-body blockquote span,
body.single-aps_editorial .aps-editorial-reading-main .aps-editorial-body blockquote em {
 font-family: Georgia, 'Times New Roman', serif !important;
 font-style: italic !important;
}
body.single-aps_editorial .aps-editorial-reading-main .aps-editorial-body blockquote:not(.aps-editorial-pullquote) {
 font-size: clamp(20px, 2vw, 26px) !important;
 line-height: 1.4 !important;
}
body.single-aps_editorial .aps-editorial-reading-main .aps-editorial-body blockquote:not(.aps-editorial-pullquote) p {
 font-size: inherit !important; line-height: inherit !important; font-weight: 400 !important;
}
body.single-aps_editorial .aps-editorial-reading-main .aps-editorial-body blockquote cite {
 font-family: Arial, sans-serif !important; font-style: normal !important;
}

/* v3 — quotes match the body text size and weight; italic only. */
body.single-aps_editorial .aps-editorial-reading-main .aps-editorial-body blockquote:not(.aps-editorial-pullquote),
body.single-aps_editorial .aps-editorial-reading-main .aps-editorial-body blockquote:not(.aps-editorial-pullquote) p,
body.single-aps_editorial .aps-editorial-reading-main .aps-editorial-body blockquote:not(.aps-editorial-pullquote) span,
body.single-aps_editorial .aps-editorial-reading-main .aps-editorial-body blockquote:not(.aps-editorial-pullquote) strong,
body.single-aps_editorial .aps-editorial-reading-main .aps-editorial-body blockquote:not(.aps-editorial-pullquote) em {
  font-size: inherit !important;
  font-weight: 400 !important;
  font-style: italic !important;
  line-height: inherit !important;
}
body.single-aps_editorial .aps-editorial-reading-main .aps-editorial-body blockquote:not(.aps-editorial-pullquote) {
  font-size: 1em !important;
}


/* APSAIDAL Editorial sidebar — final 3:2 media framing.
   Rectangular media spans the sidebar width; square media uses the full frame height.
   Preserve original proportions and never crop the source. */
body.single-aps_editorial .aps-editorial-sidebar__image-frame {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 3 / 2 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff !important;
}
body.single-aps_editorial .aps-editorial-sidebar__image-frame .aps-editorial-sidebar__image,
body.single-aps_editorial .aps-editorial-sidebar__image-frame img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  margin: 0 auto !important;
}
/* Do not constrain the image to a small thumbnail within the media frame. */
body.single-aps_editorial .aps-editorial-sidebar__card > a {
  display: block;
}

/* Sidebar logos: increase visible logo size while retaining the 3:2 slot.
   Some source images contain substantial white margins. The scale below
   improves their visual presence without stretching proportions. */
body.single-aps_editorial .aps-editorial-sidebar__image-frame.is-rectangular img {
  transform: scale(1.35) !important;
  transform-origin: center center !important;
}
body.single-aps_editorial .aps-editorial-sidebar__image-frame:not(.is-rectangular) img {
  transform: scale(1.12) !important;
  transform-origin: center center !important;
}

/* APSAIDAL Editorial — narrow header refinements, no layout/column changes. */
body.single-aps_editorial .aps-editorial-header[data-editorial-variant] .aps-editorial-eyebrow strong {
  display:inline-block!important;border:1px solid rgba(111,24,34,.16)!important;
  border-radius:2px!important;padding:6px 12px!important;background:#faf7f6!important;
  text-decoration:none!important;box-shadow:0 4px 12px rgba(30,39,55,.07)!important;
}
body.single-aps_editorial .aps-editorial-header[data-editorial-variant] h1 {
  font-size:40px!important;line-height:1.15!important;
}
body.single-aps_editorial .aps-editorial-post-author {
  margin-top:32px;padding-top:16px;border-top:1px solid #e5e5e5;
  font-size:14px;line-height:1.5;
}

/* Editorial title only: responsive sizes; all other styling preserved. */
@media (max-width: 1024px) and (min-width: 768px) {
  body.single-aps_editorial .aps-editorial-header[data-editorial-variant] h1 { font-size:36px!important; }
}
@media (max-width: 767px) {
  body.single-aps_editorial .aps-editorial-header[data-editorial-variant] h1 { font-size:30px!important; }
}

/* Editorial sidebar cards: fine separators above and below each card.
   No changes to card content, images, video players or layout. */
body.single-aps_editorial .aps-editorial-sidebar__card {
  border-top: 1px solid #dedede !important;
  border-bottom: 1px solid #dedede !important;
  padding-top: 18px;
  padding-bottom: 18px;
}

/* Editorial sidebar: keep a visible gap below the upper separator. */
body.single-aps_editorial .aps-editorial-sidebar__card {
  padding-top: 20px !important;
}

/* Editorial related cards: four balanced columns on desktop. */
@media (min-width: 1025px) {
  body.single-aps_editorial .aps-editorial-related .aps-editorial-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  body.single-aps_editorial .aps-editorial-related .aps-editorial-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 767px) {
  body.single-aps_editorial .aps-editorial-related .aps-editorial-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
