/*
 * Brand accents: charcoal ink, accent-yellow highlights, white surfaces.
 * Loaded last (after editorial-v2.css, home.css and the widget styles).
 * Colors are the identity variables printed by inc/identity.php:
 *   --erl-ink / --erl-dark  charcoal     --erl-mauve / --erl-mauve-btn  accent
 *   --erl-h-cream           alternate band (white mixed with a little charcoal)
 * The accent is never used as text on white (too little contrast): it fills
 * buttons and labels under charcoal text, underlines links, and colors links
 * on the charcoal top bar and footer.
 */

/* ---------- Focus: charcoal ring + accent halo; accent ring on dark bars ---------- */
.erl-layout a:focus-visible,
.erl-layout button:focus-visible,
.erl-layout input:focus-visible,
.erl-layout select:focus-visible,
.erl-layout textarea:focus-visible,
.erl-layout summary:focus-visible {
	outline: 2px solid var(--erl-ink) !important;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--erl-mauve);
}
.erl-layout .site-top-header-wrap a:focus-visible,
.erl-layout .site-top-header-wrap button:focus-visible,
.erl-layout .site-footer a:focus-visible {
	outline-color: var(--erl-mauve) !important;
	box-shadow: none;
}

/* ---------- Buttons: accent fill + charcoal text; charcoal + white on hover ---------- */
.erl-h-btn,
.erl-acard__btn,
.erl-layout .wp-block-search__button,
.erl-layout .wp-block-button__link,
.erl-layout input[type="submit"]:not(.search-submit),
.erl-layout .button {
	border-color: var(--erl-mauve-btn);
	background: var(--erl-mauve-btn);
	color: var(--erl-ink) !important;
}
.erl-h-btn:hover, .erl-h-btn:focus-visible,
.erl-acard__btn:hover, .erl-acard__btn:focus-visible,
.erl-layout .wp-block-search__button:hover,
.erl-layout .wp-block-button__link:hover,
.erl-layout input[type="submit"]:not(.search-submit):hover,
.erl-layout .button:hover {
	border-color: var(--erl-ink);
	background: var(--erl-ink);
	color: #fff !important;
}
.erl-btn:hover, .erl-btn:focus-visible,
.erl-btn--mauve:hover, .erl-btn--mauve:focus-visible { background: var(--erl-ink); color: #fff !important; }
/* Secondary (outline) buttons stay charcoal: a yellow outline would vanish on white. */
.erl-h-btn--ghost { border-color: var(--erl-ink); background: transparent; color: var(--erl-ink) !important; }
.erl-h-btn--ghost:hover, .erl-h-btn--ghost:focus-visible { border-color: var(--erl-ink); background: var(--erl-ink); color: #fff !important; }
.erl-layout .comment-form .submit { background: var(--erl-mauve-btn); color: var(--erl-ink) !important; }
.erl-layout .comment-form .submit:hover, .erl-layout .comment-form .submit:focus-visible { background: var(--erl-ink); color: #fff !important; }
.erl-layout .erl-h-search button:hover { background: var(--erl-mauve-btn); color: var(--erl-ink); }

/* ---------- Category labels: small accent badges ---------- */
.erl-h-grid .erl-card__cat,
.erl-recent .erl-card__cat,
.erl-card__cat,
.erl-layout .loop-entry .entry-taxonomies a {
	padding: 4px 8px 3px;
	border-radius: 2px;
	background: var(--erl-mauve-btn);
	color: var(--erl-ink);
	line-height: 1.2;
	text-decoration: none;
}
.erl-h-grid .erl-card__cat:hover, .erl-h-grid .erl-card__cat:focus-visible,
.erl-recent .erl-card__cat:hover,
.erl-card__cat:hover,
.erl-layout .loop-entry .entry-taxonomies a:hover {
	background: var(--erl-ink);
	color: #fff;
	text-decoration: none;
}
.erl-h-hero__cat {
	display: inline-block;
	margin-bottom: 6px;
	padding: 3px 7px 2px;
	border-radius: 2px;
	background: var(--erl-mauve-btn);
	color: var(--erl-ink);
}

/* ---------- Links: charcoal text, accent underline, accent highlight on hover ---------- */
.erl-layout .entry-content a:not(.erl-btn):not(.wprm-recipe-link):not(.erl-share__link):hover,
.erl-layout .entry-content a:not(.erl-btn):not(.wprm-recipe-link):not(.erl-share__link):focus-visible {
	background: var(--erl-blush);
	text-decoration-color: var(--erl-ink);
}
.erl-h-link:hover, .erl-h-link:focus-visible { color: var(--erl-ink); background: var(--erl-blush); }
.erl-h-more:hover, .erl-h-more:focus-visible { color: var(--erl-ink); background: var(--erl-blush); border-color: var(--erl-ink); }
.erl-h-cat__cta { color: var(--erl-ink); }
.erl-h-cat__cta::after { content: ""; display: block; width: 28px; height: 3px; margin: 6px auto 0; background: var(--erl-mauve); }

/* ---------- Header: white, charcoal navigation, accent underline ---------- */
.erl-layout .site-main-header-wrap .site-header-row-container-inner { background: #fff; }
.erl-layout .main-navigation .primary-menu-container > ul > li.menu-item > a::after { height: 3px; background: var(--erl-mauve); }
.erl-layout .site-top-header-wrap .header-navigation .menu > li > a:hover,
.erl-layout .site-top-header-wrap .header-navigation .menu > li.current-menu-item > a { color: var(--erl-mauve); }
.erl-layout #mobile-drawer .mobile-navigation ul li.current-menu-item > a { box-shadow: inset 4px 0 0 var(--erl-mauve); }

/* ---------- Sections: white page, soft neutral alternate bands ---------- */
.erl-h-hero { background: var(--erl-h-cream); }
.erl-h-col--tint { background: var(--erl-h-cream); }
.erl-h-welcome__inner { background: var(--erl-h-cream); border-top: 4px solid var(--erl-mauve); }
.erl-h-head { border-bottom-color: #e4e4e4; }
.erl-h-hero__fig img { box-shadow: 0 18px 40px -22px rgba(42, 43, 43, .45); }
.erl-empty { background: var(--erl-h-cream); border-left: 4px solid var(--erl-mauve); }

/* Pagination: current page on an accent chip. */
.erl-pagination .page-numbers.current { background: var(--erl-mauve-btn); color: var(--erl-ink); text-decoration: none; }
.erl-layout .pagination .page-numbers.current { background: var(--erl-mauve-btn); border-color: var(--erl-mauve-btn); color: var(--erl-ink); }
.erl-layout .pagination a.page-numbers:hover { background: var(--erl-ink); border-color: var(--erl-ink); color: #fff; }

/* ---------- Sidebar ---------- */
.erl-acard { background: var(--erl-h-cream); }
.erl-layout #secondary .erl-poptiles__title { color: var(--erl-ink); }
.erl-poptiles__grid { border-color: #e4e4e4; }
.erl-poptiles .erl-card__body { background: var(--erl-h-cream); }
.erl-layout .erl-poptiles .erl-card__title a,
.erl-layout .erl-poptiles .erl-card__title a:hover { color: var(--erl-ink); }

/* ---------- Single post ---------- */
.erl-toc { border-color: var(--erl-ink); }
.erl-toc__summary { background: var(--erl-h-cream); }
.erl-toc__nav li::marker { color: var(--erl-ink); }
.erl-layout .entry-content ul > li::marker { color: var(--erl-ink); }

/* ---------- Footer: charcoal, white text, accent links ---------- */
.erl-layout .site-footer { color: #fff; }
.erl-layout .site-footer a { color: var(--erl-mauve); }
.erl-layout .site-footer a:hover { color: #fff; }
.erl-layout .site-footer .footer-navigation .menu > li > a { color: var(--erl-mauve); }
.erl-layout .site-footer .footer-navigation .menu > li > a:hover,
.erl-layout .site-footer .footer-navigation .menu > li.current-menu-item > a { color: #fff; }
.erl-footer-brand .erl-wordmark,
.erl-footer-brand .erl-wordmark__script { color: #fff; }
.erl-copyright { color: #fff; opacity: .85; }
.erl-h-welcome__text .erl-h-btn + .erl-h-link { margin-left: 18px; }

/* Mobile bar: the logo link is a full-height tap target. */
.erl-layout .site-mobile-header-wrap .site-branding a.brand { display: flex; align-items: center; min-height: 44px; }
