/* Claridad workbook (Cuaderno) - isolated styles, loaded only on workbook pages. */

.workbook-section {
	max-width: 760px;
	margin: 66px auto 128px;
	padding: 0 18px 24px;
	font-family: Arial, sans-serif;
	color: #2b2b3a;
}

.workbook-header,
.workbook-day-top {
	text-align: center;
	margin-bottom: 28px;
}

.workbook-section h1 {
	color: #4800b9;
	font-size: 30px;
	margin: 0 0 6px;
}

.workbook-subtitle {
	color: #8698ff;
	font-size: 15px;
	margin: 0;
}

/* Day grid */
.workbook-days {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 14px;
	margin: 14px 0 0;
}

.workbook-week {
	margin: 24px 0;
	padding-bottom: 20px;
	border-bottom: 1px solid #ececf4;
}

.workbook-week:last-child {
	border-bottom: none;
}

.workbook-week-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 4px;
}

.workbook-week-header h2 {
	margin: 0;
	font-size: 18px;
	color: #4800b9;
}

.workbook-day-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 22px 10px;
	border-radius: 8px;
	background: #f3f2ff;
	color: #4800b9;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}

.workbook-day-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(115, 129, 255, .25);
}

.workbook-day-num {
	font-size: 20px;
	font-weight: 700;
}

.workbook-day-label {
	font-size: 12px;
	color: #8698ff;
	margin-top: 4px;
}

.workbook-actions {
	text-align: center;
	margin-top: 30px;
}

.workbook-note {
	color: #919195;
	font-size: 13px;
	margin-top: 12px;
}

/* Day form */
.workbook-day-top {
	position: relative;
}

.workbook-back {
	display: inline-block;
	color: #8698ff;
	text-decoration: none;
	font-size: 14px;
	margin-bottom: 10px;
}

.workbook-saved {
	display: inline-block;
	margin-top: 8px;
	font-size: 12px;
	color: #2faf6a;
	opacity: 0;
	transition: opacity .2s ease;
}

.workbook-saved.is-visible {
	opacity: 1;
}

.workbook-form {
	background: #fff;
	border: 1px solid #ececf4;
	border-radius: 8px;
	padding: 22px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
}

.wb-row {
	display: flex;
	gap: 16px;
}

.wb-row .wb-group {
	flex: 1;
}

.wb-row-3 {
	gap: 10px;
}

.wb-body-grid {
	display: grid;
	gap: 12px;
}

.wb-body-row {
	display: grid;
	grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr);
	align-items: center;
	gap: 12px;
}

.wb-body-label {
	color: #6b6b80;
	font-size: 14px;
}

.wb-group {
	margin-bottom: 18px;
}

.wb-group > label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #6b6b80;
	margin-bottom: 6px;
}

.workbook-form input[type="text"],
.workbook-form input[type="date"],
.workbook-form input[type="time"],
.workbook-form input[type="number"],
.workbook-form select,
.workbook-form textarea {
	width: 100%;
	border: 1px solid #d9d9e6;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 15px;
	font-family: Arial, sans-serif;
	color: #2b2b3a;
	background: #fff;
	box-sizing: border-box;
}

.workbook-form textarea {
	resize: vertical;
}

.workbook-form input:focus,
.workbook-form select:focus,
.workbook-form textarea:focus {
	outline: none;
	border-color: #7381ff;
	box-shadow: 0 0 0 3px rgba(115, 129, 255, .15);
}

/* PDF-style compact choice sets */
.wb-choice-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wb-choice-option {
	position: relative;
	cursor: pointer;
}

.wb-choice-option input {
	position: absolute;
	opacity: 0;
}

.wb-choice-option span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid #d9d9e6;
	border-radius: 8px;
	background: #fff;
	color: #6b6b80;
	font-size: 13px;
	font-weight: 700;
	transition: all .12s ease;
}

.wb-choice-option input:checked + span {
	background: #7381ff;
	border-color: #7381ff;
	color: #fff;
	box-shadow: 0 4px 12px rgba(115, 129, 255, .22);
}

/* Presence scale */
.wb-scale {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.wb-scale-item {
	position: relative;
	cursor: pointer;
}

.wb-scale-item input {
	position: absolute;
	opacity: 0;
}

.wb-scale-item span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid #d9d9e6;
	font-size: 14px;
	color: #6b6b80;
	transition: all .12s ease;
}

.wb-scale-item input:checked + span {
	background: #7381ff;
	border-color: #7381ff;
	color: #fff;
}

/* PDF-style mood/body face choices */
.wb-face-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.wb-face-row-compact {
	margin-bottom: 0;
}

.wb-face-option {
	position: relative;
	cursor: pointer;
}

.wb-face-option input {
	position: absolute;
	opacity: 0;
}

.wb-face-option span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 40px;
	border: 1px solid #d9d9e6;
	border-radius: 8px;
	background: #fff;
	color: #6b6b80;
	font-size: 15px;
	font-weight: 700;
	transition: all .12s ease;
}

.wb-face-option small {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.wb-face-option input:checked + span {
	background: #7381ff;
	border-color: #7381ff;
	color: #fff;
	box-shadow: 0 4px 12px rgba(115, 129, 255, .22);
}

/* Recommendations (keyword router output) */
.wb-recommendations {
	display: none;
	margin: 0 0 18px;
	padding: 16px 18px;
	border-radius: 8px;
	background: #f3f2ff;
	border-left: 4px solid #7381ff;
}

.wb-recommendations.is-visible {
	display: block;
}

.wb-rec-title {
	margin: 0 0 10px;
	font-size: 14px;
	color: #4800b9;
}

.wb-rec {
	margin-bottom: 12px;
}

.wb-rec:last-child {
	margin-bottom: 0;
}

.wb-rec-program {
	font-weight: 700;
	color: #4800b9;
	text-decoration: none;
}

.wb-rec-program:hover {
	text-decoration: underline;
}

.wb-rec-tip {
	margin: 4px 0 0;
	font-size: 14px;
	color: #4a4a5a;
}

.wb-rec-manuel a {
	color: #7381ff;
	font-size: 13px;
	text-decoration: underline;
}

/* Manuel card (Module 2) */
.manuel-card {
	margin: 26px 0;
	border-radius: 8px;
	background: linear-gradient(135deg, #7381ff 0%, #4800b9 100%);
	color: #fff;
	overflow: hidden;
}

.manuel-card-toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	border: none;
	background: transparent;
	color: #fff;
	padding: 20px 22px;
	font-size: 17px;
	font-family: Arial, sans-serif;
	text-align: left;
	cursor: pointer;
}

.manuel-card-icon {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .25);
}

.manuel-card-question {
	font-weight: 600;
}

.manuel-card-panel {
	max-height: 0;
	opacity: 0;
	padding: 0 22px;
	transition: max-height .35s ease, opacity .35s ease, padding .35s ease;
}

.manuel-card.is-open .manuel-card-panel {
	max-height: 360px;
	opacity: 1;
	padding: 0 22px 24px;
}

.manuel-card-panel h3 {
	margin: 0 0 8px;
	color: #fff;
}

.manuel-card-panel p {
	margin: 0 0 16px;
	color: rgba(255, 255, 255, .9);
	font-size: 15px;
	line-height: 1.5;
}

.manuel-card-cta {
	display: inline-block;
	background: #fff;
	color: #4800b9;
	font-weight: 700;
	text-decoration: none;
	padding: 12px 26px;
	border-radius: 8px;
}

.manuel-card-cta:hover {
	background: #f0f0ff;
}

/* Day navigation */
.workbook-day-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 24px;
}

.workbook-day-nav a {
	color: #7381ff;
	text-decoration: none;
	font-weight: 600;
}

@media (max-width: 560px) {
	.wb-row {
		flex-direction: column;
		gap: 0;
	}
	.wb-row-3 {
		flex-direction: column;
		gap: 10px;
	}
	.workbook-week-header,
	.wb-body-row {
		grid-template-columns: 1fr;
		flex-direction: column;
		align-items: flex-start;
	}
}
