/*
Theme Name: Adonis Child (EPSS)
Theme URI: https://nilab.epss.ucla.edu/
Description: Child theme of Adonis for the UCLA EPSS PTXRt-Lab site. Accessibility adjustments only: visible keyboard focus, link colour contrast, body text size, header legibility, heading structure and control names. The parent theme is not modified.
Author: UCLA EPSS IT
Template: adonis
Version: 1.0.0.20261102
Requires at least: 5.9
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Text Domain: adonis-child
*/

/* The parent stylesheet is enqueued by functions.php; this file loads after it. */

/*--------------------------------------------------------------
1. Visible keyboard focus
   The parent sets a:focus { outline: none } and gives links no usable ring.
   Dark ring with a white halo so it is visible on white, on the dark footer
   and over the header photo.
--------------------------------------------------------------*/
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #fff;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
input[type="search"]:focus-visible,
input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="url"]:focus-visible,
input[type="submit"]:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 2px;
}

a:hover:focus-visible,
a:active:focus-visible {
	outline-width: 2px;
}

/*--------------------------------------------------------------
2. Link colour and link distinction
   #1982c4 on white = 4.17:1. #166aa8 = 5.7:1 and keeps the hue.
   Breadcrumb and footer links are also underlined so they are not
   distinguished by colour alone.
--------------------------------------------------------------*/
a {
	color: #166aa8;
}

.entry-breadcrumbs a,
.entry-breadcrumbs a:hover,
.entry-breadcrumbs a:focus,
.entry-breadcrumbs a:active,
.site-info a,
.site-info a:hover,
.site-info a:focus,
.site-info a:active {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/*--------------------------------------------------------------
3. Body text size
   wp-admin/css/common.css reaches the public pages (loaded as a dependency
   of the block plugin's editor styles) and sets p { font-size: 13px }.
   Restore the theme's own 16 px / 1.75 body text.
--------------------------------------------------------------*/
p {
	font-size: 1rem;
	line-height: 1.75;
}

/*--------------------------------------------------------------
4. Header legibility
   White menu text and site title sit on the header photo. A dark band
   behind the menu bar and a soft shadow behind the title. (The photo
   itself is the parent's .custom-header::before background; untouched.)
--------------------------------------------------------------*/
.absolute-header .site-header {
	background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0) 100%);
}

.custom-header-content .site-title a,
.custom-header-content .site-description {
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

/*--------------------------------------------------------------
5. 404 page heading (template 404.php in this theme)
--------------------------------------------------------------*/
.error-404 .page-header {
	margin-bottom: 20px;
}
