  /* ============================================
   CUSTOM MBI STYLES
   Palette: Dry Sage, Parchment, Pale Oak, Dim Grey
   ============================================ */

/* =====================================
   COLOR SCHEME OVERRIDES
   ===================================== */

/* Page & Section Backgrounds - Dry Sage */
body,
section {
    background-color: #B3B492 !important;
}

/* Exception: Keep footer dark */
#footer,
div#footer,
#footer section,
#footer .footer-info {
    background-color: #1a1c1b !important;
}

/* Content Boxes - Parchment */
.box,
.box.alt,
.container.box,
#content,
section#content {
    background-color: #EFECE6 !important;
}

/* Box Borders - Pale Oak */
.box.bordered {
    border-color: #CBB8A9 !important;
}

/* =====================================
   ICON COLORS - Gruvbox Material Palette
   ===================================== */

/* Override icon colors with vibrant Gruvbox Material colors */
.wrapper.style1 .icons-grid .icon.solid.major.style1,
.wrapper .icons-grid .icon.solid.major.style1,
.icons-grid .icon.solid.major.style1,
.icon.solid.major.style1 {
    color: #89b482 !important; /* Aqua */
}

.wrapper.style1 .icons-grid .icon.solid.major.style2,
.wrapper .icons-grid .icon.solid.major.style2,
.icons-grid .icon.solid.major.style2,
.icon.solid.major.style2 {
    color: #d3869b !important; /* Purple */
}

.wrapper.style1 .icons-grid .icon.solid.major.style3,
.wrapper .icons-grid .icon.solid.major.style3,
.icons-grid .icon.solid.major.style3,
.icon.solid.major.style3 {
    color: #e78a4e !important; /* Orange */
}

.wrapper.style1 .icons-grid .icon.solid.major.style4,
.wrapper .icons-grid .icon.solid.major.style4,
.icons-grid .icon.solid.major.style4,
.icon.solid.major.style4 {
    color: #85daff !important; /* Blue */
}

/* Alternative: Use Green instead of Blue for style4 */
/*
.wrapper.style1 .icons-grid .icon.solid.major.style4,
.wrapper .icons-grid .icon.solid.major.style4,
.icons-grid .icon.solid.major.style4,
.icon.solid.major.style4 {
    color: #a9b665 !important; /* Green */
}
*/



/* =====================================
   FORM STYLING
   ===================================== */

/* Form Inputs - Parchment backgrounds */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="url"],
select,
textarea {
    background-color: #EFECE6 !important;
    border-color: #CBB8A9 !important;
}

/* Darker placeholder text for readability */
input::placeholder,
textarea::placeholder {
    color: #6F686D !important;
    opacity: 1 !important;
}

/* Form inputs on focus - clean white background */
input:focus,
select:focus,
textarea:focus {
    border-color: #6F686D !important;
    background-color: #ffffff !important;
}

/* =====================================
   BUTTONS
   ===================================== */

/* Base buttons - transparent */
.button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
    background-color: transparent !important;
}

/* Primary buttons - Dim Grey */
.button.primary,
input[type="submit"].primary {
    background-color: #6F686D !important;
    border-color: #6F686D !important;
    color: #ffffff !important;
}

/* =====================================
   MOBILE RESPONSIVE FIXES
   ===================================== */

/* Fix icon grids on mobile - stack vertically */
@media screen and (max-width: 736px) {
    .icons-grid {
        display: block !important;
        width: 100% !important;
    }
    
    .icons-grid li {
        display: block !important;
        width: 100% !important;
        margin-bottom: 3em !important;
        padding: 0 !important;
        float: none !important;
    }
    
    .icons-grid li a {
        display: block !important;
        text-align: center !important;
        padding: 1.5em !important;
    }
    
    .icons-grid .icon {
        display: block !important;
        margin: 0 auto 1em auto !important;
        float: none !important;
        position: static !important;
    }
    
    .icons-grid h3 {
        text-align: center !important;
        margin-top: 1em !important;
    }
    
    .icons-grid p {
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 90% !important;
    }
}

/* =====================================
   EXPERIMENTAL / FUTURE USE
   (Commented out - uncomment when needed)
   ===================================== */

/*
Featured Image Banner - for use with featured_image frontmatter
.featured-banner {
    width: 100% !important;
    height: 250px !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    margin: 1em 0 3em 0 !important;
    border-radius: 4px !important;
}

Featured Header - Title overlaid on image
header.featured-header {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 250px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    border-radius: 4px 4px 0 0 !important;
    margin: -2em -2em 2em -2em !important;
    padding: 3em 2em !important;
}

header.featured-header::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.25) !important;
    border-radius: 4px 4px 0 0 !important;
}

header.featured-header h2,
header.featured-header p {
    color: #ffffff !important;
    position: relative !important;
    z-index: 1 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}
*/

/* =====================================
   COLOR PALETTE REFERENCE
   ===================================== */
/*
   Parchment (content boxes): #EFECE6
   Dry Sage (backgrounds): #B3B492
   Pale Oak (borders): #CBB8A9
   Dim Grey (accents): #6F686D
   
   Unused/Future:
   - Lavender Veil: #E0D3DE
   - Original Bone: #D8D0C1
*/

/* =====================================
   HEADER SOCIAL ICONS
   ===================================== */

/* Position social icons after logo, matching nav's alignment system */
.header-social {
	display: inline-flex !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	position: absolute !important;
	left: 300px !important;
	top: 0 !important;
	height: inherit !important; /* Match header height */
	line-height: inherit !important; /* Match header line-height for vertical centering */
	align-items: center !important;
	gap: 0.75em !important;
	flex-wrap: nowrap !important;
	z-index: 1 !important;
}

.header-social li {
	display: inline-block !important;
	margin: 0 !important;
	padding: 0 !important;
	flex-shrink: 0 !important;
}

.header-social a {
	display: inline-block !important;
	font-size: 0.8em !important;
	transition: all 0.2s ease !important;
	line-height: 1 !important; /* Reset line-height for the icons themselves */
	vertical-align: middle !important;
}

/* Normal header (light background) - darker icons */
#header:not(.alt) .header-social a {
	color: #4a4a4a !important;
	opacity: 0.8 !important;
}

#header:not(.alt) .header-social a:hover {
	color: #2a2a2a !important;
	opacity: 1 !important;
}

/* Alt header (homepage banner) - white icons */
#header.alt .header-social {
	top: 2em !important; /* Match nav's top position in alt header */
	height: auto !important;
	line-height: 3.25em !important; /* Match alt header line-height */
}

#header.alt .header-social a {
	color: #ffffff !important;
	opacity: 0.9 !important;
}

#header.alt .header-social a:hover {
	opacity: 1 !important;
}

/* Hide labels (screen reader only) */
.header-social .label {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border-width: 0 !important;
}

/* Mobile: Hide social icons in compact header */
@media screen and (max-width: 980px) {
	.header-social {
		display: none !important;
	}
}

/* Medium screens */
@media screen and (min-width: 981px) and (max-width: 1280px) {
	.header-social {
		left: 250px !important;
		gap: 0.6em !important;
	}
	
	.header-social a {
		font-size: 0.75em !important;
	}
}

/* Large screens */
@media screen and (min-width: 1281px) {
	.header-social {
		left: 320px !important;
		gap: 0.85em !important;
	}
}

/* Table Side Scroll */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Links on style2 sections */
.wrapper.style2 a {
  color: #fff;
  text-decoration: underline;
}

.wrapper.style2 a:hover {
  color: #c9d4a9;
}

/* Sidebar links */
#sidebar a {
  color: #3d5a3d;
  text-decoration: underline;
}

#sidebar a:hover {
  color: #2a3f2a;
}

.wrapper.style2 strong {
  color: #a8c686;
}
