/*
 * No Tailwind directives here. This stylesheet loads on the host site's pages,
 * and Tailwind v3 emits its utilities unlayered (.hidden, .flex, .block, ...).
 * Unlayered rules beat every layered rule, so on a Tailwind v4 theme they
 * override the theme's own @layer utilities: the plugin's `.hidden` beat the
 * DoubleScale header's `min-[1200px]:flex` and hid the site navigation on
 * every page that rendered the roadmap. The public app uses only its own
 * frp-* classes, so it needs none of them.
 */

/* ── Root ─────────────────────────────────────────────────────────────────── */

.flavor-roadmap-root {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	color: #09090B;
	line-height: 1.5;
}

.flavor-roadmap-root *, .flavor-roadmap-root *::before, .flavor-roadmap-root *::after {
	box-sizing: border-box;
}

/* ── Page header ──────────────────────────────────────────────────────────── */

.frp-header          { margin-bottom: 28px; }
.frp-header-title    { font-size: 26px; font-weight: 800; color: #09090B; letter-spacing: -0.03em; margin: 0 0 6px; }
.frp-header-desc     { font-size: 15px; color: #6B6C76; margin: 0; }

/* ── Tabs ─────────────────────────────────────────────────────────────────── */

.frp-tabs {
	display: flex;
	border-bottom: 2px solid #F7F8FA;
	margin-bottom: 28px;
}

.frp-tab {
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #999999;
	border: none;
	background: none;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color 0.15s;
	font-family: inherit;
}

.frp-tab:hover:not(.active) { color: #6B6C76; }
.frp-tab.active { color: var(--frp-primary); border-bottom-color: var(--frp-primary); }

/* ── Toolbar ──────────────────────────────────────────────────────────────── */

.frp-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.frp-search-wrap {
	position: relative;
	flex: 1;
	min-width: 180px;
}

.frp-search-icon {
	position: absolute;
	left: 11px;
	top: 50%;
	transform: translateY(-50%);
	color: #999999;
	pointer-events: none;
	display: flex;
}

.frp-search {
	width: 100%;
	padding: 9px 12px 9px 34px;
	border: 1.5px solid #DEE1E6;
	border-radius: 8px;
	font-size: 13.5px;
	color: #09090B;
	background: #fff;
	outline: none;
	font-family: inherit;
	transition: border-color 0.15s;
}

.frp-search:focus { border-color: var(--frp-primary); }
.frp-search::-moz-placeholder { color: #999999; }
.frp-search::placeholder { color: #999999; }

.frp-select {
	padding: 9px 32px 9px 12px;
	border: 1.5px solid #DEE1E6;
	border-radius: 8px;
	font-size: 13.5px;
	color: #09090B;
	background: #fff url("data:image/svg+xml,%3Csvg width=%2710%27 height=%276%27 viewBox=%270 0 10 6%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M1 1l4 4 4-4%27 stroke=%27%2394a3b8%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") no-repeat right 10px center;
	-webkit-appearance: none;
	   -moz-appearance: none;
	        appearance: none;
	outline: none;
	cursor: pointer;
	font-family: inherit;
	transition: border-color 0.15s;
}

.frp-select:focus { border-color: var(--frp-primary); }

/* ── View toggle ──────────────────────────────────────────────────────────── */

.frp-view-toggle {
	display: flex;
	border: 1.5px solid #DEE1E6;
	border-radius: 8px;
	overflow: hidden;
}

.frp-view-btn {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 8px 12px;
	border: none;
	background: transparent;
	color: #999999;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.12s, color 0.12s;
	white-space: nowrap;
	font-family: inherit;
}

.frp-view-btn:hover:not(.active) { background: #F7F8FA; color: #6B6C76; }
.frp-view-btn.active { background: var(--frp-primary); color: #fff; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.frp-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	background: var(--frp-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	font-family: inherit;
	transition: opacity 0.15s;
}

.frp-btn-primary:hover   { opacity: 0.88; }
.frp-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.frp-btn-ghost {
	padding: 9px 14px;
	background: transparent;
	border: 1.5px solid #DEE1E6;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 500;
	color: #6B6C76;
	cursor: pointer;
	font-family: inherit;
	transition: border-color 0.12s, background 0.12s;
}

.frp-btn-ghost:hover { border-color: #D0D0D0; background: #F7F8FA; }

/* ── Vote button ──────────────────────────────────────────────────────────── */

.frp-vote {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-width: 46px;
	padding: 9px 10px;
	border: 1.5px solid #DEE1E6;
	border-radius: 8px;
	background: #fff;
	color: #999999;
	cursor: pointer;
	transition: all 0.15s;
	flex-shrink: 0;
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	font-family: inherit;
}

.frp-vote:hover:not(:disabled):not(.voted) {
	border-color: var(--frp-primary);
	color: var(--frp-primary);
	background: color-mix(in srgb, var(--frp-primary) 6%, #fff);
}

.frp-vote.voted {
	background: var(--frp-primary);
	border-color: var(--frp-primary);
	color: #fff;
}

.frp-vote:disabled    { cursor: not-allowed; opacity: 0.4; }
.frp-vote.needs-login { cursor: pointer; border-color: #DEE1E6; color: #6B6C76; }
.frp-vote.needs-login:hover { border-color: var(--frp-primary); color: var(--frp-primary); background: color-mix(in srgb, var(--frp-primary) 6%, #fff); }

.frp-vote-count {
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

/* ── Status badge ─────────────────────────────────────────────────────────── */

.frp-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 99px;
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
}

.frp-status-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* ── Category pill ────────────────────────────────────────────────────────── */

.frp-cat {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 99px;
	font-size: 11px;
	font-weight: 600;
}

/* ── List view ────────────────────────────────────────────────────────────── */

.frp-list { display: flex; flex-direction: column; gap: 10px; }

.frp-list-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 20px;
	background: #fff;
	border: 1.5px solid #DEE1E6;
	border-radius: 12px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.frp-list-item:hover {
	border-color: #D0D0D0;
	box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.frp-list-item-body { flex: 1; min-width: 0; }

.frp-list-item-top {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 5px;
}

.frp-list-item-title {
	font-weight: 700;
	font-size: 14.5px;
	color: #09090B;
	margin: 0;
	flex: 1;
	min-width: 0;
	line-height: 1.4;
}

.frp-list-item-desc {
	font-size: 13px;
	color: #6B6C76;
	margin: 0 0 10px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.frp-list-item-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

/* ── Grid view ────────────────────────────────────────────────────────────── */

.frp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 14px;
}

.frp-grid-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	background: #fff;
	border: 1.5px solid #DEE1E6;
	border-radius: 12px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.frp-grid-card:hover {
	border-color: #D0D0D0;
	box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.frp-grid-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.frp-grid-card-title {
	font-weight: 700;
	font-size: 14px;
	color: #09090B;
	margin: 0;
	line-height: 1.4;
}

.frp-grid-card-desc {
	font-size: 12.5px;
	color: #6B6C76;
	line-height: 1.55;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

.frp-grid-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 4px;
	border-top: 1px solid #F7F8FA;
}

.frp-grid-cats { display: flex; flex-wrap: wrap; gap: 4px; }

/* ── Kanban view ──────────────────────────────────────────────────────────── */

.frp-kanban {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	padding-bottom: 16px;
	align-items: flex-start;
}

.frp-kanban::-webkit-scrollbar { height: 5px; }
.frp-kanban::-webkit-scrollbar-track { background: transparent; }
.frp-kanban::-webkit-scrollbar-thumb { background: #DEE1E6; border-radius: 99px; }

.frp-kanban-col { flex-shrink: 0; width: 280px; }

.frp-kanban-col-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	padding: 0 2px;
}

.frp-kanban-col-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.frp-kanban-col-name { font-size: 13px; font-weight: 700; color: #09090B; flex: 1; }

.frp-kanban-col-count {
	font-size: 11px;
	font-weight: 700;
	color: #999999;
	background: #F7F8FA;
	padding: 2px 7px;
	border-radius: 99px;
}

.frp-kanban-cards { display: flex; flex-direction: column; gap: 8px; }

.frp-kanban-card {
	padding: 14px 16px;
	background: #fff;
	border: 1.5px solid #DEE1E6;
	border-radius: 12px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.frp-kanban-card:hover {
	border-color: #D0D0D0;
	box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.frp-kanban-card-title {
	font-size: 13.5px;
	font-weight: 600;
	color: #09090B;
	margin: 0 0 5px;
	line-height: 1.4;
}

.frp-kanban-card-desc {
	font-size: 12px;
	color: #6B6C76;
	margin: 0 0 10px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.frp-kanban-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px;
}

.frp-kanban-vote {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 700;
	color: #999999;
	/* Now a real <button> (it used to be a static div), so reset the
	 * default button chrome back to the plain inline row it was styled as. */
	border: 0;
	background: none;
	padding: 2px;
	margin: 0;
	font-family: inherit;
	cursor: pointer;
	border-radius: 4px;
}

.frp-kanban-vote:hover:not(:disabled) { color: #6B6C76; }
.frp-kanban-vote.voted { color: var(--frp-primary); }
.frp-kanban-vote.voted:hover:not(:disabled) { color: var(--frp-primary); }
.frp-kanban-vote:disabled { cursor: not-allowed; opacity: 0.6; }
.frp-kanban-vote:focus-visible { outline: 2px solid var(--frp-primary); outline-offset: 1px; }

.frp-kanban-empty {
	padding: 28px 16px;
	border: 1.5px dashed #DEE1E6;
	border-radius: 12px;
	text-align: center;
	font-size: 12px;
	color: #D0D0D0;
}

/* ── Ideas list ───────────────────────────────────────────────────────────── */

.frp-idea-list { display: flex; flex-direction: column; gap: 10px; }

.frp-idea-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 20px;
	background: #fff;
	border: 1.5px solid #DEE1E6;
	border-radius: 12px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.frp-idea-item:hover {
	border-color: #D0D0D0;
	box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.frp-idea-body  { flex: 1; min-width: 0; }
.frp-idea-title { font-weight: 700; font-size: 14px; color: #09090B; margin: 0 0 4px; }

.frp-idea-desc {
	font-size: 13px;
	color: #6B6C76;
	margin: 0 0 8px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.frp-idea-meta { font-size: 11.5px; color: #999999; }

/* ── Submit form ──────────────────────────────────────────────────────────── */

.frp-form-card {
	background: #fff;
	border: 1.5px solid #DEE1E6;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 20px;
}

.frp-form-title { font-size: 15px; font-weight: 700; color: #09090B; margin: 0 0 18px; }

.frp-form-field { margin-bottom: 12px; }

.frp-form-label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: #09090B;
	margin-bottom: 5px;
}

.frp-form-input,
.frp-form-textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1.5px solid #DEE1E6;
	border-radius: 8px;
	font-size: 13.5px;
	color: #09090B;
	background: #fff;
	outline: none;
	font-family: inherit;
	transition: border-color 0.15s;
}

.frp-form-input::-moz-placeholder, .frp-form-textarea::-moz-placeholder { color: #999999; }

.frp-form-input::placeholder,
.frp-form-textarea::placeholder { color: #999999; }

.frp-form-input:focus,
.frp-form-textarea:focus { border-color: var(--frp-primary); }

.frp-form-textarea { resize: vertical; min-height: 88px; line-height: 1.5; }

.frp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.frp-form-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; }

/* ── Toast ────────────────────────────────────────────────────────────────── */

.frp-toast {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	background: #ECFDF5;
	border: 1.5px solid #A7F3D0;
	border-radius: 12px;
	font-size: 13.5px;
	color: #16A34A;
	font-weight: 500;
	margin-bottom: 20px;
}

/* ── Skeleton ─────────────────────────────────────────────────────────────── */

.frp-skeleton {
	background: linear-gradient(90deg, #F7F8FA 25%, #E5E7EB 50%, #F7F8FA 75%);
	background-size: 200% 100%;
	animation: frp-shimmer 1.5s infinite;
	border-radius: 8px;
	display: block;
}

@keyframes frp-shimmer {
	from { background-position: 200% 0; }
	to   { background-position: -200% 0; }
}

/* ── Empty state ──────────────────────────────────────────────────────────── */

.frp-empty { text-align: center; padding: 64px 24px; }

.frp-empty-icon {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	background: #F7F8FA;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
}

.frp-empty-title { font-size: 15px; font-weight: 700; color: #09090B; margin-bottom: 6px; }
.frp-empty-desc  { font-size: 13.5px; color: #999999; }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
	.frp-view-btn span   { display: none; }
	.frp-form-row        { grid-template-columns: 1fr; }
	.frp-grid            { grid-template-columns: 1fr; }
	.frp-kanban-col      { width: 256px; }
	.frp-list-item,
	.frp-idea-item       { padding: 14px 16px; }
}

/* ── DoubleScale theme alignment ───────────────────────────────────────────
 * The roadmap renders inside the DoubleScale site, so it follows that site's
 * type scale and controls rather than its own. Values are taken from the
 * theme's own templates (page-changelog.php, page-pricing.php): Sora for
 * headings, Inter for copy, #09090B headings, #6B6C76 body, #DEE1E6 borders,
 * #3A3A99 brand, 8px controls, 12px cards.
 * ------------------------------------------------------------------------- */

.flavor-roadmap-root {
	--frp-brand: #3A3A99;
	--frp-brand-soft: #F2F2FA;
}

.flavor-roadmap-root .frp-header-title,
.flavor-roadmap-root .frp-grid-card-title,
.flavor-roadmap-root .frp-kanban-card-title,
.flavor-roadmap-root .frp-list-item-title,
.flavor-roadmap-root .frp-idea-title,
.flavor-roadmap-root .frp-form-title,
.flavor-roadmap-root .frp-empty-title {
	font-family: 'Sora', 'Inter', sans-serif;
	letter-spacing: -0.01em;
	color: #09090B;
}

/* Column headers read as labels on this site, not as headings. */
.flavor-roadmap-root .frp-kanban-col-name {
	font-family: 'Sora', 'Inter', sans-serif;
	letter-spacing: 0.01em;
	color: #09090B;
}

/* Cards: the theme's cards are flat with a hairline border, no drop shadow. */
.flavor-roadmap-root .frp-grid-card,
.flavor-roadmap-root .frp-kanban-card,
.flavor-roadmap-root .frp-list-item,
.flavor-roadmap-root .frp-idea-item,
.flavor-roadmap-root .frp-form-card {
	border: 1px solid #DEE1E6;
	box-shadow: none;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.flavor-roadmap-root .frp-grid-card:hover,
.flavor-roadmap-root .frp-kanban-card:hover,
.flavor-roadmap-root .frp-list-item:hover {
	border-color: var(--frp-brand);
	transform: translateY(-1px);
}

/* Buttons follow the theme's outline-to-fill pattern. */
.flavor-roadmap-root .frp-btn-primary {
	background: var(--frp-brand);
	border: 1px solid var(--frp-brand);
	border-radius: 8px;
	font-weight: 500;
	transition: all 0.2s ease;
}

.flavor-roadmap-root .frp-btn-primary:hover:not(:disabled) {
	background: #2F2F7D;
	border-color: #2F2F7D;
	opacity: 1;
}

.flavor-roadmap-root .frp-btn-ghost:hover {
	border-color: var(--frp-brand);
	color: var(--frp-brand);
	background: transparent;
}

/* Tabs: hairline rule, brand underline on the active tab. */
.flavor-roadmap-root .frp-tabs {
	border-bottom: 1px solid #DEE1E6;
	gap: 4px;
}

.flavor-roadmap-root .frp-tab.active {
	color: var(--frp-brand);
	border-bottom-color: var(--frp-brand);
}

/* Vote control: the primary action on the page, so it carries the brand. */
.flavor-roadmap-root .frp-vote.voted,
.flavor-roadmap-root .frp-kanban-vote.voted {
	background: var(--frp-brand-soft);
	border-color: var(--frp-brand);
	color: var(--frp-brand);
}

/* Inputs match the theme's form controls. */
.flavor-roadmap-root .frp-form-input,
.flavor-roadmap-root .frp-form-textarea,
.flavor-roadmap-root .frp-search,
.flavor-roadmap-root .frp-select {
	border: 1px solid #D0D0D0;
	border-radius: 8px;
}

.flavor-roadmap-root .frp-form-input:focus,
.flavor-roadmap-root .frp-form-textarea:focus,
.flavor-roadmap-root .frp-search:focus,
.flavor-roadmap-root .frp-select:focus {
	outline: none;
	border-color: var(--frp-brand);
	box-shadow: 0 0 0 3px rgba(58, 58, 153, 0.12);
}

/* ── Board surface ──────────────────────────────────────────────────────────
 * The theme paints a 700px decorative SVG (.header-hero-background, z-index 0)
 * behind the header and hero of every page. The roadmap starts inside that
 * zone, and with transparent surfaces the pattern showed through the toggle
 * and the empty columns. The board is product UI, so it sits on a white
 * panel above the decoration, the way the site presents product screens.
 * ------------------------------------------------------------------------- */

.flavor-roadmap-root {
	position: relative;
	z-index: 1;
	background: #fff;
	border: 1px solid #DEE1E6;
	border-radius: 16px;
	padding: 8px 24px 24px;
}

@media (max-width: 782px) {
	.flavor-roadmap-root {
		padding: 4px 16px 16px;
		border-radius: 12px;
	}
}

/* Columns share the panel width. A fixed 280px column made five statuses need
 * 1456px inside a 1152px container, so the last column sat off-screen behind
 * a scrollbar. They now flex, and only scroll once a column would drop below
 * a readable width. */
.flavor-roadmap-root .frp-kanban-col {
	flex: 1 1 0;
	width: auto;
	min-width: 200px;
}

/* An empty column must still read as a column: #D0D0D0 text on a transparent
 * box was close to invisible. */
.flavor-roadmap-root .frp-kanban-empty {
	background: #F7F8FA;
	border: 1px dashed #DEE1E6;
	color: #999999;
	font-size: 13px;
}

.flavor-roadmap-root .frp-view-toggle {
	background: #fff;
	border-width: 1px;
}

/* The shortcode's wrapper and the React app's own root both carry
 * .flavor-roadmap-root, so the panel above would draw twice, nested, with the
 * doubled padding squeezing the kanban back into overflow. Only the outermost
 * root is the panel. */
.flavor-roadmap-root .flavor-roadmap-root {
	position: static;
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
}

/* Kanban cards are the narrowest of the three views. At two lines most
 * one-sentence descriptions were cut mid-sentence; four lines fits them in
 * full down to tablet width, and the clamp still guards against long ones. */
.flavor-roadmap-root .frp-kanban-card-desc {
	-webkit-line-clamp: 4;
}

/* Each stage scrolls on its own once it holds more cards than fit, so a long
 * Shipped column doesn't stretch the page far past the other stages. */
.flavor-roadmap-root .frp-kanban-cards {
	max-height: 640px;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: #DEE1E6 transparent;
}

.flavor-roadmap-root .frp-kanban-cards::-webkit-scrollbar { width: 5px; }
.flavor-roadmap-root .frp-kanban-cards::-webkit-scrollbar-track { background: transparent; }
.flavor-roadmap-root .frp-kanban-cards::-webkit-scrollbar-thumb { background: #DEE1E6; border-radius: 99px; }

@media (max-width: 782px) {
	.flavor-roadmap-root .frp-kanban-cards { max-height: 520px; }
}

