/* Legacy Accessibility (audits of 10 Oct and 23 Nov 2026). Loaded on every public page. */

/* 1. Keyboard focus is visible everywhere (WCAG 2.4.7, 1.4.11).
      Green ring with a white inner halo: shows on white, on the dark green panels and over the video. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid #1d7a3f !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 2px #ffffff !important;
}
/* The skip link sends focus to the content block itself; a ring around the whole page says nothing. */
#lam-main:focus-visible,
[role="main"]:focus-visible,
main:focus-visible { outline: none !important; box-shadow: none !important; }
/* The logo link is 0 px wide (its images are absolutely positioned), so ring the image instead. */
.q_logo a:focus-visible { outline: none !important; box-shadow: none !important; }
.q_logo a:focus-visible img { outline: 3px solid #1d7a3f; outline-offset: 2px; box-shadow: 0 0 0 2px #ffffff; }

/* 2. Desktop drop-downs open for keyboard users, not only on hover (WCAG 2.1.1). */
nav.main_menu li.has_sub:focus-within > .second {
	visibility: visible !important;
	opacity: 1 !important;
	overflow: visible !important;
	height: auto !important;
}
/* Third level (the neighborhood pages under Historic Districts). */
.drop_down .second .inner ul li:focus-within > ul {
	display: block !important;
	z-index: 20;
}

/* 3. Skip link (the script adds the link). Hidden until focused (WCAG 2.4.1). */
.lam-skip {
	position: absolute;
	left: 1rem;
	top: -5rem;
	z-index: 100000;
	padding: 0.75rem 1.25rem;
	background: #1d7a3f;
	color: #ffffff !important;
	font-weight: 600;
	text-decoration: underline;
}
.lam-skip:focus { top: 1rem; }

/* 4. Mobile home hero: the headline and buttons stay at opacity 0 below 1000 px (WCAG 1.3.1, 2.4.7). */
@media (max-width: 1000px) {
	.carousel-inner .slider_content .text { opacity: 1 !important; }
}

/* 5. Links inside running text are underlined, not told apart by color alone (WCAG 1.4.1).
      The third selector covers the move-out checklist on /residents/. */
.content p a:not([class*="btn"]):not([class*="button"]),
.content li a:not([class*="btn"]):not([class*="button"]),
.content .res-check-item a:not([class*="btn"]) {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* 6. Visually hidden, still read aloud. */
.lam-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* 7. Respect "reduce motion" for anything the theme animates (WCAG 2.3.3 good practice). */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* 8. Mobile menu icon: white bars on a dark green tile instead of grey #777 over the film (WCAG 1.4.11).
      White on #162D1A is 14.74:1. The padding also makes the target at least 24 px (2.5.8). */
.mobile_menu_button > span > i {
	display: inline-block;
	padding: 7px;
	background: #162d1a;
	color: #ffffff !important;
	border-radius: 2px;
}
/* Open mobile menu: link text #888888 on white is 3.54:1 and the current/hover teal #1ABC9C is 2.41:1 (WCAG 1.4.3).
   No !important, so the listing pages' own white-on-dark menu still wins. */
nav.mobile_menu ul li a,
nav.mobile_menu ul li h3 { color: #595959; }
nav.mobile_menu ul li a:hover,
nav.mobile_menu ul li.active > a { color: #1d7a3f; }

/* 9. Escape closes an open desktop drop-down (WCAG 1.4.13). The script adds the class on Escape
      and removes it when the pointer or keyboard focus leaves the menu item. */
nav.main_menu > ul > li.has_sub.lam-esc > .second,
nav.main_menu > ul > li.has_sub.lam-esc > .second * {
	visibility: hidden !important;
}
nav.main_menu > ul > li.has_sub.lam-esc > .second { opacity: 0 !important; }

/* 10. The pause button the script puts on a background film (WCAG 2.2.2). */
.lam-video-toggle {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	z-index: 60;
	padding: 0.5rem 0.9rem;
	background: #162d1a;
	color: #ffffff;
	border: 1px solid #ffffff;
	border-radius: 2px;
	font: 600 14px/1.2 inherit;
	font-family: inherit;
	cursor: pointer;
}
.lam-video-toggle:hover { background: #1d7a3f; }
.lam-video-toggle[hidden] { display: none; }
/* The rental-analysis film fills a panel taller than a laptop screen, so its button sits at the top, clear of the form. */
.lq-hero .lam-video-toggle { top: 0.5rem; bottom: auto; left: 1rem; right: auto; }

/* 11. Muted brand colors that failed text contrast (WCAG 1.4.3). Each replacement was checked with the WCAG formula.
       On dark green #162D1A: #9AA596 is 5.75:1, #A3AD9F is 6.34:1. On mint #DCEBDE and tan: #176A36 is 5.39:1 or better. */
.lam-dre,
.abt-dre,
.lam-hero-stat-label,
.abt-stat-label,
.abt-pull-attr { color: #9aa596 !important; }
.lam-cta-sub,
.abt-cta-sub { color: #a3ad9f !important; }
.lsm-btn.lsm-btn-ghost { color: #176a36 !important; }
/* Resident Resources: green links on the tan bands were 4.24:1; this darker green passes there. */
section.tint.band .col a:not([class]) { color: #176a36 !important; }

/* 12. The footer rows: the legal links and the help line. Colors are forced because several pages
       restyle every paragraph inside the content area. */
.lam-a11y-legal,
.lam-a11y-help {
	margin: 0;
	padding: 6px 20px;
	background: #162d1a;
	color: #f2ede3 !important;
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}
.lam-a11y-legal { padding-top: 16px; }
.lam-a11y-help { padding-bottom: 16px; }
.lam-a11y-legal a,
.lam-a11y-help a { color: #ffffff !important; text-decoration: underline; text-underline-offset: 0.15em; }
