:root {
	--wtr-paper: #f5ecdb;
	--wtr-paper-deep: #eadbbf;
	--wtr-ink: #4a372e;
	--wtr-accent: #9f6f43;
	--wtr-accent-soft: #c79e71;
	--wtr-moss: #74846e;
	--wtr-light: #fffaf2;
	--wtr-border: rgba( 110, 78, 56, 0.22 );
	--wtr-shadow: 0 18px 40px rgba( 77, 56, 36, 0.12 );
}

.wb-article {max-width: 100% !important;}

.wtr-shell {
	background:
		radial-gradient(circle at top, rgba(255, 251, 241, 0.85), transparent 55%),
		linear-gradient(180deg, #fbf5ea 0%, #f1e4cd 100%);
	border: 1px solid var(--wtr-border);
	border-radius: 24px;
	box-shadow: var(--wtr-shadow);
	color: var(--wtr-ink);
	margin: 2rem auto;
	max-width: 1040px;
	overflow: hidden;
	position: relative;
}

.wtr-shell::before {
	background: linear-gradient(120deg, rgba(159, 111, 67, 0.18), rgba(116, 132, 110, 0.08));
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.wtr-shell__inner {
	padding: 2rem;
	position: relative;
}

.wtr-shell__header {
	margin-bottom: 1.5rem;
	text-align: center;
}

.wtr-shell__title,
.wtr-output__title,
.wtr-reading-section__title,
.wtr-card__title,
.wtr-context-panel__value,
.wtr-card-detail__title {
	color: #5c4030;
	font-family: Georgia, "Times New Roman", serif;
	letter-spacing: 0.02em;
}

.wtr-shell__title,
.wtr-output__title {
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	margin: 0;
}

.wtr-shell__intro {
	font-size: 1rem;
	line-height: 1.7;
	margin: 0.85rem auto 0;
	max-width: 42rem;
}

.wtr-form {
	align-items: end;
	display: grid;
	gap: 1rem;
	grid-template-columns: auto;
	margin-bottom: 1.5rem;
}

.wtr-form__field {
	min-width: 0;
}

.wtr-form__actions {
	display: flex;
	justify-content: center;
}

.wtr-form__label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.wtr-form__input {
	background: rgba(255, 250, 242, 0.92);
	border: 1px solid rgba(103, 74, 53, 0.22);
	border-radius: 14px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
	color: var(--wtr-ink);
	font-size: 1rem;
	padding: 0.95rem 1rem;
	width: 100%;
}

.wtr-form__input:focus,
.wtr-button:focus {
	outline: 2px solid var(--wtr-accent);
	outline-offset: 2px;
}

.wtr-form__note {
	color: rgba(74, 55, 46, 0.82);
	font-size: 0.92rem;
	line-height: 1.5;
	margin: 0.65rem 0 0;
}

.wtr-button {
	background: linear-gradient(135deg, var(--wtr-accent) 0%, var(--wtr-accent-soft) 100%);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 12px 22px rgba(159, 111, 67, 0.22);
	color: #fffaf2;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	min-height: 52px;
	padding: 0.95rem 1.4rem;
	transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.wtr-button:hover:not(:disabled) {
	box-shadow: 0 16px 24px rgba(159, 111, 67, 0.28);
	transform: translateY(-1px);
}

.wtr-button:disabled {
	cursor: wait;
	opacity: 0.7;
	transform: none;
}

.wtr-status {
	font-size: 0.95rem;
	grid-column: 1 / -1;
	line-height: 1.5;
	min-height: 1.5em;
}

.wtr-status.is-error {
	color: #7b3f35;
}

.wtr-status.is-loading {
	color: #6b5d4f;
}

.wtr-results[hidden] {
	display: none;
}

.wtr-output {
	border-top: 1px solid var(--wtr-border);
	margin-top: 1.5rem;
	padding-top: 1.75rem;
}

.wtr-output__header {
	margin-bottom: 1.6rem;
	text-align: center;
}

.wtr-section-divider {
	background: linear-gradient(90deg, transparent, rgba(159, 111, 67, 0.9), transparent);
	height: 2px;
	margin: 1rem auto 0;
	width: 110px;
}

.wtr-context-panel {
	background: rgba(255, 250, 242, 0.62);
	border: 1px solid var(--wtr-border);
	border-radius: 22px;
	box-shadow: 0 10px 24px rgba(77, 56, 36, 0.08);
	margin: 0 auto 2rem;
	max-width: 620px;
	overflow: hidden;
	padding: 1.25rem 1.5rem;
	position: relative;
	text-align: center;
}

.wtr-context-panel::before {
	background: linear-gradient(90deg, transparent, rgba(159, 111, 67, 0.45), transparent);
	content: "";
	height: 1px;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

.wtr-context-panel__eyebrow,
.wtr-card__position,
.wtr-card__meta,
.wtr-card-detail__meaning {
	color: rgba(92, 64, 48, 0.72);
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.wtr-context-panel__value {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	font-style: italic;
	line-height: 1.3;
	margin: 0.5rem 0 0;
}

.wtr-notice {
	border: 1px solid var(--wtr-border);
	border-radius: 16px;
	font-size: 0.98rem;
	line-height: 1.7;
	margin-bottom: 1.5rem;
	padding: 1rem 1.1rem;
}

.wtr-notice--warning {
	background: rgba(250, 242, 229, 0.9);
}

.wtr-card-grid {
	display: grid;
	gap: 1.4rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 2.6rem;
}

.wtr-card {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	min-width: 0;
}

.wtr-card__image-shell {
	align-items: center;
	display: flex;
	justify-content: center;
}

.wtr-card__image-frame {
	aspect-ratio: 4 / 5.3;
	background: linear-gradient(180deg, #e9d8ba, #c79e71 48%, #eadbbf 100%);
	border-radius: 18px;
	box-shadow: 0 20px 38px rgba(77, 56, 36, 0.16);
	display: flex;
	justify-content: center;
	overflow: hidden;
	padding: 4px;
	width: min(100%, 280px);
}

.wtr-card__image {
	border-radius: 14px;
	display: block;
	height: 100%;
	object-fit: fill;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	width: 100%;
}

.wtr-card__image--reversed {
	transform: rotate(180deg);
}

.wtr-card:hover .wtr-card__image {
	box-shadow: 0 14px 28px rgba(77, 56, 36, 0.14);
	transform: translateY(-4px) scale(1.02);
}

.wtr-card:hover .wtr-card__image--reversed {
	transform: rotate(180deg) translateY(-4px) scale(1.02);
}

.wtr-card__image-placeholder {
	align-items: center;
	background: rgba(255, 250, 242, 0.9);
	border-radius: 14px;
	color: rgba(74, 55, 46, 0.7);
	display: flex;
	font-style: italic;
	justify-content: center;
	padding: 1rem;
	text-align: center;
	width: 100%;
}

.wtr-card__body {
	background: rgba(255, 250, 242, 0.72);
	border: 1px solid var(--wtr-border);
	border-radius: 18px;
	box-shadow: 0 10px 22px rgba(77, 56, 36, 0.08);
	padding: 1.1rem 1rem 1.2rem;
	text-align: center;
}

.wtr-card__position {
	margin-bottom: 0.25rem;
}

.wtr-card__roman {
	color: rgba(74, 55, 46, 0.6);
	font-size: 0.82rem;
	letter-spacing: 0.18em;
	margin: 0 0 0.4rem;
	text-transform: uppercase;
}

.wtr-card__title {
	font-size: 1.35rem;
	margin: 0;
}

.wtr-card__meta {
	letter-spacing: 0.12em;
	margin: 0.55rem 0 0;
}

.wtr-card__badge {
	background: rgba(116, 132, 110, 0.12);
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	margin-top: 0.75rem;
	padding: 0.35rem 0.7rem;
	text-transform: uppercase;
}

.wtr-card__badge--reversed {
	background: rgba(159, 111, 67, 0.14);
	color: #845235;
}

.wtr-card__badge--upright {
	color: #55634f;
}

.wtr-card__meaning {
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.5;
	margin: 0.8rem 0 0.2rem;
}

.wtr-reading-section__content,
.wtr-card-detail__content {
	font-size: 0.98rem;
	line-height: 1.8;
}

.wtr-interpretation-shell {
	background: rgba(255, 250, 242, 0.78);
	border: 1px solid var(--wtr-border);
	border-radius: 28px;
	box-shadow: 0 20px 36px rgba(77, 56, 36, 0.1);
	padding: 2rem 1.2rem 1.3rem;
	position: relative;
}

.wtr-interpretation-shell__badge {
	background: linear-gradient(180deg, #fff8ec, #f0dfc2);
	border: 1px solid rgba(159, 111, 67, 0.34);
	border-radius: 999px;
	box-shadow: 0 8px 18px rgba(77, 56, 36, 0.08);
	color: #6a4731;
	font-size: 0.78rem;
	font-weight: 700;
	left: 50%;
	letter-spacing: 0.16em;
	padding: 0.65rem 1rem;
	position: absolute;
	text-transform: uppercase;
	top: 0;
	transform: translate(-50%, -50%);
	white-space: nowrap;
}

.wtr-reading-sections {
	display: grid;
	gap: 1.1rem;
}

.wtr-reading-section {
	background: transparent;
	border: 0;
	border-radius: 18px;
	padding: 0.4rem 0.2rem;
}

.wtr-reading-section__title {
	border-bottom: 1px solid rgba(159, 111, 67, 0.22);
	font-size: 1.22rem;
	margin: 0 0 0.8rem;
	padding-bottom: 0.55rem;
}

.wtr-reading-section__content p:first-child {
	margin-top: 0;
}

.wtr-reading-section--introduction .wtr-reading-section__content,
.wtr-reading-sections .wtr-reading-section:first-child .wtr-reading-section__content {
	border-left: 3px solid rgba(159, 111, 67, 0.45);
	font-size: 1.03rem;
	font-style: italic;
	padding-left: 1rem;
}

.wtr-card-details {
	display: grid;
	gap: 1rem;
}

.wtr-card-detail {
	background: rgba(255, 250, 242, 0.7);
	border: 1px solid rgba(159, 111, 67, 0.16);
	border-radius: 18px;
	padding: 1rem 1rem 0.8rem;
}

.wtr-card-detail__title {
	font-size: 1.1rem;
	margin: 0 0 0.35rem;
}

.wtr-card-detail__meaning {
	letter-spacing: 0.12em;
	margin: 0 0 0.65rem;
}

.wtr-card-detail__content p:first-child {
	margin-top: 0;
}

@media (max-width: 782px) {
	.wtr-shell__inner {
		padding: 1.25rem;
	}

	.wtr-form {
		grid-template-columns: 1fr;
	}

	.wtr-button {
		width: 100%;
	}

	.wtr-card-grid {
		grid-template-columns: 1fr;
	}

	.wtr-interpretation-shell {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.wtr-interpretation-shell__badge {
		font-size: 0.72rem;
		max-width: calc(100% - 2rem);
		overflow: hidden;
		text-overflow: ellipsis;
	}
}
