/**
 * Community structural foundation.
 *
 * Presentation details remain in community.css; this file owns only the
 * page-region grid and responsive placement.
 */

.pk-community__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--pk-space-16);
	align-items: start;
}

.pk-community__sidebar--left {
	grid-column: span 3;
}

.pk-community__main {
	grid-column: span 6;
	min-width: 0;
}

.pk-community__sidebar--right {
	grid-column: span 3;
}

.pk-community__member-card {
	display: flex;
	align-items: center;
	gap: var(--pk-space-10);
	min-height: 36px;
	border: 0;
	background: transparent;
}

.pk-community__sidebar--left {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.pk-community__sidebar-container {
	box-sizing: border-box;
	min-width: 0;
	padding: var(--pk-padding-primary-container);
	border: var(--pk-border-standard);
	border-radius: var(--pk-radius-surface);
	background: var(--pk-color-surface);
	box-shadow: var(--pk-shadow-primary-container);
}

.pk-community__member-identity {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.pk-community__member-dashboard {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

.pk-community__member-dashboard .pk-community__member-card,
.pk-community__member-dashboard .pk-community__dashboard {
	margin-top: var(--pk-space-16);
}

.pk-community__avatar {
	display: block;
	box-sizing: border-box;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	overflow: hidden;
	border: 1px solid rgba(175, 178, 177, 0.3);
	border-radius: 4px;
	background: var(--pk-color-canvas);
}

.pk-community__member-avatar-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pk-community__member-name,
.pk-community__member-role,
.pk-community__dashboard-heading {
	margin: 0;
	font-family: var(--pk-font-family-ui);
}

.pk-community__member-name {
	overflow: hidden;
	color: var(--pk-color-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 16px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pk-community__member-role {
	color: var(--pk-color-action);
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
}

.pk-community__member-badges {
	flex: 0 0 auto;
	min-width: 16px;
	min-height: 36px;
}

.pk-community__dashboard-divider,
.pk-community__section-divider {
	height: 1px;
	margin-right: calc(-1 * var(--pk-padding-primary-container));
	margin-left: calc(-1 * var(--pk-padding-primary-container));
	background: rgba(175, 178, 177, 0.3);
}

.pk-community__dashboard {
	display: grid;
	gap: 0;
}

.pk-community__dashboard-heading {
	color: var(--pk-color-action);
	font-size: 16px;
	font-weight: 600;
	line-height: 20px;
}

.pk-community__dashboard .pk-community__section-divider {
	margin-top: var(--pk-space-8);
	margin-bottom: var(--pk-space-8);
}

.pk-community__dashboard-row {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	height: 36px;
	gap: var(--pk-space-10);
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--pk-color-text);
	font-family: var(--pk-font-family-ui);
	font-size: 14px;
	font-weight: 500;
	line-height: 16px;
	text-decoration: none;
	transition: color var(--pk-motion-duration) ease;
}

.pk-community__dashboard-row:hover,
.pk-community__dashboard-row:focus-visible {
	background: transparent;
	color: var(--pk-color-action);
	outline: 0;
}

.pk-community__dashboard-icon {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	overflow: visible;
	fill: none;
	stroke: var(--pk-color-text);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pk-community__dashboard-icon path {
	transition: fill var(--pk-motion-duration) ease;
}

.pk-community__dashboard-icon-fill {
	fill: var(--pk-color-action);
	stroke: var(--pk-color-action);
}

.pk-community__dashboard-count-cavity {
	fill: var(--pk-color-canvas);
	stroke: var(--pk-color-text);
}

.pk-community__dashboard-row:hover .pk-community__dashboard-count-cavity,
.pk-community__dashboard-row:focus-visible .pk-community__dashboard-count-cavity {
	fill: var(--pk-color-action);
}

.pk-community__dashboard-icon text {
	fill: var(--pk-color-canvas);
	stroke: none;
	font-family: var(--pk-font-family-ui);
	font-size: 6px;
	font-weight: 600;
	text-anchor: middle;
}

.pk-community__nav {
	display: grid;
	gap: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.pk-community__nav .pk-community__nav-row {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	height: 36px;
	min-height: 36px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--pk-color-text);
	font-family: var(--pk-font-family-ui);
	font-size: 14px;
	font-weight: 500;
	line-height: 16px;
	text-decoration: none;
	transition: color var(--pk-motion-duration) ease;
}

.pk-community__nav-icon {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-right: var(--pk-space-10);
	fill: transparent;
	stroke: var(--pk-color-text);
	stroke-width: var(--pk-icon-stroke-width);
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pk-community__nav-icon path {
	transition: fill var(--pk-motion-duration) ease;
}

.pk-community__dashboard-row:hover,
.pk-community__dashboard-row:focus-visible,
.pk-community__nav .pk-community__nav-row:hover,
.pk-community__nav .pk-community__nav-row:focus-visible,
.pk-community__nav .pk-community__nav-row.is-current {
	border: 0;
	background: transparent;
	color: var(--pk-color-action);
	outline: 0;
}

.pk-community__dashboard-row:hover .pk-community__dashboard-icon,
.pk-community__dashboard-row:focus-visible .pk-community__dashboard-icon,
.pk-community__nav .pk-community__nav-row:hover .pk-community__nav-icon,
.pk-community__nav .pk-community__nav-row:focus-visible .pk-community__nav-icon,
.pk-community__nav .pk-community__nav-row.is-current .pk-community__nav-icon {
	fill: var(--pk-color-action);
}

.pk-community__community-navigation,
.pk-community__community-builds {
	display: grid;
	gap: var(--pk-space-8);
}

.pk-community__sidebar-heading {
	margin: 0;
	color: var(--pk-color-action);
	font-family: var(--pk-font-family-ui);
	font-size: 16px;
	font-weight: 600;
	line-height: 20px;
}

.pk-community__community-builds-content {
	min-height: 48px;
}

.pk-community__sidebar-section > .pk-community__label {
	color: var(--pk-color-action);
	font-family: var(--pk-font-family-ui);
	font-size: var(--pk-font-size-control);
	font-weight: var(--pk-font-weight-button);
	line-height: var(--pk-line-height-control);
}

.pk-community__sidebar-section > .pk-community__nav-row {
	height: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--pk-color-action);
	font-family: var(--pk-font-family-ui);
	font-size: 12px;
	font-weight: var(--pk-font-weight-control);
	line-height: 16px;
}

.pk-community__sidebar-section > .pk-community__nav-row:hover,
.pk-community__sidebar-section > .pk-community__nav-row:focus-visible,
.pk-community__sidebar-section > .pk-community__nav-row.is-current {
	background: transparent;
	color: var(--pk-color-action);
}

.pk-community__featured-build {
	display: grid;
	gap: var(--pk-space-8);
	min-width: 0;
}

.pk-community__featured-build-media {
	box-sizing: border-box;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: var(--pk-border-standard);
	border-radius: var(--pk-radius-input);
	background: var(--pk-color-canvas);
	box-shadow: none;
}

.pk-community__featured-build-stats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pk-space-12);
	color: var(--pk-color-text);
	font-family: var(--pk-font-family-ui);
	font-size: 12px;
	font-weight: var(--pk-font-weight-control);
	line-height: 1.4;
}

.pk-community__featured-build-stat {
	display: inline-flex;
	align-items: center;
	gap: var(--pk-space-4);
}

.pk-community__featured-build-stat .pk-icon {
	width: var(--pk-icon-size-compact);
	height: var(--pk-icon-size-compact);
}

.pk-community__sidebar--right {
	display: grid;
	gap: 0;
	padding: var(--pk-padding-primary-container);
}

.pk-community__sidebar--right > .pk-community__discovery-section {
	margin-top: var(--pk-space-16);
}

.pk-community__main {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.pk-community__sidebar-section,
.pk-community__discovery-section,
.pk-community__build-preview,
.pk-community__stream,
.pk-community__feed-intro,
.pk-community__search-entry,
.pk-community__intro-search,
.pk-community__featured-content {
	display: grid;
	gap: var(--pk-space-8);
	min-width: 0;
}

.pk-community__intro-search,
.pk-community__featured-content,
.pk-community__main .pk-create-post {
	padding: var(--pk-padding-primary-container);
	border: var(--pk-border-standard);
	border-radius: var(--pk-radius-surface);
	background: var(--pk-color-surface);
	box-shadow: var(--pk-shadow-primary-container);
}

.pk-community__featured-content {
	position: relative;
	gap: var(--pk-space-16);
}

.pk-community__featured-card-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.pk-community__featured-card-link:focus-visible {
	outline: 1px solid var(--pk-color-action);
	outline-offset: 2px;
}

.pk-community__featured-topbar,
.pk-community__featured-actions,
.pk-community__featured-action-group,
.pk-community__featured-marker,
.pk-community__featured-action,
.pk-community__featured-views {
	display: flex;
	align-items: center;
}

.pk-community__featured-topbar { justify-content: space-between; }

.pk-community__featured-marker {
	gap: var(--pk-space-8);
	margin: 0;
	color: var(--pk-color-action);
	font-family: var(--pk-font-family-ui);
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
}

.pk-community__featured-marker-icon {
	width: 16px;
	height: 16px;
	fill: var(--pk-color-action);
}

.pk-community__featured-more,
.pk-community__featured-action {
	position: relative;
	z-index: 2;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
}

.pk-community__featured-more {
	display: grid;
	place-items: center;
	justify-items: end;
	width: 28px;
	height: 28px;
	color: var(--pk-color-action);
}

.pk-community__featured-more svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.pk-community__featured-more:hover,
.pk-community__featured-more:focus-visible {
	color: var(--pk-color-action);
	outline: 0;
}

.pk-community__featured-main {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: var(--pk-space-16);
	min-width: 0;
}

.pk-community__featured-media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border: 1px solid rgba(175, 178, 177, 0.3);
	border-radius: 4px;
	background: var(--pk-color-canvas);
}

.pk-community__featured-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pk-community__featured-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.pk-community__featured-title,
.pk-community__featured-description,
.pk-community__featured-metadata {
	margin: 0;
	color: var(--pk-color-text);
	font-family: var(--pk-font-family-ui);
}

.pk-community__featured-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 22px;
}

.pk-community__featured-description {
	display: -webkit-box;
	margin-top: var(--pk-space-8);
	overflow: hidden;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.pk-community__featured-metadata {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--pk-space-8);
	margin-top: auto;
	padding-top: var(--pk-space-8);
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
}

.pk-community__featured-separator {
	flex: 0 0 3px;
	width: 3px;
	height: 3px;
	background: var(--pk-color-action);
}

.pk-community__featured-divider {
	height: 1px;
	background: rgba(175, 178, 177, 0.3);
}

.pk-community__featured-actions {
	justify-content: center;
}

.pk-community__featured-action-group {
	justify-content: center;
	gap: var(--pk-space-20);
}

.pk-community__featured-action,
.pk-community__featured-views {
	gap: var(--pk-space-4);
	color: var(--pk-color-text);
	font-family: var(--pk-font-family-ui);
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
}

.pk-community__featured-action {
	min-width: 28px;
	min-height: 28px;
	justify-content: center;
}

.pk-community__featured-action svg,
.pk-community__featured-views svg {
	width: 18px;
	height: 18px;
}

.pk-community__featured-action svg {
	fill: transparent;
	stroke: var(--pk-color-text);
	stroke-width: var(--pk-icon-stroke-width);
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pk-community__featured-action svg path { transition: fill var(--pk-motion-duration) ease; }

.pk-community__featured-action:hover,
.pk-community__featured-action:focus-visible {
	color: var(--pk-color-action);
	outline: 0;
}

.pk-community__featured-action:hover svg,
.pk-community__featured-action:focus-visible svg,
.pk-community__featured-action[aria-pressed="true"] svg { fill: var(--pk-color-action); }

.pk-community__featured-action[aria-pressed="true"]:hover svg,
.pk-community__featured-action[aria-pressed="true"]:focus-visible svg { fill: #7ff3f7; }

.pk-community__featured-views svg { fill: var(--pk-color-text); }

.pk-community__feed-filters {
	width: 100%;
}

.pk-community__feed-filters > .pk-application-navigation__indicator {
	display: none;
}

.pk-community__feed-filter {
	flex: 1 0 auto;
}

.pk-community__feed-filter::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	background: var(--pk-color-action);
	content: "";
	opacity: 0;
	pointer-events: none;
}

.pk-community__feed-filter[aria-pressed="true"],
.pk-community__feed-filter.is-previewed {
	color: var(--pk-color-action);
}

.pk-community__feed-filter[aria-pressed="true"]::after,
.pk-community__feed-filter.is-previewed::after {
	opacity: 1;
}

.pk-community__intro-search {
	gap: 0;
}

.pk-community__intro-search .pk-community__search-entry {
	margin-top: var(--pk-space-16);
}

.pk-community__main .pk-community__feed-intro {
	gap: var(--pk-space-4);
}

.pk-community__main .pk-community__feed-intro .pk-community__section-heading {
	color: var(--pk-color-action);
	font-family: var(--pk-font-family-ui);
	font-size: 20px;
	font-weight: var(--pk-font-weight-button);
	line-height: 1.25;
}

.pk-community__main .pk-community__feed-intro .pk-community__body {
	color: var(--pk-color-text);
	font-family: var(--pk-font-family-ui);
	font-size: 16px;
	font-weight: var(--pk-font-weight-control);
}

.pk-community__label,
.pk-community__component-heading,
.pk-community__section-heading,
.pk-community__body,
.pk-community__metadata {
	margin: 0;
	font-family: var(--pk-font-family-ui);
}

.pk-community__label {
	color: var(--pk-color-text);
	font-size: var(--pk-font-size-control);
	font-weight: var(--pk-font-weight-button);
	line-height: 1.4;
}

.pk-community__component-heading {
	color: var(--pk-color-text);
	font-size: 16px;
	font-weight: var(--pk-font-weight-button);
	line-height: 1.3;
}

.pk-community__section-heading {
	color: var(--pk-color-text);
	font-size: 20px;
	font-weight: var(--pk-font-weight-button);
	line-height: 1.25;
}

.pk-community__body {
	color: var(--pk-color-text);
	font-size: var(--pk-font-size-control);
	font-weight: var(--pk-font-weight-control);
	line-height: 1.45;
}

.pk-community__metadata {
	color: var(--pk-color-text-muted);
	font-size: 12px;
	font-weight: var(--pk-font-weight-control);
	line-height: 1.4;
}

.pk-community__build-media {
	box-sizing: border-box;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: var(--pk-border-standard);
	border-radius: var(--pk-radius-input);
	background: var(--pk-color-canvas);
	box-shadow: none;
}

.pk-community__stats,
.pk-community__post-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--pk-space-12);
	color: var(--pk-color-text);
	font-family: var(--pk-font-family-ui);
	font-size: 12px;
	font-weight: var(--pk-font-weight-control);
	line-height: 1.4;
}

.pk-community__stats > span {
	display: inline-flex;
	align-items: center;
	gap: var(--pk-space-4);
}

.pk-community__stats .pk-icon {
	width: var(--pk-icon-size-compact);
	height: var(--pk-icon-size-compact);
}

.pk-community__main .pk-create-post {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
}

.pk-community__main .pk-select__trigger {
	box-sizing: border-box;
	height: var(--pk-button-height);
	min-height: var(--pk-button-height);
	border: var(--pk-border-standard);
	border-radius: var(--pk-radius-input);
	background: var(--pk-color-canvas);
	color: var(--pk-color-text);
	font-family: var(--pk-font-family-ui);
	font-size: var(--pk-font-size-control);
	font-weight: var(--pk-font-weight-control);
	line-height: var(--pk-line-height-control);
}

.pk-community__main .pk-body-composer__publish {
	height: calc(var(--pk-button-height) - 2px);
	min-height: calc(var(--pk-button-height) - 2px);
	border-radius: 0 0 3px 3px;
}

.pk-community__post-shell,
.pk-community__empty-state {
	display: grid;
	gap: var(--pk-space-8);
	padding: var(--pk-space-16) 0;
	border-bottom: var(--pk-border-standard);
}

.pk-community__post-header {
	display: flex;
	align-items: center;
	gap: var(--pk-space-10);
}

.pk-community__post-header > div {
	min-width: 0;
	flex: 1;
}

.pk-community__post-actions .pk-icon-action {
	color: var(--pk-color-text);
	font-family: var(--pk-font-family-ui);
	font-size: var(--pk-font-size-control);
	font-weight: var(--pk-font-weight-button);
	line-height: var(--pk-line-height-control);
}

.pk-community__post-actions .pk-icon-action:hover {
	color: var(--pk-color-action);
}

.pk-community__post,
.pk-community__detail,
.pk-community__composer,
.pk-community__comments,
.pk-community__search,
.pk-community__member {
	min-width: 0;
}

.pk-community__post a,
.pk-community__search-results a,
.pk-community__nav a,
.pk-community__slot a {
	transition: border-color var(--pk-motion-duration) ease, color var(--pk-motion-duration) ease, transform var(--pk-motion-duration) ease;
}

@media (max-width: 1024px) {
	.pk-community__sidebar--left {
		grid-column: span 3;
	}

	.pk-community__main {
		grid-column: span 9;
	}

	.pk-community__sidebar--right {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	.pk-community__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.pk-community__sidebar--left,
	.pk-community__main,
	.pk-community__sidebar--right {
		grid-column: 1;
	}

	.pk-community__main {
		grid-row: 1;
	}

	.pk-community__sidebar--left {
		grid-row: 2;
	}

	.pk-community__sidebar--right {
		grid-row: 3;
	}

	.pk-community__featured-main {
		grid-template-columns: minmax(0, 1fr);
	}

	.pk-community__featured-metadata { margin-top: 0; }

	.pk-community__featured-actions,
	.pk-community__featured-action-group {
		flex-wrap: wrap;
		gap: var(--pk-space-16);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pk-community__post a,
	.pk-community__search-results a,
	.pk-community__nav a,
	.pk-community__slot a {
		transition-duration: 0s;
	}
}