/*
 * HOA Web Core: Site Manager shell.
 * Scoped to .hwc-. Uses the theme's fonts; the accent colour is set from Settings.
 */

.hwc-shell {
	--hwc-accent: #1f5fa8;
	--hwc-ink: #1d2327;
	--hwc-muted: #646970;
	--hwc-line: #d5d8dc;
	--hwc-soft: #f4f5f6;
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 0 36px;
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 32px;
	color: var(--hwc-ink);
	font: inherit;
	line-height: 1.5;
}
.hwc-shell *,
.hwc-shell *::before,
.hwc-shell *::after {
	box-sizing: border-box;
}

/* ---- Menu --------------------------------------------------------------- */
.hwc-nav {
	align-self: start;
	position: sticky;
	top: 24px;
	padding: 0 0 8px;
	border-right: 1px solid var(--hwc-line);
}
.hwc-brand {
	margin: 0 0 12px;
	padding: 0 16px 0 0;
	font-size: 1.15em;
	font-weight: 700;
	line-height: 1.3;
}
.hwc-menu {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}
.hwc-menu li {
	margin: 0;
	padding: 0;
}
.hwc-menu a {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 -1px 0 0;
	padding: 9px 16px 9px 12px;
	border-right: 3px solid transparent;
	color: var(--hwc-ink);
	text-decoration: none;
}
.hwc-menu a:hover {
	background: var(--hwc-soft);
	color: var(--hwc-ink);
}
.hwc-menu a.is-active {
	border-right-color: var(--hwc-accent);
	background: var(--hwc-soft);
	color: var(--hwc-accent);
	font-weight: 600;
}
.hwc-menu a:focus-visible {
	outline: 2px solid var(--hwc-accent);
	outline-offset: -2px;
}
.hwc-menu .dashicons {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 1;
}
.hwc-menu-foot {
	padding-top: 12px;
	border-top: 1px solid var(--hwc-line);
	font-size: 0.9em;
}
.hwc-menu-foot a {
	padding-left: 12px;
	color: var(--hwc-muted);
}

/* ---- Content ------------------------------------------------------------ */
.hwc-main {
	min-width: 0;
	padding-bottom: 24px;
}
.hwc-h1 {
	margin: 0 0 4px;
	font-size: 1.6em;
	line-height: 1.2;
}
.hwc-muted {
	margin: 0 0 24px;
	color: var(--hwc-muted);
}
.hwc-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hwc-tiles li {
	margin: 0;
}
.hwc-tile {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 18px;
	border: 1px solid var(--hwc-line);
	border-radius: 4px;
	color: var(--hwc-ink);
	text-decoration: none;
}
.hwc-tile:hover,
.hwc-tile:focus-visible {
	border-color: var(--hwc-accent);
	color: var(--hwc-ink);
}
.hwc-tile:focus-visible {
	outline: 2px solid var(--hwc-accent);
	outline-offset: 2px;
}
.hwc-tile .dashicons {
	width: 28px;
	height: 28px;
	font-size: 28px;
	color: var(--hwc-accent);
}
.hwc-tile-title {
	font-weight: 700;
}
.hwc-tile-desc {
	color: var(--hwc-muted);
	font-size: 0.925em;
}

/* ---- Sign-in and no-access notices ------------------------------------- */
.hwc-notice {
	display: block;
	max-width: 520px;
	padding: 24px 0;
}
.hwc-btn {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 20px;
	border: 1px solid var(--hwc-accent);
	border-radius: 4px;
	background: var(--hwc-accent);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
.hwc-btn:hover {
	color: #fff;
	filter: brightness(0.92);
}

@media (max-width: 782px) {
	.hwc-shell {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px 0;
	}
	.hwc-nav {
		position: static;
		border-right: 0;
		border-bottom: 1px solid var(--hwc-line);
	}
	.hwc-menu {
		display: flex;
		flex-wrap: wrap;
		gap: 0 4px;
		margin-bottom: 8px;
	}
	.hwc-menu a {
		margin: 0;
		padding: 8px 12px;
		border-right: 0;
		border-bottom: 3px solid transparent;
	}
	.hwc-menu a.is-active {
		border-bottom-color: var(--hwc-accent);
	}
	.hwc-menu-foot {
		padding-top: 0;
		border-top: 0;
	}
}

/* ---- Shortcodes reference ---------------------------------------------- */
.hwc-sc-group {
	margin: 28px 0 0;
}
.hwc-sc-plugin {
	margin: 0 0 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--hwc-line);
	font-size: 1.1em;
}
.hwc-sc {
	padding: 12px 0;
	border-bottom: 1px solid var(--hwc-line);
}
.hwc-sc:last-child {
	border-bottom: 0;
}
.hwc-sc p {
	margin: 0 0 6px;
}
.hwc-sc-tag {
	display: inline-block;
	padding: 2px 6px;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.05);
	font-size: 0.95em;
	user-select: all;
	-webkit-user-select: all;
	cursor: text;
}
.hwc-sc-atts {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 4px 14px;
	margin: 6px 0 8px;
}
.hwc-sc-atts dt,
.hwc-sc-atts dd {
	margin: 0;
}
.hwc-sc-examples .hwc-sc-tag {
	margin: 2px 6px 2px 0;
}
