/*
Theme Name:   Emerald Meadows (Twenty Twenty-Five Child)
Theme URI:    https://www.emeraldmeadows.org/
Description:  Child theme of Twenty Twenty-Five for the Emerald Meadows Homeowners Association, Tract 1355, Crescent Lake, Oregon. Full-width layout, Diamond Peak banner with live text, left sidebar.
Author:       Blink New Media
Author URI:   https://www.blinknewmedia.com
Template:     twentytwentyfive
Version:      1.0.5
Requires at least: 6.7
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  emerald-meadows
*/

/* Colors, fonts, sizes and spacing live in theme.json (Styles in the Site Editor).
   This file only holds the few layout details theme.json cannot express. */

/* ---------- Banner (header template part) ---------- */
.em-hero {
	position: relative;
	min-height: 440px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background-color: var(--wp--preset--color--forest-deep);
	isolation: isolate;
}
.em-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(8, 24, 12, .62) 0%, rgba(8, 24, 12, .25) 45%, rgba(8, 24, 12, 0) 70%);
	pointer-events: none;
}
.em-hero__text {
	width: 100%;
	padding-bottom: 56px;
	color: #fff;
}
.em-hero__text > * {
	margin-block: 0;
}
.em-hero .em-hero__kicker {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	margin-bottom: 6px;
}
.em-hero .em-hero__title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 900;
	font-size: clamp(44px, 6vw, 76px);
	line-height: 1.05;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.em-hero .em-hero__title a {
	color: #fff;
	text-decoration: none;
}
.em-hero .em-hero__sub {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: .06em;
	margin-top: 6px;
}
@media (max-width: 781px) {
	.em-hero { min-height: 300px; }
	.em-hero__text { padding-bottom: 32px; }
}

/* ---------- Menu bar ---------- */
.em-navbar {
	padding-block: 6px;
}
.em-navbar .wp-block-navigation a {
	text-decoration: none;
	padding: 10px 14px;
	display: inline-block;
}
.em-navbar .wp-block-navigation a:hover,
.em-navbar .wp-block-navigation a:focus-visible,
.em-navbar .wp-block-navigation .current-menu-item > a {
	box-shadow: inset 0 -3px 0 var(--wp--preset--color--sage);
}
.em-navbar .wp-block-navigation__container {
	gap: 4px;
}
.em-navbar .wc-block-mini-cart__button,
.em-navbar .wp-block-woocommerce-customer-account a,
.em-navbar .wp-block-woocommerce-customer-account svg {
	color: #fff;
	fill: currentColor;
}

/* Light button style (white button on the green menu bar) */
.wp-block-button.is-style-em-light .wp-block-button__link {
	background: #fff;
	color: var(--wp--preset--color--forest);
}
.wp-block-button.is-style-em-light .wp-block-button__link:hover {
	background: var(--wp--preset--color--meadow-tint);
	color: var(--wp--preset--color--forest-deep);
}

/* ---------- Sidebar + content layout ---------- */
.em-layout {
	gap: 48px;
}
.em-sidebar .wp-block-search__label,
.em-sidebar .em-side-heading {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 18px;
	color: var(--wp--preset--color--forest);
}
.em-sidebar .em-side-heading {
	margin: 0 0 6px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--wp--preset--color--forest);
}
.em-sidebar .em-side-nav,
.em-sidebar .em-side-nav .wp-block-navigation__container {
	gap: 2px;
	font-size: 17px;
	margin-top: 0;
}
.em-sidebar .em-side-nav a {
	display: block;
	padding: 4px 0;
	text-decoration: none;
}
.em-sidebar .em-side-nav a:hover,
.em-sidebar .em-side-nav a:focus-visible {
	text-decoration: underline;
}
.em-sidebar .em-side-nav .em-side-nav__child a {
	padding-left: 18px;
}
.em-sidebar .wp-block-buttons,
.em-sidebar .wp-block-button,
.em-sidebar .wp-block-button__link {
	width: 100%;
}
@media (max-width: 781px) {
	/* On phones the page content comes first, then the sidebar. */
	.em-layout { flex-direction: column; }
	.em-layout > .em-content { order: 1; }
	.em-layout > .em-sidebar { order: 2; }
}

/* ---------- Content details ---------- */
.em-panel {
	border-radius: 10px;
}
.wp-block-table table {
	background: #fff;
}

/* ---------- Forms in page content (contact form, WooCommerce fields) ---------- */
.em-content input[type="text"],
.em-content input[type="email"],
.em-content input[type="tel"],
.em-content input[type="url"],
.em-content input[type="number"],
.em-content select,
.em-content textarea {
	font: inherit;
	font-size: 17px;
	width: 100%;
	max-width: 560px;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #b9c4b6;
	border-radius: 6px;
	background: #fff;
	color: var(--wp--preset--color--contrast);
}
.em-content textarea {
	max-width: 100%;
	min-height: 160px;
}
.em-content input:focus-visible,
.em-content select:focus-visible,
.em-content textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--forest);
	outline-offset: 1px;
}
.em-content input[type="submit"],
.em-content button[type="submit"] {
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	padding: 12px 26px;
	border: 0;
	border-radius: 6px;
	background: var(--wp--preset--color--forest);
	color: #fff;
	cursor: pointer;
}
.em-content input[type="submit"]:hover,
.em-content button[type="submit"]:hover {
	background: var(--wp--preset--color--forest-deep);
}
.em-content .wp-block-html iframe {
	display: block;
	border: 0;
	border-radius: 10px;
}

/* ---------- Board of Directors (PTA Member Directory table) ---------- */
.ptamd_directory_table{
	background:#fff;
	border:1px solid var(--wp--preset--color--line,#DDE3DA);
	border-radius:10px;
	overflow-x:auto;
	margin-top:14px;
}
.ptamd_directory_table table.pta_directory_table{
	width:100%;
	border-collapse:collapse;
	border:0;
	margin:0;
	font-size:17px;
	line-height:1.5;
}
.ptamd_directory_table .pta_directory_table th,
.ptamd_directory_table .pta_directory_table td{
	padding:12px 18px;
	border:0;
	text-align:left;
	vertical-align:top !important; /* plugin sets inline middle */
}
.ptamd_directory_table .pta_directory_table thead th,
.ptamd_directory_table .pta_directory_table tr:first-child th{
	background:#F0F3EE;
	font-weight:700;
	color:var(--wp--preset--color--ink,#1A2E20);
}
.ptamd_directory_table .pta_directory_table tbody tr{
	border-top:1px solid #E5EAE2;
}
.ptamd_directory_table .pta_directory_table td:first-child:nth-last-child(3){
	font-weight:600;
	color:var(--wp--preset--color--forest,#1E4D2B);
}
.ptamd_directory_table .pta_directory_table a{
	color:var(--wp--preset--color--link,#1E5C30);
	font-weight:600;
}
@media (max-width:600px){
	.ptamd_directory_table .pta_directory_table{font-size:16px}
	.ptamd_directory_table .pta_directory_table th,
	.ptamd_directory_table .pta_directory_table td{padding:10px 12px}
}

/* ---------- Mid-width layout fix (sidebar overlap ~782px–1100px) ---------- */
.em-sidebar,
.em-sidebar *{min-width:0;max-width:100%;box-sizing:border-box}
.em-sidebar .wp-block-search,
.em-sidebar .wp-block-search__inside-wrapper{width:100% !important}
.em-sidebar .wp-block-search__input{flex:1 1 auto;width:auto;padding-left:12px;padding-right:8px}
.em-sidebar .wp-block-search__button{flex:0 0 auto;padding:0 14px;min-width:44px}
.em-sidebar a,
.em-sidebar .wp-block-navigation-item__label,
.em-sidebar .wp-block-button__link{white-space:normal;overflow-wrap:anywhere}
@media (min-width:782px) and (max-width:1100px){
	.em-layout{column-gap:32px !important}
	.em-layout > .em-sidebar{flex-basis:32% !important}
	.em-layout > .em-content{flex-basis:68% !important}
	.em-navbar .wp-block-navigation-item__content{padding-left:9px !important;padding-right:9px !important;font-size:16px}
}
