/* Shared article palette and reusable panel variants, including editor previews. */
:root {
  --narrow-article-surface: #fff0e6;
  --narrow-article-surface-hover: #ffe8dc;
  --narrow-article-panel-border: rgba(255, 120, 79, .6);
  --narrow-article-panel-line: rgba(255, 120, 79, .24);
  --narrow-article-neutral-surface: #fff7ec;
  --narrow-article-offset-shadow: 8px 8px 0 rgba(255, 120, 79, .18);
}
:is(body.single-post .sp-content, .editor-styles-wrapper) :is(.narrow-article-faq, .is-style-narrow-faq, .wp-block-quote.is-style-narrow-pull-quote),
body.single-post .sp-content .narrow-guide-toc {
  border-color: var(--narrow-article-panel-border);
  background: var(--narrow-article-surface);
}
:is(body.single-post .sp-content, .editor-styles-wrapper) .wp-block-quote.is-style-narrow-pull-quote cite,
:is(body.single-post .sp-content, .editor-styles-wrapper) :is(.narrow-article-faq__item, .is-style-narrow-faq-item),
:is(body.single-post .sp-content, .editor-styles-wrapper) :is(.narrow-article-faq, .is-style-narrow-faq) > h3.wp-block-heading,
:is(body.single-post .sp-content, .editor-styles-wrapper) :is(.narrow-article-faq, .is-style-narrow-faq) > .wp-block-group__inner-container > h3.wp-block-heading {
  border-color: var(--narrow-article-panel-line);
}
body.single-post .narrow-guide-toc[open] .narrow-guide-toc__summary { border-color: var(--narrow-article-panel-line); }
body.single-post .narrow-guide-toc__summary:hover { background: var(--narrow-article-surface-hover); }
:is(body.single-post .sp-content, .editor-styles-wrapper) .narrow-article-showcase__text {
  border: 1px solid var(--narrow-article-panel-border);
  background: var(--narrow-article-neutral-surface);
}
/* Light image panels always keep the page background. */
body.single-post .sp-content .narrow-article-feature:not(.narrow-article-feature--identity):not(.narrow-article-feature--flow):not(.narrow-article-feature--showcase):not(.is-style-narrow-image-dark),
:is(body.single-post .sp-content, .editor-styles-wrapper) .narrow-guide-cta:not(.narrow-guide-cta--final) {
  border-color: var(--narrow-article-panel-border);
  background: transparent;
}
:is(body.single-post .sp-content, .editor-styles-wrapper) .narrow-guide-cta:not(.narrow-guide-cta--final) {
  display: grid !important; /* Override the theme's global block-group display reset. */
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  row-gap: 1.25rem;
  align-items: start;
  box-sizing: border-box;
  margin-block: 3.5rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--narrow-article-panel-border);
  border-radius: 22px;
  box-shadow: var(--narrow-article-offset-shadow);
}
:is(body.single-post .sp-content, .editor-styles-wrapper) .narrow-guide-cta:not(.narrow-guide-cta--final) > .wp-block-group__inner-container { display: contents; }
:is(body.single-post .sp-content, .editor-styles-wrapper) .narrow-guide-cta:not(.narrow-guide-cta--final) h2.wp-block-heading {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0;
  align-self: start;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #262322;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.3;
}
:is(body.single-post .sp-content, .editor-styles-wrapper) .narrow-guide-cta:not(.narrow-guide-cta--final) p {
  grid-column: 2;
  margin: 0;
  align-self: start;
  padding-top: 0;
  font-size: inherit;
  line-height: inherit;
}
:is(body.single-post .sp-content, .editor-styles-wrapper) .narrow-guide-cta:not(.narrow-guide-cta--final) .wp-block-buttons {
  grid-column: 2;
  margin: 0;
  padding-bottom: 0;
}
:is(body.single-post .sp-content, .editor-styles-wrapper) .wp-block-group:is(.is-style-narrow-image-outline, .is-style-narrow-image-dark) {
  box-sizing: border-box;
  margin-block: 3.5rem;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  border: 1px solid var(--narrow-article-panel-border);
  border-radius: 22px;
  background: transparent;
}
body.single-post .sp-content .narrow-article-feature.is-style-narrow-image-outline:not(.narrow-article-feature--identity) {
  background: transparent;
}
:is(body.single-post .sp-content, .editor-styles-wrapper) .wp-block-group.is-style-narrow-image-dark {
  border-color: rgba(255, 120, 79, .45);
  background: #262322;
  color: #fff7ec;
}
:is(body.single-post .sp-content, .editor-styles-wrapper) .is-style-narrow-image-dark h2.wp-block-heading { color: #fff7ec; }
:is(body.single-post .sp-content, .editor-styles-wrapper) .is-style-narrow-image-dark p { color: rgba(255, 247, 236, .8); }
:is(body.single-post .sp-content, .editor-styles-wrapper) .is-style-narrow-image-outline h2.wp-block-heading { color: #262322; }
:is(body.single-post .sp-content, .editor-styles-wrapper) .is-style-narrow-image-outline p { color: #514b48; }
:is(body.single-post .sp-content, .editor-styles-wrapper) .narrow-article-feature.is-style-narrow-image-outline {
  background: transparent;
  border-color: var(--narrow-article-panel-border);
}
:is(body.single-post .sp-content, .editor-styles-wrapper) figure.wp-block-table {
  border-color: rgba(38, 35, 34, .18);
  border-radius: 22px;
  background: transparent;
}
:is(body.single-post .sp-content, .editor-styles-wrapper) figure.wp-block-table :is(th, td, thead, figcaption) { border-color: rgba(38, 35, 34, .12); }
:is(body.single-post .sp-content, .editor-styles-wrapper) figure.wp-block-table thead { border-bottom: 2px solid #ff784f; }
:is(body.single-post .sp-content, .editor-styles-wrapper) figure.wp-block-table thead :is(th, td) {
  background: #262322;
  color: #fff7ec;
  border-right-color: rgba(255, 247, 236, .18);
}
:is(body.single-post .sp-content, .editor-styles-wrapper) figure.wp-block-table tbody :is(td, td:first-child),
:is(body.single-post .sp-content, .editor-styles-wrapper) figure.wp-block-table tbody tr:nth-child(even) :is(td, td:first-child),
:is(body.single-post .sp-content, .editor-styles-wrapper) figure.wp-block-table figcaption {
  background: transparent;
}
:is(body.single-post .sp-content, .editor-styles-wrapper) figure.wp-block-table tbody tr:hover :is(td, td:first-child) { background: rgba(255, 120, 79, .035); }
/* Offset notes echo the hard orange shadow under article images. */
:is(body.single-post .sp-content, .editor-styles-wrapper) p.is-style-narrow-offset-note,
body.single-post .sp-content figure.wp-block-table:has(> table > tbody > tr:only-child > td:only-child):not(:has(thead)) {
  position: relative;
  margin-block: clamp(2rem, 4vw, 3rem);
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: var(--narrow-article-offset-shadow);
}
:is(body.single-post .sp-content, .editor-styles-wrapper) p.is-style-narrow-offset-note {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  color: inherit;
  font-size: inherit;
  line-height: 1.75;
}
body.single-post .sp-content figure.wp-block-table:has(> table > tbody > tr:only-child > td:only-child):not(:has(thead)) td { background: transparent; }
@media (max-width: 700px) {
  :is(body.single-post .sp-content, .editor-styles-wrapper) .narrow-guide-cta:not(.narrow-guide-cta--final) {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1rem;
  }
  :is(body.single-post .sp-content, .editor-styles-wrapper) .narrow-guide-cta:not(.narrow-guide-cta--final) :is(h2.wp-block-heading, p, .wp-block-buttons) { grid-column: 1; grid-row: auto; }
  body.single-post .sp-content figure.wp-block-table.narrow-article-table--stacked {
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  body.single-post .sp-content figure.wp-block-table.narrow-article-table--stacked tbody tr {
    border-color: rgba(38, 35, 34, .18);
    background: transparent;
  }
  body.single-post .sp-content figure.wp-block-table.narrow-article-table--stacked tbody tr td {
    border-color: rgba(38, 35, 34, .12);
    background: transparent;
  }
  body.single-post .sp-content figure.wp-block-table.narrow-article-table--stacked tbody tr td:first-child {
    border-bottom: 2px solid #ff784f;
    background: #262322;
    color: #fff7ec;
  }
  body.single-post .sp-content figure.wp-block-table.narrow-article-table--stacked tbody tr td:first-child .narrow-table-cell__label { color: rgba(255, 247, 236, .75); }
}
