/* Incident Tabletop Simulator — [incident_tabletop] styles (v1.32.0).
   Shares the Security Lab visual language (teal #17b6a0 accents, dark
   #0f172a/#1e293b widget chrome, Poppins) so it reads as one system with
   the other lab widgets. Scoped under .tabletop-sim. Self-enqueued from
   inc/security-lab/tabletop-simulator.php (see js/security-lab.js and
   css/lab-widgets.css for the global-enqueue rationale). */

.tabletop-sim { color-scheme: dark; }

.tabletop-intro {
	font-size: 13.5px;
	opacity: .82;
	margin: 0 0 14px;
	line-height: 1.6;
}

/* ---- disclaimer banners ---- */
.tabletop-banner,
.tabletop-aar-banner {
	background: rgba(255, 165, 2, .08);
	border: 1px solid rgba(255, 165, 2, .35);
	border-radius: 6px;
	padding: 12px 14px;
	font-size: 12.5px;
	line-height: 1.55;
	color: #f6d9a6;
	margin: 0 0 18px;
}
.tabletop-banner strong,
.tabletop-aar-banner strong { color: #ffce7a; }

.tabletop-disclaimer {
	font-size: 11.5px;
	opacity: .6;
	line-height: 1.55;
	margin: 18px 0 0;
	border-top: 1px solid rgba(23, 182, 160, .12);
	padding-top: 12px;
}
.tabletop-noscript { color: #ffa502; font-size: 13px; }

/* ---- scenario picker ---- */
.tabletop-picker-intro { font-size: 13px; opacity: .8; margin: 0 0 14px; }

.tabletop-picker {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}
.tabletop-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-align: left;
	background: rgba(15, 23, 42, .5);
	border: 1px solid rgba(23, 182, 160, .18);
	border-radius: 8px;
	padding: 18px;
	cursor: pointer;
	color: #c9d3df;
	font-family: inherit;
	transition: border-color .2s, background .2s, transform .1s;
}
.tabletop-card:hover,
.tabletop-card:focus-visible {
	border-color: rgba(23, 182, 160, .55);
	background: rgba(23, 182, 160, .06);
}
.tabletop-card:focus-visible { outline: 2px solid #17b6a0; outline-offset: 2px; }
.tabletop-card:active { transform: translateY(1px); }
.tabletop-card-title { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.35; }
.tabletop-card-org { font-size: 12px; color: #17b6a0; font-weight: 600; }
.tabletop-card-sector { font-size: 11.5px; opacity: .6; }
.tabletop-card-summary { font-size: 12.5px; opacity: .82; line-height: 1.5; margin-top: 2px; }
.tabletop-card-meta {
	font-size: 11px;
	letter-spacing: .05em;
	text-transform: uppercase;
	opacity: .55;
	margin-top: 4px;
}

/* ---- stage view ---- */
.tabletop-progress {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	font-size: 12px;
	margin-bottom: 6px;
}
.tabletop-scenario-name { font-weight: 600; opacity: .85; }
.tabletop-step { opacity: .55; white-space: nowrap; }

.tabletop-bar {
	height: 4px;
	background: rgba(23, 182, 160, .12);
	border-radius: 2px;
	overflow: hidden;
	margin-bottom: 18px;
}
.tabletop-bar-fill {
	height: 100%;
	background: #17b6a0;
	border-radius: 2px;
	transition: width .3s ease;
}

.tabletop-stage-heading {
	font-size: 17px;
	font-weight: 600;
	color: #fff;
	margin: 0 0 12px;
	line-height: 1.35;
}
.tabletop-stage-heading:focus { outline: none; }

.tabletop-fn {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #0f172a;
	background: #17b6a0;
	padding: 3px 8px;
	border-radius: 3px;
	margin-right: 8px;
	vertical-align: middle;
}

.tabletop-situation { font-size: 14px; line-height: 1.6; margin: 0 0 12px; }

.tabletop-inject {
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 14px;
	padding: 12px 14px;
	background: rgba(15, 23, 42, .5);
	border-left: 3px solid #17b6a0;
	border-radius: 0 4px 4px 0;
}
.tabletop-inject-tag,
.tabletop-reveal-tag {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: #17b6a0;
	margin-right: 4px;
}

/* ---- KSA regulatory checkpoint ---- */
.tabletop-checkpoint {
	background: rgba(112, 161, 255, .07);
	border: 1px solid rgba(112, 161, 255, .32);
	border-radius: 6px;
	padding: 12px 14px;
	margin: 0 0 16px;
}
.tabletop-checkpoint-label {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #9db8ff;
	margin-bottom: 6px;
}
.tabletop-checkpoint-body { font-size: 13px; line-height: 1.55; margin: 0 0 8px; opacity: .9; }
.tabletop-checkpoint-hedge {
	font-size: 11.5px;
	font-style: italic;
	opacity: .75;
	margin: 0;
	color: #ffce7a;
}

.tabletop-decision { font-size: 14px; font-weight: 600; color: #fff; margin: 0 0 12px; }

/* ---- options ---- */
.tabletop-options { display: flex; flex-direction: column; gap: 10px; }
.tabletop-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	text-align: left;
	width: 100%;
	background: rgba(15, 23, 42, .5);
	border: 1px solid rgba(23, 182, 160, .2);
	border-radius: 6px;
	padding: 14px;
	cursor: pointer;
	color: #c9d3df;
	font-family: inherit;
	font-size: 13.5px;
	line-height: 1.5;
	transition: border-color .15s, background .15s;
}
.tabletop-option:hover:not(:disabled),
.tabletop-option:focus-visible {
	border-color: rgba(23, 182, 160, .6);
	background: rgba(23, 182, 160, .06);
}
.tabletop-option:focus-visible { outline: 2px solid #17b6a0; outline-offset: 2px; }
.tabletop-option-letter {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(23, 182, 160, .15);
	color: #17b6a0;
	font-weight: 700;
	font-size: 13px;
}
.tabletop-option.is-locked { cursor: default; opacity: .55; }
.tabletop-option.is-chosen {
	opacity: 1;
	border-color: #17b6a0;
	background: rgba(23, 182, 160, .1);
}
.tabletop-option.is-chosen .tabletop-option-letter { background: #17b6a0; color: #0f172a; }

/* ---- reveal (consequence + teaching note) ---- */
.tabletop-reveal {
	margin-top: 16px;
	padding: 14px;
	border: 1px solid rgba(23, 182, 160, .18);
	border-radius: 6px;
	background: rgba(0, 0, 0, .25);
	animation: tabletopFade .25s ease-in;
}
@keyframes tabletopFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tabletop-consequence { font-size: 13.5px; line-height: 1.6; margin: 0 0 12px; }
.tabletop-teaching { font-size: 13px; line-height: 1.6; margin: 0 0 14px; opacity: .9; }
.tabletop-reveal-tag.alt { color: #ffce7a; }
.tabletop-next { margin-top: 2px; }

/* ---- after-action report ---- */
.tabletop-aar-title { font-size: 18px; font-weight: 600; color: #fff; margin: 0 0 12px; }
.tabletop-aar-title:focus { outline: none; }
.tabletop-aar-meta { margin: 0 0 16px; font-size: 14px; font-weight: 600; }
.tabletop-aar-org { font-size: 12.5px; color: #17b6a0; font-weight: 600; margin-top: 2px; }

.tabletop-scores {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}
.tabletop-score-cell {
	border: 1px solid rgba(23, 182, 160, .15);
	border-radius: 6px;
	padding: 12px 14px;
	background: rgba(15, 23, 42, .4);
}
.tabletop-score-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}
.tabletop-score-name { font-size: 13px; font-weight: 600; color: #fff; }
.tabletop-score-band {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 3px;
	white-space: nowrap;
}
.tabletop-score-row.strong .tabletop-score-band { color: #17b6a0; border: 1px solid #17b6a0; }
.tabletop-score-row.developing .tabletop-score-band { color: #ffa502; border: 1px solid #ffa502; }
.tabletop-score-row.attention .tabletop-score-band { color: #ff6348; border: 1px solid #ff6348; }
.tabletop-score-rationale { font-size: 12px; line-height: 1.5; opacity: .82; margin: 0; }

.tabletop-recap-title { font-size: 14px; font-weight: 600; color: #fff; margin: 0 0 12px; }
.tabletop-recap { display: flex; flex-direction: column; gap: 12px; }
.tabletop-recap-item {
	border: 1px solid rgba(23, 182, 160, .12);
	border-radius: 6px;
	padding: 12px 14px;
	background: rgba(15, 23, 42, .35);
}
.tabletop-recap-head { font-size: 13.5px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.tabletop-recap-choice { font-size: 13px; line-height: 1.5; margin: 0 0 6px; }
.tabletop-recap-cons { font-size: 12.5px; line-height: 1.5; opacity: .8; margin: 0 0 8px; }
.tabletop-recap-note { font-size: 12.5px; line-height: 1.55; opacity: .88; margin: 0; }

.tabletop-aar-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0 4px;
}

/* ---- mobile: single column, generous tap targets ---- */
@media (max-width: 600px) {
	.tabletop-picker,
	.tabletop-scores { grid-template-columns: 1fr; }
	.tabletop-option { padding: 15px; min-height: 44px; }
	.tabletop-card { min-height: 44px; }
	.tabletop-next,
	.tabletop-aar-actions .cyber-btn { width: 100%; min-height: 44px; }
	.tabletop-progress { flex-direction: column; gap: 2px; }
}

/* v1.35.0: honour the OS reduced-motion preference (the file previously had
   no such rule). Hover/selection feedback stays, it just applies instantly. */
@media (prefers-reduced-motion: reduce) {
	.tabletop-card,
	.tabletop-bar-fill,
	.tabletop-option,
	.tabletop-reveal {
		animation: none;
		transition: none;
	}
}
