/* =========================================================================
 *  accessibility.css  —  child theme   (v1.1)
 *  Visible focus indicators, skip link, button-reset for menu parents
 *  (now matched precisely to the parent theme's link styling), and
 *  contrast corrections.
 * ====================================================================== */

/* -------------------------------------------------------------------------
 * 1. VISIBLE FOCUS INDICATORS
 * ---------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
.os-back-to-top:focus-visible,
.mobile-menu-toggler:focus-visible,
.mobile-menu-search-toggler:focus-visible,
.menu-parent-toggle:focus-visible {
	outline: 3px solid #1b2638;
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #ffffff;
	border-radius: 2px;
}

a:focus,
button:focus,
[role="button"]:focus,
input:focus,
.menu-parent-toggle:focus {
	outline: 3px solid #1b2638;
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------
 * 2. SKIP LINK
 * ---------------------------------------------------------------------- */
.lou-skip-link.screen-reader-text:focus {
	z-index: 1000000;
	background: #1b2638;
	color: #ffffff;
	padding: 14px 22px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 0 0 4px 0;
}

#lou-main:focus {
	outline: none;
}

/* -------------------------------------------------------------------------
 * 3. MENU PARENT <button> RESET  (matches parent theme link styles)
 * -------------------------------------------------------------------------
 * Parent theme top-level links use:
 *     .top-menu > ul > li > a { padding: 15px 0; display: inline-block;
 *                               vertical-align: middle; }
 * with a font-icon caret on  .menu-item-has-children > a:before  ('osfont'
 * glyph "\e936", 14px, left:15px) and a reserved gutter via
 *     li.menu-item-has-children { padding-left: 35px }.
 *
 * We (a) strip native button chrome, (b) copy that exact box model so the
 * buttons align with the links, and (c) re-point the theme's own caret icon
 * onto the <button> so parents look identical to before the a->button swap.
 * ---------------------------------------------------------------------- */

/* (a) strip button chrome; pull typography from the sibling menu <a> */
.top-menu .menu-parent-toggle,
.fixed-top-menu-w .menu-parent-toggle,
#mobile-header-menu .menu-parent-toggle {
	background: none;
	border: 0;
	margin: 0;
	font-family: inherit;
	font-size: 1.2rem;
	font-weight: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	line-height: inherit;
	cursor: pointer;
	color: #ffffff;   /* match the theme's menu link color */
}

/* (b) desktop + fixed header: match  > li > a  box exactly */
.top-menu > ul > li > .menu-parent-toggle,
.fixed-top-menu-w > ul > li > .menu-parent-toggle {
	padding: 15px 0;
	display: inline-block;
	vertical-align: middle;
}

/* (b) mobile: match the theme's centered, block-level link padding */
#mobile-header-menu .menu-parent-toggle {
	display: block;
	width: 100%;
	text-align: center;
	padding: 10px 10px;
	color: #fff;
	font-weight: 700;
}

/* (c) re-point the theme caret (glyph "\e936" in the 'osfont' icon font)
 *     onto the desktop button. The parent already reserves the 35px gutter
 *     via  li.menu-item-has-children { padding-left: 35px }. */
.top-menu > ul > li.menu-item-has-children > .menu-parent-toggle:before {
	font-family: 'osfont' !important;
	content: "\e936";
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	position: absolute;
	font-size: 14px;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	transition: all 0.2s ease;
}

/* Drop the custom triangle now that the native theme caret is restored. */
.menu-toggle-caret {
	display: none !important;
}

/* -------------------------------------------------------------------------
 * 4. CONTRAST CORRECTIONS
 *    Gold accent (#c8a34c) on white is ~2.4:1 — fails AA for text links.
 *    Darkened to #8a6d1f (~4.6:1) for text links only; decorative gold bars
 *    left untouched.
 * ---------------------------------------------------------------------- */
.os-text-and-image .sub-title,
.textwidget a,
.footer-copyright a,
p a {
	color: #8a6d1f;
}

#superlawyers-year {
	color: #6f7276;
}
#superlawyers-year::before {
	background-color: #6f7276;
}

/* -------------------------------------------------------------------------
 * 5. LOADING SCREEN — hide from assistive tech
 * ---------------------------------------------------------------------- */
.loading-screen-w {
	pointer-events: none;
}
body.without-loading .loading-screen-w {
	display: none !important;
}