/* WordPress-only additions for the BIHS Care theme */

/* Sticky header below the admin bar when logged in */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Honeypot field */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Server-side form error */
.lead-error { position: fixed; left: 16px; right: 16px; bottom: 96px; z-index: 200; max-width: 560px; margin: 0 auto; padding: 16px 20px; border-radius: 14px; background: #fdecea; color: #8a1c12; font-weight: 600; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .3); }

/* Post / page content from the editor */
.entry-content img, .prose img { border-radius: 16px; height: auto; }
.entry-content > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose ol { padding-left: 1.4em; }
.prose a { color: var(--blue-700); }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 16px; color: var(--ink-2); }

/* Old SEO text block */
.legacy-text .prose { max-width: none; }
.legacy-text .prose p { font-size: 18px; }
.legacy-text .accordion { margin-top: 1rem; }

/* Employee documents */
.doc-card { text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.doc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }

/* Blog list */
.blog-card h3 a { color: var(--ink); text-decoration: none; }
.blog-card h3 a:hover { color: var(--blue-700); }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination .page-numbers.current { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }


/* Trust strip adapts to the number of items */
@media (min-width: 1024px) {
  .trust-strip--3 { grid-template-columns: repeat(3, 1fr); }
  .trust-strip--4 { grid-template-columns: repeat(4, 1fr); }
  .trust-strip--5 { grid-template-columns: repeat(5, 1fr); }
  .trust-strip--6 { grid-template-columns: repeat(6, 1fr); }
}

/* Regular editor blocks (paragraphs, headings, lists, images) between sections */
.bihs-blocks > :not(.bihs-sec) { max-width: calc(var(--container-narrow) + var(--gutter) * 2); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.bihs-blocks > .bihs-sec + :not(.bihs-sec) { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.bihs-blocks > :not(.bihs-sec) + .bihs-sec { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.bihs-blocks > :not(.bihs-sec) + :not(.bihs-sec) { margin-top: 1.1rem; }
.bihs-blocks > h2:not(.bihs-sec), .bihs-blocks > h3:not(.bihs-sec) { margin-top: 2.4rem; }
.bihs-blocks > .bihs-sec + h2, .bihs-blocks > .bihs-sec + h3 { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.bihs-blocks > p:not(.bihs-sec) { color: var(--ink-2); max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.bihs-blocks > ul:not(.bihs-sec) { list-style: none; }
.bihs-blocks > ul:not(.bihs-sec) li { position: relative; padding-left: 32px; margin-bottom: .7rem; color: var(--ink-2); }
.bihs-blocks > ul:not(.bihs-sec) li::before { content: ""; position: absolute; left: 0; top: .3em; width: 22px; height: 22px; border-radius: 50%; background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d7a3b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.bihs-blocks > figure:not(.bihs-sec) img { border-radius: var(--r-lg); }
.bihs-blocks > :last-child:not(.bihs-sec) { margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.bihs-blocks > .wp-block-details { background: var(--blue-50); border-radius: var(--r-md); padding: 18px 22px; }
.bihs-blocks > .wp-block-details summary { font-weight: 700; cursor: pointer; }
.bihs-callout { max-width: calc(var(--container-narrow) + var(--gutter) * 2); margin-top: 2.5rem; margin-bottom: 2.5rem; }
.bihs-blocks > .bihs-callout + :not(.bihs-sec) { margin-top: 0; }
.bihs-blocks > :not(.bihs-sec) + .bihs-callout { margin-top: 2.5rem; }
.custom-logo-link img, .logo img { height: 52px; width: auto; }
@media (min-width: 768px) { .logo img { height: 62px; } }
