/* RLV Core — front styles (aligned with rlv-karkku theme tokens) */

.rlv-week,
.rlv-course,
.rlv-timeline {
	max-width: 44rem;
	margin: 0 auto;
	padding: 1.5rem 1rem 3rem;
	line-height: 1.55;
	color: var(--rlv-ink, #1a1f1c);
	font-family: var(--rlv-font-body, inherit);
}

.rlv-week__eyebrow {
	margin: 0 0 0.25rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.8rem;
	color: var(--rlv-muted, #5c6660);
}

.rlv-week__title,
.rlv-course__header h1,
.rlv-timeline__title {
	margin: 0 0 1.25rem;
	font-family: var(--rlv-font-display, inherit);
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	line-height: 1.2;
	color: var(--rlv-green-deep, #084f3f);
}

.rlv-week__section {
	margin: 2rem 0;
	padding-top: 1rem;
	border-top: 1px solid rgba(11, 106, 85, 0.15);
}

.rlv-week__section h2 {
	margin: 0 0 0.75rem;
	font-size: 1.15rem;
	color: var(--rlv-green-deep, #084f3f);
}

.rlv-week__video {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	background: #111;
}

.rlv-week__video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.rlv-week__empty,
.rlv-hint {
	color: var(--rlv-muted, #5c6660);
	font-size: 0.95rem;
}

.rlv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.55rem 1rem;
	border: 1px solid var(--rlv-green, #0b6a55);
	border-radius: 2px;
	background: var(--rlv-white, #fff);
	color: var(--rlv-green-deep, #084f3f);
	text-decoration: none;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.rlv-btn:hover,
.rlv-btn:focus-visible {
	background: var(--rlv-green-soft, #e8f3ef);
	color: var(--rlv-green-deep, #084f3f);
	text-decoration: none;
}

.rlv-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.rlv-btn--primary {
	background: var(--rlv-green, #0b6a55);
	border-color: var(--rlv-green, #0b6a55);
	color: var(--rlv-white, #fff);
}

.rlv-btn--primary:hover,
.rlv-btn--primary:focus-visible {
	background: var(--rlv-green-deep, #084f3f);
	border-color: var(--rlv-green-deep, #084f3f);
	color: var(--rlv-white, #fff);
}

.rlv-btn--secondary {
	background: var(--rlv-white, #fff);
	border-color: rgba(11, 106, 85, 0.45);
	color: var(--rlv-green-deep, #084f3f);
}

.rlv-btn--sm {
	padding: 0.35rem 0.7rem;
	font-size: 0.88rem;
}

.rlv-btn--disabled,
.rlv-btn.rlv-btn--disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
	background: #9aa39c;
	border-color: #9aa39c;
	color: #f5f5f5;
}

.rlv-week__zoom-hint {
	margin-top: 0.5rem;
	color: var(--rlv-muted, #5c6660);
	font-size: 0.9rem;
}

.rlv-timeline__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rlv-timeline__item {
	padding: 0.65rem 0;
	border-bottom: 1px solid rgba(11, 106, 85, 0.12);
}

.rlv-timeline__item.is-locked {
	opacity: 0.75;
}

.rlv-timeline__link {
	color: var(--rlv-green, #0b6a55);
	font-weight: 600;
	text-decoration: none;
}

.rlv-timeline__link:hover,
.rlv-timeline__link:focus-visible {
	color: var(--rlv-green-deep, #084f3f);
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.rlv-form .rlv-input,
.rlv-form textarea,
.rlv-form input[type="url"],
.rlv-form input[type="datetime-local"],
.rlv-form input[type="file"],
.rlv-form select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.5rem;
	border: 1px solid rgba(11, 106, 85, 0.28);
	border-radius: 2px;
	font: inherit;
	background: var(--rlv-white, #fff);
}

.rlv-notice {
	padding: 0.75rem 1rem;
	background: var(--rlv-green-soft, #e8f3ef);
	border: 1px solid rgba(11, 106, 85, 0.25);
}

.rlv-notice--warn {
	background: #fff6e8;
	border-color: #e0c48a;
}

.rlv-week__back a {
	color: var(--rlv-green, #0b6a55);
	font-weight: 600;
	text-decoration: none;
}

.rlv-week__back a:hover,
.rlv-week__back a:focus-visible {
	text-decoration: underline;
}

.rlv-dash {
	max-width: 52rem;
	margin: 0 auto;
	padding: 1.5rem 1rem 3rem;
	color: var(--rlv-ink, #1a1f1c);
	line-height: 1.55;
}

.rlv-dash--lead {
	max-width: 58rem;
}

.rlv-dash__header {
	margin: 0 0 1.25rem;
}

.rlv-dash__header h2,
.rlv-dash h2 {
	font-family: var(--rlv-font-display, inherit);
	color: var(--rlv-green-deep, #084f3f);
	margin: 0 0 0.5rem;
	font-size: clamp(1.5rem, 2.5vw, 1.9rem);
	line-height: 1.2;
}

.rlv-dash__intro {
	margin: 0;
	color: var(--rlv-muted, #5c6660);
	font-size: 1.02rem;
	max-width: 40rem;
}

.rlv-dash__intro--tight {
	margin: 0 0 1rem;
	font-size: 0.95rem;
}

.rlv-dash__muted {
	color: var(--rlv-muted, #5c6660);
	font-size: 0.92rem;
}

.rlv-dash__status {
	padding: 0.85rem 1rem;
	margin: 0 0 1.25rem;
	background: var(--rlv-green-soft, #e8f3ef);
	border: 1px solid rgba(11, 106, 85, 0.2);
}

.rlv-dash__status p {
	margin: 0;
}

.rlv-dash__status-label {
	display: inline-block;
	margin-right: 0.35rem;
	color: var(--rlv-muted, #5c6660);
	font-size: 0.92rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rlv-dash__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0 0 1.75rem;
}

.rlv-dash__panel {
	margin: 0 0 1.75rem;
	padding: 1.1rem 1.15rem 1.2rem;
	border: 1px solid rgba(11, 106, 85, 0.14);
	background: rgba(255, 255, 255, 0.55);
}

.rlv-dash__panel-title,
.rlv-dash h3 {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--rlv-green-deep, #084f3f);
}

.rlv-dash__steps {
	margin: 0;
	padding-left: 1.25rem;
	line-height: 1.6;
}

.rlv-dash__steps li + li {
	margin-top: 0.35rem;
}

.rlv-dash__hint {
	display: block;
	color: var(--rlv-muted, #5c6660);
	font-size: 0.92rem;
}

.rlv-group-list {
	margin: 0;
	padding-left: 1.2rem;
	line-height: 1.6;
}

.rlv-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.rlv-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 0.95rem;
}

.rlv-table th,
.rlv-table td {
	text-align: left;
	padding: 0.7rem 0.55rem;
	border-bottom: 1px solid rgba(11, 106, 85, 0.12);
	vertical-align: middle;
}

.rlv-table th {
	color: var(--rlv-green-deep, #084f3f);
	font-weight: 600;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-bottom-color: rgba(11, 106, 85, 0.28);
}

.rlv-table__actions {
	width: 1%;
	white-space: nowrap;
	text-align: right;
}

.rlv-table tr.is-late {
	background: #fff6e8;
}

.rlv-table tr.is-mine {
	box-shadow: inset 3px 0 0 var(--rlv-green, #0b6a55);
}

.rlv-status {
	display: inline-block;
	padding: 0.15rem 0.45rem;
	border: 1px solid transparent;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.3;
}

.rlv-status--ok {
	background: var(--rlv-green-soft, #e8f3ef);
	border-color: rgba(11, 106, 85, 0.25);
	color: var(--rlv-green-deep, #084f3f);
}

.rlv-status--empty {
	background: #f3f4f3;
	border-color: rgba(92, 102, 96, 0.25);
	color: var(--rlv-muted, #5c6660);
}

.rlv-status--warn {
	background: #fff6e8;
	border-color: #e0c48a;
	color: #7a5a12;
}

.rlv-inline-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.rlv-input--inline {
	width: auto;
	min-width: 12rem;
	max-width: 100%;
	flex: 1 1 12rem;
	padding: 0.4rem 0.55rem;
	border: 1px solid rgba(11, 106, 85, 0.28);
	border-radius: 2px;
	font: inherit;
	background: var(--rlv-white, #fff);
}

@media (max-width: 640px) {
	.rlv-dash__toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.rlv-dash__toolbar .rlv-btn {
		width: 100%;
	}

	.rlv-table__actions {
		text-align: left;
	}
}
