/* WordPress-only additions to the compiled site CSS (assets/css/style.css). */

/* rt-elements (built for the old coolair theme) sets body { overflow: hidden }
   on every page, which stops the page scrolling. Restore the theme's own rule;
   the page is locked only while the menu or a dialog is open (body.is-locked). */
body:not(.is-locked) { overflow: visible; overflow-x: clip; }

/* Sticky header clears the logged-in admin bar (fixed from 601px). */
@media (min-width: 601px) {
  .admin-bar .site-header { top: 32px; }
}
@media (min-width: 601px) and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* Editor content inside the standard text column */
.entry-content > * + * { margin-top: 16px; }
.entry-content h2,
.entry-content h3 { margin-top: 40px; margin-bottom: 14px; color: #0a436a; line-height: 1.3; }
.entry-content h2 { font-size: 1.4375rem; }
.entry-content h3 { font-size: 1.125rem; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content figure { margin: 24px 0; }
.entry-content figcaption { margin-top: 8px; font-size: 0.875rem; color: #5b6b7a; }
.entry-content blockquote { margin: 24px 0; padding-left: 20px; border-left: 4px solid #08ab51; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-inline: auto; }

/* Listing (news archive, search results) */
.scm-listing { list-style: none; margin: 0; padding: 0; }
.legal-doc .scm-listing { padding: 0; }
.scm-listing__item { padding: 28px 0; border-bottom: 1px solid #e2e5e9; }
.scm-listing__item .legal-doc__meta { margin-bottom: 8px; padding: 0; border: 0; }
.scm-listing__item h2 { margin-bottom: 8px; font-size: 1.4375rem; line-height: 1.3; }
.legal-doc .scm-listing__item h2 a { text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 12px; border: 1px solid #e2e5e9; text-decoration: none; }
.nav-links .page-numbers.current { background: #08ab51; border-color: #08ab51; color: #fff; }

/* Search form on results / 404 */
.scm-searchform { display: flex; gap: 8px; margin-bottom: 32px; }
.scm-searchform__input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 1px solid #e2e5e9; border-radius: 0; font: inherit; color: #0a436a; }
.scm-searchform__input:focus-visible { outline: 2px solid #08ab51; outline-offset: 2px; }
.scm-404-actions { margin-top: 8px; }

/* Contact Form 7 forms in the design's .contact-form grid (no <p> wrappers:
   see wpcf7_autop_or_not in inc/setup.php). Only the brand green and the
   form error red #b42318 are used. */
.contact-form .wpcf7-form-control-wrap,
.contact-form .wpcf7-form-control-wrap > .form-field__control { display: block; }
.contact-form .wpcf7-not-valid-tip { display: block; margin-top: 4px; font-size: 0.8125rem; line-height: 1.4; color: #b42318; }
.contact-form .wpcf7-not-valid { border-color: #b42318; }
.contact-form .wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }
/* Form messages (user, 16 Oct 2026): each field carries its own error note,
   so the summary line ("One or more fields have an error…") is not shown –
   it came and went on every attempt and made the form jump. A sent form
   shows a centred confirmation in bold green, no box (bold 19px is AA large
   text); a failed or blocked send shows the same in the error red. */
.contact-form .wpcf7-response-output { grid-column: 1 / -1; margin: 16px 0 0 !important; padding: 0 !important; border: 0 !important; font-size: 1.1875rem; font-weight: 700; line-height: 1.4; text-align: center; color: #0a436a; }
.contact-form.invalid .wpcf7-response-output,
.contact-form.unaccepted .wpcf7-response-output { display: none; }
.contact-form.failed .wpcf7-response-output,
.contact-form.aborted .wpcf7-response-output,
.contact-form.spam .wpcf7-response-output { color: #b42318; }
.contact-form.sent .wpcf7-response-output { color: #08ab51; }

/* SCM Document (privacy policy, conditions of sale): ordinary text blocks
   in the legal-doc layout, main headings numbered in green like the design. */
.legal-doc--numbered { counter-reset: scm-doc; }
.legal-doc--numbered > h2::before { counter-increment: scm-doc; content: counter(scm-doc) ". "; color: #08ab51; }
.legal-doc.entry-content > h2 { margin-top: 44px; margin-bottom: 14px; font-size: 1.4375rem; line-height: 1.3; }
@media (max-width: 575.98px) { .legal-doc.entry-content > h2 { margin-top: 36px; font-size: 1.3125rem; } }
.legal-doc.entry-content > h3 { margin-top: 22px; margin-bottom: 10px; font-size: 1.125rem; }
.legal-doc.entry-content > h2 + p,
.legal-doc.entry-content > h3 + p { margin-top: 0; }
.legal-doc.entry-content > p + p { margin-top: 14px; }
.legal-doc.entry-content > .legal-doc__contact,
.legal-doc.entry-content > .legal-doc__contact + p { margin-top: 16px; }

/* Clause items numbered as in the client's Terms of Supply (16 Nov 2026):
   (a), then (i), then (A), in the green of the heading numbers, set like the
   Privacy Policy bullets – each label centred in a 30px box at the start of
   its item, the text on one indent (2.25em) at every level. The top list
   block carries the class "legal-doc__clauses"
   (Advanced → Additional CSS class); the lists inside it follow. The empty
   list-style string keeps the list semantics in Safari. */
.legal-doc ol.legal-doc__clauses,
.legal-doc ol.legal-doc__clauses ol { padding-left: 0; list-style-type: ""; counter-reset: scm-clause; }
.legal-doc ol.legal-doc__clauses li { position: relative; padding-left: 2.25em; counter-increment: scm-clause; }
.legal-doc ol.legal-doc__clauses li::before { position: absolute; top: 0; left: 0; min-width: 30px; text-align: center; color: #08ab51; content: "(" counter(scm-clause, lower-alpha) ")"; }
.legal-doc ol.legal-doc__clauses ol > li::before { content: "(" counter(scm-clause, lower-roman) ")"; }
.legal-doc ol.legal-doc__clauses ol ol > li::before { content: "(" counter(scm-clause, upper-alpha) ")"; }

/* A list inside a list item starts at the item spacing (8px), not the 14px
   used after a paragraph – both legal pages */
.legal-section .legal-doc li > ul,
.legal-section .legal-doc li > ol { margin-top: 8px; }

/* A paragraph after a list keeps the paragraph spacing (14px, as p + p) */
.legal-section .legal-doc.entry-content > ul + p,
.legal-section .legal-doc.entry-content > ol + p { margin-top: 14px; }

/* Act names in italics as in the client's documents: the site's single
   upright font sets font-synthesis: none, so the italic is synthesised (as
   for the pending lines) – only inside the SCM Document block. */
.legal-section .legal-doc em { font-synthesis: style; }
