/*
 * listicle-blocks: shared block styles.
 *
 * From the approved design (projects/active/owned-site-listicles-2026-09-25/design/blocks/blocks.css),
 * adapted to the markup WordPress really prints: core Table and Image blocks, callouts as core Group
 * blocks, and Rank Math's FAQ as an accordion like the contentsnare.com blog. The update log (C15)
 * is dropped.
 *
 * Uses only the --lb-* tokens from the site skin (skins/<site>.css). No colour, font or radius is
 * hard-coded here, so the same markup looks native on both sites.
 *
 * Responsive behaviour uses container queries on a container named "ol": GeneratePress's
 * .inside-article on posts that use the new template (body.lb-template), and the post content in
 * the editor.
 *
 *   ol >= 960px   desktop post with the sticky contents sidebar
 *   ol <  600px   phone: tables stack into cards, pros and cons stack, facts go two-up
 *
 * Class prefix .ol- is the markup the blocks render. WordPress also adds
 * .wp-block-listicle-blocks-{name} to each block's wrapper.
 */

.lb-template .inside-article,
.ol-scope {
  container: ol / inline-size;
}

/* ---------- Shared pieces ---------- */

.ol-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ol-scope :where(a, summary, button):focus-visible,
.lb-template .inside-article :where(a, summary, button):focus-visible {
  outline: 3px solid var(--lb-focus);
  outline-offset: 2px;
  border-radius: var(--lb-radius-sm);
}

.ol-btn,
.ol-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--lb-radius-sm);
  font-family: var(--lb-font-body);
  font-size: var(--lb-fs-xs);
  font-weight: var(--lb-button-weight);
  letter-spacing: var(--lb-button-tracking);
  text-transform: var(--lb-button-transform);
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
}

.ol-btn {
  background: var(--lb-dark);
  color: var(--lb-on-dark);
  border: 2px solid var(--lb-dark);
}

.ol-btn:hover {
  background: var(--lb-dark-hover);
  border-color: var(--lb-dark-hover);
  color: var(--lb-on-dark);
}

.ol-btn-outline {
  background: transparent;
  color: var(--lb-dark);
  border: 2px solid var(--lb-dark);
}

.ol-btn-outline:hover {
  background: var(--lb-dark);
  color: var(--lb-on-dark);
}

/* ---------- C1 Byline row ---------- */

.ol-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--lb-s3) var(--lb-s5);
  margin: var(--lb-s4) 0 var(--lb-s6);
  font-family: var(--lb-font-body);
  font-size: var(--lb-fs-sm);
  line-height: 1.4;
  color: var(--lb-muted);
}

.ol-byline__person {
  display: flex;
  align-items: center;
  gap: var(--lb-s3);
  min-width: 0;
}

.ol-byline__avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* Initials in a circle, for authors with no headshot (the pen names). Colours from the skin. */
.ol-initials {
  display: block;
  flex: none;
}

.ol-initials circle {
  fill: var(--lb-avatar-bg, var(--lb-dark));
}

.ol-initials text {
  fill: var(--lb-avatar-ink, var(--lb-on-dark));
  font-family: var(--lb-font-heading);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ol-byline__name {
  display: block;
  color: var(--lb-ink);
  font-weight: 700;
}

.ol-byline__name a {
  color: inherit;
  text-decoration: none;
}

.ol-byline__name a:hover {
  color: var(--lb-link);
  text-decoration: underline;
}

.ol-byline__cred {
  display: block;
}

.ol-byline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lb-s1) var(--lb-s4);
  padding-left: var(--lb-s5);
  border-left: 1px solid var(--lb-border);
}

.ol-byline__updated {
  color: var(--lb-ink);
  font-weight: 700;
}

@container ol (max-width: 599px) {
  .ol-byline__meta {
    padding-left: 0;
    border-left: 0;
    width: 100%;
  }
}

/* ---------- C2 Quick summary ---------- */

.ol-quick-summary {
  margin: 0 0 var(--lb-block-gap);
  padding: var(--lb-s5) var(--lb-s6);
  background: var(--lb-panel-bg);
  border: var(--lb-panel-border);
  border-radius: var(--lb-radius);
}

.ol-quick-summary__label {
  margin: 0 0 var(--lb-s2);
  font-family: var(--lb-font-heading);
  font-size: var(--lb-fs-sm);
  font-weight: 700;
  line-height: 1.3;
  color: var(--lb-accent-strong);
}

.ol-quick-summary__body > :last-child {
  margin-bottom: 0;
}

.ol-quick-summary__body p {
  margin: 0 0 0.75em;
  font-size: var(--lb-fs-lead);
  line-height: 1.55;
  color: var(--lb-ink);
}

@container ol (max-width: 599px) {
  .ol-quick-summary {
    padding: var(--lb-s4) var(--lb-s4) var(--lb-s5);
  }
}

/* ---------- C3 Table of contents ---------- */
/*
 * One nav landmark holding two renderings of the same list:
 *   .ol-toc__compact  a <details> panel, collapsed, shown under the intro on phones and tablets
 *   .ol-toc__panel    the always-open list, shown in the sticky sidebar on desktop
 * Only one is displayed at a time, and display:none takes the other out of the
 * accessibility tree, so screen readers get one list. No JavaScript, which matters
 * because WP Rocket on jimmyrose.me delays scripts until the reader interacts.
 */

.ol-toc {
  margin: 0 0 var(--lb-block-gap);
  font-family: var(--lb-font-body);
}

.ol-toc__panel {
  display: none;
}

.ol-toc__compact {
  border: var(--lb-box-border);
  border-radius: var(--lb-radius);
  background: var(--lb-surface);
}

.ol-toc__compact > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lb-s3);
  min-height: 48px;
  padding: var(--lb-s3) var(--lb-s4);
  font-weight: 700;
  font-size: var(--lb-fs-sm);
  color: var(--lb-ink);
  cursor: pointer;
  list-style: none;
}

.ol-toc__compact > summary::-webkit-details-marker {
  display: none;
}

.ol-toc__compact > summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.ol-toc__compact[open] > summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.ol-toc__compact[open] > summary {
  border-bottom: var(--lb-box-border);
}

.ol-toc__compact .ol-toc__list {
  padding: var(--lb-s3) var(--lb-s4) var(--lb-s4);
}

.ol-toc__count {
  margin-left: auto;
  font-weight: 400;
  color: var(--lb-muted);
}

.ol-toc__list,
.ol-toc__sub {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ol-toc__list > li {
  margin: 0;
}

.ol-toc__list a {
  display: block;
  padding: 5px 0;
  font-size: var(--lb-fs-xs);
  line-height: 1.35;
  color: var(--lb-ink);
  text-decoration: none;
}

.ol-toc__list a:hover {
  color: var(--lb-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ol-toc__sub {
  margin: 2px 0 6px 2px;
  padding-left: var(--lb-s3);
  border-left: 2px solid var(--lb-border);
}

.ol-toc__sub a {
  padding: 3px 0;
  color: var(--lb-muted);
}

.ol-toc__title {
  margin: 0 0 var(--lb-s2);
  font-size: var(--lb-fs-xs);
  font-weight: 700;
  color: var(--lb-ink);
}

@container ol (min-width: 960px) {
  .ol-toc__compact {
    display: none;
  }

  .ol-toc__panel {
    display: block;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: var(--lb-s1) var(--lb-s2) var(--lb-s4) 0;
    overscroll-behavior: contain;
  }
}

/* ---------- C4 Shortlist ---------- */

.ol-shortlist {
  margin: 0 0 var(--lb-block-gap);
  font-family: var(--lb-font-body);
}

.ol-shortlist__group {
  margin: var(--lb-s5) 0 var(--lb-s2);
  font-size: var(--lb-fs-sm);
  font-weight: 700;
  color: var(--lb-accent-strong);
}

.ol-shortlist__group:first-child {
  margin-top: 0;
}

.ol-shortlist__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--lb-border);
}

.ol-shortlist__item {
  display: grid;
  grid-template-columns: 2.25em minmax(8.5em, 13em) minmax(0, 1fr);
  align-items: baseline;
  gap: 0 var(--lb-s4);
  margin: 0;
  padding: 11px var(--lb-s2);
  border-bottom: 1px solid var(--lb-border);
  line-height: 1.45;
}

.ol-shortlist__rank {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--lb-accent-strong);
}

.ol-shortlist__name {
  font-weight: 700;
  color: var(--lb-ink);
  text-decoration: none;
}

.ol-shortlist__name:hover {
  color: var(--lb-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ol-shortlist__best {
  color: var(--lb-muted);
  font-size: var(--lb-fs-sm);
}

@container ol (max-width: 599px) {
  .ol-shortlist__item {
    grid-template-columns: 2em minmax(0, 1fr);
    padding: 10px 0;
  }

  .ol-shortlist__best {
    grid-column: 2;
  }
}

/* ---------- C5 Methodology box ---------- */

.ol-method {
  margin: 0 0 var(--lb-block-gap);
  padding: var(--lb-s5) var(--lb-s6);
  background: var(--lb-box-bg);
  border: var(--lb-box-border);
  border-radius: var(--lb-radius);
  font-size: var(--lb-fs-sm);
}

.ol-method > :last-child {
  margin-bottom: 0;
}

.ol-method .ol-method__title {
  margin: 0 0 var(--lb-s3);
  font-family: var(--lb-font-heading);
  font-size: var(--lb-fs-h4);
  font-weight: 700;
  line-height: 1.3;
  color: var(--lb-heading-ink);
}

.ol-method p {
  margin: 0 0 0.9em;
}

.ol-method__criteria {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

.ol-method__criteria li {
  position: relative;
  margin: 0 0 0.5em;
  padding-left: 22px;
}

.ol-method__criteria li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--lb-accent);
}

.ol-method .wp-block-table {
  margin: 0 0 1em;
  overflow: visible;
}

.ol-method table.ol-method__table,
.ol-method .ol-method__table th,
.ol-method .ol-method__table td {
  border: 0;
}

.ol-method__table {
  width: 100%;
  margin: 0 0 1em;
  border-collapse: collapse;
  font-size: var(--lb-fs-table);
}

.ol-method .ol-method__table th,
.ol-method .ol-method__table td {
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--lb-border);
  text-align: left;
  vertical-align: top;
}

.ol-method__table thead th {
  font-size: var(--lb-fs-xs);
  color: var(--lb-muted);
  font-weight: 700;
  border-bottom-color: var(--lb-border-strong);
}

.ol-method__table tbody th {
  width: 34%;
  font-weight: 700;
  color: var(--lb-ink);
}

.ol-method__checked {
  color: var(--lb-muted);
  font-size: var(--lb-fs-xs);
}

@container ol (max-width: 599px) {
  .ol-method {
    padding: var(--lb-s4);
  }

  .ol-method__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .ol-method__table,
  .ol-method__table tbody,
  .ol-method__table tr,
  .ol-method__table th,
  .ol-method__table td {
    display: block;
    width: auto;
  }

  .ol-method__table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--lb-border);
  }

  .ol-method__table th,
  .ol-method__table td {
    padding: 0;
    border: 0;
  }
}

/* ---------- C6 Comparison table (core Table + block styles) ---------- */
/*
 * Core Table's figure (.wp-block-table) is the horizontal scroll container on desktop.
 * The plugin's render_block filter adds scope attributes, data-label on each cell,
 * the chip spans, and ARIA table roles. The roles matter: once the phone layout sets
 * display:block on rows and cells, Safari drops native table semantics unless
 * the roles are there.
 */

.ol-table {
  max-width: 100%;
  margin: 0 0 var(--lb-block-gap);
  overflow-x: auto;
  font-family: var(--lb-font-body);
  /* Scroll cue: a soft shadow shows on whichever edge still has columns hidden behind it.
     The two surface-coloured covers scroll with the content (local) and hide each shadow
     once that edge is reached. No JavaScript. */
  background:
    linear-gradient(to right, var(--lb-surface) 30%, transparent) left center / 48px 100% no-repeat local,
    linear-gradient(to left, var(--lb-surface) 30%, transparent) right center / 48px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.16), transparent) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.16), transparent) right center / 14px 100% no-repeat scroll;
}

/* Core Table and GeneratePress both draw a border round every cell. Clear them first. */
.wp-block-table.ol-table table,
.wp-block-table.ol-table th,
.wp-block-table.ol-table td,
.wp-block-table.ol-table thead,
.wp-block-table.ol-table tfoot {
  border: 0;
}

.wp-block-table.ol-table {
  margin-inline: 0;
}

.ol-table:has(+ .ol-table__footnotes) {
  margin-bottom: var(--lb-s3);
}

.ol-table table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--lb-fs-table);
  line-height: 1.4;
}

.ol-table caption {
  caption-side: top;
  padding: 0 0 var(--lb-s3);
  text-align: left;
  font-size: var(--lb-fs-xs);
  color: var(--lb-muted);
}

.wp-block-table.ol-table th,
.wp-block-table.ol-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--lb-border);
}

.wp-block-table.ol-table thead th {
  background: var(--lb-surface-alt);
  font-size: var(--lb-fs-xs);
  font-weight: 700;
  color: var(--lb-ink);
  vertical-align: bottom;
  border-bottom: 2px solid var(--lb-border-strong);
}

.ol-table thead th:first-child {
  border-top-left-radius: var(--lb-radius);
}

.ol-table thead th:last-child {
  border-top-right-radius: var(--lb-radius);
}

.ol-table tbody th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--lb-surface);
  font-weight: 700;
  white-space: nowrap;
}

.ol-table tbody th[scope="row"] a {
  color: var(--lb-ink);
  text-decoration: underline;
  text-decoration-color: var(--lb-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.ol-table tbody th[scope="row"] a:hover {
  color: var(--lb-link);
}

.ol-table tbody tr:hover > * {
  background: var(--lb-surface-alt);
}

.ol-table__footnotes.ol-table__footnotes {
  margin: 0 0 var(--lb-block-gap);
  padding-left: 1.4em;
  font-size: var(--lb-fs-xs);
  color: var(--lb-muted);
}

.ol-table__footnotes li {
  margin: 0 0 4px;
}

.ol-table sup a {
  padding: 0 2px;
  font-size: 0.75em;
  font-weight: 700;
  color: var(--lb-link);
  text-decoration: none;
}

/* Checklist matrix variant */
.ol-table.is-style-ol-matrix td {
  text-align: center;
  vertical-align: middle;
}

.ol-table.is-style-ol-matrix thead th:not(:first-child) {
  text-align: center;
}

/* Plain variant (jobs table, "what connects to what") */
.ol-table.is-style-ol-plain table {
  min-width: 480px;
}

.ol-table.is-style-ol-plain tbody th[scope="row"] {
  position: static;
  white-space: normal;
}

/* Chips */
.ol-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: var(--lb-fs-xs);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.ol-chip--yes { background: var(--lb-chip-yes-bg); color: var(--lb-chip-yes-fg); }
.ol-chip--partial { background: var(--lb-chip-partial-bg); color: var(--lb-chip-partial-fg); }
.ol-chip--no { background: var(--lb-chip-no-bg); color: var(--lb-chip-no-fg); }
.ol-chip--addon { background: var(--lb-chip-addon-bg); color: var(--lb-chip-addon-fg); }
.ol-chip--unknown {
  background: transparent;
  color: var(--lb-chip-unknown-fg);
  box-shadow: inset 0 0 0 1px var(--lb-chip-unknown-border);
  font-weight: 400;
}

/* Phone: each row becomes a card, same markup */
@container ol (max-width: 599px) {
  .ol-table {
    overflow: visible;
    background: none;
  }

  .ol-table table,
  .ol-table.is-style-ol-plain table,
  .ol-table.is-style-ol-matrix table {
    width: 100%;
    min-width: 0;
  }

  .ol-table caption,
  .ol-table th,
  .ol-table td,
  .ol-table td > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .ol-table table,
  .ol-table tbody,
  .ol-table tr,
  .ol-table th,
  .ol-table td,
  .ol-table caption {
    display: block;
  }

  .ol-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .ol-table tbody tr {
    margin: 0 0 var(--lb-s3);
    border: var(--lb-box-border);
    border-radius: var(--lb-radius);
    overflow: hidden;
  }

  .ol-table tbody tr:hover > * {
    background: transparent;
  }

  .wp-block-table.ol-table tbody th[scope="row"] {
    position: static;
    padding: 12px 14px;
    background: var(--lb-surface-alt);
    font-size: var(--lb-fs-sm);
    white-space: normal;
  }

  .wp-block-table.ol-table td {
    display: grid;
    grid-template-columns: minmax(6.5em, 38%) minmax(0, 1fr);
    gap: var(--lb-s3);
    padding: 10px 14px;
  }

  .wp-block-table.ol-table td:last-child {
    border-bottom: 0;
  }

  .ol-table td::before {
    content: attr(data-label);
    font-size: var(--lb-fs-xs);
    font-weight: 700;
    color: var(--lb-muted);
  }

  .ol-table.is-style-ol-matrix td {
    align-items: center;
    text-align: left;
  }
}

/* ---------- C7 Group heading (core Heading + Paragraph, block styles) ---------- */

.entry-content .is-style-ol-group,
.ol-scope .is-style-ol-group {
  margin-top: var(--lb-s8);
  padding-top: var(--lb-s5);
  border-top: 3px solid var(--lb-accent);
}

.is-style-ol-group-intro {
  max-width: var(--lb-measure);
  font-size: var(--lb-fs-lead);
  color: var(--lb-muted);
}

/* ---------- C8 Tool card ---------- */

.ol-tool-card {
  margin: var(--lb-s7) 0 var(--lb-s8);
  padding-top: var(--lb-s5);
  border-top: 1px solid var(--lb-border-strong);
}

.ol-tool-card > :last-child {
  margin-bottom: 0;
}

.ol-tool-card .ol-tool-card__title {
  margin: 0 0 var(--lb-s2);
  font-size: var(--lb-fs-h3);
  scroll-margin-top: 24px;
}

.ol-rank {
  color: var(--lb-accent-strong);
  font-variant-numeric: tabular-nums;
}

/* C8a Best-for tag */
.ol-best-for {
  margin: 0 0 var(--lb-s4);
  font-size: var(--lb-fs-lead);
  line-height: 1.45;
  color: var(--lb-ink);
}

.ol-best-for strong {
  color: var(--lb-accent-strong);
}

/* C8b Facts row */
.ol-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 var(--lb-s5);
  padding: 0;
  background: var(--lb-surface-alt);
  border-radius: var(--lb-radius);
  font-size: var(--lb-fs-xs);
  line-height: 1.4;
}

.ol-facts__item {
  padding: 12px 14px;
  border-left: 1px solid var(--lb-border);
}

.ol-facts__item:first-child {
  border-left: 0;
}

.ol-facts dt {
  margin: 0 0 2px;
  font-weight: 700;
  color: var(--lb-muted);
}

.ol-facts dd {
  margin: 0;
  color: var(--lb-ink);
}

.ol-facts dd a {
  color: var(--lb-link);
}

.ol-facts__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ol-tag {
  display: inline-block;
  margin: 2px 4px 0 0;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--lb-surface);
  box-shadow: inset 0 0 0 1px var(--lb-border-strong);
  font-size: var(--lb-fs-xs);
  font-weight: 700;
  color: var(--lb-ink);
}

.ol-facts--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@container ol (max-width: 639px) {
  .ol-facts,
  .ol-facts--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ol-facts__item {
    border-left: 0;
    border-top: 1px solid var(--lb-border);
  }

  .ol-facts__item:nth-child(-n + 2) {
    border-top: 0;
  }

  .ol-facts__item:nth-child(even) {
    border-left: 1px solid var(--lb-border);
  }
}

/* Screenshot and caption: a core Image inside the card, inset at about 75% width (choice 3B) */
.ol-shot,
.ol-tool-card .wp-block-image {
  width: 75%;
  margin: 0 auto var(--lb-s5);
}

@container ol (max-width: 599px) {
  .ol-shot,
  .ol-tool-card .wp-block-image {
    width: 100%;
  }
}

/* Images always show in full at their own proportions (James, 2026-09-25). No fixed frame, no crop. */
.ol-tool-card .wp-block-image img,
.ol-shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border: 1px solid var(--lb-border);
  border-radius: var(--lb-radius);
  background: var(--lb-surface-alt);
}

/* Mockup-only placeholder frame */
.ol-shot__frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--lb-border);
  border-radius: var(--lb-radius);
  background: var(--lb-surface-alt);
}

.ol-shot figcaption,
.ol-tool-card .wp-block-image figcaption {
  margin-top: var(--lb-s2);
  font-size: var(--lb-fs-xs);
  line-height: 1.45;
  color: var(--lb-muted);
}

.ol-tool-card h4 {
  margin: var(--lb-s6) 0 var(--lb-s2);
  font-size: var(--lb-fs-h4);
}

/* Works with: the bold label that opens the paragraph */
.ol-works strong,
.ol-tool-card > p > strong:first-child {
  color: var(--lb-ink);
}

/* C8c Pricing and links row */
.ol-pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--lb-s4) var(--lb-s5);
  margin: var(--lb-s5) 0 0;
  padding: var(--lb-s4) var(--lb-s5);
  border: var(--lb-box-border);
  border-radius: var(--lb-radius);
  background: var(--lb-surface);
}

.ol-pricing .ol-pricing__model {
  flex: 1 1 22em;
  margin: 0;
  font-size: var(--lb-fs-sm);
  line-height: 1.5;
}

.ol-pricing .ol-pricing__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lb-s2);
  margin: 0;
}

@container ol (max-width: 599px) {
  .ol-pricing {
    padding: var(--lb-s4);
  }

  .ol-pricing__links {
    width: 100%;
  }

  .ol-pricing__links > a {
    flex: 1 1 100%;
  }
}

/* Compact card */
.ol-tool-card--compact {
  margin: var(--lb-s6) 0 var(--lb-s7);
}

.ol-tool-card--compact .ol-tool-card__title.ol-tool-card__title {
  font-size: var(--lb-fs-h4);
}

.ol-tool-card--compact .ol-best-for {
  font-size: var(--lb-fs-body);
}

.ol-tool-card--compact .ol-facts {
  margin-bottom: var(--lb-s4);
}

.ol-tool-card--compact .ol-pricing {
  margin-top: var(--lb-s4);
  padding: var(--lb-s3) var(--lb-s4);
}

/* ---------- C9 Pros and cons ---------- */

.ol-proscons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--lb-s4);
  margin: var(--lb-s6) 0 var(--lb-block-gap);
}

.ol-proscons__col {
  padding: var(--lb-s4) var(--lb-s5) var(--lb-s5);
  border-radius: var(--lb-radius);
}

.ol-proscons__col--pros {
  background: var(--lb-accent-tint);
}

.ol-proscons__col--cons {
  background: var(--lb-surface-alt);
}

.ol-proscons .ol-proscons__title {
  margin: 0 0 var(--lb-s3);
  font-size: var(--lb-fs-sm);
  line-height: 1.35;
}

.ol-proscons ul,
.ol-proscons ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ol-proscons li {
  position: relative;
  margin: 0 0 0.6em;
  padding-left: 26px;
  font-size: var(--lb-fs-sm);
  line-height: 1.45;
}

.ol-proscons li:last-child {
  margin-bottom: 0;
}

/* Check mark for pros, dash for cons. Shape carries the meaning, not colour. */
.ol-proscons__col--pros li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.28em;
  width: 6px;
  height: 11px;
  border-right: 2.5px solid var(--lb-accent-strong);
  border-bottom: 2.5px solid var(--lb-accent-strong);
  transform: rotate(45deg);
}

.ol-proscons__col--cons li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 11px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--lb-muted);
}

@container ol (max-width: 599px) {
  .ol-proscons {
    grid-template-columns: minmax(0, 1fr);
  }

  .ol-proscons__col {
    padding: var(--lb-s4);
  }
}

/* ---------- C10 Review quote ---------- */

.ol-quote {
  margin: 0 0 var(--lb-s5);
  padding: var(--lb-s1) 0 var(--lb-s1) var(--lb-s5);
  border-left: 3px solid var(--lb-accent);
}

.ol-quote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  font-style: normal;
}

.ol-quote blockquote::before,
.ol-quote blockquote::after {
  content: none;
}

.ol-quote blockquote p {
  margin: 0 0 var(--lb-s2);
  font-size: var(--lb-fs-lead);
  font-style: italic;
  line-height: 1.5;
  color: var(--lb-ink);
}

.ol-quote figcaption {
  font-size: var(--lb-fs-xs);
  line-height: 1.45;
  color: var(--lb-muted);
}

.ol-quote cite {
  font-style: normal;
  font-weight: 700;
  color: var(--lb-ink);
}

.ol-quote--named figcaption {
  display: flex;
  align-items: center;
  gap: var(--lb-s3);
}

.ol-quote__photo {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.ol-rating {
  margin: 0 0 var(--lb-block-gap);
  font-size: var(--lb-fs-xs);
  color: var(--lb-muted);
}

/* ---------- C11 Callout ---------- */

.ol-callout {
  --_bg: var(--lb-callout-job-bg);
  --_fg: var(--lb-callout-job-fg);
  margin: var(--lb-s6) 0 var(--lb-block-gap);
  padding: var(--lb-s4) var(--lb-s5) var(--lb-s5);
  background: var(--_bg);
  border-radius: var(--lb-radius);
  font-size: var(--lb-fs-sm);
}

.ol-callout--tip { --_bg: var(--lb-callout-tip-bg); --_fg: var(--lb-callout-tip-fg); }
.ol-callout--heads-up { --_bg: var(--lb-callout-heads-bg); --_fg: var(--lb-callout-heads-fg); }
.ol-callout--regional { --_bg: var(--lb-callout-region-bg); --_fg: var(--lb-callout-region-fg); }

.ol-callout .ol-callout__label {
  display: flex;
  align-items: center;
  gap: var(--lb-s2);
  margin: 0 0 var(--lb-s2);
  font-size: var(--lb-fs-xs);
  font-weight: 700;
  color: var(--_fg);
}

.ol-callout__icon {
  flex: none;
  width: 18px;
  height: 18px;
}

.ol-callout .ol-callout__title {
  margin: 0 0 var(--lb-s2);
  font-size: var(--lb-fs-body);
  font-weight: 700;
  line-height: 1.35;
  color: var(--lb-ink);
}

.ol-callout > :last-child,
.ol-callout > .wp-block-group__inner-container > :last-child {
  margin-bottom: 0;
}

.ol-callout > .wp-block-group__inner-container > :first-child {
  margin-top: 0;
}

.ol-callout p {
  margin: 0 0 0.75em;
}

/* ---------- C12 Also considered (core List, block style) ---------- */

.is-style-ol-also {
  margin: 0 0 var(--lb-block-gap);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--lb-border);
  font-size: var(--lb-fs-sm);
}

.is-style-ol-also > li {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--lb-border);
  color: var(--lb-muted);
  line-height: 1.5;
}

.is-style-ol-also > li strong,
.is-style-ol-also > li strong a {
  color: var(--lb-ink);
}

/* ---------- C13 FAQ: Rank Math's FAQ block as an accordion ---------- */
/*
 * Styled like the contentsnare.com blog: a bordered box, a divider between questions, a chevron,
 * and the open question in the accent colour. assets/js/faq.js wraps each question in a button and
 * adds .ol-faq--js. Only then are answers hidden, so without the script everything stays readable.
 * Markup: .rank-math-block > .rank-math-list > .rank-math-list-item > h3.rank-math-question + div.rank-math-answer
 */

.lb-template .rank-math-block {
  margin: var(--lb-s6) 0 var(--lb-block-gap);
  border: 1px solid var(--lb-border-strong);
  border-radius: var(--lb-radius);
  font-family: var(--lb-font-body);
}

.lb-template .rank-math-block .rank-math-list {
  margin: 0;
  padding: 0;
}

.lb-template .rank-math-block .rank-math-list-item {
  margin: 0;
  border-bottom: 1px solid var(--lb-border);
}

.lb-template .rank-math-block .rank-math-list-item:last-child {
  border-bottom: 0;
}

.lb-template .rank-math-block .rank-math-question {
  margin: 0;
  padding: var(--lb-s4) var(--lb-s5) var(--lb-s2);
  font-family: var(--lb-font-heading);
  font-size: var(--lb-fs-h4);
  font-weight: var(--lb-h3-weight);
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--lb-heading-ink);
}

.lb-template .rank-math-block .rank-math-answer {
  padding: 0 var(--lb-s5) var(--lb-s4);
  font-size: var(--lb-fs-sm);
  line-height: 1.6;
  color: var(--lb-ink);
}

.lb-template .rank-math-block .rank-math-answer p {
  max-width: var(--lb-measure);
  margin: 0;
}

.lb-template .rank-math-block .rank-math-answer p + p {
  margin-top: 1em;
}

.lb-template .rank-math-block .rank-math-answer a {
  color: var(--lb-link);
  text-decoration: underline;
}

/* Accordion, once the script has run */
.lb-template .ol-faq--js .rank-math-question {
  padding: 0;
}

.lb-template .ol-faq--js .ol-faq__toggle,
.lb-template .ol-faq--js .ol-faq__toggle:hover,
.lb-template .ol-faq--js .ol-faq__toggle:focus {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--lb-s4);
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: var(--lb-s4) var(--lb-s5);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: none;
  cursor: pointer;
}

.lb-template .ol-faq--js .ol-faq__toggle:hover {
  color: var(--lb-accent-strong);
}

.lb-template .ol-faq--js .ol-faq__toggle:focus-visible {
  outline: 3px solid var(--lb-focus);
  outline-offset: -3px;
}

.lb-template .ol-faq--js .ol-faq__toggle::after {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  background-color: var(--lb-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lb-template .ol-faq--js .is-open .ol-faq__toggle {
  color: var(--lb-accent-strong);
}

.lb-template .ol-faq--js .is-open .ol-faq__toggle::after {
  transform: rotate(180deg);
  background-color: var(--lb-accent-strong);
}

.lb-template .ol-faq--js .rank-math-answer {
  display: none;
}

.lb-template .ol-faq--js .is-open .rank-math-answer {
  display: block;
}

@container ol (max-width: 599px) {
  .lb-template .rank-math-block .rank-math-question,
  .lb-template .ol-faq--js .ol-faq__toggle {
    padding-inline: var(--lb-s4);
  }

  .lb-template .rank-math-block .rank-math-answer {
    padding-inline: var(--lb-s4);
  }
}

/* ---------- C14 Author box ---------- */

.ol-author {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--lb-s5);
  margin: var(--lb-s7) 0 var(--lb-s6);
  padding: var(--lb-s5);
  background: var(--lb-surface-alt);
  border-radius: var(--lb-radius-lg);
  font-family: var(--lb-font-body);
}

.ol-author__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.ol-author__label {
  margin: 0 0 2px;
  font-size: var(--lb-fs-xs);
  color: var(--lb-muted);
}

.ol-author__name {
  margin: 0;
  font-size: var(--lb-fs-h4);
  font-weight: 700;
  line-height: 1.3;
  color: var(--lb-heading-ink);
}

.ol-author__cred {
  margin: 0 0 var(--lb-s3);
  font-size: var(--lb-fs-xs);
  color: var(--lb-muted);
}

.ol-author__bio {
  margin: 0 0 var(--lb-s3);
  font-size: var(--lb-fs-sm);
  line-height: 1.55;
}

.ol-author__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lb-s2) var(--lb-s5);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--lb-fs-xs);
  font-weight: 700;
}

@container ol (max-width: 599px) {
  .ol-author {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: var(--lb-s4);
    padding: var(--lb-s4);
  }

  .ol-author__photo {
    width: 64px;
    height: 64px;
  }

  .ol-author__bio,
  .ol-author__links {
    grid-column: 1 / -1;
  }
}

/* ---------- C16 Stage strip (B2 only) ---------- */

.ol-stages {
  display: grid;
  grid-template-columns: repeat(var(--_count, 4), minmax(0, 1fr));
  gap: 0;
  margin: 0 0 var(--lb-block-gap);
  padding: 0;
  list-style: none;
  counter-reset: stage;
}

.ol-stages__step {
  position: relative;
  margin: 0;
  padding: 0 var(--lb-s3) 0 0;
  font-size: var(--lb-fs-xs);
  line-height: 1.4;
}

.ol-stages__step::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 44px;
  right: 8px;
  height: 2px;
  background: var(--lb-border-strong);
}

.ol-stages__step:last-child::after {
  display: none;
}

.ol-stages__n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: var(--lb-s2);
  border-radius: 50%;
  background: var(--lb-dark);
  color: var(--lb-on-dark);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ol-stages__label {
  display: block;
  font-weight: 700;
  color: var(--lb-ink);
}

.ol-stages__tool {
  display: block;
  color: var(--lb-muted);
}

@container ol (max-width: 599px) {
  .ol-stages {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--lb-s4);
  }

  .ol-stages__step {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: var(--lb-s3);
    padding: 0;
  }

  .ol-stages__n {
    grid-row: span 2;
    margin: 0;
  }

  .ol-stages__step::after {
    top: 40px;
    bottom: -14px;
    left: 17px;
    right: auto;
    width: 2px;
    height: auto;
  }
}

/* ---------- C17 Related posts (core List, block style) ---------- */

.is-style-ol-related {
  display: grid;
  gap: 0;
  margin: 0 0 var(--lb-block-gap);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--lb-border);
}

.is-style-ol-related > li {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--lb-border);
  line-height: 1.4;
}

.is-style-ol-related a {
  font-weight: 700;
  color: var(--lb-ink);
  text-decoration: none;
}

.is-style-ol-related a:hover {
  color: var(--lb-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.is-style-ol-related span {
  display: block;
  margin-top: 2px;
  font-size: var(--lb-fs-xs);
  color: var(--lb-muted);
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .ol-toc__compact > summary::after,
  .lb-template .ol-faq--js .ol-faq__toggle::after {
    transition: transform 0.2s ease, background-color 0.2s ease;
  }

  .ol-btn,
  .ol-btn-outline {
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }
}
