/* =====================================================================
   MyNurseDesk on WordPress: what the design needs for real content
   (WordPress classes, uploaded images, block editor output, comments, links instead of buttons).
   ===================================================================== */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: static !important; width: auto; height: auto; margin: 0; clip: auto; }

/* ---- logo uploaded in the Customizer ---- */
.mnd-custom-logo { display: block; width: auto; height: auto; max-height: 46px; max-width: 220px; }
.drawer-top .mnd-custom-logo { max-height: 40px; }
.nft .mnd-custom-logo { max-height: 40px; }

/* ---- header search is a real form ---- */
form.hs-inline { margin: 0; }
button.hs-go { cursor: pointer; }

/* ---- real images on cards and article headers ---- */
.art-img.has-photo { background: var(--surface-3); }
.art-img.has-photo::before, .art-img.has-photo::after { display: none; }
.art-img.has-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.co-logo.has-img { background: #fff; border: 1px solid var(--line); overflow: hidden; padding: 4px; }
.co-logo.has-img img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }

/* ---- links styled as the design's buttons ---- */
a.pg { text-decoration: none; color: inherit; }
.pg[aria-disabled="true"] { opacity: .45; pointer-events: none; }
a.chip-x, a.ttab, a.fp-clear { text-decoration: none; }
a.ttab { color: inherit; }

/* ---- home: 5 latest jobs on phones, 8 on wider screens (as in the design) ---- */
@media (max-width: 767px) { .mnd-latest-grid > :nth-child(n+6) { display: none; } }

/* ---- block editor content inside .prose ---- */
.prose .alignleft { float: left; margin: 6px 22px 12px 0; }
.prose .alignright { float: right; margin: 6px 0 12px 22px; }
.prose .aligncenter { margin-inline: auto; text-align: center; }
.prose img { max-width: 100%; height: auto; }
.prose .wp-block-image img, .prose .fig img { border-radius: 16px; }
.prose .wp-block-image figcaption, .prose .wp-element-caption, .tbl-cap { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.prose figure { margin-inline: 0; }
.prose .wp-block-embed iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; }
.prose .wp-block-embed__wrapper { position: relative; }
.prose hr, .prose .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin-block: 32px; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose ol li { padding-left: 4px; }
.prose ol li::marker { color: var(--link); font-weight: 600; }
.prose li > ul, .prose li > ol { margin-top: 10px; }
.prose blockquote:not(.mndj-co) { margin-inline: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--blue); color: var(--text); font-size: 18px; }
.prose blockquote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--muted); }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font-size: .92em; }
.prose pre { overflow-x: auto; padding: 16px; border-radius: 12px; background: var(--surface-2); }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: var(--ctl-h); padding: 0 20px; border-radius: var(--r-ctl); background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; }
.prose .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--link); border: 1px solid var(--blue); }
.prose .has-text-align-center { text-align: center; }
.prose > .tbl-wrap { margin-top: 26px; }
.tbl-scroll table th, .tbl-scroll table td { vertical-align: top; line-height: 1.5; }
.tbl-scroll table td:first-child { font-weight: 500; color: var(--text); }

/* FAQ in articles: every Details block is one accordion item; neighbours join into one list */
.prose > .mnd-acc-one { margin-top: 0; }
.prose > * + .mnd-acc-one:not(.mnd-acc-one + .mnd-acc-one) { margin-top: 18px; }
.mnd-acc-one + .mnd-acc-one { border-top: 0; }
.prose .acc-a > div > p { padding: 0 2px 20px; color: var(--muted); }
.prose .acc-a > div > * + * { margin-top: 0; }

/* note box made from a paragraph (legal pages) */
.prose .lg-note-p { position: relative; padding: 16px 18px 16px 48px; border-radius: 16px; background: var(--blue-soft); border: 1px solid var(--blue-soft-2); }
.prose .lg-note-p::before { content: ""; position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; background: var(--link); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---- articles ---- */
.art-layout.no-toc .toc-side { display: none; }
.art-sources { margin-top: 8px; }
.art-sources h2 { margin: 0 0 10px; }
.art-sources ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.art-sources a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.art-tags .chip { text-decoration: none; }
.page-links { display: flex; gap: 8px; margin-top: 24px; }

/* ---- jobs: "Checked on" line under the description ---- */
.prose .mnd-checked { margin-top: 26px; }

/* ---- generic pages ---- */
.mnd-page { padding-block: clamp(28px, 4vw, 48px) clamp(40px, 5vw, 72px); }
.mnd-page-doc { max-width: 820px; margin-inline: auto; }
.mnd-page-content { max-width: 820px; }
.mnd-search-page { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.mnd-search-page .input-icon { flex: 1 1 260px; min-width: 0; }
.mnd-search-page .input { width: 100%; }
.mnd-search-h { margin: 28px 0 16px; }
.mnd-contact-intro { margin-bottom: 22px; }

/* ---- comments (WordPress markup) ---- */
.cmt > .children { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 0 0 0 calc(var(--av) + 14px); }
.cmt > .children > .cmt { border-top: 0; padding-bottom: 0; }
.cmt-text > p { margin: 0; }
.cmt-text > p + p { margin-top: 10px; }
.cmt-body .comment-reply-link { text-decoration: none; }
.cform { margin-top: 28px; }
.cform .cform-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cform .cform-head small { font-size: inherit; }
.cform-in { display: grid; gap: 16px; margin-top: 10px; }
.cform-in .field { display: grid; gap: 6px; min-width: 0; }
.cform-in .form-row2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .cform-in .form-row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cform-in .form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cform-in .textarea { min-height: 140px; }
.comment-awaiting-moderation { color: var(--muted); }

/* ---- small helpers ---- */
.mnd-builder { display: block; }
.mnd-blank .skip-link { display: none; }


/* ---- Gallery block = the design's photo strip (2 across on phones, 4 from 640 px) ---- */
.prose .wp-block-gallery.has-nested-images { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; margin-top: 16px; }
@media (min-width: 640px) { .prose .wp-block-gallery.has-nested-images { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image { position: relative; width: auto !important; margin: 0 !important; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; border-radius: 0; transition: transform .35s var(--ease); }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image:hover img { transform: scale(1.05); }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image figcaption { position: absolute; left: 8px; right: auto; bottom: 8px; width: auto; max-width: calc(100% - 16px); margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(11, 34, 54, .72); color: #fff; font: 500 12.5px/1.3 var(--font-b); text-align: left; text-shadow: none; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image figcaption::before { display: none; }
.prose .wp-block-embed.is-type-video iframe { border-radius: 18px; }

/* ---- article: a long "On this page" list no longer pushes the text down; the text starts right under the picture ---- */
@media (min-width: 1100px) {
	.art-layout { grid-template-areas: "hero toc" "main toc" "main side" !important; grid-template-rows: min-content min-content 1fr !important; }
	.art-layout.no-toc { grid-template-areas: "hero side" "main side" !important; grid-template-rows: min-content 1fr !important; }
	.art-layout > .toc-side { align-self: start; }
}
