/*
Theme Name: الشهري للديكور والموبيليا
Theme URI: https://alshmary.com/
Description: Child theme of Astra for alshmary.com (الشهري للديكور والموبيليا).
Author: الشهري للديكور والموبيليا
Template: astra
Version: 1.1.0
Text Domain: astra-alshahri-decor
*/

/* ---------- Fonts (self-hosted, variable wght) ---------- */
@font-face { font-family: "Noto Kufi Arabic"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url("fonts/noto-kufi-arabic-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Noto Kufi Arabic"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url("fonts/noto-kufi-arabic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url("fonts/noto-sans-arabic-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url("fonts/noto-sans-arabic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
	--charcoal: #1E1D1B;
	--mahogany: #8C3A22;
	--mahogany-hover: #6F2D1A;
	--mahogany-soft: #B5603F;
	--peach: #E0A587;
	--stone: #4B4741;
	--muted: #6A645D;
	--ground: #F5F3EF;
	--white: #FFFFFF;
	--line: #DAD5CD;
	--font-head: "Noto Kufi Arabic", sans-serif;
	--font-body: "Noto Sans Arabic", sans-serif;
	--wrap: 1200px;
	--gutter: 24px;
	--section: 88px;
	--header-h: 76px;
	--bar-h: 64px;
}
@media (max-width: 767px) { :root { --section: 56px; --gutter: 18px; } }

/* ---------- Base ---------- */
*, *::before, *::after { border-radius: 0 !important; box-shadow: none !important; }
html { scroll-padding-top: 16px; }
body, body.ash-site, .site-content, .ast-separate-container, .ast-plain-container { background-color: var(--ground); }
body, button, input, select, textarea, .ast-button, .ast-custom-button {
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.9;
	color: var(--stone);
}
body { font-weight: 400; }
p { margin: 0 0 1em; }
a { color: var(--mahogany); text-underline-offset: 3px; }
a:hover, a:focus { color: var(--mahogany-hover); }
:focus-visible { outline: 3px solid var(--mahogany); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6,
.entry-title, .ast-archive-title {
	font-family: var(--font-head);
	color: var(--charcoal);
	line-height: 1.5;
	font-weight: 700;
}
h1, .entry-content h1, .entry-title, .ast-archive-title, .ash-archive h1 { font-weight: 900; font-size: 48px; line-height: 1.5; }
h2, .entry-content h2 { font-size: 30px; }
h3, .entry-content h3 { font-size: 22px; }
h4, .entry-content h4 { font-size: 19px; }
h5, h6, .entry-content h5, .entry-content h6 { font-size: 18px; }
@media (max-width: 767px) {
	h1, .entry-content h1, .entry-title, .ast-archive-title, .ash-archive h1 { font-size: 32px; }
	h2, .entry-content h2 { font-size: 25px; }
	h3, .entry-content h3 { font-size: 20px; }
}
img { max-width: 100%; height: auto; }
.entry-content ul, .entry-content ol { margin: 0 1.2em 1.2em 0; padding: 0; }
.entry-content li { margin-bottom: .35em; }
.entry-content table { border-collapse: collapse; width: 100%; background: var(--white); }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: right; }
.screen-reader-text:focus { background: var(--white); color: var(--charcoal); }

/* ---------- Layout helpers ---------- */
.ash-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ast-container { max-width: calc(var(--wrap) + 2 * var(--gutter)); padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.ash-btn, .wp-block-button__link, .wp-element-button, .ast-button, button.ast-button, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 28px; font-family: var(--font-body); font-size: 17px; font-weight: 700; line-height: 1.4;
	text-decoration: none; border: 2px solid var(--mahogany); background: var(--mahogany); color: var(--white);
	cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ash-btn:hover, .ash-btn:focus, .wp-block-button__link:hover, .wp-block-button__link:focus, .wp-element-button:hover, .wp-element-button:focus {
	background: var(--mahogany-hover); border-color: var(--mahogany-hover); color: var(--white);
}
.ash-btn--secondary, .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--charcoal); border: 2px solid var(--charcoal);
}
.ash-btn--secondary:hover, .ash-btn--secondary:focus,
.wp-block-button.is-style-outline > .wp-block-button__link:hover, .wp-block-button.is-style-outline > .wp-block-button__link:focus {
	background: var(--charcoal); color: var(--white); border-color: var(--charcoal);
}
.ash-btns, .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Logo ---------- */
.ash-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.ash-logo:hover, .ash-logo:focus { text-decoration: none; }
.ash-mark {
	position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; overflow: hidden;
	font-family: var(--font-head); font-weight: 900; font-size: 25px; line-height: 1;
}
.ash-mark__letter { display: block; line-height: 1; transform: translateY(-2%); }
.ash-mark::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30%; height: 30%; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.ash-wordmark { display: flex; flex-direction: column; line-height: 1.25; }
.ash-wordmark__name { font-family: var(--font-head); font-weight: 900; font-size: 21px; }
.ash-wordmark__tag { font-family: var(--font-body); font-weight: 500; font-size: 13px; }
/* dark backgrounds */
.ash-logo--dark .ash-mark { background: var(--white); color: var(--charcoal); }
.ash-logo--dark .ash-mark::after { background: var(--mahogany-soft); }
.ash-logo--dark .ash-wordmark__name { color: var(--white); }
.ash-logo--dark .ash-wordmark__tag { color: var(--peach); }
/* light backgrounds */
.ash-logo--light .ash-mark { background: var(--charcoal); color: var(--white); }
.ash-logo--light .ash-mark::after { background: var(--mahogany); }
.ash-logo--light .ash-wordmark__name { color: var(--charcoal); }
.ash-logo--light .ash-wordmark__tag { color: var(--mahogany); }

/* ---------- Header ---------- */
.ash-header { position: relative; z-index: 50; background: var(--charcoal); color: var(--white); }
.ash-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.ash-nav { margin-inline-start: auto; }
.ash-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ash-menu li { position: relative; margin: 0; }
.ash-menu a {
	display: block; padding: 10px 12px; color: var(--white); text-decoration: none;
	font-family: var(--font-body); font-weight: 500; font-size: 16px; line-height: 1.5;
}
.ash-menu > li > a { border-bottom: 2px solid transparent; }
.ash-menu > li > a:hover, .ash-menu > li > a:focus, .ash-menu > li.current-menu-item > a,
.ash-menu > li.current-menu-ancestor > a, .ash-menu > li.current-post-ancestor > a, .ash-menu > li.current-menu-parent > a {
	color: var(--peach); border-bottom-color: var(--peach);
}
.ash-menu > .menu-item-has-children > a::after {
	content: ""; display: inline-block; margin-inline-start: 7px; vertical-align: middle;
	border-inline: 4px solid transparent; border-top: 5px solid currentColor;
}
.ash-menu .sub-menu {
	display: none; position: absolute; top: 100%; inset-inline-start: 0; min-width: 270px; margin: 0; padding: 8px 0;
	list-style: none; background: var(--charcoal); border-top: 2px solid var(--peach); border-bottom: 1px solid #3a3835;
}
.ash-menu li:hover > .sub-menu, .ash-menu li:focus-within > .sub-menu { display: block; }
.ash-menu .sub-menu a { padding: 8px 18px; font-size: 15px; }
.ash-menu .sub-menu a:hover, .ash-menu .sub-menu a:focus { color: var(--peach); background: #2a2926; }
.ash-sub-toggle { display: none; }
.ash-call {
	flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px;
	background: var(--white); color: var(--charcoal); border: 2px solid var(--white);
	font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1.4; text-decoration: none;
}
.ash-call:hover, .ash-call:focus { background: var(--peach); border-color: var(--peach); color: var(--charcoal); }
.ash-header :focus-visible { outline-color: var(--peach); }
.ash-icon-btn {
	display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
	background: transparent; color: var(--white); border: 2px solid var(--white); cursor: pointer; text-decoration: none;
}
.ash-icon-btn:hover, .ash-icon-btn:focus { background: var(--white); color: var(--charcoal); }

@media (max-width: 1099px) {
	.ash-header__inner { gap: 10px; min-height: 68px; }
	.ash-call { display: none; }
	.ash-icon-btn { display: inline-flex; }
	.ash-call-icon { margin-inline-start: auto; }
	.ash-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
		background: var(--charcoal); border-top: 1px solid #3a3835; padding: 8px var(--gutter) 24px;
		max-height: calc(100vh - 68px); overflow-y: auto;
	}
	.ash-header.is-open .ash-nav { display: block; }
	.ash-menu { display: block; }
	.ash-menu > li { border-bottom: 1px solid #3a3835; }
	.ash-menu a { padding: 13px 4px; font-size: 17px; }
	.ash-menu > li > a { border-bottom: 0; margin-inline-end: 52px; }
	.ash-menu > .menu-item-has-children > a::after { display: none; }
	.ash-menu .sub-menu { position: static; display: none; min-width: 0; padding: 0 16px 10px 0; border: 0; }
	.ash-menu li:hover > .sub-menu, .ash-menu li:focus-within > .sub-menu { display: none; }
	.ash-menu li.is-open > .sub-menu { display: block; }
	.ash-sub-toggle {
		display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 5px; inset-inline-end: 0;
		width: 44px; height: 44px; padding: 0; background: transparent; color: var(--white); border: 1px solid #55524d; cursor: pointer;
	}
	.ash-sub-toggle::before { content: ""; border-inline: 6px solid transparent; border-top: 7px solid currentColor; }
	.ash-menu li.is-open > .ash-sub-toggle::before { border-top: 0; border-bottom: 7px solid currentColor; }
}
@media (max-width: 380px) { .ash-wordmark__name { font-size: 18px; } .ash-wordmark__tag { font-size: 12px; } }

/* ---------- Footer ---------- */
.ash-footer { background: var(--charcoal); color: var(--white); margin-top: 0; }
.ash-footer a { color: var(--white); }
.ash-footer a:hover, .ash-footer a:focus { color: var(--peach); }
.ash-footer :focus-visible { outline-color: var(--peach); }
.ash-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 64px 48px; }
.ash-footer__about { margin: 16px 0 0; color: var(--white); font-size: 16px; max-width: 34ch; }
.ash-footer__title { margin: 0 0 12px; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--peach); }
.ash-footer__list { list-style: none; margin: 0; padding: 0; font-size: 16px; }
.ash-footer__list li { margin: 0 0 8px; }
.ash-footer__bottom { border-top: 1px solid #3a3835; }
.ash-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-block: 18px; font-size: 15px; }
.ash-footer__bottom-inner p { margin: 0; }
.ash-footer__menu { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.ash-footer__menu li { margin: 0; }
.ash-footer__menu li::before { content: "·"; color: var(--peach); margin-inline-end: 18px; }
@media (max-width: 900px) { .ash-footer__grid { grid-template-columns: 1fr 1fr; } .ash-footer__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ash-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-block: 48px 32px; } }

/* ---------- Floating contact ---------- */
.ash-bar { display: none; }
.ash-wa-float {
	position: fixed; left: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; background: var(--mahogany); color: var(--white); border: 2px solid var(--mahogany); text-decoration: none;
}
.ash-wa-float:hover, .ash-wa-float:focus { background: var(--mahogany-hover); color: var(--white); }
@media (max-width: 767px) {
	.ash-wa-float { display: none; }
	.ash-bar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex;
		height: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
		background: var(--white); border-top: 1px solid var(--line);
	}
	.ash-bar__btn {
		flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px;
		font-family: var(--font-body); font-weight: 700; font-size: 17px; text-decoration: none;
	}
	.ash-bar__btn--call { background: var(--charcoal); color: var(--white); }
	.ash-bar__btn--wa { background: var(--mahogany); color: var(--white); }
	.ash-bar__btn--map { background: var(--white); color: var(--charcoal); }
	.ash-bar__btn:hover, .ash-bar__btn:focus { color: var(--white); background: var(--mahogany-hover); }
	.ash-bar__btn--map:hover, .ash-bar__btn--map:focus { color: var(--charcoal); background: var(--ground); }
	body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Breadcrumbs, labels ---------- */
.rank-math-breadcrumb { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.rank-math-breadcrumb p { margin: 0; }
.rank-math-breadcrumb a { color: var(--mahogany); text-decoration: none; }
.rank-math-breadcrumb a:hover { text-decoration: underline; }
.rank-math-breadcrumb .separator { margin-inline: 6px; color: var(--muted); }
.ash-cat-label { margin: 4px 0 0; }
.ash-cat-label a {
	display: inline-block; padding: 2px 10px; border: 1px solid var(--line); background: var(--white);
	font-size: 14px; font-weight: 700; color: var(--mahogany); text-decoration: none;
}

/* ---------- Single service posts ---------- */
.single-post .site-content > .ast-container { padding-block: 40px 72px; }
.single-post .entry-header { margin-bottom: 24px; }
.single-post .entry-title { margin-bottom: 4px; }
.single-post .entry-content img { margin-block: 12px; }
.ash-contact-box { margin: 48px 0 0; padding: 32px; background: var(--charcoal); color: var(--white); border: 1px solid var(--charcoal); }
.ash-contact-box h2 { margin: 0 0 6px; color: var(--white); font-size: 26px; }
.ash-contact-box p { margin: 0 0 20px; color: var(--white); }
.ash-contact-box .ash-btn--secondary { color: var(--white); border-color: var(--white); }
.ash-contact-box .ash-btn--secondary:hover, .ash-contact-box .ash-btn--secondary:focus { background: var(--white); color: var(--charcoal); }
.ash-related { margin: 56px 0 0; }
.ash-related h2 { font-size: 26px; margin: 0 0 18px; }

/* ---------- Cards ---------- */
.ash-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.ash-card, .ash-section .ash-card { background: var(--white); border: 1px solid var(--line); padding: 24px; margin: 0; }
.ash-card__title, .ash-card h3, .ash-card h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.6; }
.ash-card__title a, .ash-card h3 a, .ash-card h2 a { color: var(--charcoal); text-decoration: none; }
.ash-card__title a:hover, .ash-card h3 a:hover, .ash-card h2 a:hover { color: var(--mahogany); text-decoration: underline; }
.ash-card p { margin: 0; font-size: 16px; line-height: 1.8; }
.ash-card p + p { margin-top: 10px; }
.ash-num, p.ash-num { display: block; margin: 0 0 6px; font-family: var(--font-head); font-weight: 900; font-size: 15px; color: var(--mahogany); line-height: 1.4; }
.ash-links { margin-top: 10px !important; font-size: 15px !important; }
.ash-links a { font-weight: 700; }

/* ---------- Category archives ---------- */
.ash-archive { padding-block: 40px 80px; }
.ash-archive__head { margin: 0 0 32px; }
.ash-archive__head h1 { margin: 0 0 12px; }
.ash-archive__intro { max-width: 820px; }
.ash-archive__intro p:last-child { margin-bottom: 0; }
.ash-subcats { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 32px; padding: 0; }
.ash-subcats a { display: inline-block; padding: 8px 16px; background: var(--white); border: 1px solid var(--line); color: var(--charcoal); font-weight: 700; text-decoration: none; }
.ash-subcats a:hover, .ash-subcats a:focus { border-color: var(--mahogany); color: var(--mahogany); }
.ash-archive .ash-cards-title { font-size: 24px; margin: 0 0 16px; }

/* ---------- Block page sections (homepage, services, about, contact) ---------- */
.ash-page .entry-content > * { margin-block: 0; }
.ash-page .site-content > .ast-container { max-width: none; padding: 0; display: block; }
.ash-page #primary { margin: 0; padding: 0; width: 100%; }
.ash-page .ast-article-single, .ash-page .entry-content, .ash-page article.page { margin: 0; padding: 0; background: transparent; border: 0; }
.ash-page .entry-header, .ash-page .post-thumb-img-content { display: none; }
.ash-section { padding-block: var(--section) !important; margin: 0 !important; }
.ash-section > .ash-inner { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ash-section--white { background: var(--white); }
.ash-section--ground { background: var(--ground); }
.ash-section--dark { background: var(--charcoal); color: var(--white); }
.ash-section--dark h2, .ash-section--dark h3, .ash-section--dark p, .ash-section--dark li { color: var(--white); }
.ash-section--dark a { color: var(--peach); }
.ash-section h2 { margin: 0 0 14px; }
.ash-lead { max-width: 820px; font-size: 19px; }
.ash-section .ash-lead + .ash-grid, .ash-section .ash-lead + .ash-cards { margin-top: 28px; }
.ash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.ash-grid > * { margin: 0 !important; }
@media (max-width: 1023px) { .ash-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ash-grid { grid-template-columns: 1fr; } }
.ash-hero h1 { margin: 0 0 18px; max-width: 900px; }
.ash-hero .ash-lead { margin-bottom: 28px; }
.ash-trust { margin: 28px 0 0 !important; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; font-weight: 500; }
.ash-steps { counter-reset: none; list-style: none; margin: 28px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ash-steps > li { margin: 0; padding: 22px 18px; background: var(--white); border: 1px solid var(--line); }
.ash-steps strong { display: block; font-family: var(--font-head); color: var(--charcoal); font-size: 18px; margin-bottom: 6px; }
.ash-steps .ash-num { margin-bottom: 8px; }
@media (max-width: 1023px) { .ash-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ash-steps { grid-template-columns: 1fr; } }
.ash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
@media (max-width: 767px) { .ash-cols { grid-template-columns: 1fr; } }
.ash-faq details { background: var(--white); border: 1px solid var(--line); margin: 0 0 10px; padding: 0; }
.ash-faq summary { cursor: pointer; padding: 16px 20px; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--charcoal); list-style-position: inside; }
.ash-faq details[open] summary { border-bottom: 1px solid var(--line); }
.ash-faq details > p { margin: 0; padding: 14px 20px 18px; }
.ash-hours { list-style: none; margin: 0 0 20px !important; padding: 0 !important; }
.ash-hours li { padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.ash-section--dark .ash-hours li { border-color: #3a3835; }
.ash-docs .wp-block-image { margin: 24px 0 0; }
.ash-docs img { border: 1px solid var(--line); background: var(--white); }

/* Gallery */
.ash-gallery.wp-block-gallery { gap: 12px; }
.ash-gallery.wp-block-gallery figure.wp-block-image img { border: 1px solid var(--line); }

/* Astra leftovers */
.ast-scroll-top-icon, #ast-scroll-top { display: none !important; }

/* ---------- Overrides that must beat Astra's own rules ---------- */
.ash-header, .ast-theme-transparent-header #masthead.ash-header { position: relative !important; top: auto; left: auto; right: auto; }
.ash-section { padding-inline: 0 !important; }
body .wp-block-button .wp-block-button__link, body .wp-block-button__link.wp-element-button {
	background-color: var(--mahogany) !important; color: var(--white) !important; border: 2px solid var(--mahogany) !important;
	padding: 14px 28px !important; font-family: var(--font-body) !important; font-size: 17px !important; font-weight: 700 !important; line-height: 1.4 !important;
}
body .wp-block-button .wp-block-button__link:hover, body .wp-block-button .wp-block-button__link:focus {
	background-color: var(--mahogany-hover) !important; border-color: var(--mahogany-hover) !important; color: var(--white) !important;
}
body .wp-block-button.is-style-outline > .wp-block-button__link { background-color: transparent !important; color: var(--charcoal) !important; border-color: var(--charcoal) !important; }
body .wp-block-button.is-style-outline > .wp-block-button__link:hover, body .wp-block-button.is-style-outline > .wp-block-button__link:focus { background-color: var(--charcoal) !important; color: var(--white) !important; border-color: var(--charcoal) !important; }
.ash-section--dark .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--white) !important; border-color: var(--white) !important; }
.ash-section--dark .wp-block-button.is-style-outline > .wp-block-button__link:hover, .ash-section--dark .wp-block-button.is-style-outline > .wp-block-button__link:focus { background-color: var(--white) !important; color: var(--charcoal) !important; }
.ash-section--dark :focus-visible { outline-color: var(--peach); }
.ash-card h3 a, .ash-card h2 a, .ash-section h2 a { font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; font-family: inherit !important; }
.ash-section h2 a { color: var(--charcoal); text-decoration: none; }
.ash-section h2 a:hover { color: var(--mahogany); text-decoration: underline; }
.ash-wrap, .ash-section > .ash-inner { max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.ash-archive__intro p, .ash-archive__intro p:last-child { margin: 0 0 14px !important; }
.ash-archive__intro { margin-bottom: 8px; }
/* Logo mark: glyph at 48% of the square, optically centred (measured on the ink box). */
.ash-mark { font-size: 21px; }
.ash-mark__letter { transform: translateY(-0.034em); }
.ash-wordmark { line-height: 1.3; }
.ash-wordmark__tag { margin-top: 3px; }

/* ---------- 2026-11-04: photos ---------- */
/* Homepage photo strip (under the hero trust line) */
.ash-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0 0 !important; }
.ash-strip > .wp-block-image { position: relative; margin: 0 !important; height: 260px; overflow: hidden; background: var(--ground); }
.ash-strip > .wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ash-strip > .wp-block-image figcaption {
	position: absolute; right: 12px; bottom: 12px; left: auto; margin: 0; padding: 4px 10px;
	background: var(--white); color: var(--charcoal); font-size: 14px; font-weight: 700; line-height: 1.5; text-align: right;
}
@media (max-width: 767px) { .ash-strip { grid-template-columns: 1fr; } .ash-strip > .wp-block-image { height: 220px; } }

/* Image captions in posts */
.entry-content .wp-block-image figcaption, .entry-content .wp-element-caption { color: var(--muted); font-size: 15px; text-align: right; margin-top: 6px; }
.entry-content > .wp-block-image, .entry-content > .wp-block-gallery { margin-block: 16px 24px; }

/* Gallery captions: solid label instead of the core overlay */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption,
.wp-block-gallery.has-nested-images figure.wp-block-image .wp-element-caption {
	background: var(--charcoal) !important; color: var(--white) !important; font-size: 14px; padding: 6px 10px; text-align: right;
	max-height: none; position: absolute; bottom: 0; right: 0; left: 0; margin: 0;
}
.wp-block-gallery.has-nested-images figure.wp-block-image::before { background: none !important; display: none !important; }

/* Rank Math FAQ block */
.rank-math-block .rank-math-list-item { background: var(--white); border: 1px solid var(--line); padding: 16px 20px; margin: 0 0 10px; }
.rank-math-block .rank-math-question { margin: 0 0 6px; font-size: 19px; }
.rank-math-block .rank-math-answer p { margin: 0; }

/* Official documents on /about/ */
.ash-docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; align-items: start; }
.ash-docs-grid > .wp-block-image { margin: 0 !important; background: var(--white); border: 1px solid var(--line); padding: 12px; }
.ash-docs-grid > .wp-block-image img { width: 100%; height: auto; display: block; }
.ash-docs-grid figcaption { color: var(--stone); font-size: 15px; text-align: right; margin-top: 8px; }
@media (max-width: 767px) { .ash-docs-grid { grid-template-columns: 1fr; } }

/* Single photos inside posts: keep tall portrait shots to a readable height */
.single-post .entry-content > .wp-block-image { text-align: center; }
.single-post .entry-content > .wp-block-image img { width: auto; max-width: 100%; max-height: 560px; height: auto; margin-inline: auto; display: block; }
.single-post .entry-content > .wp-block-image figcaption { text-align: center; }
@media (max-width: 767px) { .single-post .entry-content > .wp-block-image img { max-height: 440px; } }
