/* CMS articles get a contents column only when headings are available. */
.cms-blog-page .article-layout.has-toc {
  max-width: 1440px;
  grid-template-columns: 180px minmax(0, 1fr) 300px;
  gap: 36px;
}
.cms-toc { position: sticky; top: 118px; max-height: calc(100dvh - 150px); overflow-y: auto; }
.cms-toc strong, .cms-toc summary { display: block; margin-bottom: 16px; font-size: 13px; font-weight: 700; }
.cms-toc a { display: block; padding: 10px 0; border-bottom: 1px solid #ddd6cb; color: #4e4943; font-size: 13px; line-height: 1.45; }
.cms-toc a:hover { color: #b84900; }
.cms-toc a:focus-visible, .cms-toc summary:focus-visible { outline: 2px solid #b84900; outline-offset: 3px; }
.cms-toc-mobile { display: none; }
.cms-blog-page .article-body h2[id] { scroll-margin-top: 130px; }
@media (min-width: 901px) and (max-width: 1200px) {
  .cms-blog-page .article-layout.has-toc { grid-template-columns: 160px minmax(0, 1fr); gap: 28px; }
  .cms-blog-page .has-toc .article-enquiry { grid-column: 2; position: static; }
}
.cms-blog-page .article-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  max-width: 1240px;
  gap: clamp(32px, 5vw, 72px);
}
.cms-blog-page .article-body { min-width: 0; overflow-wrap: anywhere; }
.cms-blog-page .article-body h2 {
  margin: 48px 0 20px;
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.2;
  text-wrap: balance;
}
.cms-blog-page .article-body h3 { font-size: 23px; line-height: 1.35; }
.cms-blog-page .article-body > :first-child { margin-top: 0; }
.cms-blog-page .article-body img { max-width: 100%; height: auto; }
.cms-blog-page .article-body iframe { max-width: 100%; }
.cms-blog-page .article-body table { display: block; max-width: 100%; overflow-x: auto; }
.cms-blog-page .article-body a { text-decoration: underline; text-underline-offset: 3px; }
.cms-blog-page .article-enquiry { grid-column: auto; min-width: 0; max-width: none; }
.cms-blog-page .article-enquiry input { min-width: 0; width: 100%; }
.cms-blog-page .article-hero h1 {
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
@media (max-width: 900px) {
  .cms-blog-page .article-layout.has-toc { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cms-toc { position: static; max-height: none; overflow: visible; }
  .cms-toc-desktop { display: none; }
  .cms-toc-mobile { display: block; padding: 18px; border: 1px solid #ddd6cb; border-radius: 8px; }
  .cms-toc-mobile summary { display: list-item; cursor: pointer; margin: 0; }
  .cms-toc-mobile[open] summary { margin-bottom: 12px; }
  .cms-blog-page .article-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cms-blog-page .article-enquiry { position: static; grid-column: 1; width: 100%; }
  .cms-blog-page .article-body { font-size: 17px; line-height: 1.75; }
  .cms-blog-page .article-reading-section { padding-block: 48px; }
}
