/**
 * WCAG 2.0 AA remediation.
 * WPCode CSS snippets and Beaver Builder layout CSS print after this file,
 * so selectors that override them carry extra specificity.
 */

/**
 * Links inside body text: underline so they do not rely on colour alone (1.4.1).
 * Beaver Builder removes underlines with .fl-module-content a (0,1,1), at times
 * printed inline after this file, so links in modules need (0,1,2). Rich text
 * modules printed without that wrapper (event pages) only meet the skin's a
 * (0,0,1). Elsewhere
 * the rule stays at low specificity so buttons, cards and rails that set their
 * own text-decoration (mostly WPCode snippets) keep their look.
 */
.fl-module-content :where(.fl-rich-text, .fl-post-content, .fl-post-excerpt, .fl-post-grid-text, .fl-post-feed-text, .entry-content, .fl-accordion-content, .fl-tabs-panel-content, .fl-callout-text) :is(p, li, td, dd, blockquote) a:where(:not(.fl-button, .button, .btn, .uabb-button)),
.fl-module-content .twitter-tweet a,
:where(.fl-post-content, .entry-content, .comment-respond, .comment-content, .fl-module.fl-rich-text) :where(p, li, td, dd, blockquote) a:where(:not(.fl-button, .button, .btn, .uabb-button)),
:where(.fl-post-content) a.fl-post-more-link {
	text-decoration: underline;
}
/**
 * Hover and focus keep the underline and darken instead. Beaver Builder drops
 * the underline with .fl-module-content a:hover (0,2,1). The colour rule stays
 * at a:hover strength (0,1,1), so it only replaces the skin hover colour (the
 * same teal as the link) and links with their own colours keep their hover.
 */
.fl-module-content :where(.fl-rich-text, .fl-post-content, .fl-post-excerpt, .fl-post-grid-text, .fl-post-feed-text, .entry-content, .fl-accordion-content, .fl-tabs-panel-content, .fl-callout-text) :is(p, li, td, dd, blockquote) a:where(:not(.fl-button, .button, .btn, .uabb-button)):is(:hover, :focus),
.fl-module-content .twitter-tweet a:is(:hover, :focus),
:where(.fl-module.fl-rich-text) :where(p, li, td, dd, blockquote) a:where(:not(.fl-button, .button, .btn, .uabb-button)):is(:hover, :focus) {
	text-decoration: underline;
}
a:where(.fl-module-content :where(.fl-rich-text, .fl-post-content, .fl-post-excerpt, .fl-post-grid-text, .fl-post-feed-text, .entry-content, .fl-accordion-content, .fl-tabs-panel-content, .fl-callout-text) :is(p, li, td, dd, blockquote) a, .fl-module-content .twitter-tweet a, :where(.fl-post-content, .entry-content, .comment-respond, .comment-content, .fl-module.fl-rich-text) :where(p, li, td, dd, blockquote) a, .fl-post-content a.fl-post-more-link):where(:not(.fl-button, .button, .btn, .uabb-button)):is(:hover, :focus) {
	color: #003545;
}

/** Banners: white titles on light teal (2.04 and 3.49:1) get the Services banner teal, 4.96:1 **/
.fl-row.u7-banner-teal > .fl-row-content-wrap,
.fl-col.u7-banner-teal > .fl-col-content {
	background-color: #38788c !important;
}
/* White on the yellow banner (1.8:1) becomes the darkest brand teal, 7.3:1 */
.fl-row.u7-banner-yellow .fl-heading,
.fl-row.u7-banner-yellow .fl-heading-text,
.fl-row.u7-banner-yellow .fl-rich-text,
.fl-row.u7-banner-yellow .fl-rich-text * {
	color: #003545 !important;
}

/** Small teal headings: #569396 (3.2 to 3.5:1) darkened to 4.9:1 or better **/
.fl-module.u7-teal-heading.fl-heading-text,
.fl-module.u7-teal-heading .fl-heading-text,
.fl-module.u7-teal-heading a {
	color: #3f7477 !important;
}

/** Fracture Link and News cards (WPCode): date stamps (3.3 to 3.5:1) and eyebrows (1.72:1) **/
:is(.oosfl-body, .oosfl-finfo) > .oosfl-date,
:is(.oosart-body, .oosart-featured) .oosart-date {
	color: #5f6e75;
}
.oosfl-finfo > .oosfl-eyebrow,
.oosart-featured .oosart-eyebrow {
	color: #8a6410;
}

/** All documents filter: visible labels above the fields, the Filter button level with them **/
.doc-filter .doc-filter-field {
	float: left;
	margin-right: 10px;
}
.doc-filter .doc-filter-field label {
	display: block;
	margin: 0 0 4px;
	font-size: 14px;
	line-height: 20px;
}
.doc-filter .doc-filter-field select,
.doc-filter .doc-filter-field input[type="text"] {
	float: none;
	margin-right: 0;
}
.doc-filter input[type="submit"] {
	margin-top: 24px;
}
/* style.css stacks the fields at full width from 1080px down */
@media screen and (max-width: 1080px) {
	.doc-filter .doc-filter-field {
		float: none;
		margin-right: 0;
	}
	.doc-filter input[type="submit"] {
		margin-top: 0;
	}
}

/** Dashboard sidebar widgets are divs now, with the spacing they had as list items **/
.fl-page-sidebar > .widget {
	padding: 5px 0;
}

/** Embed Any Document: the reload control is a button now, keep its link look **/
.ead-loading-foot .ead-loading-foot-actions {
	color: #1a1f2a;
}
.ead-loading-foot button.ead-document-btn {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	line-height: inherit;
}
/* The file name link under the viewer sits outside any paragraph, so the body link rules miss it */
.fl-module-content .ead-preview + a,
.fl-module-content .ead-preview + a:is(:hover, :focus),
.fl-module-content .ead-loading-foot a.ead-document-btn:is(:hover, :focus) {
	text-decoration: underline;
}
.fl-module-content .ead-preview + a:is(:hover, :focus) {
	color: #003545;
}

/**
 * LearnDash text greys (#728188: 4.02:1 on white, 3.24:1 on the #e2e7ed pager
 * bar) become #4f5e65, 5.4:1 or better on LearnDash's light panels. Same
 * selectors as LearnDash, which loads first; the pager arrows go with the
 * pager text. Status bubbles with their own colours (complete, waiting,
 * unlocked) keep them. Accent, complete and warning colours come from
 * u7_learndash_colors().
 */
.learndash-wrapper .ld-pagination,
.learndash-wrapper .ld-pagination .ld-pages a,
.learndash-wrapper .ld-pagination .ld-pages i,
.learndash-pager,
.learndash-pager a,
.learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-title .ld-item-components,
.learndash-wrapper .ld-content-actions .learndash_timer,
.learndash-wrapper .ld-focus .ld-focus-header .ld-user-menu .ld-text,
.learndash-wrapper .ld-status:where(:not(.ld-status-complete, .ld-status-waiting, .ld-status-unlocked, .ld-status-alert)),
.learndash-wrapper .ld-alert:where(:not(.ld-alert-success, .ld-alert-warning)),
.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab,
.learndash-wrapper .ld-course-status .ld-course-status-mode-subscribe .ld-text,
.learndash-wrapper .ld-course-status.ld-course-status-not-enrolled .ld-course-status-mode-subscribe .ld-course-status-price,
.learndash-wrapper .ld-course-status.ld-course-status-not-enrolled .ld-course-status-price,
.learndash-wrapper .ld-course-status.ld-course-status-not-enrolled .ld-course-status-label,
.learndash-wrapper .ld-course-status.ld-course-status-not-enrolled .ld-course-status-action .ld-text,
.learndash-wrapper .ld-item-list .ld-section-heading .ld-search-prompt,
.learndash-wrapper .ld-item-list .ld-item-search .ld-item-search-fields label,
.learndash-wrapper .ld-item-list .ld-item-search .ld-item-search-fields .ld-item-search-name .ld-reset-button,
.learndash-wrapper .ld-table-list .ld-table-list-item .ld-comments-column,
.learndash-wrapper .ld-table-list .ld-table-list-item .ld-comments-column a,
.learndash-wrapper .ld-file-upload .ld-file-upload-heading,
.learndash-wrapper .ld-profile-summary .ld-profile-card .ld-profile-edit-link,
.learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat span,
.learndash-wrapper .ld-focus-comment .ld-comment-avatar .ld-comment-avatar-author a.ld-comment-permalink,
.learndash-wrapper .ld-login-modal .ld-login-modal-login .ld-modal-text,
.learndash-wrapper .ld-login-modal .ld-login-modal-form label,
.learndash-wrapper .ld-login-modal input[type='text'],
.learndash-wrapper .ld-login-modal input[type='password'],
.learndash-wrapper .ld-login-modal input[type='email'],
.learndash-wrapper .ld-login-modal .ld-login-field,
.learndash-wrapper .ld-login-modal .ld-password-field,
.learndash-wrapper .wpProQuiz_content .wpProQuiz_loadQuiz,
.learndash-wrapper .wpProQuiz_content .wpProQuiz_prerequisite,
.learndash-wrapper .wpProQuiz_content .wpProQuiz_startOnlyRegisteredUser,
.learndash-wrapper .wpProQuiz_content .wpProQuiz_response,
.learndash-wrapper .wpProQuiz_content .wpProQuiz_time_limit .time,
.learndash-wrapper .wpProQuiz_quiz_time,
.learndash-wrapper .wpProQuiz_graded_points,
.learndash-wrapper .wpProQuiz_points {
	color: #4f5e65;
}
.learndash-wrapper .ld-pagination .ld-pages i:hover {
	color: #175d70;
}
.learndash-wrapper .ld-course-navigation .ld-pagination .ld-pages,
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-pagination .ld-pages {
	background-color: #4f5e65;
}
/* Quiz questions marked for review take the warning red as background; LearnDash keeps dark text on it */
.learndash-wrapper .wpProQuiz_content :is(.wpProQuiz_box, .wpProQuiz_reviewQuestion) li.wpProQuiz_reviewQuestionReview {
	color: #fff;
}
/**
 * LearnDash shows keyboard focus on its buttons only by fading them to 75%
 * with the outline removed, which takes the teal buttons under 4.5:1. Keep
 * them opaque and draw an outline instead.
 */
.learndash-wrapper .ld-button:focus,
.learndash-wrapper .ld-item-list .ld-item-search .ld-item-search-fields .ld-item-search-submit .ld-button:focus {
	opacity: 1;
	outline: 2px solid #175d70;
	outline-offset: 2px;
}
/**
 * Bone Health Learning styles its buttons yellow and its quiz list header
 * light teal, both with dark teal text, but LearnDash's own colour rules are
 * !important and paint them in the teal accent (1.8:1). Restore the Bone
 * Health colours with LearnDash's selectors under the Bone Health body class.
 */
body.bone-health-learning .learndash-wrapper .ld-button:not(.ld-button-reverse):not(.learndash-link-previous-incomplete):not(.ld-button-transparent),
body.bone-health-learning .learndash-wrapper .wpProQuiz_content .wpProQuiz_button:not(.wpProQuiz_button_reShowQuestion):not(.wpProQuiz_button_restartQuiz),
body.bone-health-learning .learndash-wrapper .wpProQuiz_content .wpProQuiz_button2,
body.bone-health-learning .learndash-wrapper .wpProQuiz_content .wpProQuiz_certificate a.btn-blue {
	background-color: var(--yellow, #f1b82c) !important;
}
body.bone-health-learning .learndash-wrapper .ld-button:not(.ld-button-reverse):not(.learndash-link-previous-incomplete):not(.ld-button-transparent):hover,
body.bone-health-learning .learndash-wrapper .wpProQuiz_content .wpProQuiz_button:not(.wpProQuiz_button_reShowQuestion):not(.wpProQuiz_button_restartQuiz):hover,
body.bone-health-learning .learndash-wrapper .wpProQuiz_content .wpProQuiz_button2:hover,
body.bone-health-learning .learndash-wrapper .wpProQuiz_content .wpProQuiz_certificate a.btn-blue:hover {
	background-color: var(--yellow-hover, #f3cc7e) !important;
}
body.bone-health-learning .learndash-wrapper .bone-health-lesson-content .ld-table-list-header.ld-primary-background {
	background: var(--teal-tint, #e8f4f7) !important;
}

/**
 * Gold eyebrows on the teal #175D70 (4.1:1) become a lighter gold (4.7:1):
 * the EMR toolkit rail (Additional CSS, !important), the teal WPCode rail and
 * the Fracture Journey course hero. Builder headings are handled in
 * functions/accessibility.php.
 */
html body .fl-builder-content .oos-rail-eyebrow.fl-heading-text,
html body .fl-builder-content .oos-rail-eyebrow .fl-heading-text {
	color: #f5c95a !important;
}
.oos-rail--teal .oos-rail__col .oos-rail__eyebrow,
.fj-hero-in .fj-eyebrow {
	color: #f5c95a;
}

/** "CHOOSE A LANGUAGE" labels on the resource pages: inline #7A949A on white (3.2:1) becomes a darker grey teal (4.9:1) **/
.fl-rich-text [style*="#7a949a" i] {
	color: #5f7479 !important;
}

/** Light teal #569396 set inline in page text (EMR toolkit notes, file type tags, callout titles): 3.2 to 3.5:1 becomes 4.9:1 or better **/
.fl-builder-content [style*="#569396" i] {
	color: #3f7477 !important;
}

/**
 * LTC Toolbox (WPCode snippet, prints later): route counts in white at 60%
 * on #005E72 (3.7:1), the Assess, Decide and Teach labels in gold on white
 * (2.3:1), format labels #777 (4.5:1 at 10px) and the primary card buttons,
 * white on #2D8590 (4.3:1).
 */
.oosltc-route .oosltc-k em {
	color: #c6dce1;
	opacity: 1;
}
.oosltc-bandhead .oosltc-idx {
	color: #8a6410;
}
.oosltc-body .oosltc-fmt {
	color: #5f6e75;
}
.oosltc-body .oosltc-acts a.is-primary {
	background: #25707a;
	border-color: #25707a;
}

/**
 * Materials ordering dashboard (styles in the page): table headers in the
 * light teal (3.5:1), low stock warnings in amber (3.4:1) and the "Internal"
 * badge text on amber (4.5:1, rounds down to a fail).
 */
html .oos-in th {
	color: #3f7477;
}
html .oos-in .warn {
	color: #8a6410;
}
html .oos-internal .b {
	color: #4a3606;
}

/** Hub cards on /patients/ (Additional CSS, !important): the gold call to action #F2B632 on the teal card (4.06:1) becomes the lighter gold (4.7:1) **/
html body .oos-hub-teal .oos-hub-cta,
html body .oos-hub-teal .oos-hub-cta a {
	color: #f5c95a !important;
}

/** Home "2 recruiting" badge (home layout): its own dark text loses to the skin's a.fl-button * white (1.82:1 on #F2B632); restore the dark teal, 6.45:1 **/
a.fl-button .oos-recruit-badge,
a.fl-button:is(:hover, :focus, :visited) .oos-recruit-badge {
	color: #1D3C45;
}

/** Find an FSPP site study panel (page layout, prints later): the gold eyebrow on #1B5E6E (4.01:1) becomes the lighter gold of the other eyebrows, 4.66:1 **/
html body .oos-fspp-study-text .oos-fspp-eyebrow {
	color: #f5c95a;
}

/** Patients page "Coming soon." tiles (page layout): the tile fades to 75%, which turns the #3D5A62 text into #6E8389 on #F5F7F8 (3.71:1). Darker text keeps the faded tile and renders at 5.11:1 **/
html body .oos-hf .oos-tile-soon .oos-tile-links p {
	color: #1D3C45;
}

/** Hip Fracture Pathway hero (page layout, prints later): the gold eyebrow on #1B5E6E (4.01:1) becomes the lighter gold of the other eyebrows, 4.66:1 **/
html body .oos-hf-hero .oos-eyebrow p {
	color: #f5c95a;
}

/** HPEO tools language labels (built by the page script): light teal #569396 on white (3.49:1) becomes the darker grey teal used for that colour elsewhere, 5.28:1 **/
html body .oos-bk .bk-lang {
	color: #3f7477;
}

/**
 * Bone Health lessons: plain links in the lesson text are teal on dark teal
 * text (1.78:1) with no underline, so they rely on colour (1.4.1). Underline
 * them and keep the underline on hover and focus.
 */
body.bone-health-learning .ld-focus-content .ld-tab-content :is(p, li, td, dd, blockquote) a:not([class]),
body.bone-health-learning .ld-focus-content .ld-tab-content :is(p, li, td, dd, blockquote) a:not([class]):is(:hover, :focus) {
	text-decoration: underline;
}
body.bone-health-learning .ld-focus-content .ld-tab-content :is(p, li, td, dd, blockquote) a:not([class]):is(:hover, :focus) {
	color: #003545;
}
/* Sidebar module number: white at 85% opacity, which axe misreads against the page grey (1.06:1). The same colour without opacity, 9.92:1 on the heading */
.bone-health-sidebar .bone-health-sidebar__module-number {
	color: #d9e1e3;
	opacity: 1;
}
