.editorial-popular { display: inline-block; margin: 0 0 .8rem; color: #003e52; font-size: .84rem; font-weight: 700; }
.editorial-back-link, .editorial-more-link a { display: inline-flex; color: #003e52; font-size: .94rem; font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.editorial-back-link { margin: 0 0 1.25rem; }
.editorial-more-link { margin: 2.5rem 0 0; }

/* Shared editorial layout: the hero is outside the reading grid. */
.ib-guide { box-sizing: border-box; display: block !important; width: min(1200px, calc(100% - 48px)); max-width: 1200px !important; margin-inline: auto; }
.ib-guide__hero { width: 100%; max-width: none !important; }
.ib-guide__hero h1 { max-width: 15ch; font-size: clamp(2.75rem, 3.45vw, 3.25rem) !important; line-height: 1.08; }

.ib-guide__content-grid { display: grid; grid-template-columns: minmax(0, 780px) 260px; column-gap: 56px; justify-content: center; align-items: start; margin-top: 3.75rem; }
.ib-guide__article { min-width: 0; max-width: 780px; }
.ib-guide__article > section, .ib-guide__article > footer { max-width: 780px; margin-inline: 0; }
.ib-guide__toc-column { min-width: 0; }
.ib-guide__toc-column .ib-guide__index { position: sticky; top: 112px; align-self: start; margin: 0; padding: 1.2rem 1.15rem 1.3rem; border: 1px solid #d6e1e3; border-radius: .4rem; background: #fff; }

.ib-guide__index details, .ib-guide__index summary { margin: 0; }
.ib-guide__index summary { color: #003e52; font-size: .78rem; font-weight: 800; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; cursor: default; list-style: none; }
.ib-guide__index summary::-webkit-details-marker { display: none; }
.ib-guide__index ol { display: grid; gap: .6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.ib-guide__index a { display: block; padding: .08rem 0 .08rem .72rem; border-left: 2px solid transparent; color: #48646d; font-size: .9rem; line-height: 1.34; text-decoration: none; }
.ib-guide__index a:hover, .ib-guide__index a:focus-visible, .ib-guide__index a.is-active { border-left-color: #f0949b; color: #003e52; outline: none; }
.ib-guide__article [id] { scroll-margin-top: 132px; }

.ib-guide__cta { max-width: 780px !important; }
.ib-guide__table { width: min(780px, 100%); }
.ib-guide__comments { padding-top: 3rem; border-top: 1px solid #d7e0e2; }
.ib-guide__comment { padding: 1.25rem; border-left: 3px solid #f0949b; background: #f4f7f7; }
.ib-guide__comment header { display: flex; justify-content: space-between; gap: 1rem; }
.ib-guide__comment header span, .ib-guide__form-note { color: #607981; font-size: .85rem; }
.ib-guide__comment-form { display: grid; gap: 1rem; margin-top: 1.5rem; padding: 1.4rem; background: #f4f7f7; }
.ib-guide__comment-form label { display: grid; gap: .35rem; color: #003e52; font-weight: 700; }
.ib-guide__comment-form input, .ib-guide__comment-form textarea { box-sizing: border-box; width: 100%; padding: .75rem; border: 1px solid #b9c9cd; background: #fff; font: inherit; }
.ib-guide__privacy { font-size: .92rem !important; font-weight: 400 !important; }
.ib-guide__privacy input { width: auto; }
.ib-guide__honeypot { position: absolute; left: -9999px; }
.ib-guide__comment-form .button { justify-self: start; }

/* The same structural component is used by the remaining pilot articles. */
.editorial { box-sizing: border-box; width: min(1200px, calc(100% - 48px)); max-width: 1200px; margin-inline: auto; }
.editorial__header, .editorial__hero-media { max-width: none; }
.editorial h1 { font-size: clamp(2.75rem, 3.45vw, 3.25rem); line-height: 1.08; }
.editorial__content-grid { display: grid; grid-template-columns: minmax(0, 780px) 260px; column-gap: 56px; justify-content: center; align-items: start; margin-top: 3.75rem; }
.editorial__article { min-width: 0; max-width: 780px; }
.editorial__article .editorial__body, .editorial__article .editorial__cta, .editorial__article .editorial__related, .editorial__article .editorial__comments { max-width: 780px; margin-inline: 0; }
.editorial__toc-column .editorial__toc { position: sticky; top: 112px; max-width: none; margin: 0; }
.editorial__toc a.is-active { color: #003e52; font-weight: 700; }
.editorial__toc details, .editorial__toc summary { margin: 0; }
.editorial__toc summary { color: #003e52; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; list-style: none; cursor: default; }
.editorial__toc summary::-webkit-details-marker { display: none; }

@media (max-width: 900px) {
  .ib-guide { width: min(780px, calc(100% - 40px)); }
  .ib-guide__hero h1 { max-width: 18ch; font-size: clamp(2rem, 5.2vw, 2.625rem) !important; }
  .ib-guide__content-grid { display: flex; flex-direction: column; gap: 2rem; margin-top: 2.25rem; }
  .ib-guide__toc-column { order: -1; width: 100%; }
  .ib-guide__toc-column .ib-guide__index { position: static; padding: 0; border: 0; border-radius: 0; background: transparent; }
  .ib-guide__index summary { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; border: 1px solid #d6e1e3; border-radius: .3rem; cursor: pointer; }
  .ib-guide__index summary::after { content: '+'; color: #f0949b; font-size: 1.25rem; line-height: 1; }
  .ib-guide__index details[open] summary::after { content: '−'; }
  .ib-guide__index ol { padding: 1rem; border: 1px solid #d6e1e3; border-top: 0; }
  .ib-guide__article { width: 100%; max-width: 780px; }
  .ib-guide__table { width: 100%; }
  .editorial { width: min(780px, calc(100% - 40px)); }
  .editorial h1 { font-size: clamp(2rem, 5.2vw, 2.625rem); }
  .editorial__content-grid { display: flex; flex-direction: column; gap: 2rem; margin-top: 2.25rem; }
  .editorial__toc-column { order: -1; width: 100%; }
  .editorial__toc-column .editorial__toc { position: static; width: auto; max-width: none; margin: 0; }
  .editorial__toc summary { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; border: 1px solid #d6e1e3; border-radius: .3rem; cursor: pointer; }
  .editorial__toc summary::after { content: '−'; color: #f0949b; font-size: 1.25rem; line-height: 1; }
  .editorial__toc details:not([open]) summary::after { content: '+'; }
  .editorial__toc ol { padding: 1rem; border: 1px solid #d6e1e3; border-top: 0; }
  .editorial__article { width: 100%; }
}

@media (max-width: 480px) {
  .ib-guide { width: min(100% - 32px, 780px); }
  .ib-guide__hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.25rem) !important; }
  .ib-guide__comment header { display: grid; }
  .ib-guide__comment-form .button { width: 100%; justify-content: center; }
  .editorial { width: min(100% - 32px, 780px); }
  .editorial h1 { font-size: clamp(1.9rem, 8.5vw, 2.25rem); }
}
