/* Small differences between the new site and the WordPress one, kept apart from the theme copy. */

/* Table of contents box on blog posts (replaces WordPress's Easy Table of Contents add-on; same look) */
.toc-box { display: inline-block; border: 1px solid #aaa; border-radius: 4px; background: #f9f9f9; padding: 10px 20px 10px 10px; margin: 20px 0; box-shadow: 0 1px 1px rgba(0,0,0,.05); font-size: 0.85em; }
.toc-box summary { cursor: pointer; font-size: 1.2em; font-weight: 500; color: #000f8f; list-style: none; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box nav ul { list-style: none; margin: 6px 0 0 !important; padding: 0; }
.text .toc-box nav ul > li:before { display: none; }
.toc-box li { margin: 2px 0 !important; padding: 0 !important; }
.toc-box li.toc-level-3 { padding-left: 1em !important; }
.toc-box a { color: #000f8f; text-decoration: none; }

/* Team photos: WordPress served each one cut to 190x260; here the original picture is used, so crop it the same way */
.team-image img, .bio-image img { aspect-ratio: 190 / 260; object-fit: cover; object-position: center top; }

/* Page pieces (24 Nov 2026): a call to action on a coloured background gets room below its button too */
.cta-block.piece-filled { padding-bottom: 100px; }
@media (max-width: 767px) { .cta-block.piece-filled { padding-bottom: 70px; } }

/* Website forms (1 Dec 2026, docs/changes/2026-12-01-website-forms.md): the thanks shows in place of the form after
   sending (the page comes back with #form-sent-<id>); the theme's Gravity Forms styles do the rest. */
.cbp-form-thanks { display: none; }
.cbp-form-thanks:target { display: block; scroll-margin-top: 140px; }
.cbp-form-thanks:target + form { display: none; }
.cbp-gform .gform_fields::after { content: ""; display: table; clear: both; }
.cbp-gform .gform_footer { clear: both; }
.cbp-gform .gsection_title { margin: 30px 0 10px; }

/* Multi-page forms (2 Dec 2026): src/lib/forms/render.ts draws every page; public/site-fixes.js shows one at a time.
   Without the script every page shows and the step buttons stay hidden. */
.cbp-step-nav { display: none; }
.cbp-steps-on .cbp-step-nav { display: flex; gap: 16px; margin: 24px 0 8px; }
.cbp-steps-on .cbp-step:not(.is-current) { display: none; }
.cbp-steps-on:not(.at-last) .gform_footer { display: none; }
.cbp-gform .cbp-off { display: none !important; }
.cbp-step-count { margin: 0 0 16px; font-size: 14px; }
