/*
 * Team flow pages (Create Team, Join a Team, Team Created, Team Status) - redesign from the
 * "redesign_team_pages" handoff (Create Team screen, desktop + mobile).
 *
 * Everything is scoped under .nct-ct so the shared nct-teams.css (still used
 * by page-team-status.php) is untouched. Form ids/names and the
 * .nct-option-card / .nct-template-card / .nct-color-sw hooks that
 * teams-create.js and the e2e specs rely on are kept; only their look changes.
 * Colours, type and radii come from nct-tokens.css (--nct-*); nothing here
 * defines its own palette.
 */

.nct-ct {
	container-type: inline-size;
	background: #fff;
	color: var(--nct-text);
	font-family: var(--nct-font-body);
}

.nct-ct *,
.nct-ct *::before,
.nct-ct *::after {
	box-sizing: border-box;
}

.nct-ct-wrap {
	padding-left: 7.5%;
	padding-right: 7.5%;
}

.nct-ct-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--nct-primary-text);
}

.nct-ct h1,
.nct-ct h2,
.nct-ct h3 {
	font-family: var(--nct-font-heading);
	text-transform: uppercase;
	margin: 0;
}

.nct-ct-h2 {
	font-size: min(34px, 8cqw);
	line-height: 1.15;
	color: #000;
}

/* ---- Hero ---- */

.nct-ct-hero {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 64px;
	align-items: center;
	padding-top: 64px;
	padding-bottom: 48px;
}

.nct-ct-hero-copy {
	flex: 1 1 440px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: flex-start;
	min-width: 0;
}

.nct-ct-pill {
	background: var(--nct-tint);
	border: 1px solid var(--nct-tint-border);
	color: var(--nct-primary-text);
	border-radius: 30px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.nct-ct-hero h1 {
	font-size: min(56px, 11cqw);
	line-height: 1.05;
	color: var(--nct-primary);
	text-shadow: 3px 3px 0 var(--nct-shadow);
}

.nct-ct-lead {
	margin: 0;
	max-width: 520px;
	font-size: 17px;
	line-height: 28px;
	color: var(--nct-text-dim);
	text-wrap: pretty;
}

.nct-ct-hero-art {
	flex: 1 1 360px;
	min-width: 0;
	aspect-ratio: 4 / 3;
	background: var(--nct-primary) center / cover no-repeat;
	border-radius: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.nct-ct-cards {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 78%;
}

.nct-ct-cards img {
	display: block;
	height: auto;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .25));
}

.nct-ct-cards img:nth-child(1) { width: 27%; transform: rotate(-14deg) translate(30%, 8%); }
.nct-ct-cards img:nth-child(2) { width: 29%; transform: rotate(-5deg) translate(12%, 0); position: relative; z-index: 1; }
.nct-ct-cards img:nth-child(3) { width: 31%; position: relative; z-index: 2; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .35)); }
.nct-ct-cards img:nth-child(4) { width: 29%; transform: rotate(7deg) translate(-12%, 4%); position: relative; z-index: 1; }

/* ---- Create / Join switch ----
 * Segmented pill centred between "How it works" and the form panel.
 * teams-create.js drives it via [data-nct-mode]. Selected fill is
 * --nct-primary-text, not --nct-primary: white on the brand blue is 2.5:1.
 */

.nct-ct-switch {
	display: flex;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto 28px;
	background: #fff;
	border: 1px solid var(--nct-line);
	border-radius: 30px;
	padding: 5px;
	gap: 4px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.nct-ct-switch button {
	flex: 1 1 auto;
	border: none;
	border-radius: 30px;
	padding: 11px 28px;
	font: 600 16px/22px var(--nct-font-body);
	cursor: pointer;
	background: transparent;
	color: var(--nct-text-dim);
}

.nct-ct-switch button[aria-pressed="true"] {
	background: var(--nct-primary-text);
	color: #fff;
}

.nct-ct-switch button:focus-visible {
	outline: var(--nct-focus-ring);
	outline-offset: var(--nct-focus-offset);
}

@media (max-width: 480px) {
	.nct-ct-switch {
		width: 100%;
	}

	.nct-ct-switch button {
		padding: 12px 8px;
	}
}

/* ---- How it works ---- */

.nct-ct-how {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding-top: 8px;
	padding-bottom: 56px;
}

.nct-ct-how-head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nct-ct-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 28px 32px;
}

.nct-ct-step {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.nct-ct-step-num {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1.5px solid var(--nct-ring);
	color: var(--nct-primary-text);
	font-size: 16px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nct-ct-step-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nct-ct-step-title {
	font-family: var(--nct-font-heading);
	font-size: 19px;
	line-height: 24px;
	text-transform: uppercase;
	color: #000;
}

.nct-ct-step-text {
	font-size: 15px;
	line-height: 22px;
	color: var(--nct-text-dim);
}

/* ---- Form panel ---- */

.nct-ct-panel {
	background: var(--nct-panel);
	border: 1px solid var(--nct-panel-border);
	border-radius: 24px;
	padding: 56px min(64px, 6%);
	display: flex;
	flex-wrap: wrap;
	gap: 40px 64px;
	align-items: flex-start;
}

.nct-ct-panel-intro {
	flex: 1 1 300px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.nct-ct-panel-intro p {
	margin: 0;
	font-size: 16px;
	line-height: 26px;
	color: var(--nct-text-dim);
	text-wrap: pretty;
}

.nct-ct-panel-main {
	flex: 1.4 1 440px;
	min-width: 0;
}

.nct-ct-form {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.nct-ct-section {
	display: flex;
	flex-direction: column;
	gap: 18px;
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.nct-ct-section-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0;
	width: 100%;
}

.nct-ct-section-head::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--nct-divider);
}

.nct-ct-section-head span {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--nct-primary-text);
	white-space: nowrap;
}

.nct-ct-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px 20px;
	align-items: end;
}

.nct-ct .nct-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	font-size: 15px;
	line-height: 22px;
	font-weight: 500;
	color: var(--nct-text);
}

.nct-ct .nct-field input {
	background: #fff;
	border: 1px solid var(--nct-line);
	border-radius: 10px;
	padding: 14px 16px;
	font: 400 16px/24px var(--nct-font-body) !important;
	color: var(--nct-text);
	outline: none;
	min-width: 0;
	width: 100%;
}

.nct-ct .nct-field input::placeholder {
	color: var(--nct-placeholder);
	font-weight: 400;
}

.nct-ct .nct-field input:focus,
.nct-ct .nct-field input:focus-visible {
	border-color: var(--nct-primary-text);
	outline: var(--nct-focus-ring);
	outline-offset: 0;
}

/* One focus ring for every other control on the flow's pages. */
.nct-ct :is(a, button, summary):focus-visible {
	outline: var(--nct-focus-ring);
	outline-offset: var(--nct-focus-offset);
}

.nct-ct-hint {
	margin: 0;
	font-size: 13px;
	line-height: 20px;
	color: var(--nct-text-faint);
}

/* Option cards (payment + template mode): bordered card with a radio dot. */

.nct-ct-options {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.nct-ct .nct-option-card {
	flex: 1 1 220px;
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
	text-align: left;
	border: 2px solid var(--nct-option-border);
	background: #fff;
	border-radius: 12px;
	padding: 16px 18px;
	cursor: pointer;
	box-shadow: none;
	color: var(--nct-text);
}

.nct-ct .nct-ct-options-stack .nct-option-card {
	flex-basis: 100%;
}

.nct-ct .nct-option-card:hover {
	border-color: var(--nct-primary);
}

.nct-ct .nct-option-card:has(input:focus-visible) {
	outline: var(--nct-focus-ring);
	outline-offset: var(--nct-focus-offset);
}

.nct-ct .nct-option-card:has(input:checked) {
	border-color: transparent;
	background: linear-gradient(var(--nct-select-tint), var(--nct-select-tint)) padding-box, var(--nct-select-fill) border-box;
	box-shadow: none;
}

.nct-ct-dot {
	flex: none;
	margin-top: 1px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid var(--nct-line-strong);
	display: flex;
	align-items: center;
	justify-content: center;
}

.nct-ct-dot::after {
	content: '';
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: transparent;
}

.nct-option-card:has(input:checked) .nct-ct-dot {
	border-color: var(--nct-select-solid);
}

.nct-option-card:has(input:checked) .nct-ct-dot::after {
	background: var(--nct-select-fill);
}

.nct-ct-option-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.nct-ct .nct-option-title {
	font-family: var(--nct-font-body);
	font-weight: 600;
	font-size: 16px;
	line-height: 22px;
	text-transform: none;
	letter-spacing: normal;
	color: var(--nct-text);
}

.nct-ct .nct-option-subtitle {
	font-size: 14px;
	line-height: 20px;
	color: var(--nct-text-faint);
}

/* "One For Everyone" design picker. */

.nct-ct .nct-template-gallery {
	margin-top: 0;
	background: #fff;
	border: 1px solid var(--nct-line);
	border-radius: 12px;
	padding: 14px;
}

.nct-ct .nct-template-gallery-label {
	font: 600 14px/20px var(--nct-font-body);
	text-transform: none;
	letter-spacing: normal;
	color: var(--nct-text);
	margin: 0 0 12px;
}

.nct-ct .nct-template-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 12px;
}

.nct-ct .nct-template-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	border: 2px solid var(--nct-option-border);
	background: #fff;
	border-radius: 10px;
	padding: 8px 6px 6px;
	cursor: pointer;
	box-shadow: none;
}

.nct-ct .nct-template-card:hover {
	border-color: var(--nct-primary);
}

.nct-ct .nct-template-card:has(input:focus-visible) {
	outline: var(--nct-focus-ring);
	outline-offset: var(--nct-focus-offset);
}

.nct-ct .nct-template-card:has(input[name="nct_design"]:checked) {
	border-color: transparent;
	background: linear-gradient(var(--nct-select-tint), var(--nct-select-tint)) padding-box, var(--nct-select-fill) border-box;
	box-shadow: none;
}

.nct-ct .nct-template-card:has(input[name="nct_design"]:checked)::after {
	content: '✓';
	position: absolute;
	top: 6px;
	right: 6px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--nct-select-fill);
	color: #fff;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nct-ct .nct-template-card-img {
	width: 100%;
	max-width: 90px;
	aspect-ratio: auto;
	height: auto;
	object-fit: contain;
	background: transparent;
	border-radius: 0;
}

.nct-ct .nct-template-card-name {
	font: 500 13px/18px var(--nct-font-body);
	color: var(--nct-text);
}

.nct-ct .nct-template-card-colors {
	margin-top: -2px;
	color: var(--nct-text-faint);
}

.nct-ct .nct-template-colors {
	background: var(--nct-tint);
	border: 1px solid var(--nct-line);
	border-radius: 10px;
}

.nct-ct .nct-template-colors.nct-has-error {
	border-color: var(--nct-error);
}

.nct-ct .nct-template-colors-label {
	font: 600 13px/18px var(--nct-font-body);
	text-transform: none;
	letter-spacing: normal;
}

.nct-ct .nct-color-sw:has(input:checked) .nct-color-sw-dot {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--nct-select-solid);
}

.nct-ct .nct-template-gallery.nct-has-error {
	border-color: var(--nct-error);
	margin-left: 0;
	margin-right: 0;
}

/* ---- Shared pieces moved over from the retired nct-teams.css rules ---- */

/* Radio inputs inside cards stay in the tab order but are visually hidden;
   selection is drawn on the card itself via :has(input:checked). */
.nct-ct .nct-option-card input,
.nct-ct .nct-template-card input,
.nct-ct .nct-color-sw input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.nct-ct .nct-template-card-name {
	text-align: center;
}

.nct-ct .nct-template-card-colors {
	font-size: 11px;
	text-align: center;
}

/* No-preview fallback for a design without a thumbnail. */
.nct-ct .nct-placeholder-img {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--nct-line);
	border: 1px solid var(--nct-line);
	color: var(--nct-text-faint);
	font-size: 12.5px;
	text-align: center;
	padding: 16px;
}

/* Full-width grid item; teams-create.js drops it just after the chosen card. */
.nct-ct .nct-template-colors {
	grid-column: 1 / -1;
	padding: 14px 16px;
}

.nct-ct .nct-template-colors-label {
	margin: 0 0 10px;
}

.nct-ct .nct-color-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.nct-ct .nct-color-sw {
	position: relative;
	display: inline-flex;
	cursor: pointer;
	border-radius: 50%;
	padding: 4px; /* larger tap target than the 28px dot */
}

.nct-ct .nct-color-sw-dot {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid var(--nct-swatch-outline);
}

.nct-ct .nct-color-hint {
	font-size: 12px;
	color: var(--nct-error);
	margin: 10px 0 0;
}

/* Actions */

.nct-ct-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 6px;
}

.nct-ct-btn {
	flex: 1 1 200px;
	border-radius: 30px;
	padding: 14px 24px;
	font: 600 16px/24px var(--nct-font-body);
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.nct-ct-btn-primary {
	flex-basis: 220px;
	background: var(--nct-text);
	color: #fff;
	border: 1px solid var(--nct-text);
}

.nct-ct-btn-secondary {
	background: #fff;
	color: var(--nct-text);
	border: 1px solid var(--nct-line-strong);
}

.nct-ct-btn-primary:hover,
.nct-ct-btn-secondary:hover {
	background: var(--nct-primary-hover);
	border-color: var(--nct-primary-hover);
	color: #fff;
}

.nct-ct-error {
	margin: 0;
	color: var(--nct-error);
	font-size: 14px;
	line-height: 20px;
}

.nct-ct-error a {
	color: var(--nct-primary-text);
	text-decoration: underline;
}

.nct-ct-status {
	margin: 0;
	color: var(--nct-text-faint);
	font-size: 13px;
}

/* Join tab: sub-tabs, 8-box code entry, link entry. */

.nct-ct [hidden] {
	display: none !important;
}

.nct-ct-subtabs {
	display: flex;
	background: #fff;
	border: 1px solid var(--nct-line);
	border-radius: 30px;
	padding: 4px;
	gap: 4px;
	align-self: flex-start;
}

.nct-ct-subtabs button {
	border: none;
	border-radius: 30px;
	padding: 9px 20px;
	font: 600 14px/20px var(--nct-font-body);
	cursor: pointer;
	background: transparent;
	color: var(--nct-text-dim);
}

.nct-ct-subtabs button[aria-pressed="true"] {
	background: var(--nct-primary-text);
	color: #fff;
}

.nct-ct-find {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nct-ct-find-label {
	font-size: 15px;
	font-weight: 500;
	color: var(--nct-text);
}

.nct-ct-code-boxes {
	position: relative;
	display: flex;
	gap: 8px;
	width: 100%;
	max-width: 500px;
}

.nct-ct-code-box {
	flex: 1 1 0;
	min-width: 0;
	max-width: 56px;
	aspect-ratio: 52 / 62;
	border-radius: 12px;
	border: 2px solid var(--nct-option-border);
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--nct-font-heading);
	font-size: 30px;
	color: var(--nct-text);
}

.nct-ct-code-box.is-filled {
	border-color: var(--nct-text);
}

.nct-ct-code-box.is-next {
	border-color: var(--nct-primary);
}

.nct-ct .nct-ct-code-boxes input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: text;
	font-size: 16px;
	border: 0;
	padding: 0;
}

.nct-ct-link-field {
	width: 100%;
}

.nct-ct-btn-block {
	flex: none;
	width: 100%;
}

.nct-ct-btn:disabled {
	opacity: .45;
	cursor: not-allowed;
}

.nct-ct-btn:disabled:hover {
	background: var(--nct-text);
	border-color: var(--nct-text);
	color: #fff;
}

/* ---- FAQ ---- */

.nct-ct-faq {
	padding-top: 88px;
	padding-bottom: 88px;
	display: flex;
	justify-content: center;
}

.nct-ct-faq-inner {
	width: 100%;
	max-width: 860px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nct-ct-faq-head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nct-ct-faq-item {
	border-bottom: 1px solid var(--nct-line);
}

.nct-ct-faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 4px;
	cursor: pointer;
	list-style: none;
	font: 600 17px/24px var(--nct-font-body);
	color: #000;
}

.nct-ct-faq-item summary::-webkit-details-marker {
	display: none;
}

.nct-ct-faq-item summary:hover {
	color: var(--nct-primary-hover);
}

.nct-ct-faq-item summary::after {
	content: '+';
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--nct-tint);
	color: var(--nct-primary-text);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}

.nct-ct-faq-item[open] summary::after {
	content: '−';
}

.nct-ct-faq-item p {
	margin: 0;
	padding: 0 4px 20px;
	font-size: 15px;
	line-height: 24px;
	color: var(--nct-text-dim);
	max-width: 640px;
}

/* ---- Join a Team page (page-join-team.php) ---- */

.nct-ct-join {
	padding-top: 64px;
	padding-bottom: 88px;
	display: flex;
	justify-content: center;
}

.nct-ct-join-inner {
	width: 100%;
	max-width: 760px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.nct-ct-join-hero {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: flex-start;
}

.nct-ct-join-hero h1 {
	font-size: min(56px, 11cqw);
	line-height: 1.05;
	color: var(--nct-primary);
	text-shadow: 3px 3px 0 var(--nct-shadow);
}

.nct-ct-join-hero .nct-ct-lead {
	max-width: 560px;
}

.nct-ct-join-card {
	background: var(--nct-panel);
	border: 1px solid var(--nct-panel-border);
	border-radius: 24px;
	padding: 28px min(32px, 5%) 30px;
}

.nct-ct-next {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding-top: 16px;
}

.nct-ct-next-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

.nct-ct-next-card {
	background: #fff;
	border: 1px solid var(--nct-line);
	border-radius: 20px;
	padding: 22px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nct-ct-next-num {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--nct-primary);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---- Team created (replaces the landing page after submit) ---- */

.nct-ct-pill-ok {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--nct-success-bg);
	border-color: var(--nct-success-bg);
	color: var(--nct-success);
}

.nct-ct-pill-check {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--nct-success);
	color: #fff;
	font-size: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nct-ct-join-hero h1:focus {
	outline: none;
}

.nct-ct-share {
	background: var(--nct-panel);
	border: 1px solid var(--nct-panel-border);
	border-radius: 24px;
	overflow: hidden;
}

.nct-ct-share-head {
	padding: 24px min(32px, 5%);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 28px;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--nct-line);
	background: #fff;
}

.nct-ct-share-team {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.nct-ct-share-name {
	font-family: var(--nct-font-heading);
	font-size: 22px;
	line-height: 26px;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.nct-ct-share-coach {
	font-size: 14px;
	color: var(--nct-text-faint);
}

.nct-ct-share-progress {
	flex: 0 1 240px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
}

.nct-ct-share-progress-row {
	display: flex;
	justify-content: space-between;
}

.nct-ct-share-progress-row span {
	color: var(--nct-text-faint);
}

.nct-ct-bar {
	height: 8px;
	border-radius: 8px;
	background: var(--nct-line);
	overflow: hidden;
}

.nct-ct-bar-fill {
	height: 100%;
	border-radius: 8px;
	background: var(--nct-select-fill);
}

.nct-ct-share-body {
	padding: 28px min(32px, 5%) 30px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.nct-ct-share-block {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nct-ct-copy-row {
	display: flex;
	align-items: center;
	gap: 10px 14px;
	flex-wrap: wrap;
}

.nct-ct .nct-ct-copy-row input {
	flex: 1;
	min-width: 0;
	background: #fff;
	border: 1px solid var(--nct-line);
	border-radius: 30px;
	padding: 10px 18px;
	font: 400 16px/22px var(--nct-font-body) !important;
	color: var(--nct-text-dim);
	text-overflow: ellipsis;
}

.nct-ct-copy-btn {
	flex: none;
	border: 1px solid var(--nct-text);
	background: #fff;
	color: var(--nct-text);
	border-radius: 30px;
	padding: 10px 22px;
	font: 600 16px/24px var(--nct-font-body);
	white-space: nowrap;
	cursor: pointer;
}

.nct-ct-copy-btn:hover {
	background: var(--nct-primary-hover);
	border-color: var(--nct-primary-hover);
	color: #fff;
}

.nct-ct-or {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 13px;
	color: var(--nct-text-faint);
}

.nct-ct-or::before,
.nct-ct-or::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--nct-divider);
}

.nct-ct-code-static {
	display: flex;
	gap: 6px;
	flex: 1 1 220px;
	max-width: 426px;
}

.nct-ct-code-static span {
	flex: 1 1 0;
	min-width: 0;
	max-width: 48px;
	aspect-ratio: 48 / 58;
	border-radius: 12px;
	background: var(--nct-tint);
	border: 1px solid var(--nct-tint-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--nct-font-heading);
	font-size: 28px;
	color: var(--nct-text);
}

.nct-ct-signin {
	background: rgba(43, 174, 228, .08);
	border: 1.5px solid var(--nct-primary);
	border-radius: 20px;
	padding: 20px min(26px, 5%);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px 16px;
	flex-wrap: wrap;
}

.nct-ct-signin-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1 1 240px;
}

.nct-ct-signin-text strong {
	font-weight: 600;
	font-size: 17px;
}

.nct-ct-signin-text span {
	font-size: 14px;
	line-height: 20px;
	color: var(--nct-text-dim);
}

.nct-ct a.nct-ct-signin-btn {
	background: var(--nct-primary);
	color: #fff;
	border-radius: 30px;
	padding: 10px 22px;
	font: 600 16px/24px var(--nct-font-body);
	text-decoration: none;
}

.nct-ct a.nct-ct-signin-btn:hover {
	background: var(--nct-primary-hover);
	color: #fff;
}

.nct-ct a.nct-ct-signin-btn--secondary {
	background: transparent;
	color: var(--nct-primary);
	box-shadow: inset 0 0 0 1.5px var(--nct-primary);
}

.nct-ct a.nct-ct-signin-btn--secondary:hover {
	background: rgba(43, 174, 228, .12);
	color: var(--nct-primary);
}

/* ---- Team status page (page-team-status.php) ---- */

.nct-ct-stack {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.nct-ct-notice {
	background: var(--nct-panel);
	border: 1px solid var(--nct-panel-border);
	border-radius: var(--nct-radius-panel);
	padding: 40px min(40px, 6%);
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: flex-start;
}

.nct-ct-notice h1 {
	font-size: min(40px, 9cqw);
	line-height: 1.1;
	color: #000;
	overflow-wrap: anywhere;
}

.nct-ct-notice-center {
	align-items: center;
	text-align: center;
}

.nct-ct a.nct-ct-btn-link {
	display: inline-block;
	flex: none;
	text-decoration: none;
	text-align: center;
	color: var(--nct-text);
}

.nct-ct a.nct-ct-btn-link:hover {
	color: #fff;
}

.nct-ct-join-hero h1 {
	overflow-wrap: anywhere;
}

.nct-ct-share-progress-wide {
	flex: 1 1 100%;
}

.nct-ct-h2-sm {
	font-size: min(26px, 7cqw);
}

/* Deadline as a calendar tile with days left. */
.nct-ct-dl {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.nct-ct-dl-tile {
	flex: none;
	width: 78px;
	border: 1px solid var(--nct-line);
	border-radius: var(--nct-radius-card);
	overflow: hidden;
	background: #fff;
	text-align: center;
}

.nct-ct-dl-mon {
	background: var(--nct-primary);
	color: #000;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 2px;
	padding: 5px 0;
}

.nct-ct-dl-day {
	font-family: var(--nct-font-heading);
	font-size: 32px;
	line-height: 1.1;
	padding-top: 6px;
}

.nct-ct-dl-year {
	font-weight: 600;
	font-size: 11px;
	color: var(--nct-text-faint);
	padding-bottom: 7px;
}

.nct-ct-dl-body {
	flex: 1 1 140px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nct-ct-dl-date {
	font-size: 16px;
	font-weight: 600;
	line-height: 22px;
}

.nct-ct-dl-left {
	font-weight: 700;
	font-size: 14px;
	color: var(--nct-primary-text);
	text-align: right;
}
