/* NEXA Application detail pages — matches the site's industrial design:
   Sora type, paper/ink palette, terracotta accent, hairline borders. Content
   column capped at the same 1440px container used across the site. */

.nexa-app-detail {
	--nx-ink: #0d1315;
	--nx-paper: #f0f3f1;
	--nx-panel: #dfe6e4;
	--nx-muted: #5d6869;
	--nx-accent: #a8613e;
	--nx-line: rgba(13, 19, 21, 0.16);
	box-sizing: border-box;
	width: 100%;
	padding-inline: 32px;
	background: var(--nx-paper);
	color: var(--nx-ink);
}

.nexa-app-detail,
.nexa-app-detail * {
	box-sizing: border-box;
}

.nexa-app-detail > * {
	max-width: 1440px;
	margin-inline: auto;
}

.nexa-app-detail__content {
	padding-block: clamp(48px, 7vw, 88px) clamp(72px, 10vw, 120px);
}

.nexa-app-detail__content > * {
	margin-block-start: 0;
}

/* ---- Breadcrumb ---- */
.nexa-crumb {
	gap: 8px;
	margin-bottom: clamp(34px, 5vw, 54px);
	color: var(--nx-muted);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.02em;
}

.nexa-crumb__link,
.nexa-crumb__sep {
	margin: 0;
}

.nexa-crumb__link a {
	color: var(--nx-muted);
	text-decoration: none;
	transition: color 180ms ease;
}

.nexa-crumb__link a:hover {
	color: var(--nx-accent);
}

.nexa-crumb__current {
	margin: 0;
	color: var(--nx-ink);
}

/* ---- Hero ---- */
.nexa-app-detail__hero {
	margin-bottom: clamp(44px, 6vw, 72px);
	max-width: 760px;
}

.nexa-section-index {
	margin: 0 0 18px;
	color: var(--nx-muted);
	font: 700 11px/1.2 "Sora", sans-serif;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.nexa-app-detail__title {
	margin: 0 0 18px;
	font-size: clamp(32px, 5vw, 54px);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.01em;
}

.nexa-app-detail__lede {
	margin: 0;
	color: var(--nx-muted);
	font-size: clamp(16px, 2vw, 19px);
	font-weight: 300;
	line-height: 1.6;
}

/* ---- Modules (Scenario, Recommended Drones, Related) ---- */
.nexa-app-detail__module {
	margin-top: clamp(44px, 6vw, 72px);
}

.nexa-app-detail__module-head {
	border-top: 1px solid var(--nx-line);
	padding-top: clamp(24px, 3vw, 34px);
	margin-bottom: clamp(22px, 3vw, 30px);
}

.nexa-app-detail__module-title {
	margin: 0 0 10px;
	font-size: clamp(24px, 3.4vw, 34px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.nexa-app-detail__module-lede {
	max-width: 640px;
	margin: 0;
	color: var(--nx-muted);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.6;
}

.nexa-app-detail__body {
	max-width: 760px;
}

.nexa-app-detail__body p,
.nexa-app-detail__body li {
	color: var(--nx-ink);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.7;
}

/* ---- Recommended drones: friendly empty state ---- */
.nexa-app-detail__placeholder {
	max-width: 640px;
	padding: clamp(28px, 4vw, 40px);
	border: 1px dashed var(--nx-muted);
	border-radius: 10px;
	background: #ffffff;
}

.nexa-app-detail__placeholder-title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 500;
}

.nexa-app-detail__placeholder-text {
	margin: 0;
	color: var(--nx-muted);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.6;
}

/* ---- Related applications grid ---- */
.nexa-app-detail__rel {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: clamp(16px, 2vw, 20px);
}

.nexa-app-detail__rel > * {
	margin-block: 0;
}

.nexa-app-detail__rel-card {
	display: block;
	padding: 26px 28px;
	border: 1px solid var(--nx-line);
	border-radius: 10px;
	background: #ffffff;
	text-decoration: none;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.nexa-app-detail__rel-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(13, 19, 21, 0.12);
	border-color: rgba(13, 19, 21, 0.28);
}

.nexa-app-detail__rel-label {
	display: block;
	margin-bottom: 8px;
	color: var(--nx-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.nexa-app-detail__rel-name {
	display: block;
	color: var(--nx-ink);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
}

.nexa-app-detail__rel-card:hover .nexa-app-detail__rel-name {
	color: var(--nx-accent);
}

.nexa-app-detail__rel-arrow {
	display: block;
	margin-top: 12px;
	color: var(--nx-accent);
	font-size: 15px;
	font-weight: 500;
}

/* ---- Related articles empty note ---- */
.nexa-app-detail__note {
	max-width: 640px;
	margin: 0;
	color: var(--nx-muted);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.6;
}

/* ---- CTA ---- */
.nexa-app-detail__cta {
	margin-top: clamp(44px, 6vw, 68px);
	padding: clamp(30px, 4vw, 44px);
	border: 1px solid var(--nx-line);
	border-radius: 12px;
	background: #ffffff;
}

.nexa-app-detail__cta-title {
	margin: 0 0 8px;
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 500;
	line-height: 1.15;
}

.nexa-app-detail__cta-text {
	max-width: 560px;
	margin: 0 0 22px;
	color: var(--nx-muted);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.6;
}

.nexa-app-detail__cta-btn .wp-block-button__link {
	padding: 16px 36px;
	border-radius: 6px;
	background: var(--nx-accent);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 180ms ease;
}

.nexa-app-detail__cta-btn .wp-block-button__link:hover {
	background: #8d5230;
}

/* ---- Hero banner ---- */
.nexa-app-detail__banner {
	margin-bottom: clamp(20px, 3vw, 32px);
}

.nexa-app-detail__banner-img {
	margin: 0;
}

.nexa-app-detail__banner-img img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--nx-line);
	border-radius: 12px;
}

/* ---- Capability stats ---- */
.nexa-app-detail__stats {
	margin-bottom: clamp(20px, 3vw, 32px);
}

.nexa-app-detail__stats > * {
	margin-block: 0;
}

.nexa-app-detail__stats > .wp-block-group {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.nexa-app-detail__stat {
	flex: 1 1 210px;
	padding: 24px 26px;
	border: 1px solid var(--nx-line);
	border-radius: 10px;
	background: #ffffff;
}

.nexa-app-detail__stat-value {
	margin: 0 0 8px;
	color: var(--nx-accent);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.2;
}

.nexa-app-detail__stat-label {
	margin: 0;
	color: var(--nx-muted);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.55;
}

/* ---- Scenario grid ---- */
.nexa-app-detail__scenario {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 16px;
}

.nexa-app-detail__scenario > * {
	margin-block: 0;
}

.nexa-app-detail__scenario-card {
	padding: 28px 26px;
	border: 1px solid var(--nx-line);
	border-radius: 10px;
	background: #ffffff;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.nexa-app-detail__scenario-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(13, 19, 21, 0.12);
	border-color: rgba(13, 19, 21, 0.28);
}

.nexa-app-detail__scenario-name {
	margin: 0 0 8px;
	font-size: 21px;
	font-weight: 500;
	line-height: 1.15;
}

.nexa-app-detail__scenario-text {
	margin: 0;
	color: var(--nx-muted);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.6;
}

/* ---- Solution feature grid ---- */
.nexa-app-detail__feature {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.nexa-app-detail__feature > * {
	margin-block: 0;
}

.nexa-app-detail__feature-card {
	padding: 26px 28px;
	border: 1px solid var(--nx-line);
	border-radius: 10px;
	background: #ffffff;
}

.nexa-app-detail__feature-title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
}

.nexa-app-detail__feature-title::before {
	content: "—";
	color: var(--nx-accent);
	margin-right: 10px;
}

.nexa-app-detail__feature-text {
	margin: 0;
	color: var(--nx-muted);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.6;
}

/* ---- Workflow steps ---- */
.nexa-app-detail__steps {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

.nexa-app-detail__steps > * {
	margin-block: 0;
}

.nexa-app-detail__step {
	padding: 24px 22px;
	border: 1px solid var(--nx-line);
	border-radius: 10px;
	background: #ffffff;
}

.nexa-app-detail__step-num {
	margin: 0 0 14px;
	color: var(--nx-accent);
	font-size: 26px;
	font-weight: 500;
	line-height: 1;
}

.nexa-app-detail__step-title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.2;
}

.nexa-app-detail__step-text {
	margin: 0;
	color: var(--nx-muted);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.55;
}

/* ---- Config framework ---- */
.nexa-app-detail__config {
	border-top: 1px solid var(--nx-line);
}

.nexa-app-detail__config-row {
	align-items: baseline;
	gap: 24px;
	padding: 20px 0;
	border-bottom: 1px solid var(--nx-line);
}

.nexa-app-detail__config-key {
	flex: 0 0 220px;
	margin: 0;
	color: var(--nx-ink);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}

.nexa-app-detail__config-val {
	flex: 1 1 auto;
	margin: 0;
	color: var(--nx-muted);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.6;
}

.nexa-app-detail__config-btn {
	margin-top: 26px;
}

.nexa-app-detail__config-btn .wp-block-button__link {
	padding: 16px 36px;
	border-radius: 6px;
	background: var(--nx-accent);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 180ms ease;
}

.nexa-app-detail__config-btn .wp-block-button__link:hover {
	background: #8d5230;
}

/* ---- Payload chips ---- */
.nexa-app-detail__payload {
	gap: 12px;
}

.nexa-app-detail__payload-chip {
	margin: 0;
	padding: 12px 20px;
	border: 1px solid var(--nx-line);
	border-radius: 999px;
	background: #ffffff;
	color: var(--nx-muted);
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
}

.nexa-app-detail__payload-chip:hover {
	border-color: var(--nx-accent);
	color: var(--nx-accent);
}

/* ---- FAQ ---- */
.nexa-app-detail__faq {
	border-top: 1px solid var(--nx-line);
}

.nexa-app-detail__faq-item {
	padding: 24px 0;
	border-bottom: 1px solid var(--nx-line);
}

.nexa-app-detail__faq-q {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.3;
}

.nexa-app-detail__faq-a {
	max-width: 720px;
	margin: 0;
	color: var(--nx-muted);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.65;
}

/* ---- Hero actions ---- */
.nexa-app-detail__hero-actions {
	gap: 12px;
	margin-top: 26px;
}

.nexa-app-detail__btn-primary .wp-block-button__link {
	padding: 16px 36px;
	border-radius: 6px;
	background: var(--nx-accent);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 180ms ease;
}

.nexa-app-detail__btn-primary .wp-block-button__link:hover {
	background: #8d5230;
}

.nexa-app-detail__btn-ghost .wp-block-button__link {
	padding: 16px 36px;
	border-radius: 6px;
	background: transparent;
	color: var(--nx-ink);
	border: 1px solid var(--nx-ink);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: border-color 180ms ease, color 180ms ease;
}

.nexa-app-detail__btn-ghost .wp-block-button__link:hover {
	border-color: var(--nx-accent);
	color: var(--nx-accent);
}

/* ---- Capability ---- */
.nexa-app-detail__capability {
	margin-bottom: clamp(20px, 3vw, 32px);
}

.nexa-app-detail__capability > * {
	margin-block: 0;
}

.nexa-app-detail__capability > .wp-block-group {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

/* ---- Challenge ---- */
.nexa-app-detail__challenge {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.nexa-app-detail__challenge > * {
	margin-block: 0;
}

.nexa-app-detail__challenge-card {
	padding: 26px 28px;
	border: 1px solid var(--nx-line);
	border-radius: 10px;
	background: #ffffff;
}

.nexa-app-detail__challenge-title {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.2;
}

.nexa-app-detail__challenge-text {
	margin: 0;
	color: var(--nx-muted);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.6;
}

/* ---- Dark modules ---- */
.nexa-app-detail__module--dark {
	padding: clamp(34px, 4vw, 52px);
	border-radius: 14px;
	background: var(--nx-ink);
	color: #ffffff;
}

.nexa-app-detail__module--dark .nexa-app-detail__module-title {
	color: #ffffff;
}

.nexa-app-detail__module--dark .nexa-app-detail__module-lede {
	color: rgba(255, 255, 255, 0.72);
}

.nexa-app-detail__module--dark .nexa-app-detail__module-head {
	border-top-color: rgba(255, 255, 255, 0.2);
}

.nexa-app-detail__module--dark .nexa-section-index {
	color: rgba(255, 255, 255, 0.55);
}

.nexa-app-detail__module--dark .nexa-app-detail__feature-card {
	background: #1a2024;
	border-color: rgba(255, 255, 255, 0.16);
}

.nexa-app-detail__module--dark .nexa-app-detail__feature-title {
	color: #ffffff;
}

.nexa-app-detail__module--dark .nexa-app-detail__feature-title::before {
	color: var(--nx-accent);
}

.nexa-app-detail__module--dark .nexa-app-detail__feature-text {
	color: rgba(255, 255, 255, 0.72);
}

/* ---- Recommended placeholder cards ---- */
.nexa-app-detail__rec {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.nexa-app-detail__rec > * {
	margin-block: 0;
}

.nexa-app-detail__rec-card {
	padding: 26px 26px;
	border: 1px solid var(--nx-line);
	border-radius: 10px;
	background: #ffffff;
}

.nexa-app-detail__rec-badge {
	margin: 0 0 14px;
	padding: 3px 10px;
	border: 1px solid var(--nx-accent);
	border-radius: 999px;
	color: var(--nx-accent);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nexa-app-detail__rec-model {
	margin: 0 0 10px;
	font-size: 21px;
	font-weight: 500;
	line-height: 1.2;
}

.nexa-app-detail__rec-desc {
	margin: 0 0 16px;
	color: var(--nx-muted);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.55;
}

.nexa-app-detail__rec-specs {
	border-top: 1px solid var(--nx-line);
	padding-top: 14px;
}

.nexa-app-detail__rec-spec {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 8px;
	color: var(--nx-muted);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.45;
}

.nexa-app-detail__rec-spec strong {
	color: var(--nx-ink);
	font-weight: 500;
}

.nexa-app-detail__rec-card .wp-block-buttons {
	margin-top: 18px;
}

/* ---- Mission configuration table ---- */
.nexa-app-detail__config-table {
	margin: 0 0 14px;
	overflow-x: auto;
}

.nexa-app-detail__config-table table {
	width: 100%;
	min-width: 740px;
	border-collapse: collapse;
	font-size: 14px;
}

.nexa-app-detail__config-table th,
.nexa-app-detail__config-table td {
	padding: 14px 16px;
	border: 1px solid var(--nx-line);
	text-align: left;
}

.nexa-app-detail__config-table thead th {
	background: #ffffff;
	font-weight: 600;
}

.nexa-app-detail__config-table tbody tr:nth-child(odd) {
	background: #f4f7f5;
}

.nexa-app-detail__config-note {
	margin: 0;
	color: var(--nx-muted);
	font-size: 13px;
	font-style: italic;
}

/* ---- Typical mission ---- */
.nexa-app-detail__mission {
	padding: 6px 28px;
	border: 1px solid var(--nx-line);
	border-radius: 12px;
	background: #ffffff;
}

.nexa-app-detail__mission-row {
	align-items: baseline;
	gap: 24px;
	padding: 18px 0;
	border-bottom: 1px solid var(--nx-line);
}

.nexa-app-detail__mission-row:last-child {
	border-bottom: none;
}

.nexa-app-detail__mission-key {
	flex: 0 0 200px;
	margin: 0;
	color: var(--nx-ink);
	font-size: 15px;
	font-weight: 500;
}

.nexa-app-detail__mission-val {
	flex: 1 1 auto;
	margin: 0;
	color: var(--nx-muted);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.6;
}

@media (max-width: 820px) {
	.nexa-app-detail {
		padding-inline: 18px;
	}
	.nexa-app-detail__stats > .wp-block-group {
		gap: 12px;
	}
	.nexa-app-detail__stat {
		flex-basis: 100%;
	}
	.nexa-app-detail__feature,
	.nexa-app-detail__steps {
		grid-template-columns: 1fr;
	}
	.nexa-app-detail__scenario {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
	.nexa-app-detail__config-row {
		flex-direction: column;
		gap: 6px;
	}
	.nexa-app-detail__config-key {
		flex: 0 0 auto;
	}
	.nexa-app-detail__challenge {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
	.nexa-app-detail__rec {
		grid-template-columns: 1fr;
	}
	.nexa-app-detail__hero-actions {
		flex-direction: column;
		align-items: flex-start;
	}
	.nexa-app-detail__mission-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	.nexa-app-detail__mission-key {
		flex: 0 0 auto;
	}
	.nexa-app-detail__capability > .wp-block-group {
		gap: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nexa-app-detail__scenario-card,
	.nexa-app-detail__payload-chip {
		transition: none;
	}
	.nexa-app-detail__scenario-card:hover {
		transform: none;
		box-shadow: none;
	}
	.nexa-app-detail__config-btn .wp-block-button__link,
	.nexa-app-detail__payload-chip {
		transition: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nexa-app-detail__rel-card {
		transition: none;
	}
	.nexa-app-detail__rel-card:hover {
		transform: none;
		box-shadow: none;
	}
	.nexa-app-detail__cta-btn .wp-block-button__link {
		transition: none;
	}
}
