/* Discovery Response Deadline Calculator - mobile-first flat report style */

.drdc-calculator,
.drdc-calculator * {
	box-sizing: border-box;
}

.drdc-calculator {
	--drdc-page: #f6f7f9;
	--drdc-panel: #ffffff;
	--drdc-panel-soft: #f9fafb;
	--drdc-text: #111827;
	--drdc-muted: #697386;
	--drdc-border: #d9dee7;
	--drdc-strong-border: #111827;
	--drdc-primary: #1f2937;
	--drdc-primary-hover: #111827;
	--drdc-primary-text: #ffffff;
	--drdc-focus: #556987;
	--drdc-success: #117046;
	--drdc-danger: #a11f1f;
	--drdc-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
	--drdc-radius: 18px;
	width: 100%;
	max-width: 100%;
	color: var(--drdc-text);
	background: transparent;
	font-family: inherit;
	overflow-wrap: anywhere;
}

.drdc-calculator[data-theme="dark"] {
	--drdc-page: #101318;
	--drdc-panel: #171b22;
	--drdc-panel-soft: #1e2530;
	--drdc-text: #f3f6fa;
	--drdc-muted: #b9c4d4;
	--drdc-border: #343d4b;
	--drdc-strong-border: #eef2f7;
	--drdc-primary: #eef2f7;
	--drdc-primary-hover: #ffffff;
	--drdc-primary-text: #111722;
	--drdc-focus: #c8d4e8;
	--drdc-success: #75d3ad;
	--drdc-danger: #ff9a9a;
	--drdc-shadow: 0 14px 34px rgba(0, 0, 0, 0.30);
}

.drdc-shell {
	width: min(100%, 840px);
	max-width: 100%;
	margin: 0 auto;
	padding: clamp(14px, 4vw, 30px);
	background: var(--drdc-page);
	border: 1px solid var(--drdc-border);
	border-radius: var(--drdc-radius);
}

.drdc-header {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 22px;
}

.drdc-eyebrow {
	margin: 0 0 6px;
	color: var(--drdc-muted);
	font-size: clamp(0.76rem, 2.4vw, 0.86rem);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.drdc-header h2,
.drdc-result h3,
.drdc-report-section h4 {
	margin: 0;
	color: var(--drdc-text);
	line-height: 1.18;
}

.drdc-header h2 {
	font-size: clamp(1.55rem, 5vw, 2.35rem);
}

.drdc-subtitle {
	max-width: 760px;
	margin: 10px 0 0;
	color: var(--drdc-muted);
	font-size: clamp(0.98rem, 2.8vw, 1.06rem);
	line-height: 1.6;
}

.drdc-theme-toggle {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid var(--drdc-border);
	border-radius: 999px;
	background: var(--drdc-panel);
	color: var(--drdc-text);
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.drdc-theme-toggle:hover {
	transform: translateY(-1px);
	border-color: var(--drdc-strong-border);
}

.drdc-theme-toggle:focus-visible,
.drdc-button:focus-visible,
.drdc-field input:focus-visible,
.drdc-field select:focus-visible,
.drdc-field textarea:focus-visible,
.drdc-check input:focus-visible {
	outline: 3px solid var(--drdc-focus);
	outline-offset: 2px;
}

.drdc-form {
	background: var(--drdc-panel);
	border: 1px solid var(--drdc-border);
	border-radius: var(--drdc-radius);
	padding: clamp(16px, 4vw, 26px);
	box-shadow: var(--drdc-shadow);
}

.drdc-fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	min-width: 0;
}

.drdc-field,
.drdc-field-full {
	min-width: 0;
}

.drdc-field label,
.drdc-check {
	display: block;
	color: var(--drdc-text);
	font-size: 0.98rem;
	font-weight: 800;
}

.drdc-optional {
	display: inline-block;
	margin-left: 7px;
	color: var(--drdc-muted);
	font-size: 0.82em;
	font-weight: 800;
}

.drdc-field input,
.drdc-field select,
.drdc-field textarea {
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	margin-top: 8px;
	padding: 12px 14px;
	border: 1px solid var(--drdc-border);
	border-radius: 13px;
	background: var(--drdc-panel-soft);
	color: var(--drdc-text);
	font: inherit;
	line-height: 1.35;
	box-shadow: none;
}

.drdc-field textarea {
	min-height: 92px;
	resize: vertical;
}

.drdc-field input:hover,
.drdc-field select:hover,
.drdc-field textarea:hover {
	border-color: var(--drdc-strong-border);
}

.drdc-help {
	margin: 7px 0 0;
	color: var(--drdc-muted);
	font-size: 0.9rem;
	line-height: 1.45;
}

.drdc-checks {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--drdc-border);
	border-radius: 14px;
	background: var(--drdc-panel-soft);
	min-width: 0;
}

.drdc-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 800;
	line-height: 1.4;
	cursor: pointer;
}

.drdc-check input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	accent-color: var(--drdc-primary);
}

.drdc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.drdc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	flex: 1 1 150px;
	padding: 12px 16px;
	border: 1px solid var(--drdc-primary);
	border-radius: 13px;
	background: var(--drdc-primary);
	color: var(--drdc-primary-text);
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.drdc-button:hover {
	background: var(--drdc-primary-hover);
	border-color: var(--drdc-primary-hover);
	transform: translateY(-1px);
}

.drdc-button-secondary {
	background: transparent;
	color: var(--drdc-text);
	border-color: var(--drdc-border);
}

.drdc-button-secondary:hover {
	background: var(--drdc-panel-soft);
	border-color: var(--drdc-strong-border);
}

.drdc-status {
	min-height: 22px;
	margin-top: 14px;
	color: var(--drdc-success);
	font-size: 0.94rem;
	font-weight: 800;
}

.drdc-status.is-error {
	color: var(--drdc-danger);
}

/* Flat output report: no boxed result container, no sidebar, no cramped cards. */
.drdc-result {
	width: 100%;
	max-width: 100%;
	margin-top: clamp(26px, 5vw, 42px);
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	min-width: 0;
}

.drdc-result-title {
	padding: 0 0 18px;
	border-bottom: 4px solid var(--drdc-strong-border);
}

.drdc-result h3 {
	font-size: clamp(1.45rem, 5vw, 2.2rem);
	font-weight: 900;
	overflow-wrap: anywhere;
}

.drdc-report-section {
	padding: 22px 0 0;
	border-bottom: 1px solid var(--drdc-border);
}

.drdc-report-section-main {
	padding-top: 18px;
}

.drdc-report-section h4 {
	margin-bottom: 14px;
	font-size: clamp(1.15rem, 4.5vw, 1.65rem);
	font-weight: 900;
}

.drdc-report-line {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: start;
	width: 100%;
	max-width: 100%;
	padding: 13px 0;
	border-top: 1px solid var(--drdc-border);
	min-width: 0;
}

.drdc-report-section .drdc-report-line:first-of-type {
	border-top: 0;
}

.drdc-report-line span {
	min-width: 0;
	color: var(--drdc-muted);
	font-size: clamp(1rem, 3.6vw, 1.18rem);
	font-weight: 850;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.drdc-report-line strong {
	min-width: 0;
	color: var(--drdc-text);
	font-size: clamp(1rem, 3.7vw, 1.25rem);
	font-weight: 950;
	line-height: 1.3;
	text-align: right;
	overflow-wrap: anywhere;
}

.drdc-report-line-large strong {
	color: var(--drdc-success);
	font-size: clamp(1.25rem, 5vw, 1.9rem);
}

.drdc-report-section p {
	margin: 0;
	padding: 0 0 22px;
	color: var(--drdc-text);
	font-size: clamp(0.98rem, 3vw, 1.05rem);
	line-height: 1.65;
}

.drdc-disclaimer p {
	color: var(--drdc-muted);
}

@media (max-width: 430px) {
	.drdc-shell {
		padding: 12px;
		border-radius: 14px;
	}

	.drdc-form {
		padding: 14px;
	}

	.drdc-actions {
		gap: 8px;
	}

	.drdc-button {
		flex-basis: 100%;
		width: 100%;
	}

	.drdc-report-line {
		grid-template-columns: minmax(0, 1fr);
		gap: 5px;
		padding: 15px 0;
	}

	.drdc-report-line strong {
		text-align: left;
	}
}

@media (min-width: 720px) {
	.drdc-header {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
	}

	.drdc-fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.drdc-field-full {
		grid-column: 1 / -1;
	}
}

@media print {
	body.drdc-printing > *:not(.drdc-print-target),
	body.drdc-printing .drdc-print-target .drdc-form,
	body.drdc-printing .drdc-print-target .drdc-theme-toggle,
	body.drdc-printing .drdc-print-target .drdc-actions,
	body.drdc-printing .drdc-print-target .drdc-status {
		display: none !important;
	}

	body.drdc-printing .drdc-print-target {
		display: block !important;
	}

	.drdc-calculator,
	.drdc-calculator * {
		background: #ffffff !important;
		color: #000000 !important;
		box-shadow: none !important;
	}

	.drdc-shell {
		border: 0 !important;
		padding: 0 !important;
	}

	.drdc-result-title,
	.drdc-report-section,
	.drdc-report-line {
		border-color: #888888 !important;
	}
}
