/* SAS Daylight theme: WordPress and plugin additions, loaded after css/site.css (the 05 Daylight design).
   1. WordPress core classes and the admin bar
   2. Post and page content (the_content)
   3. Blog index, archives, search, pagination
   4. Contact Form 7 (#208) in the 05 form tile
   5. Formidable Forms (hosting enquiries 1-4) in the 05 form tile
   6. WP Job Openings on Careers
   7. Floating badges on phones (reCAPTCHA, Shield) above the action bar
   Plugin output is styled only inside .contact__form / .jobs__plugin, so plugin forms elsewhere
   (for example inside the aio-contact widget) keep their own look. */

/* ---------------------------------------------------------------- 1. core classes, admin bar */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed !important; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; padding: 12px 20px; clip: auto; border-radius: var(--r-pill); background: var(--navy); color: #fff; font-weight: 600; white-space: normal; }
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.sticky, .bypostauthor { }
/* vaximo-toolkit hides <body> (inline opacity 0) when the Vaximo theme is not active; functions.php removes that
   script, and this keeps the page visible even if a toolkit update brings it back under another name. */
body.sas-daylight { opacity: 1 !important; }

body.admin-bar { --wpab: 32px; }
@media (max-width: 782px) { body.admin-bar { --wpab: 46px; } }
@media (max-width: 600px) { body.admin-bar { --wpab: 0px; } }  /* the admin bar scrolls away on small phones */
.admin-bar .hdr { top: var(--wpab, 0px); }

.form-missing { padding: 20px 22px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.form-missing p + p { margin-top: 8px; font-weight: 600; }
.form-missing a { color: var(--navy); }

/* ---------------------------------------------------------------- 2. post and page content */
.prose { color: var(--muted); font-size: clamp(17px, 1rem + .2vw, 19px); line-height: 1.75; overflow-wrap: break-word; }
.prose--page { max-width: 820px; }
.prose--wide { max-width: none; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose li { font-size: inherit; line-height: inherit; color: var(--muted); }
.prose h2 { margin-top: 2em; font: 680 clamp(26px, 1rem + 1.1vw, 34px)/1.1 var(--display); letter-spacing: -.04em; color: var(--ink); text-wrap: balance; }
.prose h3 { margin-top: 1.8em; font: 650 clamp(21px, 1rem + .6vw, 26px)/1.15 var(--display); letter-spacing: -.03em; color: var(--ink); }
.prose h4, .prose h5, .prose h6 { margin-top: 1.6em; font: 650 18px/1.3 var(--text); color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose strong, .prose b { color: var(--ink); font-weight: 650; }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.prose a:hover { text-decoration-color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--lime-ink); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--lime); }
.prose blockquote p { font: 560 clamp(21px, 1rem + .9vw, 28px)/1.32 var(--display); letter-spacing: -.025em; color: var(--ink); }
.prose blockquote cite { display: block; margin-top: 10px; font: 600 14px/1.4 var(--text); font-style: normal; color: var(--muted); }
.prose img, .prose video, .prose iframe { max-width: 100%; border-radius: var(--r-md); }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.prose hr { margin-block: 2em; border: 0; border-top: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 650; }
.prose code, .prose pre { font: 15px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.prose code { padding: .1em .35em; }
.prose pre { padding: 16px 18px; overflow-x: auto; }
.prose pre code { padding: 0; border: 0; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: var(--r-pill); background: var(--navy); color: #fff; font-weight: 600; text-decoration: none; }
/* the 05 article: its opening quote reads as the lead */
.art.prose { max-width: 720px; }
.art.prose > blockquote:first-child { padding: 0; border: 0; }
.art.prose > blockquote:first-child p { font: 560 clamp(24px, 1rem + 1.2vw, 34px)/1.25 var(--display); letter-spacing: -.03em; }
.ptile.prose > * { position: relative; }
.page-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em; font-weight: 600; }
.page-builder { overflow-x: clip; }

/* ---------------------------------------------------------------- 3. blog index, archives, search, pagination */
.feat--nofig { grid-template-columns: 1fr !important; }
.bcard__t a { overflow-wrap: anywhere; }
.nf__chips { margin-top: 28px; }
.ph .nf__search { margin-top: 32px; }
.pagination { margin-top: clamp(32px, 4vw, 48px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 16px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line-2); color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .25s, background-color .25s; }
.pagination a.page-numbers:hover { border-color: var(--ink); }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .page-numbers.dots { min-width: 0; padding: 0 4px; border: 0; background: none; }
.pagination .page-numbers .ic { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- 4 + 5. plugin forms inside the 05 form tile */
.contact__form { container-type: inline-size; }
.contact__form ::placeholder, .contact__form .wpcf7 .wpcf7-form-control::placeholder, .contact__form .frm_forms .frm_form_field ::placeholder { color: #6B7586 !important; opacity: 1; }

/* shared look of every text field, select and textarea (05: 54px, 14px radius, warm fill, navy focus ring) */
.contact__form .wpcf7 :is(input[type="text"], input[type="email"], input[type="number"], input[type="tel"], input[type="url"], input[type="date"], select, textarea),
.contact__form .frm_forms .frm_form_field :is(input[type="text"], input[type="email"], input[type="number"], input[type="tel"], input[type="phone"], input[type="url"], input[type="date"], select, textarea) {
  width: 100%; max-width: none; min-height: 54px; height: auto; margin: 0; padding: 14px 16px; border-radius: var(--r-sm) !important; border: 1px solid var(--line-2) !important; background-color: #FAFBF8 !important; box-shadow: none !important; font: 400 17px/1.4 var(--text) !important; color: var(--ink) !important; transition: border-color .2s, box-shadow .25s, background-color .2s; -webkit-appearance: none; appearance: none;
}
.contact__form .wpcf7 input[type="number"], .contact__form .frm_forms input[type="number"] { -moz-appearance: textfield; }
/* !important: the shared rule above outranks these (its :is() counts as its most specific selector) */
.contact__form .wpcf7 textarea, .contact__form .frm_forms .frm_form_field textarea { min-height: 136px !important; resize: vertical; }
.contact__form .wpcf7 select, .contact__form .frm_forms .frm_form_field select { padding-right: 44px !important; text-overflow: ellipsis; background: #FAFBF8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1B33' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat !important; }
.contact__form .wpcf7 input::-webkit-outer-spin-button, .contact__form .wpcf7 input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.contact__form .wpcf7 :is(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), select, textarea):hover, .contact__form .frm_forms .frm_form_field :is(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), select, textarea):hover { border-color: #AEB6A6 !important; }
.contact__form .wpcf7 :is(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), select, textarea):focus, .contact__form .frm_forms .frm_form_field :is(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), select, textarea):focus { outline: none; border-color: var(--navy) !important; background-color: #fff !important; box-shadow: 0 0 0 4px rgba(10, 49, 97, .14) !important; }
.contact__form .wpcf7 :is(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), select, textarea):focus-visible, .contact__form .frm_forms .frm_form_field :is(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), select, textarea):focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* submit buttons: the 05 full-width navy pill */
.contact__form .wpcf7 :is(button[type="submit"], input[type="submit"]),
.contact__form .frm_forms .frm_submit :is(button, input[type="submit"]) {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin: 10px 0 0; padding: 0 24px; border-radius: var(--r-pill) !important; border: 1px solid transparent !important; background: var(--navy) !important; color: #fff !important; box-shadow: 0 1px 1px rgba(10, 49, 97, .2), 0 8px 22px -10px rgba(10, 49, 97, .6) !important; font: 600 17px/1 var(--text) !important; letter-spacing: -.005em; text-transform: none; cursor: pointer; transition: background-color .25s, transform .35s var(--ease);
}
/* the stored CF7 #208 template wraps the button label in <br> tags, which pushed "Send Message" below the centre */
.contact__form .wpcf7 button[type="submit"] br { display: none; }
.contact__form .wpcf7 :is(button[type="submit"], input[type="submit"]):hover,
.contact__form .frm_forms .frm_submit :is(button, input[type="submit"]):hover { background: var(--navy-2) !important; transform: translateY(-1px); }
.contact__form .wpcf7 :is(button[type="submit"], input[type="submit"]):focus-visible,
.contact__form .frm_forms .frm_submit :is(button, input[type="submit"]):focus-visible { outline: 2.5px solid var(--navy); outline-offset: 3px; }
@keyframes sas-spin { to { transform: rotate(360deg); } }

/* ---- 4. Contact Form 7: its form template uses Bootstrap grid classes (.container .row .col-*); laid out here */
.contact__form .wpcf7 { margin: 0; }
.contact__form .wpcf7 .hidden-fields-container { display: none; }
.contact__form .wpcf7 .container, .contact__form .wpcf7 #contactForm { width: auto; max-width: none; margin: 0; padding: 0; }
.contact__form .wpcf7 .row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; margin: 0; }
.contact__form .wpcf7 .row > * { width: auto; max-width: none; min-width: 0; margin: 0; padding: 0; flex: none; }
@container (min-width: 520px) {
  .contact__form .wpcf7 .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__form .wpcf7 .row > .col-lg-12, .contact__form .wpcf7 .row > .col-md-12 { grid-column: 1 / -1; }
}
.contact__form .wpcf7 .form-group { margin: 0 0 18px; }
.contact__form .wpcf7 label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.contact__form .wpcf7-form-control-wrap { display: block; position: relative; }
.contact__form .wpcf7 .wpcf7-not-valid { border-color: var(--danger) !important; background-color: #FFF8F7 !important; box-shadow: 0 0 0 4px rgba(180, 35, 24, .1) !important; }
.contact__form .wpcf7-not-valid-tip { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 550; color: var(--danger); }
.contact__form .wpcf7-not-valid-tip::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; }
.contact__form .wpcf7-spinner { display: none; }
.contact__form .wpcf7-form.submitting :is(button[type="submit"], input[type="submit"]) { cursor: progress; background: #3B5A85 !important; transform: none; }
.contact__form .wpcf7-form.submitting button[type="submit"]::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: sas-spin .8s linear infinite; }
/* the response line: hidden while idle, then success, validation error, failure or spam */
.contact__form .wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 15px; font-weight: 550; line-height: 1.45; }
.contact__form .wpcf7 form.init .wpcf7-response-output, .contact__form .wpcf7 form.resetting .wpcf7-response-output, .contact__form .wpcf7 form.submitting .wpcf7-response-output { display: none; }
.contact__form .wpcf7 form.sent .wpcf7-response-output { border-color: #D5E2B5; background: var(--lime-soft); color: var(--lime-ink); }
.contact__form .wpcf7 form.sent .wpcf7-response-output::before { content: "✓ "; font-weight: 700; }
.contact__form .wpcf7 form:is(.invalid, .unaccepted, .payment-required, .failed, .aborted) .wpcf7-response-output { border-color: #F5C9C3; background: #FEF1EF; color: var(--danger); }
.contact__form .wpcf7 form.spam .wpcf7-response-output { border-color: #F1D9A6; background: #FFF7E6; color: #7A4E00; }
.contact__form .wpcf7 form.sent .form-group :is(input, textarea) { border-color: #C9D8A6 !important; }

/* ---- 5. Formidable: 12-column field grid (frm6 = half, frm12 / frm_full = whole), errors and the success message */
.contact__form .frm_forms.with_frm_style { --border-color: var(--line-2); --border-color-active: var(--navy); --border-radius: 14px; --bg-color: #FAFBF8; --text-color: var(--ink); --font: var(--text); --field-font-size: 17px; --field-height: 54px; --field-pad: 14px 16px; --field-border-width: 1px; --field-weight: 400; --submit-bg-color: var(--navy); --submit-text-color: #fff; --submit-font-size: 17px; --submit-weight: 600; --success-text-color: var(--lime-ink); max-width: none; }
.contact__form .frm_forms { margin: 0; font-family: var(--text); }
.contact__form .frm_forms fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.contact__form .frm_forms legend.frm_screen_reader, .contact__form .frm_forms .frm_screen_reader { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.contact__form .frm_forms .frm_fields_container { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 16px; }
.contact__form .frm_forms .frm_fields_container > * { grid-column: span 12 / span 12; min-width: 0; }
@container (min-width: 520px) {
  .contact__form .frm_forms .frm_fields_container > .frm6 { grid-column: span 6 / span 6; }
}
.contact__form .frm_forms .frm_form_field { margin: 0 0 18px; padding: 0; }
.contact__form .frm_forms .frm_primary_label { display: block; margin: 0 0 6px; padding: 0; font: 600 15px/1.4 var(--text); color: var(--ink); }
.contact__form .frm_forms .frm_none_container .frm_primary_label, .contact__form .frm_forms .frm_hidden_container .frm_primary_label, .contact__form .frm_forms .frm_primary_label.is-empty { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact__form .frm_forms .frm_required { color: var(--danger); }
.contact__form .frm_forms .frm_description { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.contact__form .frm_forms .frm_verify { position: absolute !important; left: -9999px !important; }
.contact__form .frm_forms .frm_blank_field :is(input, select, textarea) { border-color: var(--danger) !important; background-color: #FFF8F7 !important; box-shadow: 0 0 0 4px rgba(180, 35, 24, .1) !important; }
.contact__form .frm_forms .frm_error { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 0; font-size: 14px !important; font-weight: 550; line-height: 1.35; color: var(--danger) !important; }
.contact__form .frm_forms .frm_error::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; }
.contact__form .frm_forms .frm_error_style { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid #F5C9C3 !important; background: #FEF1EF !important; color: var(--danger) !important; font-size: 15px; font-weight: 550; }
.contact__form .frm_forms .frm_error_style p { margin: 0; color: inherit; }
.contact__form .frm_forms .frm_submit { grid-column: span 12 / span 12; margin: 0; padding: 0; }
.contact__form .frm_forms .frm_submit .frm_ajax_loading { display: none; }
.contact__form .frm_forms .frm_loading_form .frm_submit :is(button, input[type="submit"]), .contact__form .frm_forms .frm_loading_now .frm_submit :is(button, input[type="submit"]) { cursor: progress; background: #3B5A85 !important; }
.contact__form .frm_message, .contact__form .frm_forms .frm_message { padding: 28px; border-radius: var(--r-md); border: 1px solid #D5E2B5 !important; background: var(--lime-soft) !important; color: var(--ink) !important; text-align: center; }
.contact__form .frm_message p { margin: 0 auto; max-width: 26rem; font: 650 clamp(20px, 1rem + .6vw, 24px)/1.3 var(--display); letter-spacing: -.02em; color: var(--ink); }
.contact__form .frm_message::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%; background: #fff; color: var(--lime-ink); box-shadow: 0 0 0 6px rgba(148, 176, 77, .2); font: 700 24px/1 var(--text); }

/* ---------------------------------------------------------------- 6. WP Job Openings on Careers */
.jobs--list .jobs__in .kicker { margin-bottom: 20px; }
.jobs__plugin { color: var(--ink); }
.jobs__plugin a { color: var(--navy); }
.jobs__plugin .awsm-job-listing-item, .jobs__plugin .awsm-grid-item, .jobs__plugin .awsm-list-item { border-radius: var(--r-md); border-color: var(--line) !important; }
.jobs__plugin input, .jobs__plugin select { min-height: 48px; border-radius: var(--r-sm); border: 1px solid var(--line-2); padding: 0 14px; font: 400 16px/1.3 var(--text); }
.jobs__plugin .awsm-jobs-none-container, .jobs__plugin .jobs-none-container { font-size: 18px; color: var(--muted); }

/* ---------------------------------------------------------------- 7. floating badges on phones: keep them clear of the action bar */
@media (max-width: 699px) {
  .grecaptcha-badge { bottom: calc(86px + env(safe-area-inset-bottom)) !important; }
  #icwpWpsfSiteBadge { bottom: calc(86px + env(safe-area-inset-bottom)) !important; }
}

/* reduced motion: the plugin spinners stop too */
@media (prefers-reduced-motion: reduce) {
  .contact__form .wpcf7-form.submitting button[type="submit"]::before { animation: none; }
}
