/* Sneaky Helper cards and religion pages (sprint "Nav, Helpers & Religions").
 * Loaded on Sneaky Helper category, profile and religion pages only (inc/sneaky-helpers-display.php).
 * Standard Sneaky styling. Religion identities live in sneaky-religion-themes.css, scoped
 * to `.sh-religion-themed`; nothing here styles the header, nav or footer. */

/* 1. Helper card */
.sh-helper-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sh-helper-tile {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding: 16px;
	border: 1px solid var(--sh-line);
	border-radius: var(--sh-radius-card, 16px);
	background: var(--sh-surface, #fff);
	box-shadow: var(--sh-shadow-card, 0 10px 24px rgba(18, 44, 58, .07));
}
.sh-helper-tile-avatar {
	width: 72px;
	height: 72px;
	border: 3px solid var(--sh-sky-soft, #edf8fc);
	border-radius: 50%;
	object-fit: cover;
	background: var(--sh-sky-soft, #edf8fc);
}
.sh-helper-tile-body { display: grid; gap: 6px; min-width: 0; }
.sh-helper-tile-kind {
	width: fit-content;
	padding: 4px 9px;
	border-radius: var(--sh-radius-pill, 999px);
	background: var(--sh-sky-soft, #edf8fc);
	color: var(--sh-teal, #246b5f);
	font-size: 12px;
	font-weight: 900;
	line-height: 1.2;
}
.sh-helper-tile-name { margin: 0; font-size: 18px; font-weight: 900; line-height: 1.2; overflow-wrap: anywhere; }
.sh-helper-tile-name a { color: var(--sh-ink) !important; text-decoration: none !important; }
.sh-helper-tile-name a:hover, .sh-helper-tile-name a:focus-visible { text-decoration: underline !important; }
.sh-helper-tile-role { margin: 0; color: var(--sh-copy); font-size: 14px; line-height: 1.45; }
.sh-helper-tile-actions { grid-column: 1 / -1; display: flex; gap: 8px; align-self: end; }
.sh-helper-tile-actions :is(a, button) {
	display: inline-flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: var(--sh-control-h, 44px);
	padding: 8px 16px;
	border-radius: var(--sh-radius-pill, 999px);
	font: inherit;
	font-size: 14px;
	font-weight: 900;
	line-height: 1;
	text-decoration: none !important;
	cursor: pointer;
}
.sh-helper-tile-open { border: 1px solid var(--sh-action); background: #fff; color: var(--sh-action) !important; }
.sh-helper-tile-chat { border: 1px solid var(--sh-action); background: var(--sh-action); color: var(--sh-on-action, #fff) !important; }
.sh-helper-tile-chat:hover { background: var(--sh-action-hover); border-color: var(--sh-action-hover); }
.sh-helper-tile.is-compact { grid-template-columns: 52px minmax(0, 1fr); padding: 12px; box-shadow: none; }
.sh-helper-tile.is-compact .sh-helper-tile-avatar { width: 52px; height: 52px; }
.sh-helper-tile.is-compact .sh-helper-tile-name { font-size: 16px; }

/* 2. Religion pages (standard Sneaky; themed religions override inside their scope) */
.sh-religion-wrap { margin-top: 20px; }
.sh-religion-scope { display: grid; gap: 20px; }
.sh-religion-scope .sxl-hero { margin-bottom: 0; }
.sh-religion-scope .sxl-section { padding: clamp(18px, 3vw, 26px); }
.sh-religion-scope .sxl-section-head { margin-bottom: 14px; }
.sh-religion-scope .sxl-section-head p { margin: 0; color: var(--sh-copy); font-size: 15px; line-height: 1.5; }
.sh-religion-hero .sh-system-actions { margin-top: 16px; }
.sh-religion-emblem { width: 96px; height: 96px; border: 3px solid rgba(255, 255, 255, .5); border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, .12); }
.sh-religion-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.sh-religion-card a {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	min-height: 96px;
	padding: 14px 16px;
	border: 1px solid var(--sh-line);
	border-radius: var(--sh-radius-card, 16px);
	background: #fff;
	color: var(--sh-ink) !important;
	text-decoration: none !important;
}
.sh-religion-card a:hover, .sh-religion-card a:focus-visible { border-color: var(--sh-action); box-shadow: var(--sh-shadow-card); }
.sh-religion-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.sh-religion-card-body { display: grid; gap: 4px; min-width: 0; }
.sh-religion-card-body strong { font-size: 18px; font-weight: 900; line-height: 1.2; }
.sh-religion-card-body span { color: var(--sh-copy); font-size: 14px; line-height: 1.45; }
.sh-religion-card-body small { color: var(--sh-teal); font-size: 13px; font-weight: 800; }
.sh-religion-article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sh-religion-article-list a {
	display: grid;
	gap: 6px;
	height: 100%;
	padding: 16px;
	border: 1px solid var(--sh-line);
	border-radius: var(--sh-radius-card, 16px);
	background: var(--sh-surface-soft, #f7fbfd);
	color: var(--sh-ink) !important;
	text-decoration: none !important;
}
.sh-religion-article-list a:hover, .sh-religion-article-list a:focus-visible { border-color: var(--sh-action); background: #fff; }
.sh-religion-article-list strong { font-size: 17px; font-weight: 900; line-height: 1.25; }
.sh-religion-article-list span { color: var(--sh-copy); font-size: 14px; line-height: 1.45; }
.sh-religion-article-list small { color: var(--sh-muted); font-size: 13px; font-weight: 700; }
.sh-religion-more { padding: 16px clamp(18px, 3vw, 26px); }
.sh-religion-more .sh-system-actions { margin: 0; }

@media (max-width: 767px) {
	.sh-religion-scope .sxl-hero { grid-template-columns: minmax(0, 1fr); }
	.sh-helper-tile { grid-template-columns: 56px minmax(0, 1fr); padding: 14px; }
	.sh-helper-tile-avatar { width: 56px; height: 56px; }
}

/* 3. Helper category pages (template-parts/sneaky/helper-category.php) */
.sh-helper-category-wrap { margin-top: 20px; }
.sh-helper-category-hero { margin-bottom: 20px; }
.sh-helper-category-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.sh-helper-category-layout .sxl-main { grid-column: 1; grid-row: 1; }
.sh-helper-category-layout .sxl-sidebar { grid-column: 2; grid-row: 1; }
.sh-helper-category-layout .sxl-section-head { margin-bottom: 14px; }
.sh-helper-category-layout .sh-helper-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.sh-helper-category-links { display: grid; gap: 8px; margin-top: 10px; }
.sh-helper-category-links a {
	display: grid;
	gap: 3px;
	min-height: 44px;
	padding: 12px 14px;
	border: 1px solid var(--sh-line);
	border-radius: 12px;
	background: var(--sh-surface-soft, #f7fbfd);
	color: var(--sh-ink) !important;
	text-decoration: none !important;
}
.sh-helper-category-links a:hover, .sh-helper-category-links a:focus-visible { border-color: var(--sh-action); background: #fff; }
.sh-helper-category-links strong { font-size: 15px; font-weight: 900; }
.sh-helper-category-links span { color: var(--sh-copy); font-size: 13px; line-height: 1.4; }
.sh-helper-category-articles { margin-top: 20px; padding: clamp(18px, 3vw, 26px); }
@media (max-width: 1024px) {
	.sh-helper-category-layout { grid-template-columns: minmax(0, 1fr); }
	.sh-helper-category-layout :is(.sxl-main, .sxl-sidebar) { grid-column: 1; grid-row: auto; }
}

/* 4. Helper profile additions (Team Consult/Debate, Support preview, AI note) */
.ai-pro-profile-ai-note { margin-top: 10px !important; color: var(--sh-muted) !important; font-size: 14px !important; }
.ai-pro-profile-team p, .ai-pro-profile-support p { margin: 0 0 12px; color: var(--sh-copy); font-size: 14px; line-height: 1.45; }
.ai-pro-profile-team-open, .ai-pro-profile-support-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--sh-action);
	border-radius: 999px;
	background: #fff;
	color: var(--sh-action) !important;
	font: inherit;
	font-size: 14px;
	font-weight: 900;
	text-decoration: none !important;
	cursor: pointer;
}
.ai-pro-profile-related-helpers.sh-helper-tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; }
/* 44px tap targets on Helper pages (sprint journeys S15, 4 October 2026): the shared hero-panel link and the profile
   chat buttons are 42px in style.css; on phones and tablets nothing stretches them. Scoped here, not site-wide. */
html body .sxl-hero-panel a,
html body.single-ai_pro .ai-pro-profile-actions button,
html body.single-ai_pro .ai-pro-profile-side-chat { min-height: 44px; }
