/* GSR Article Layout v1.0.50 — Editorial content design system.
   Styles are applied to native Gutenberg blocks on published articles and
   in the editor canvas; article data and WP block markup remain untouched.
   Quote and pullquote share an editorial type family but remain distinct. */

/* Editorial colors used only in post content. */
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) {
  --gsr-editorial-ink: #203447;
  --gsr-editorial-muted: #576b7c;
  --gsr-editorial-rule: #e0e6eb;
  --gsr-editorial-paper: #f6f8fa;
  --gsr-editorial-red: #a71919;
}

/* Standard Quote: inset from the article text column. The red vertical rule
   sits on the quotation paragraph(s) ONLY. Native WordPress cite follows
   beneath, aligned with text but with no border next to attribution. */
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) blockquote:not(.wp-block-pullquote blockquote) {
  box-sizing: border-box;
  width: auto;
  max-width: none;
  margin: 34px 32px;
  padding: 23px 24px;
  border: 0;
  border-radius: 3px;
  background: var(--gsr-editorial-paper);
  box-shadow: none;
  color: var(--gsr-editorial-ink);
  text-align: left;
  overflow-wrap: anywhere;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) blockquote:not(.wp-block-pullquote blockquote) > p {
  display: block;
  box-sizing: border-box;
  margin: 0 0 16px;
  padding: 0 0 0 19px;
  border: 0;
  border-left: 3px solid var(--gsr-editorial-red);
  background: transparent;
  box-shadow: none;
  color: var(--gsr-editorial-ink);
  font: italic 400 20px/1.56 Georgia, 'Times New Roman', serif;
  letter-spacing: -.005em;
  text-align: left;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) blockquote:not(.wp-block-pullquote blockquote) > p:last-of-type { margin-bottom: 0; }
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) blockquote:not(.wp-block-pullquote blockquote) cite,
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) blockquote:not(.wp-block-pullquote blockquote) .wp-block-quote__citation {
  display: block;
  box-sizing: border-box;
  margin: 15px 0 0;
  padding: 0 12px 0 22px;
  border: 0;
  color: #465b6c;
  font: normal 500 14px/1.55 Arial, Helvetica, sans-serif;
  letter-spacing: .005em;
  text-transform: none;
  text-align: center;
}

/* WordPress table figure scrolls horizontally on narrow viewports; the
   semantic HTML table remains display:table for accessible row/column data. */
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table {
  box-sizing: border-box;
  display: block;
  width: calc(100% - 48px);
  max-width: calc(100% - 48px);
  margin: 31px 24px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--gsr-editorial-rule);
  border-top: 3px solid var(--gsr-editorial-red);
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  -webkit-overflow-scrolling: touch;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table > table {
  display: table;
  width: 100%;
  min-width: 560px;
  max-width: none;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: auto;
  overflow: visible;
  background: #fff;
  box-shadow: none;
  color: var(--gsr-editorial-ink);
  font: 400 15px/1.4 Arial, Helvetica, sans-serif;
  text-align: left;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table > table :is(th,td) {
  box-sizing: border-box;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--gsr-editorial-rule);
  border-right: 1px solid #e7ecf0;
  vertical-align: top;
  text-align: left;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: normal;
  background: #fff;
  color: var(--gsr-editorial-ink);
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table > table tr > :last-child { border-right: 0; }
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table > table thead :is(th,td),
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table > table tbody th {
  background: #edf0f3;
  color: #24394b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table > table tbody tr > :first-child {
  font-weight: 600;
  color: #203447;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table > table tr:last-child > :is(td,th) { border-bottom: 0; }
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table > table:has(> thead > tr:first-child > :nth-child(3):last-child),
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table > table:not(:has(> thead)):has(> tbody > tr:first-child > :nth-child(3):last-child) {
  min-width: 600px;
  table-layout: fixed;
}

:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table > table:has(> thead > tr:first-child > :nth-child(3):last-child) tr > :nth-child(1),
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table > table:not(:has(> thead)):has(> tbody > tr:first-child > :nth-child(3):last-child) tr > :nth-child(1) { width: 26%; }
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table > table:has(> thead > tr:first-child > :nth-child(3):last-child) tr > :nth-child(2),
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table > table:not(:has(> thead)):has(> tbody > tr:first-child > :nth-child(3):last-child) tr > :nth-child(2) { width: 39%; }
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table > table:has(> thead > tr:first-child > :nth-child(3):last-child) tr > :nth-child(3),
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table > table:not(:has(> thead)):has(> tbody > tr:first-child > :nth-child(3):last-child) tr > :nth-child(3) { width: 35%; }
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table figcaption {
  box-sizing: border-box;
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--gsr-editorial-rule);
  color: var(--gsr-editorial-muted);
  background: #fff;
  font: italic 400 13px/1.55 Arial, Helvetica, sans-serif;
  text-align: center;
}

/* v1.0.42 — Content-aware two-column Gutenberg tables.
   The original v1.0.41 full-width/min-560px treatment made short two-column
   tables look stretched. Shrink the figure to its natural table width, capped
   at the usual inset article area. Longer text can wrap when necessary.
   Three-column and wider tables keep their established full-width treatment.
   No new block attributes or editor-side work are required. */
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table:has(> table > thead > tr:first-child > :nth-child(2):last-child),
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table:has(> table > tbody > tr:first-child > :nth-child(2):last-child) {
  width: fit-content;
  max-width: calc(100% - 48px);
  margin-left: auto;
  margin-right: auto;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table:has(> table > thead > tr:first-child > :nth-child(2):last-child) > table,
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table:has(> table > tbody > tr:first-child > :nth-child(2):last-child) > table {
  width: auto;
  min-width: 0;
  max-width: 100%;
  table-layout: auto;
}
@media (min-width: 601px) and (max-width: 900px) {
  :is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table:has(> table > thead > tr:first-child > :nth-child(2):last-child),
  :is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table:has(> table > tbody > tr:first-child > :nth-child(2):last-child) {
    max-width: calc(100% - 24px);
  }
}
@media (max-width: 600px) {
  :is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table:has(> table > thead > tr:first-child > :nth-child(2):last-child),
  :is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table:has(> table > tbody > tr:first-child > :nth-child(2):last-child) {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  :is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table:has(> table > thead > tr:first-child > :nth-child(2):last-child) > table,
  :is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table:has(> table > tbody > tr:first-child > :nth-child(2):last-child) > table {
    min-width: 460px;
    max-width: none;
  }
}

/* Classic/HTML tables: mirror the visual standard without forcing three-col
   widths when editors provide non-Gutenberg markup. */
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) table:not(.wp-block-table table):not(.form-table) {
  border-collapse: collapse;
  border-top: 3px solid var(--gsr-editorial-red);
  color: var(--gsr-editorial-ink);
  background: #fff;
  font: 400 15px/1.4 Arial, Helvetica, sans-serif;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) table:not(.wp-block-table table):not(.form-table) :is(td,th) {
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--gsr-editorial-rule);
  border-right: 1px solid #e7ecf0;
  text-align: left;
  vertical-align: top;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) table:not(.wp-block-table table):not(.form-table) tr > :last-child { border-right: 0; }
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) table:not(.wp-block-table table):not(.form-table) tbody tr > :first-child { font-weight: 600; color: #203447; }
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) table:not(.wp-block-table table):not(.form-table) thead :is(td,th),
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) table:not(.wp-block-table table):not(.form-table) tbody th {
  background: #edf0f3;
  color: #24394b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}
/* v1.0.43 — Native Gutenberg Pullquote: share the standard Quote block's
   inset light-gray editorial paper, Georgia italic text and red brand accent.
   Pullquotes remain distinct through center alignment and TWO short horizontal
   red rules. Keep actual quotation marks and citations editor-authored. */
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  figure.wp-block-pullquote {
  box-sizing: border-box;
  display: block;
  width: auto;
  max-width: none;
  margin: 34px 32px;
  padding: 23px 24px 24px;
  border: 0;
  border-radius: 3px;
  background: var(--gsr-editorial-paper);
  color: var(--gsr-editorial-ink);
  box-shadow: none;
  text-align: center;
  overflow-wrap: anywhere;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  figure.wp-block-pullquote::before,
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  figure.wp-block-pullquote::after {
  content: '';
  display: block;
  width: 45px;
  height: 3px;
  margin-left: auto;
  margin-right: auto;
  border: 0;
  background: var(--gsr-editorial-red);
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  figure.wp-block-pullquote::before { margin-top: 0; margin-bottom: 16px; }
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  figure.wp-block-pullquote::after { margin-top: 16px; margin-bottom: 0; }
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  figure.wp-block-pullquote blockquote {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: italic 400 20px/1.56 Georgia, 'Times New Roman', serif;
  letter-spacing: -.005em;
  text-align: center;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  figure.wp-block-pullquote blockquote > p {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  figure.wp-block-pullquote blockquote > p:last-of-type { margin-bottom: 0; }
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  figure.wp-block-pullquote blockquote cite,
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  figure.wp-block-pullquote blockquote .wp-block-pullquote__citation {
  display: block;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  color: #465b6c;
  font: normal 500 14px/1.55 Arial, Helvetica, sans-serif;
  letter-spacing: .005em;
  text-transform: none;
  text-align: center;
}

@media (min-width: 601px) and (max-width: 900px) {
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) blockquote:not(.wp-block-pullquote blockquote) {
    margin-left: 20px;
    margin-right: 20px;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-pullquote {
    margin-left: 20px;
    margin-right: 20px;
  }
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    margin-left: 12px;
    margin-right: 12px;
  }
}
@media (max-width: 600px) {
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) blockquote:not(.wp-block-pullquote blockquote) {
    margin: 25px 10px;
    padding: 18px 16px;
  }
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) blockquote:not(.wp-block-pullquote blockquote) > p {
    padding-left: 14px;
    font-size: 18px;
    line-height: 1.56;
  }
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) blockquote:not(.wp-block-pullquote blockquote) :is(cite,.wp-block-quote__citation) {
    margin-left: 0;
    margin-right: 0;
    padding-right: 4px;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
  }
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-table > table :is(td,th) {
    padding: 9px 12px;
  }
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-pullquote {
    margin: 25px 10px;
    padding: 18px 16px 19px;
  }
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-pullquote blockquote {
    font-size: 18px;
    line-height: 1.56;
  }
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-pullquote::before {
    margin-bottom: 14px;
  }
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper) figure.wp-block-pullquote::after {
    margin-top: 14px;
  }
}


/* v1.0.49 — Background & Context uses the same design tokens, full-width
   footprint, border, padding and red-ruled label as Editorial Disclaimer and
   Sources & References. Both Gutenberg block style and REST API class work. */
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-context-box, .wp-block-group.is-style-gsr-context-box) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 30px 0;
  padding: 17px 19px 18px;
  border: 1px solid #dfe5e9;
  border-radius: 3px;
  background: #f7f8fa;
  color: #45515c;
  box-shadow: none;
  overflow-wrap: anywhere;
}
/* The panel's label matches the sources/disclaimer title exactly. */
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-context-box, .wp-block-group.is-style-gsr-context-box)::before {
  content: 'BACKGROUND & CONTEXT';
  display: block;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 0 0 0 11px;
  border: 0;
  border-left: 3px solid #a71919;
  background: transparent;
  color: #15232c;
  font: 700 14px/1.4 Arial, Helvetica, sans-serif !important;
  letter-spacing: .2px;
  text-transform: uppercase;
}
/* The article's own specific background subject remains a true heading, but
   is subordinate to the editorial heading. It is not another callout label. */
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-context-box, .wp-block-group.is-style-gsr-context-box) :is(h2,h3,h4) {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: #15232c;
  font: 700 16px/1.45 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
/* Body copy matches the disclaimer/reference type family, while intentional
   italics, emphasis, source links and footnote references remain intact. */
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-context-box, .wp-block-group.is-style-gsr-context-box) :is(p,li) {
  color: #27343d;
  font: 400 14px/1.6 Arial, Helvetica, sans-serif !important;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-context-box, .wp-block-group.is-style-gsr-context-box) p {
  margin: 0 0 11px;
  padding: 0;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-context-box, .wp-block-group.is-style-gsr-context-box) :is(p,ol,ul):last-child {
  margin-bottom: 0;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-context-box, .wp-block-group.is-style-gsr-context-box) :is(a,code) {
  overflow-wrap: anywhere;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-context-box, .wp-block-group.is-style-gsr-context-box) a {
  color: #a71919;
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Desktop mirrors the final v1.0.26 Editorial Disclaimer's measurements. */
@media (min-width: 768px) {
  :is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-context-box, .wp-block-group.is-style-gsr-context-box) {
    padding: 17px 20px 18px;
    border-color: #e1e6eb;
  }
  :is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-context-box, .wp-block-group.is-style-gsr-context-box)::before {
    margin-bottom: 12px;
    font: 700 15px/1.4 Arial, Helvetica, sans-serif !important;
    letter-spacing: .3px;
  }
  :is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-context-box, .wp-block-group.is-style-gsr-context-box) :is(p,li) {
    font: 400 16px/1.5 Arial, Helvetica, sans-serif !important;
  }
}

/* v1.0.45 — References now match the site's Editorial Disclaimer component.
   The native ordered list, source links, footnote reference IDs and backlink
   targets are preserved. No content is modified or rewritten. */
body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body .gsr-editorial-references,
.editor-styles-wrapper ol.wp-block-footnotes {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 30px 0 30px;
  padding: 17px 19px 18px;
  border: 1px solid #dfe5e9;
  border-radius: 3px;
  background: #f7f8fa;
  color: #45515c;
  box-shadow: none;
  overflow-wrap: anywhere;
}
body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body
  .gsr-editorial-references > h2.gsr-editorial-references__heading,
.editor-styles-wrapper ol.wp-block-footnotes::before {
  display: block;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 0 0 0 11px;
  border: 0;
  border-left: 3px solid #a71919;
  background: transparent;
  color: #15232c;
  font: 700 14px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: .2px;
  text-transform: uppercase;
}
/* The editor can show a branded heading without changing WP footnote data. */
.editor-styles-wrapper ol.wp-block-footnotes::before {
  content: 'FOOTNOTES';
}
body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body
  .gsr-editorial-references ol.wp-block-footnotes,
.editor-styles-wrapper ol.wp-block-footnotes {
  list-style: decimal outside;
  list-style-position: outside;
  margin: 0;
  color: #45515c;
}
body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body
  .gsr-editorial-references ol.wp-block-footnotes {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 0 0 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.editor-styles-wrapper ol.wp-block-footnotes { padding-left: 43px; }
body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body
  .gsr-editorial-references ol.wp-block-footnotes > li,
.editor-styles-wrapper ol.wp-block-footnotes > li {
  box-sizing: border-box;
  margin: 0 0 9px;
  padding: 0 0 0 2px;
  color: #45515c;
  font: 400 14px/1.6 Arial, Helvetica, sans-serif;
  overflow-wrap: anywhere;
  word-break: normal;
}
body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body
  .gsr-editorial-references ol.wp-block-footnotes > li:last-child,
.editor-styles-wrapper ol.wp-block-footnotes > li:last-child { margin-bottom: 0; }
body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body
  .gsr-editorial-references ol.wp-block-footnotes > li::marker,
.editor-styles-wrapper ol.wp-block-footnotes > li::marker {
  font-weight: 600;
  color: #45515c;
}
body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body
  .gsr-editorial-references ol.wp-block-footnotes > li a,
.editor-styles-wrapper ol.wp-block-footnotes > li a {
  color: #a71919;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* The return arrow uses a simple inline link rather than a raised icon button. */
body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body
  .gsr-editorial-references ol.wp-block-footnotes > li a[href^='#'][href$='-link'],
.editor-styles-wrapper ol.wp-block-footnotes > li a[href^='#'][href$='-link'] {
  display: inline;
  vertical-align: baseline;
  white-space: nowrap;
  margin: 0 0 0 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #45515c;
  font-size: .9em;
  font-weight: 400;
  text-decoration: none;
}
body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body
  .gsr-editorial-references ol.wp-block-footnotes > li a[href^='#'][href$='-link']:hover,
.editor-styles-wrapper ol.wp-block-footnotes > li a[href^='#'][href$='-link']:hover {
  color: #a71919;
  text-decoration: underline;
}
body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body
  .gsr-editorial-references ol.wp-block-footnotes > li a[href^='#'][href$='-link']:focus-visible,
.editor-styles-wrapper ol.wp-block-footnotes > li a[href^='#'][href$='-link']:focus-visible {
  outline: 2px solid #a71919;
  outline-offset: 2px;
}
@media (min-width: 768px) {
  body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body .gsr-editorial-references {
    padding: 17px 20px 18px;
    border-color: #e1e6eb;
  }
  body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body
    .gsr-editorial-references > h2.gsr-editorial-references__heading {
    margin-bottom: 12px;
    font: 700 15px/1.4 Arial, Helvetica, sans-serif;
    letter-spacing: .3px;
  }
  body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body
    .gsr-editorial-references ol.wp-block-footnotes > li {
    color: #27343d;
    font: 400 16px/1.5 Arial, Helvetica, sans-serif;
  }
}
@media (max-width: 600px) {
  :is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-context-box, .wp-block-group.is-style-gsr-context-box) {
    width: 100%;
    max-width: 100%;
    margin: 24px 0;
    padding: 16px 14px;
  }
  :is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-context-box, .wp-block-group.is-style-gsr-context-box) :is(h2,h3,h4) {
    font-size: 15px;
    line-height: 1.45;
  }
  :is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-context-box, .wp-block-group.is-style-gsr-context-box) :is(p,li) {
    font-size: 14px;
    line-height: 1.6;
  }
  :is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-context-box, .wp-block-group.is-style-gsr-context-box)::before {
    margin-bottom: 10px;
  }
  body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body .gsr-editorial-references,
  .editor-styles-wrapper ol.wp-block-footnotes {
    margin: 24px 0;
    padding: 16px 14px;
  }
  body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body
    .gsr-editorial-references ol.wp-block-footnotes { padding-left: 21px; }
  .editor-styles-wrapper ol.wp-block-footnotes { padding-left: 35px; }
}


/* v1.0.50 — Keep the Sources & References heading visible when readers
   follow a native Gutenberg footnote reference. WordPress targets the LI's
   existing id; an anchor-specific scroll margin offsets the native jump
   without intercepting clicks, modifying content, or changing backlinks.
   The value allows roughly a title/panel height plus comfortable whitespace
   below browser and WordPress admin UI on desktop and mobile. */
body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body
  .gsr-editorial-references ol.wp-block-footnotes > li[id] {
  scroll-margin-top: 172px;
}
@media (max-width: 767px) {
  body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body
    .gsr-editorial-references ol.wp-block-footnotes > li[id] {
    scroll-margin-top: 144px;
  }
}

/* v1.0.60 — Native Group style for standalone bibliographies/methodology.
   Opt-in; no automatic matching of headings or ordinary ordered lists.
   Core footnotes keep their separate numbered anchors/backlinks and panel. */
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-sources-box, .wp-block-group.is-style-gsr-sources-box) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 30px 0;
  padding: 17px 19px 18px;
  border: 1px solid #dfe5e9;
  border-radius: 3px;
  background: #f7f8fa;
  color: #45515c;
  box-shadow: none;
  overflow-wrap: anywhere;
}
/* An actual heading is required inside the Group, for semantic structure and
   accessibility; the plugin styles it instead of duplicating with ::before. */
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-sources-box, .wp-block-group.is-style-gsr-sources-box) :is(h2,h3,h4) {
  display: block;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 0 0 0 11px;
  border: 0;
  border-left: 3px solid #a71919;
  background: transparent;
  color: #15232c;
  font: 700 14px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: .2px;
  text-transform: uppercase;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-sources-box, .wp-block-group.is-style-gsr-sources-box) :is(ol,ul) {
  margin: 0 0 11px;
  padding: 0 0 0 24px;
  list-style-position: outside;
  color: #45515c;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-sources-box, .wp-block-group.is-style-gsr-sources-box) :is(li,p) {
  margin: 0 0 9px;
  padding: 0;
  color: #45515c;
  font: 400 14px/1.6 Arial, Helvetica, sans-serif;
  overflow-wrap: anywhere;
  word-break: normal;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-sources-box, .wp-block-group.is-style-gsr-sources-box) :is(li,p):last-child,
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-sources-box, .wp-block-group.is-style-gsr-sources-box) :is(ol,ul):last-child {
  margin-bottom: 0;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-sources-box, .wp-block-group.is-style-gsr-sources-box) li::marker {
  color: #45515c;
  font-weight: 600;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-sources-box, .wp-block-group.is-style-gsr-sources-box) a {
  color: #a71919;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (min-width: 768px) {
  :is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
    :is(.wp-block-group.gsr-sources-box, .wp-block-group.is-style-gsr-sources-box) {
    padding: 17px 20px 18px;
    border-color: #e1e6eb;
  }
  :is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
    :is(.wp-block-group.gsr-sources-box, .wp-block-group.is-style-gsr-sources-box) :is(h2,h3,h4) {
    font: 700 15px/1.4 Arial, Helvetica, sans-serif;
    letter-spacing: .3px;
  }
  :is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
    :is(.wp-block-group.gsr-sources-box, .wp-block-group.is-style-gsr-sources-box) :is(li,p) {
    font: 400 16px/1.5 Arial, Helvetica, sans-serif;
  }
}


/* v1.0.62 — Opt-in Q&A interview exchange. One styled outer Group contains
   a direct Heading question and a nested Group for the complete answer.
   No automatic matching, rewriting, or changes to ordinary Q&A headings. */
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-interview-qa, .wp-block-group.is-style-gsr-interview-qa) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 28px 0 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #15232c;
}
/* The displayed Q is decorative; the actual H3 remains meaningful text. */
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-interview-qa, .wp-block-group.is-style-gsr-interview-qa) > h3 {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  color: #15232c;
  font: 700 20px/1.45 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-interview-qa, .wp-block-group.is-style-gsr-interview-qa) > h3::before {
  content: "Q";
  display: inline-flex;
  flex: 0 0 27px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 27px;
  height: 27px;
  margin-top: 1px;
  border-radius: 3px;
  background: #a71919;
  color: #fff;
  font: 700 14px/1 Arial, Helvetica, sans-serif;
}
/* One continuous accent encloses every paragraph and list in the response. */
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-interview-qa, .wp-block-group.is-style-gsr-interview-qa) > .wp-block-group.gsr-qa-answer {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 3px 0 3px 18px;
  border: 0;
  border-left: 3px solid #a71919;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-interview-qa, .wp-block-group.is-style-gsr-interview-qa) > .wp-block-group.gsr-qa-answer > p.gsr-qa-speaker {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  color: #576b7c;
  font: 700 12px/1.45 Arial, Helvetica, sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-interview-qa, .wp-block-group.is-style-gsr-interview-qa) > .wp-block-group.gsr-qa-answer > p:not(.gsr-qa-speaker),
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-interview-qa, .wp-block-group.is-style-gsr-interview-qa) > .wp-block-group.gsr-qa-answer li {
  margin: 0 0 12px;
  color: #15232c;
  font: 400 16px/1.6 Arial, Helvetica, sans-serif;
  text-transform: none;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-interview-qa, .wp-block-group.is-style-gsr-interview-qa) > .wp-block-group.gsr-qa-answer > :last-child {
  margin-bottom: 0;
}
:is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
  :is(.wp-block-group.gsr-interview-qa, .wp-block-group.is-style-gsr-interview-qa) > .wp-block-group.gsr-qa-answer a {
  color: #a71919;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 600px) {
  :is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
    :is(.wp-block-group.gsr-interview-qa, .wp-block-group.is-style-gsr-interview-qa) > h3 {
    gap: 10px;
    font-size: 18px;
  }
  :is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
    :is(.wp-block-group.gsr-interview-qa, .wp-block-group.is-style-gsr-interview-qa) > .wp-block-group.gsr-qa-answer {
    padding-left: 13px;
  }
  :is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
    :is(.wp-block-group.gsr-interview-qa, .wp-block-group.is-style-gsr-interview-qa) > .wp-block-group.gsr-qa-answer > p:not(.gsr-qa-speaker),
  :is(body.gsr-article-layout-active #gsr-article-layout .gsr-article-layout__body, .editor-styles-wrapper)
    :is(.wp-block-group.gsr-interview-qa, .wp-block-group.is-style-gsr-interview-qa) > .wp-block-group.gsr-qa-answer li {
    font-size: 15px;
  }
}
