/* === Roadmap Layout === */

.cxfr-stretched-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.cxfr-roadmap-wrapper {
	max-width: var(--global-width);
}

.cxfr-roadmap-intro {
	margin: 0 0 32px 0;
	color: #444;
	line-height: 1.6;
}

.cxfr-roadmap-list {
	margin: 0;
	padding: 0;
}

.cxfr-roadmap-list.cxfr-is-loading {
	visibility: hidden;
}

.cxfr-roadmap-item {
	padding: 1.5rem;
	/*border-bottom: 1px solid #e5e5e5;*/
	background: var(--clrWhite);
	border-radius: var(--postcard-border-radius);
	box-shadow: var(--postcard-shadow);
	transition: var(--transition);
	position: relative;
}

.cxfr-roadmap-item:last-child {
	border-bottom: none;
}

.cxfr-roadmap-item:hover {
	box-shadow: var(--postcard-shadow-hover);
}

.cxfr-roadmap-title {
	margin: 0 0 6px 0;
	font-size: 1.4rem;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
}

.cxfr-roadmap-title a {
	text-decoration: none;
	color: inherit;
}

.cxfr-roadmap-title a:hover {
	color: var(--clr-interactive);
}

.cxfr-admin-card-meta {
	color: #777;
	font-size: 0.85rem;
	margin-bottom: 6px;
}

.cxfr-expected {
	font-size: 0.9rem;
	color: #777;
	margin-bottom: 8px;
}

.cxfr-roadmap-excerpt {
	font-size: 1rem;
	line-height: 1.6;
	color: #333;
}

.cxfr-card-launch-tasks {
	background: #f7f7f8;
	border-left: 4px solid #b44b2b;
	color: #333;
	font-size: .95rem;
	line-height: 1.55;
	margin: 1rem 0 0;
	padding: .85rem 1rem;
	position: relative;
	z-index: 2;
}

.cxfr-card-launch-tasks h3 {
	font-size: .9rem;
	margin: 0 0 .5rem;
	text-transform: uppercase;
}

.cxfr-card-launch-tasks > :last-child {
	margin-bottom: 0;
}

.cxfr-feature-availability {
	margin: 0;
}

.cxfr-feature-availability > .cxfr-badge,
.cxfr-feature-availability > .cxfr-vote-btn {
	margin-left: .5rem;
}

/* === Account Level Labels === */

.cxfr-account-label,
.cxfr-status-label,
.cxfr-tasks-badge,
.cxfr-private-badge,
.cxfr-review-badge,
.cxfr-priority-badge {
	display: inline-block;
	font-size: 0.75rem;
	padding: 2px .5em 3px;
	border-radius: .25em;
	vertical-align: middle;
	letter-spacing: 0.04em;
}

.cxfr-private-badge,
.cxfr-review-badge,
.cxfr-priority-badge {
	display: grid;
	place-content: center;
}

.cxfr-account-label {
	background-color: var(--cxfr-account-bg, #666);
	color: var(--cxfr-account-text, #fff);
}

.cxfr-account-label-sidebar {
	padding: 0;
	background: none;
	text-align: center;
}

.cxfr-account-label + .cxfr-account-label {
	margin-left: .5rem;
}

/* Optional differentiation */

.cxfr-badges {
	display: flex;
	gap: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #eee;
}

.cxfr-badges p {
	margin: 0;
}

/* === Status Labels === */

.cxfr-status-label {
	background-color: var(--cxfr-status-bg, #666);
	color: var(--cxfr-status-text, #fff);
	text-transform: uppercase;
}

.cxfr-tasks-badge {
	background: #4b5563;
	color: #fff;
	text-transform: uppercase;
}

.cxfr-tasks-badge-completed {
	background: #2f9e6f;
}

.cxfr-tasks-badge-outstanding {
	background: #b44b2b;
}

/* Private Badge */

.cxfr-admin-badges {
	margin-left: auto;
	display: flex;
	gap: 1ex;
}
.cxfr-private-badge {
	background: #2dabad;
	color: #fff;
	text-transform: uppercase;
	padding: 4px .75em 3px;
}

.cxfr-review-badge {
	background: #40d18d;
	color: #fff;
	text-transform: uppercase;
	padding: 4px .75em 3px;
}

.cxfr-priority-badge {
	background: #c73535;
	color: #fff;
	text-transform: uppercase;
	padding: 4px .75em 3px;
}

/*article.cxfr-visibility-private {
	padding: 1rem;
	border-radius: 1rem;
	box-shadow: 0 0 2px #000;
}*/

/* === Filtering and sorting === */

/* =============================
   Controls Container
============================= */

.cxfr-roadmap-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
}

.cxfr-sort-control,
.cxfr-filter {
	align-items: center;
	display: flex;
	gap: .625rem;
}

.cxfr-control-icon {
	display: inline-grid;
	flex: 0 0 auto;
	height: 1.25rem;
	place-content: center;
	width: 1.25rem;
}

.cxfr-control-icon svg {
	display: block;
	fill: currentColor;
	height: 1.1rem;
	width: 1.1rem;
}

.cxfr-add-feature-card {
	margin-left: auto;
	white-space: nowrap;
}

.cxfr-roadmap-controls select {
	/*padding: 6px 10px;*/
	/*font-size: 0.9rem;*/
	border: 1px solid #ddd;
	/*border-radius: 4px;*/
	/*background: #fff;*/
	max-width: 15rem;
	margin-bottom: 0;
}

.cxfr-admin-filter-flags {
	align-items: center;
	background: #25282e;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: .375rem;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
	display: flex;
	flex: 0 0 100%;
	flex-wrap: nowrap;
	gap: .5rem;
	margin: 0;
	overflow-x: auto;
	padding: .5rem;
}

.cxfr-admin-filter-strip-label {
	align-items: center;
	color: #d7d9dd;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: .75rem;
	font-weight: 700;
	gap: .35rem;
	letter-spacing: .04em;
	line-height: 1;
	margin-right: .25rem;
	text-transform: uppercase;
	white-space: nowrap;
}

.cxfr-admin-filter-strip-label svg {
	fill: currentColor;
	height: 1rem;
	width: 1rem;
}

.cxfr-admin-filter-flag {
	align-items: center;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: .25rem;
	color: #d7d9dd;
	cursor: pointer;
	display: inline-flex;
	font-size: .8rem;
	font-weight: 600;
	line-height: 1;
	margin: 0;
	padding: .45rem .65rem;
	position: relative;
	text-transform: uppercase;
	user-select: none;
	white-space: nowrap;
}

.cxfr-admin-filter-flag input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.cxfr-admin-filter-flag:focus-within {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.cxfr-admin-filter-flag:has(input:checked) {
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.cxfr-admin-filter-private:has(input:checked) {
	background: #2dabad;
	border-color: #2dabad;
	color: #fff;
}

.cxfr-admin-filter-review:has(input:checked) {
	background: #40d18d;
	border-color: #40d18d;
	color: #fff;
}

.cxfr-admin-filter-priority:has(input:checked) {
	background: #c73535;
	border-color: #c73535;
	color: #fff;
}

/* =============================
   Roadmap Groups
============================= */

.cxfr-roadmap-group {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.cxfr-roadmap-group + .cxfr-section-heading {
	margin-top: 3rem;
}

.cxfr-section-heading {
	margin-bottom: 1rem;
}

/* =============================
   Vote Button State
============================= */

.cxfr-vote-btn {
	cursor: pointer;
	background: var(--clr-interactive);
	border: 1px solid #ddd;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 0.8rem;
}

.cxfr-vote-btn.is-voted {
	background: #222;
	color: #fff;
	border-color: #222;
}

.cxfr-roadmap-vote {
	margin-left: auto;
}
.cxfr-roadmap-vote p {
	margin: 0;
}

.cxfr-roadmap-vote,
.cxfr-roadmap-vote *,
.cxfr-roadmap-admin-actions,
.cxfr-roadmap-admin-actions * {
    position: relative;
    z-index: 2;
}

.cxfr-roadmap-admin-actions {
	margin: 0;
	padding-bottom: 3px;
	font-size: 80%;
	display: grid;
	place-content: end;
}

.cxfr-edit-feature-card {
	border: 0;
	background: transparent;
	color: var(--clr-interactive);
	cursor: pointer;
	padding: 0 .5em;
	text-decoration: underline;
}

.cxfr-empty-roadmap {
	margin-top: 1.5rem;
}

/* === Frontend feature editor === */

.reveal.reveal--big.cxfr-feature-editor-modal {
	margin-top: 6rem;
	max-height: calc(100vh - 18rem);
	overflow-y: auto;
}

.cxfr-feature-editor-modal label,
.cxfr-feature-editor-modal legend {
	display: block;
	font-weight: 600;
	margin-bottom: .75rem;
}

.cxfr-feature-editor-modal input[type="text"],
.cxfr-feature-editor-modal input[type="date"],
.cxfr-feature-editor-modal select,
.cxfr-feature-editor-modal textarea {
	margin-top: .25rem;
}

.cxfr-feature-editor-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.cxfr-feature-editor-levels {
	border: 1px solid rgba(0, 0, 0, .15);
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1.25rem;
	margin: 1rem 0;
	padding: 1rem;
}

.cxfr-feature-editor-levels legend {
	float: left;
	width: 100%;
}

.cxfr-feature-editor-levels label,
.cxfr-feature-editor-options label {
	font-weight: 400;
	margin: 0 0 .5rem;
}

.cxfr-feature-editor-options {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.cxfr-feature-editor-actions {
	display: flex;
	gap: .75rem;
	justify-content: flex-end;
	margin-top: 1rem;
}

.cxfr-feature-editor-actions > button.button.warning {
	margin-top: 0;
}

.cxfr-feature-editor-delete {
	margin-right: auto;
}

.cxfr-feature-editor-message {
	margin-top: 1rem;
	min-height: 1.5rem;
}

.cxfr-feature-editor-message[data-type="error"] {
	color: #b00020;
}

.cxfr-feature-editor-modal input:disabled {
	cursor: not-allowed;
	opacity: .55;
}

@media (width < 700px) {
	.cxfr-feature-editor-modal {
		margin-bottom: 2rem;
		margin-top: 5rem;
		max-height: calc(100vh - 7rem);
	}

	.cxfr-roadmap-controls,
	.cxfr-filter,
	.cxfr-sort-control,
	.cxfr-feature-editor-options,
	.cxfr-feature-editor-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.cxfr-add-feature-card {
		margin-left: 0;
	}

	.cxfr-feature-editor-grid {
		grid-template-columns: 1fr;
	}
}

/* === Single Feature Page === */

.cxfr-feature-header {
	margin-bottom: 24px;
}

.cxfr-feature-title-row {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin: .5em 0 8px 0;
}

.cxfr-feature-title {
	flex: 1 1 auto;
	font-size: var(--s1);
	margin: 0;
	min-width: 0;
}

.cxfr-feature-title-badges {
	flex: 0 0 auto;
	justify-content: flex-end;
}

.cxfr-feature-overview {
	font-size: 1.1rem;
	line-height: 1.6;
	margin-bottom: 24px;
	color: #444;
}

.cxfr-feature-content {
	margin-bottom: 3rem;
	line-height: 1.7;
}

.cxfr-feature-launch-tasks {
	border-top: 1px solid #ddd;
	margin-bottom: 3rem;
	padding-top: 1.25rem;
}

.cxfr-feature-launch-tasks h2 {
	font-size: 1.25rem;
	margin: 0 0 1rem;
}

.cxfr-feature-notes h2 {
	margin-bottom: 16px;
}

.cxfr-note {
	padding: 16px 0;
	border-bottom: 1px solid #e5e5e5;
}

.cxfr-note:last-child {
	border-bottom: none;
}

.cxfr-note-meta {
	font-size: 0.85rem;
	color: #777;
	margin-bottom: 6px;
}

/* === Voting === */

.cxfr-vote-box {
	max-width: var(--para-width);
	padding: 1rem;
	border-radius: var(--postcard-border-radius);
	background: var(--clrWhite);
	box-shadow: var(--postcard-shadow);
}

.cxfr-vote-box h3 {
	margin-top: 0;
	margin-bottom: 10px;
}

.cxfr-vote-box .cxfr-vote-wrapper {
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #eee;
}
.cxfr-vote-box .cxfr-feature-availability {
	margin-bottom: 0;
}

.cxfr-vote-box p {
	margin-top: 0;
	margin-bottom: 0;
}

.cxfr-vote-desc {
	font-size: 0.95rem;
	color: #555;
	margin-bottom: 1rem;
}

.cxfr-vote-btn.cxfr-vote-btn {
	padding: 3px 5px;
}

/* Layout */

.the-grid > .cxfr-feature-header,
.the-grid > .page-header,
.the-grid > .cxfr-roadmap-intro,
.the-grid > .cxfr-roadmap-wrapper,
.the-grid > .cxfr-feature-content-wrapper,
.the-grid > .cxfr-vote-box {
  	grid-column: span 3;
}

@media (width >= 1000px) {
	.the-grid > .cxfr-feature-header,
	.the-grid > .page-header,
	.the-grid > .cxfr-roadmap-intro {
	  	grid-column: span 12;
	}
	.the-grid > .cxfr-feature-content-wrapper {
	  	grid-column: span 7;
	}
	.the-grid > .cxfr-roadmap-wrapper {
	  	grid-column-start: 1;
	  	grid-column-end: 12;
	}
	.the-grid > .cxfr-vote-box {
	  	grid-column-start: 9;
	  	grid-column-end: 12;
	  	margin-bottom: auto;
	}
}
