/* WordPress-only additions to the ported stylesheet.
   Contact Form 7 wraps each field in a span and adds its own hidden fields
   and response box; these rules make its markup lay out exactly like the
   CRO Kit form. */
.cro-form .wpcf7-form-control-wrap,
.cro-ref__form .wpcf7-form-control-wrap { display: contents; }
/* The consent checkbox label sits inside CF7's wrapper span, so the kit's
   ".cro-ref__field > label" / ".cro-form__field > label" rules need the
   wrapped equivalent to keep the same type. */
.cro-ref__field > .wpcf7-form-control-wrap > label { padding: 0; font: 800 var(--cro-small)/1.3 var(--cro-font-body); text-transform: uppercase; letter-spacing: 0.06em; }
.cro-ref__form .hidden-fields-container { display: none; }
.cro-ref__form .wpcf7-not-valid-tip { display: block; margin-top: 0.35rem; color: #B42318; font-size: 0.85rem; }
.cro-ref__form .cro-ref__field.is-invalid .wpcf7-not-valid-tip { display: none; }
.wpcf7 .cro-ref__form .wpcf7-response-output { display: none; }
.cro-form .hidden-fields-container { display: none; }
.cro-form .wpcf7-not-valid-tip { display: block; margin-top: 0.35rem; color: #B42318; font-size: 0.85rem; }
.cro-form .cro-form__field.is-invalid .wpcf7-not-valid-tip { display: none; }
.wpcf7 .cro-form .wpcf7-response-output { margin: 1rem 0 0; padding: 0.6rem 0.9rem; border-radius: var(--cro-radius-sm, 5px); font-size: 0.9rem; }
.wpcf7 .cro-form.init .wpcf7-response-output,
.wpcf7 .cro-form.sent .wpcf7-response-output { display: none; }
.wpcf7-spinner { display: none; }

/* Pages without sections (privacy policy, terms): readable body text. */
.sfas-prose { max-width: 46rem; margin-top: 1.5rem; }
.sfas-prose p, .sfas-prose li { line-height: 1.7; }
.sfas-prose a { color: var(--sfas-accent-text, #B94513); }

/* Page hero with no art (policy pages, sitemap): text takes the full row. */
.sfas-phero--text .cro-phero__split { grid-template-columns: minmax(0, 1fr); }
.sfas-phero--text .cro-phero__body { max-width: 52rem; }

/* Policy text: contents list pinned beside the text, kit prose styles. */
.sfas-legal .cro-spr__split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr); }
.sfas-legal__toc ol { margin: 0.8rem 0 0; padding: 0; list-style: none; counter-reset: sfas-toc; border-left: 2px solid var(--cro-line); }
.sfas-legal__toc li { counter-increment: sfas-toc; }
.sfas-legal__toc a { display: flex; gap: 0.6rem; padding: 0.42rem 0 0.42rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: inherit; text-decoration: none; font: 600 var(--cro-small)/1.4 var(--cro-font-body); opacity: 0.8; transition: color var(--cro-speed) var(--cro-ease), border-color var(--cro-speed) var(--cro-ease), opacity var(--cro-speed) var(--cro-ease); }
.sfas-legal__toc a::before { content: counter(sfas-toc, decimal-leading-zero); color: var(--sfas-accent-text, #B94513); font-weight: 800; }
.sfas-legal__toc a:hover { opacity: 1; border-left-color: var(--cro-accent); }
.sfas-legal__toc a:focus-visible { outline: 3px solid var(--cro-accent); outline-offset: 2px; border-radius: 4px; }
.sfas-legal__updated, .sfas-legal__note { margin: 1.4rem 0 0; font: 400 var(--cro-small)/1.5 var(--cro-font-body); color: var(--cro-muted); }
.sfas-legal__updated time { font-weight: 700; color: var(--cro-ink); }
.sfas-legal__body h2 { margin: 2.4em 0 0.6em; scroll-margin-top: 110px; font-family: var(--cro-font-display); font-weight: var(--cro-display-weight); letter-spacing: var(--cro-display-tracking); font-size: clamp(1.45rem, 2.3vw, 1.9rem); line-height: 1.15; text-wrap: balance; }
.sfas-legal__body > h2:first-child { margin-top: 0; }
.sfas-legal__body h3 { margin-bottom: 0.5em; }
.sfas-legal__body ul, .sfas-legal__body ol { padding-left: 1.3em; }
.sfas-legal__body li + li { margin-top: 0.35em; }
.sfas-legal__body li::marker { color: var(--cro-accent); }
.sfas-legal__body strong { font-weight: 700; }
@media (max-width: 899px) {
  .sfas-legal .cro-spr__split { grid-template-columns: minmax(0, 1fr); }
  .sfas-legal__toc { padding: 1.1rem 1.2rem; border: 1px solid var(--cro-line); border-radius: var(--cro-radius); background: var(--cro-white, #fff); }
}

/* Sitemap: a group title without a link. */
.sfas-sitemap span.cro-lnk__group { cursor: default; }

/* Hero credential chip with a link (e.g. the Ahpra register): the whole chip
   is the click target, with a visible focus ring and a small lift on hover. */
.sfh__chip--link { position: relative; transition: box-shadow .2s ease; }
.sfh__chip-a { color: inherit; text-decoration: none; }
.sfh__chip-a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sfh__chip--link:hover { box-shadow: inset 0 0 0 1px rgba(var(--cro-accent-rgb), 0.55), 0 16px 36px -16px rgba(17, 17, 17, 0.45); }
.sfh__chip--link:hover b { text-decoration: underline; text-underline-offset: 2px; }
.sfh__chip--link:focus-within { outline: 2px solid var(--sfas-accent-text, currentColor); outline-offset: 2px; }
.sfh__chip-a:focus-visible { outline: none; }
/* An odd last chip under the photo takes the full row. */
.sfh__visual:not(.is-over) .sfh__chips > .sfh__chip:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sfh__visual.is-over .sfh__chip:nth-child(3) { animation-delay: -2s; }
