/* Story Doctor Logline Generator — v0.1 baseline styling.
   Deliberately plain so it inherits the active theme's fonts/colours
   rather than fighting them. Safe to override or replace wholesale
   once this is rebuilt natively. */

.sdlg-wrapper {
	max-width: 640px;
	margin: 2em auto;
	font-size: 1rem;
	line-height: 1.5;
}

.sdlg-locked {
	padding: 1.5em;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	text-align: center;
}

/* Stepper — segmented dots + a "Step N of M" counter. Uses the theme's brand
   tokens where present (it renders inside the theme), with plain fallbacks. */
.sdlg-progress {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	margin-bottom: 1.8em;
}

.sdlg-steps {
	display: flex;
	gap: 0.4em;
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1 1 auto;
}

.sdlg-step-dot {
	flex: 1 1 auto;
	height: 5px;
	border-radius: 3px;
	background: var(--brand-border, #e2e2e2);
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.sdlg-step-dot.is-done {
	background: var(--brand-accent, #3e7391);
}

.sdlg-step-dot.is-active {
	background: var(--brand-accent, #3e7391);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-accent, #3e7391) 30%, transparent);
}

.sdlg-stepcount {
	margin: 0;
	font-size: 0.8em;
	color: var(--brand-muted, #666);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.sdlg-progress.is-final .sdlg-stepcount {
	visibility: hidden;
}

.sdlg-step {
	margin-bottom: 1.5em;
}

.sdlg-question {
	display: block;
	font-weight: 600;
	font-size: 1.15em;
	margin-bottom: 0.4em;
}

.sdlg-required {
	color: #c0392b;
	margin-left: 0.2em;
}

.sdlg-help {
	color: #666;
	font-size: 0.9em;
	margin: 0 0 0.8em;
}

.sdlg-step input[type="text"],
.sdlg-step select {
	width: 100%;
	padding: 0.6em 0.8em;
	font-size: 1em;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.sdlg-step input.sdlg-invalid {
	border-color: #c0392b;
	background: #fdf1f0;
}

.sdlg-nav {
	display: flex;
	gap: 0.6em;
	margin-top: 1.2em;
}

.sdlg-btn {
	padding: 0.6em 1.2em;
	font-size: 0.95em;
	border-radius: 4px;
	border: 1px solid #ccc;
	background: #fff;
	/* Explicit dark text — without it the plain "Back" button inherits the
	   theme's light link/button colour and goes white-on-white (invisible). */
	color: #1f2328;
	cursor: pointer;
}

.sdlg-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.sdlg-btn-primary {
	background: var(--brand-accent, #3e7391);
	border-color: var(--brand-accent, #3e7391);
	color: var(--brand-accent-contrast, #fff);
	margin-left: auto;
}

.sdlg-btn-skip {
	background: none;
	border-color: transparent;
	color: #888;
}

/* The CTA is an anchor styled as a button, so it needs the button box explicitly. */
a.sdlg-btn {
	display: inline-block;
	text-decoration: none;
	text-align: center;
	line-height: 1.2;
}

.sdlg-btn-cta {
	background: #2f7a3c;
	border-color: #2f7a3c;
	color: #fff;
}

.sdlg-step-final h3 {
	margin-top: 0;
}

.sdlg-final-preview {
	font-size: 1.2em;
	font-style: italic;
	padding: 1em;
	background: var(--brand-surface, #f6f7f7);
	border-left: 4px solid var(--brand-accent, #3e7391);
	border-radius: 4px;
}

.sdlg-result {
	margin-top: 1em;
	font-weight: 600;
}

/* Intro copy above the wizard. */
.sdlg-intro {
	margin-bottom: 1.4em;
}

.sdlg-title {
	margin: 0 0 0.25em;
	font-size: 1.5em;
	line-height: 1.2;
}

.sdlg-lede {
	margin: 0;
	color: var(--brand-muted, #666);
}

/* Version comparison — a native disclosure, collapsed by default, so it adds no
   height until opened (keeps the widget's footprint the same). */
.sdlg-compare {
	margin-top: 1.5em;
	border-top: 1px solid var(--brand-border, #e2e2e2);
	padding-top: 0.8em;
}

.sdlg-compare > summary {
	cursor: pointer;
	color: var(--brand-accent, #3e7391);
	font-weight: 600;
}

.sdlg-compare-body {
	overflow-x: auto;
}

.sdlg-compare-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 0.85em;
	font-size: 0.92em;
}

.sdlg-compare-table th,
.sdlg-compare-table td {
	padding: 0.5em 0.6em;
	border-bottom: 1px solid var(--brand-border, #e2e2e2);
	text-align: left;
}

.sdlg-compare-table thead th {
	font-size: 0.82em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--brand-muted, #666);
}

.sdlg-compare-table td.sdlg-yes,
.sdlg-compare-table td.sdlg-no {
	text-align: center;
	width: 9em;
}

.sdlg-compare-table td.sdlg-yes {
	color: #2f7a3c;
	font-weight: 700;
}

.sdlg-compare-table td.sdlg-no {
	color: #a9a9a9;
}
