/*
Theme Name: Twenty Twenty-Five CHILD for the BKW site
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: CHILD THEME of the Twenty Twenty-Five Wordpress Theme.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
	1.0 Links and buttons
		1.1 Links - Visited, hover and focus styles
		1.2 Links - Link color inside blocks with a background color
		1.3 Links - External and pdf link indicators
		1.4 Links - Lists of links
		1.5 Button styles
	2.0 Navigation
		2.1 Navigation - MAIN
		2.2 Navigation - SECONDARY
		2.3 Navigation - SCHOOLS
		2.4 Navigation - SEARCH and TRANSLATE
	3.0 Header
	4.0 Footer
	5.0 Pages
		5.1 Page - Search Results
		5.2 Page - Staff Directory Results
	6.0 Features
		6.1 Features - Special Alert Bar
		6.2 Features - ICS Calendar
		6.3 Features - ICS Calendar - Grid View
		6.4 Features - Yoast Breadcrumbs
	7.0 Media Queries

/*--------------------------------------------------------------
 * 1.0 Links and buttons
 --------------------------------------------------------------*/

/* 1.1 Links - Visited, hover and focus styles  */

:focus-visible {
	outline: 3px solid;
}

.focus-visible-white a:focus,
.focus-visible-white img:hover {
	color: #fff !important;
	opacity: 0.7;
	outline: 1px dotted !important;
}

a:hover,
a:focus,
a:where(:not(.wp-element-button)):hover,
a:where(:not(.wp-element-button)):focus {
	text-decoration: underline;
	text-decoration-style: solid;
	text-decoration-thickness: 2px;
}

a:where(:not(.wp-element-button)):visited {
    color: #800080;
}

/* 1.2 Links - Link color inside blocks with a background color */

footer a:where(:not(.wp-element-button)),
footer a:where(:not(.wp-element-button)):visited,
.has-background a:where(:not(.wp-element-button)),
.has-background a:where(:not(.wp-element-button)):visited { 
    color: inherit;
}

/* Set visited link colors based on what color is used for the background.*/
.has-background-color.has-contrast-background-color a:visited { 
    color: inherit;
}

/* 1.3 Links - External and pdf link indicators */

a[rel=" nofollow"]:after, /* Note: Do not remove the space before nofollow on this line. This is a fix for an extraneous space coming in on buttons in the WP editor */
a[rel="nofollow"]:after,
a[rel="noreferrer"]:after,
a[rel="noopener"]:after,
a[rel="nofollow noreferrer"]:after,
a[rel="nofollow noopener"]:after,
a[rel="noreferrer nofollow"]:after,
a[rel="noreferrer noopener"]:after,
a[rel="noopener nofollow"]:after,
a[rel="noopener noreferrer"]:after,
a[rel="nofollow noreferrer noopener"]:after,
a[rel="nofollow noopener noreferrer"]:after,
a[rel="noreferrer nofollow noopener"]:after,
a[rel="noreferrer noopener nofollow"]:after,
a[rel="noopener nofollow noreferrer"]:after,
a[rel="noopener noreferrer nofollow"]:after {
    font-family: FontAwesome;
	font-size: small;
    content:' \f08e';
    margin: 0;
}

a[href$=".pdf"]:after {
    font-family: FontAwesome;
    font-size: small;
    font-size: 0.8125rem;
    content:' \f1c1';
    margin: 0;
}

/* 1.4 Links - Lists of links */

ul.featuredlinks,
.featuredlinks ul {
	list-style: none;
	padding-left: 0;
}


ul.featuredlinks li:before,
.featuredlinks ul li:before {
    color: var(--wp--preset--color--accent-2);
    content: "\f101";
	font-family: FontAwesome;
	font-weight: 900;
	font-size: 1.5em;
	margin-right: 0.25em;
	margin-top: -10px;
    vertical-align: sub;
}

ul.featuredlinks,
.featuredlinks ul {
	list-style: none;
	padding-left: 0;
	color: #ffffff;
}

ul.featuredlinks li,
.featuredlinks ul li {
	font-size: var(--wp--preset--font-size--medium-large);
	color: var(--wp--preset--color--accent-2);
	text-decoration: none !important;
	margin-top: 0 !important;
}

ul.listoflinks,
.listoflinks ul {
	list-style: none;
	padding-left: 0;
}


ul.listoflinks li:before,
.listoflinks ul li:before {
    color: var(--wp--preset--color--accent-3);
    content: "\f101";
	font-family: FontAwesome;
	font-weight: 900;
	font-size: 1.5em;
	margin-right: 0.25em;
	margin-top: -10px;
    vertical-align: sub;
}

ul.listoflinks,
.listoflinks ul {
	list-style: none;
	padding-left: 0;
	color: #ffffff;
}

ul.listoflinks li,
.listoflinks ul li {
	font-size: var(--wp--preset--font-size--medium-large);
	color: var(--wp--preset--color--base);
	text-decoration: none !important;
	margin-top: 0 !important;
	line-height: 1.25;
}
/* 1.5 Button styles */

/* Set a global button hover style. This is needed because when a button color is set manually in the editor, it overrides the hover color set via the json. */
.wp-block-button__link.wp-element-button:hover {
	background-color: var(--wp--preset--color--contrast) !important;
}

/* Set button hover styles based on what color is used for the button text.*/
.wp-block-button__link.has-contrast-color.wp-element-button:hover,
.wp-block-button__link.has-accent-color.wp-element-button:hover,
.wp-block-button__link.has-accent-2-color.wp-element-button:hover {
	background-color: var(--wp--preset--color--accent-5) !important;
}

.wp-block-button__link.has-base-background-color.wp-element-button:hover,
.wp-block-button__link.has-accent-3-background-color.wp-element-button:hover {
	background-color: var(--wp--preset--color--base-2) !important;
}

/*--------------------------------------------------------------
 * 2.0 Navigation
 --------------------------------------------------------------*/

/* 2.1 Navigation - MAIN - Add class of mainnav to the nav block in WP */

.wp-block-navigation.mainnav .wp-block-navigation-item a:hover, 
.wp-block-navigation.mainnav .wp-block-navigation-item a:focus,
.wp-block-navigation.mainnav .wp-block-navigation-item a[aria-current="page"] {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	border-bottom: 4px solid var(--wp--preset--color--accent);
	max-height: 22px;
}

/* 2.2 Navigation - SECONDARY - Add class of secondarynav to the nav block in WP */

/* 2.3 Navigation - SCHOOL - Add class of schoolnav to the nav block in WP */

/* 2.4 Navigation - SEARCH and TRANSLATE */

.wp-block-search__button {
	padding: 2px 1em;
}

/* 2.5 Navigation - MOBILE */

button.wp-block-navigation__responsive-container-open.always-shown::after {
	content: 'MENU';
	font-weight: 700;
}

.mobilenav div.wp-block-spacer {
	background-color: var(--wp--preset--color--accent-2);
	width: 100% !important;
	height: 2px !important;
}

.wp-block-navigation.mobilenav .wp-block-navigation-item a:hover,
.wp-block-navigation.mobilenav .wp-block-navigation-item a:focus,
.wp-block-navigation.mobilenav .wp-block-navigation-item a[aria-current="page"]{
	color: var(--wp--preset--color--base);
	background-color: var(--wp--preset--color--accent);
	width: 100%;
}

/* 2.6 Navigation - CONNECT LINKS */

div.wp-block-buttons.featured-btn-1 img {
	height: 80px;
	margin-bottom: 0.25em;
	width: 100%;
}

.featured-btn-1 a.wp-block-button__link {
    background-color: transparent !important;
	border-radius: 10px;
}

.featured-btn-1 a.wp-block-button__link:hover {
    background-color: var(--wp--preset--color--accent-2) !important;
	border-radius: 10px;
}

div.wp-block-buttons.featured-btn-2 img {
	height: 80px;
	margin-bottom: 0.25em;
	width: 100%;
}

.featured-btn-2 a.wp-block-button__link {
    background-color: transparent !important;
	border-radius: 10px;
}

.featured-btn-2 a.wp-block-button__link:hover {
    background-color: var(--wp--preset--color--accent) !important;
	border-radius: 10px;
}

.more-link:after {
    color: inherit;
    content: "\f061";
    font-family: FontAwesome;
	font-weight: 900;
    margin-left: 0.25em;
    vertical-align: baseline;
}

/*--------------------------------------------------------------
 * 3.0 Header
 --------------------------------------------------------------*/
.headerlogo {
	z-index: 100;
	filter: drop-shadow(3px 3px 5px #00000080);
}
.headermain {
/*	filter: drop-shadow(3px 3px 5px #00000080);*/
	box-shadow: 3px 3px 5px #00000080;
}

/*--------------------------------------------------------------
 * 4.0 Footer
 --------------------------------------------------------------*/

footer.wp-block-template-part {
	position: relative;
	padding: 50px 40px 25px;
	background-color: var(--wp--preset--color--accent);
	background-image: url(https://bkw.neric.org/wp-content/uploads/2025/11/BKW_footer.svg),linear-gradient(90deg, var(--wp--preset--color--accent-2), var(--wp--preset--color--accent));
	background-position: 100% 20px,0;
	background-repeat: no-repeat;
}
/*--------------------------------------------------------------
 * 5.0 Pages
 --------------------------------------------------------------*/

/* 5.1 Page - Search Results */

/* Add icons before results of different types — page, post, pdf */

body.search.search-results .wp-block-query li.type-page h2.wp-block-post-title::before {
    content: "\f108";
    font-family: 'FontAwesome';
    color: var(--wp--preset--color--contrast-2);
    padding-right: 0.25em;
    text-transform: uppercase;
}
    
body.search.search-results .wp-block-query li.type-post h2.wp-block-post-title::before {
    content: "\f1ea";
    font-family: 'FontAwesome';
    color: var(--wp--preset--color--contrast-2);
    padding-right: 0.25em;
    text-transform: uppercase;
}

body.search.search-results .wp-block-query li.type-pdf h2.wp-block-post-title::before {
    content: "\f1c1";
    font-family: 'FontAwesome';
    color: var(--wp--preset--color--contrast-2);
    padding-right: 0.25em;
    text-transform: uppercase;
}






/* 5.2 Page - Staff Directory Results */
/* Staff Directory Results styles */

.noblanks {
	margin-left: 2em;
	font-weight: bold;
}

.noresults {
	margin-left: 2em;
	font-weight: bold;
}

table#datatable.tablesorter.staff {
	width: 90%;
}

table#datatable.tablesorter.staff thead tr {
	text-align: left;
	background-color: #e5ae20; /* Updated to Dark Blue*/
	color: #00174a; /* Updated to Yellow*/
}

table#datatable.tablesorter.staff tr:nth-child(even) {
	background-color: #f2f2f2;
}

thead tr th.header {
	cursor: pointer;
}



/* 5.3 Page - Home */

.row1column1 {
	z-index: 1;
	mask-image: linear-gradient(to right, #000 70%, transparent 95%);
}

div.row1column2 {
	z-index: 2;
}

.schoolcolumns {
	display: flex;
}

/* 5.4 Page - Default */

.defaultcontent {
	background: linear-gradient(
    to right,
    color: var(--wp--preset--color--accent) 0%,
    color: var(--wp--preset--color--accent) 70%,
    color: var(--wp--preset--color--base-2) 70%,
    color: var(--wp--preset--color--base-2) 100%
  );
}

ul.wp-block-latest-posts li,
.wp-block-latest-posts ul li {
	font-size: var(--wp--preset--font-size--medium);
	text-decoration: none !important;
	margin-top: 10px !important;
}

/*--------------------------------------------------------------
 * 6.0 Features
 --------------------------------------------------------------*/

/* 6.1 Features - Special Alert Bar */

.special-alert h1:after {
    content:"\f06a";
    color: var(--wp--preset--color--base);
    margin-left:0.5em;
    font-family:'FontAwesome';
    font-weight:normal;
}

/* 6.2 Features - ICS Calendar */

.homecal .ics-calendar-date-wrapper .ics-calendar-date {
    background: var(--wp--preset--color--accent-3)!important;
    color: var(--wp--preset--color--accent-2)!important;
    margin: 0 15px 0 0;
    padding: 0.75em 0.75em;
    max-width: 4em;
    min-width: 4em;
    text-align: center;
    text-transform: uppercase;
    font-size: var(--wp--preset--font-size--large);
 	font-weight: 700;
	border-radius: 10px;
}

.homecal .ics-calendar-date-wrapper .ics-calendar-date .multiday-end {
	font-size: 75%;
}

.homecal .ics-calendar-date-wrapper {
	display: flex;
	align-items: flex-start;
	padding-bottom: .5em;
    margin-bottom: 1em;
    border-bottom: 3px solid var(--wp--preset--color--accent-3);
}

.homecal .ics-calendar-list-wrapper .ics-calendar-label {
	display: none!important;
}

.homecal dl.events {
	margin: 0 0 1.5em;
	flex-basis: calc(100% - 3em);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--medium-large)!important;
}

.homecal dl.events dd.event {
	font-weight: 700!important;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--base)!important;
}

.homecal .ics-calendar dl.events dt.time,
.homecal .ics-calendar dl.events dt.all-day-indicator {
    font-size: 90%;
    font-weight: 400;
	padding-top: .5rem;
    text-transform: uppercase;
}

.dayschedule .ics-calendar-list-wrapper .ics-calendar-label {
	display: none!important;
}

.dayschedule .ics-calendar-date {
	align-items: center;
	text-align: center;
	color: var(--wp--preset--color--accent-2);
	font-size: var(--wp--preset--font-size--large);
	font-family: var(--wp--preset--font-family--nunito-sans);
}

.dayschedule dl.events dd.event {
	align-items: center;
	text-align: center;
	color: var(--wp--preset--color--accent-2);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 900!important;
	margin: 0;
}

.dayschedule .ics-calendar dl.events {
	align-items: center;
	text-align: center;
	color: var(--wp--preset--color--accent-2);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 900!important;
	margin: 0!important;
}

.dayschedule div.ics-calendar-paginate-wrapper {
	clear: both;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	margin: .5rem 0 !important;
	width: 100%;
	color: var(--wp--preset--color--accent-2);
}
	

/* 6.3 Features - ICS Calendar - Grid View */

/* 6.4 Features - Yoast Breadcrumbs */

.yoast-breadcrumbs {
	color: var(--wp--preset--color--contrast);
	font-size: 1rem;
	font-family: 'Open Sans', sans-serif;
}

.yoast-breadcrumbs a {
	color: var(--wp--preset--color--contrast);
}

/* 6.5 Features - Post Queries */

.homenews hr {
	border-width: 0 0 3px 0;
	max-width: 33%;
}

.homenews h3:hover + hr {
	max-width: 90%;
	transition: max-width .2s;
}

/*--------------------------------------------------------------
 * 7.0 Media Queries
 --------------------------------------------------------------*/

/*  --Responsive TABLES--
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media 
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {

	/* Force table to not be like tables anymore */
	table, thead, tbody, th, td, tr { 
		display: block; 
		margin-bottom: 0px;
	}
	
	table th {
	background:#eeeeee;
	border: 1px solid #dddddd;
	padding: 20px 5px; 
	}

	
	
	/* Hide table headers (but not display: none;, for accessibility) */
	thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
	tr { border: 1px solid #ccc; }
	
	td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		padding: 7% 2%;
		height: auto;
	}
	
	td:before { 
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 2px;
		left: 6px;
		width: 45%; 
		padding-right: 10px; 
		white-space: nowrap;
	}
	
	/* Label the data for staff directory table */
	.staff td:nth-of-type(1):before { content: "Last:"; font-weight: bold; }
	.staff td:nth-of-type(2):before { content: "First:"; font-weight: bold; }
	.staff td:nth-of-type(3):before { content: "Email:"; font-weight: bold; }
	.staff td:nth-of-type(4):before { content: "Phone:"; font-weight: bold; } 
	.staff td:nth-of-type(5):before { content: "Building:"; font-weight: bold; } 
	.staff td:nth-of-type(6):before { content: "Title:"; font-weight: bold; } 

}




@media screen and (max-width: 1670px) {
	div.headerlogo img {
		width: 600px !important;
		margin: 25px 0px;
	}
	
	div.headerlogocolumn {
		flex-basis: 275px !important;
	}
}

@media screen and (max-width: 1550px) {
	.wp-block-navigation.mainnav .wp-block-navigation-item a {
		font-size: 1rem !important;
	}

}

@media screen and (max-width: 1366px) {
	.wp-block-navigation.mainnav .wp-block-navigation-item a {
		font-size: 0.875rem !important;
	}

}

@media screen and (max-width: 1320px) {
	.wp-block-navigation.mainnav .wp-block-navigation-item a {
		font-size: 1.2rem !important;
	}

}

@media screen and (min-width: 1024px) and (max-width: 1320px) {
	
}

@media screen and (min-width: 1100px) {
	div.mobilenav {
		display: none!important;
	}
	div.desktopnav {
		display: block!important
	}

}

@media screen and (max-width: 1100px) {
	div.desktopnav {
		display: none !important;
	}
	
	.button-grid-1 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media screen and (max-width: 900px) {

	
} 

@media screen and (max-width: 783px) {
	
	/* The 783px query is for the ICS calendar only because 783px is the point where it switches from list to grid view. */ 

	
}

@media screen and (min-width: 782px) {
	figure.wp-block-image.aligncenter.size-full.is-resized.mobilelogo {
		display: none;
	}
	figure.desktoplogo {
		display: block;
	}

}

@media screen and (max-width: 782px) {
	
	div.tagline {
		text-align: center;
		margin-left: 96px;
		padding-top: 0px!important;
	}
	
	div.headerlogo {
		margin-bottom: 0px!important;
	}
	
	div.headermain {
		padding: 0px !important;
	}
	
	figure.desktoplogo {
		display: none !important;
	}
	
	.row1column1 {
	mask-image: none;
	}
	
	div.searchtranslate {
		justify-content: center;
	}
	
	div.headerlogo img {
		width: 600px !important;
		margin: 0px 0px;
	}
	
	.button-grid-1 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	
	.schoolcolumns {
		flex-direction: column-reverse;
	}
}


@media screen and (max-width: 600px) {
	
	
}

