/* Programme Ideas Planning Tool ------------------------------------------
   Deliberately quiet: inherits the theme's typeface and colours and adds
   only the structure the board needs. Sits inside a normal page column.
------------------------------------------------------------------------- */

.smm-ideas {
	margin: 0 0 10px;
}

/* ---------------------------------------------------------- who you are */

.smm-ideas__who {
	margin: 0 0 34px;
	padding: 20px 22px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.025);
}

.smm-ideas__who-line {
	margin: 0;
	line-height: 1.5;
}

.smm-ideas__who-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px;
	margin-top: 16px;
}

.smm-ideas__field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1 1 240px;
	font-size: 0.86em;
}

.smm-ideas__field em {
	opacity: 0.7;
}

.smm-ideas__field input {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid rgba(0, 0, 0, 0.22);
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-size: 1rem;
}

.smm-ideas__go {
	flex: 0 0 auto;
	padding: 11px 26px;
	border: 0;
	border-radius: 6px;
	background: #16181c;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.smm-ideas__go:hover {
	opacity: 0.86;
}

.smm-ideas__who-change {
	display: inline;
}

.smm-ideas__link {
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 0.85em;
	text-decoration: underline;
	opacity: 0.6;
	cursor: pointer;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.smm-ideas__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.smm-ideas__notice {
	margin: 0 0 18px;
	padding: 11px 15px;
	border-left: 3px solid #b3392f;
	border-radius: 4px;
	background: rgba(179, 57, 47, 0.07);
	font-size: 0.9em;
}

/* ------------------------------------------------------------- the board */

.smm-ideas__section {
	margin: 0 0 44px;
}

.smm-ideas__section-title {
	margin: 0 0 6px;
	padding-bottom: 10px;
	border-bottom: 2px solid currentColor;
	opacity: 0.92;
}

.smm-ideas__count {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 9px;
	border-radius: 11px;
	background: rgba(0, 0, 0, 0.07);
	font-size: 0.56em;
	font-weight: 600;
	letter-spacing: 0.04em;
	vertical-align: middle;
}

.smm-ideas__group {
	margin: 26px 0 0;
}

.smm-ideas__group-title {
	margin: 0 0 12px;
	font-size: 1.08em;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	opacity: 0.6;
}

.smm-ideas__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.smm-ideas__item {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 15px 16px 14px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.015);
	list-style: none;
}

.smm-ideas__title {
	display: block;
	margin-bottom: 5px;
	font-weight: 700;
	line-height: 1.3;
}

.smm-ideas__note {
	display: block;
	font-size: 0.9em;
	line-height: 1.45;
	opacity: 0.78;
}

.smm-ideas__tag {
	display: inline-block;
	align-self: flex-start;
	margin-top: 9px;
	padding: 2px 9px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.07);
	font-size: 0.72em;
	letter-spacing: 0.03em;
	opacity: 0.8;
}

/* ---------------------------------------------------------- the buttons */

.smm-ideas__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: auto;
	padding-top: 13px;
}

.smm-ideas__btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 11px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 20px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 0.78em;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.smm-ideas__btn:hover:not( :disabled ) {
	border-color: rgba(0, 0, 0, 0.45);
}

.smm-ideas__btn:disabled {
	opacity: 0.45;
	cursor: default;
}

.smm-ideas__btn-count {
	min-width: 19px;
	padding: 1px 6px;
	border-radius: 9px;
	background: rgba(0, 0, 0, 0.08);
	font-size: 0.92em;
	font-weight: 600;
	text-align: center;
}

.smm-ideas__btn.is-on {
	border-color: transparent;
	background: #16181c;
	color: #fff;
}

.smm-ideas__btn.is-on .smm-ideas__btn-count {
	background: rgba(255, 255, 255, 0.22);
}

.smm-ideas__btn--volunteer.is-on {
	background: #1d6b4f;
}

@media ( max-width: 600px ) {
	.smm-ideas__list {
		grid-template-columns: 1fr;
	}

	.smm-ideas__section {
		margin-bottom: 32px;
	}

	.smm-ideas__who-form {
		gap: 11px;
	}

	.smm-ideas__go {
		width: 100%;
	}
}

/* -------------------------------------------------------- tray of picks */

/* The tray travels with the reader down eighty-three ideas. It cannot do
   that with position:sticky, because a theme wrapper above it sets
   overflow:hidden, which silently confines sticky to a box that never
   scrolls. So the script docks it with position:fixed instead, below
   whatever height The7's floating masthead happens to be at the time, and
   the slot holds its place in the flow meanwhile. */
.smm-ideas__tray-slot {
	margin: 0 0 30px;
}

.smm-ideas__tray-slot[hidden] {
	display: none;
}

.smm-ideas__tray {
	position: relative;
	padding: 12px 16px 14px;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
}

.smm-ideas__tray.is-docked {
	position: fixed;
	z-index: 90;
}

.smm-ideas__tray[hidden] {
	display: none;
}

.smm-ideas__tray-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.smm-ideas__tray-title {
	margin: 0;
	font-size: 0.95em;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: 0;
}

.smm-ideas__tray-count {
	display: inline-block;
	min-width: 1.5em;
	padding: 1px 6px;
	border-radius: 20px;
	background: #16181c;
	color: #fff;
	font-size: 0.78em;
	text-align: center;
}

.smm-ideas__tray-toggle {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	opacity: 0.6;
	font-size: 0.8em;
	text-decoration: underline;
	cursor: pointer;
}

.smm-ideas__tray-toggle:hover {
	opacity: 1;
}

.smm-ideas__tray-list {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 11px 0 0;
	padding: 0;
	max-height: 33vh;
	overflow-y: auto;
	list-style: none;
}

.smm-ideas__tray.is-collapsed .smm-ideas__tray-list {
	display: none;
}

.smm-ideas__chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	max-width: 100%;
	padding: 4px 5px 4px 11px;
	border: 1px solid rgba(0, 0, 0, 0.16);
	border-radius: 20px;
	background: rgba(0, 0, 0, 0.03);
	font-size: 0.82em;
	line-height: 1.35;
}

.smm-ideas__chip-link {
	overflow: hidden;
	max-width: 24em;
	color: inherit;
	text-overflow: ellipsis;
	text-decoration: none;
	white-space: nowrap;
}

.smm-ideas__chip-link:hover {
	text-decoration: underline;
}

.smm-ideas__chip-role {
	padding: 1px 7px;
	border-radius: 20px;
	background: #1d6b4f;
	color: #fff;
	font-size: 0.82em;
	white-space: nowrap;
}

.smm-ideas__chip-role[hidden] {
	display: none;
}

.smm-ideas__chip-x {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.08);
	color: inherit;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}

.smm-ideas__chip-x:hover {
	background: #b3261e;
	color: #fff;
}

.smm-ideas__chip-x:focus-visible,
.smm-ideas__tray-toggle:focus-visible {
	outline: 2px solid #16181c;
	outline-offset: 2px;
}

@media ( max-width: 600px ) {
	.smm-ideas__tray {
		padding: 10px 12px 12px;
	}

	.smm-ideas__tray-list {
		max-height: 28vh;
	}

	.smm-ideas__chip-link {
		max-width: 14em;
	}
}

/* An idea already in the tray gets a quiet marker on the board itself, so
   the two views agree at a glance when you scroll past it. */
.smm-ideas__item:has( .smm-ideas__btn.is-on ) {
	border-color: rgba(0, 0, 0, 0.3);
}
