/* Net Reminders — public styles */

.nr-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 300px, 1fr ) );
	gap: 1rem;
	margin: 1.5rem 0;
}

.nr-card {
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	background: #fff;
	box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.04 );
}

.nr-card--inactive {
	opacity: 0.6;
}

.nr-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	line-height: 1.25;
}

.nr-card__title a {
	text-decoration: none;
}

.nr-card p {
	margin: 0.25rem 0;
	font-size: 0.95rem;
}

.nr-card__schedule {
	font-weight: 600;
}

.nr-card .dashicons {
	color: #2271b1;
	vertical-align: middle;
	font-size: 1.05rem;
	width: 1.05rem;
	height: 1.05rem;
}

.nr-card__meta {
	margin-top: 0.6rem;
	padding-top: 0.6rem;
	border-top: 1px solid #f0f0f1;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: 0.85rem;
	color: #50575e;
}

.nr-chip {
	display: inline-block;
	background: #f0f6fc;
	color: #0a4b78;
	border: 1px solid #c5d9ed;
	border-radius: 999px;
	padding: 0.1rem 0.6rem;
	margin: 0.1rem 0.25rem 0.1rem 0;
	font-size: 0.8rem;
	white-space: nowrap;
}

/* Single net */
.nr-net__facts {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 220px, 1fr ) );
	gap: 0.75rem 1.5rem;
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	background: #f6f7f7;
	border-radius: 8px;
}

.nr-fact {
	display: flex;
	flex-direction: column;
}

.nr-fact__k {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #646970;
}

.nr-fact__v {
	font-size: 1.05rem;
	font-weight: 600;
}

.nr-net__upcoming ul {
	list-style: none;
	margin: 0.5rem 0;
	padding: 0;
}

.nr-net__upcoming li {
	padding: 0.4rem 0;
	border-bottom: 1px solid #f0f0f1;
}

.nr-badge--inactive {
	display: inline-block;
	background: #fcf0f1;
	color: #b32d2e;
	border-radius: 4px;
	padding: 0.1rem 0.5rem;
	font-size: 0.8rem;
}

.nr-button {
	display: inline-block;
	background: #2271b1;
	color: #fff;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	text-decoration: none;
}

/* Upcoming list */
.nr-upcoming {
	list-style: none;
	margin: 1rem 0;
	padding: 0;
}

.nr-upcoming__item {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	align-items: baseline;
	padding: 0.5rem 0;
	border-bottom: 1px solid #f0f0f1;
}

.nr-upcoming__when {
	font-weight: 600;
	min-width: 12rem;
}

.nr-upcoming__rf {
	color: #50575e;
	font-size: 0.9rem;
}

/* Reminder controls */
.nr-remind {
	margin-top: 0.6rem;
}

.nr-card .nr-remind--compact {
	padding-top: 0.6rem;
	border-top: 1px solid #f0f0f1;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.nr-remind__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	cursor: pointer;
	border: 1px solid #c5d9ed;
	background: #f0f6fc;
	color: #0a4b78;
	border-radius: 999px;
	padding: 0.2rem 0.7rem;
	font-size: 0.85rem;
	line-height: 1.4;
}

.nr-remind.is-subscribed .nr-remind__toggle,
.nr-remind__toggle[aria-pressed="true"] {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.nr-remind__edit {
	font-size: 0.8rem;
}

.nr-remind.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

/* Full editor on the single page */
.nr-remind--full {
	margin: 1.5rem 0;
	padding: 1.25rem 1.5rem;
	background: #f6f7f7;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
}

.nr-remind--full h2 {
	margin-top: 0;
}

.nr-remind--full .nr-remind__toggle {
	font-size: 1rem;
	padding: 0.45rem 1rem;
}

.nr-remind__opts {
	margin-top: 1rem;
}

.nr-remind__opts label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.nr-remind__offsets {
	padding: 0.4rem 0.6rem;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	max-width: 12rem;
}

.nr-remind__status {
	margin: 0.6rem 0 0;
	color: #1a7f37;
	font-size: 0.9rem;
	min-height: 1.2em;
}

/* Account page */
.nr-account {
	max-width: 760px;
}

.nr-account section {
	margin-bottom: 2rem;
}

.nr-targets {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.nr-target {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid #e2e4e7;
	border-radius: 6px;
	margin-bottom: 0.5rem;
	background: #fff;
}

.nr-target__info {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.nr-target__display {
	font-size: 0.85rem;
	color: #50575e;
}

.nr-target__actions {
	display: flex;
	gap: 0.75rem;
}

.nr-target__test,
.nr-target__remove {
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	font-size: 0.9rem;
}

.nr-target__test {
	color: #2271b1;
}

.nr-target__remove {
	color: #b32d2e;
}

.nr-target__status {
	flex-basis: 100%;
	font-size: 0.85rem;
	color: #1a7f37;
	min-height: 1em;
}

.nr-add-target {
	border: 1px solid #e2e4e7;
	border-radius: 6px;
	padding: 1rem 1.25rem;
	background: #f6f7f7;
}

.nr-add-target input[type="text"],
.nr-add-target input[type="email"],
.nr-add-target input[type="url"],
.nr-add-target select {
	width: 100%;
	max-width: 28rem;
	padding: 0.4rem 0.6rem;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.nr-add-status {
	margin-left: 0.5rem;
	color: #1a7f37;
}

.nr-sub-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nr-sub-list li {
	padding: 0.4rem 0;
	border-bottom: 1px solid #f0f0f1;
}

.nr-sub-offsets {
	color: #50575e;
	font-size: 0.85rem;
	margin-left: 0.5rem;
}
