/*
 * ix-b: flip cards, read the signs, colour swatches, and the module spec ledger (round 3).
 * Sits on the shared .ix base at the end of learn.css. Night look: obsidian, gold Anton heads,
 * Barlow Condensed text, sage kickers, ember buttons with obsidian text, aqua focus.
 * The card turn borrows the daily card's weight (core/css/tarot.css): lift, turn over, land.
 * Calm mode: learn.css already stops every animation and transition inside .lx; the JS also
 * skips the turn, so cards simply swap.
 * Contrast (AA): bone 14.6, sage 7.0, gold 6.7, aqua 8.6 on #1b1b1b; obsidian on ember 5.9;
 * on rice paper: obsidian 16+, maroon 9.8, bronze 6.4, umber #8A6032 4.9.
 */

/* ================================================================== flip cards */

.lx .ixf-deck { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 196px), 1fr)); gap: 18px; }
.lx .ixf-slot { margin: 0; min-width: 0; }

/* the front face: woven back like the daily card, gold rule inside */
.lx .ixf-frontin { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; width: 100%; height: 100%; }
.lx .ixf-img { display: block; width: 100%; height: auto; aspect-ratio: 400 / 667; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px rgba(200, 154, 61, .7); background: #14110c; }
.lx .ixf-name { display: block; font-family: var(--ria-font-display); font-weight: 400; color: var(--ria-gold); font-size: 1.35rem; letter-spacing: .05em; line-height: 1.1; }
.lx .ixf-frontin:not(.is-tarot) .ixf-name { font-size: 1.55rem; color: var(--ria-bone); }
.lx .ixf-note { display: block; color: var(--ria-sage); font-size: 1rem; line-height: 1.3; }
.lx .ixf-hint { display: block; margin-top: auto; padding-top: 6px; font-weight: 600; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ria-gold); }
.lx .ixf-frontin.is-tarot .ixf-name { margin-top: 6px; }
/* a small drawn crescent for word cards (as on the daily card back) */
.lx .ixf-mark { display: block; width: 46px; height: 46px; border-radius: 50%; margin: 6px auto 8px; box-shadow: inset -12px 5px 0 0 #f2deaa, 0 0 22px rgba(232, 106, 34, .45); }

/* the back face text, laid out like Raven's daily card reading */
.lx .ixf-backin { text-align: left; }
.lx .ixf-backin p { max-width: none; }
.lx .ixf-lab { font-weight: 600; letter-spacing: .18em; font-size: .78rem; text-transform: uppercase; color: var(--ria-sage); margin: 0 0 2px; }
.lx .ixf-bname { font-family: var(--ria-font-display); color: var(--ria-gold); font-size: 1.45rem; letter-spacing: .04em; line-height: 1.08; margin: 0 0 4px; }
.lx .ixf-kw { color: var(--ria-aqua); font-size: 1rem; letter-spacing: .04em; line-height: 1.3; margin: 0 0 10px; }
.lx .ixf-msg { color: var(--ria-bone); font-size: 1.08rem; line-height: 1.4; margin: 0 0 10px; }
.lx .ixf-sec { font-weight: 600; letter-spacing: .18em; font-size: .78rem; text-transform: uppercase; color: var(--ria-ember); margin: 12px 0 2px; }
.lx .ixf-trad { color: var(--ria-bone); font-size: 1rem; line-height: 1.4; margin: 0 0 6px; }
.lx .ixf-rich { font-size: 1.02rem; line-height: 1.42; }
.lx .ixf-rich > :last-child { margin-bottom: 4px; }
.lx .ixf-rich ul { padding-left: 1.1em; }

/* ---------- no JavaScript: fold-outs ---------- */
.lx .ixf-d { border: 1px solid var(--ria-gold); border-radius: 8px; background: #14110c; padding: 12px; }
.lx .ixf-d > summary { list-style: none; color: inherit; }
.lx .ixf-d > summary::-webkit-details-marker { display: none; }
.lx .ixf-d[open] > summary { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(200, 154, 61, .4); }

/* ---------- with JavaScript: a card that turns over ---------- */
.lx .ixf-scene { position: relative; height: 100%; perspective: 1100px; border-radius: 12px; }
.lx .ixf-scene.is-focus { outline: 3px solid var(--ria-aqua); outline-offset: 4px; }
.lx .ixf-card { position: relative; display: grid; height: 100%; transform-style: preserve-3d; will-change: transform; }
.lx .ixf-card.is-up { transform: rotateY(180deg); }
.lx .ixf-face {
	grid-area: 1 / 1; position: relative; min-width: 0; min-height: 230px; margin: 0; border-radius: 10px;
	backface-visibility: hidden; -webkit-backface-visibility: hidden;
	border: 2px solid var(--ria-gold); color: var(--ria-bone);
	box-shadow: inset 0 0 0 5px #111, inset 0 0 0 6px rgba(200, 154, 61, .5), 0 10px 24px -14px rgba(0, 0, 0, .9);
}
.lx .ixf-front {
	display: flex; width: 100%; padding: 14px 14px 12px; cursor: pointer; font: inherit; text-align: center;
	background:
		radial-gradient(circle at 50% 42%, rgba(232, 106, 34, .22) 0, rgba(232, 106, 34, 0) 46%),
		repeating-radial-gradient(circle at 50% 42%, #17130c 0 10px, #201810 10px 12px),
		#111;
	transition: transform .35s cubic-bezier(.3, .7, .2, 1), box-shadow .35s;
}
.lx .ix .ixf-front:focus-visible { outline: none; } /* the scene draws the one ring */
.lx .ixf-scene:not(.is-turning) .ixf-card:not(.is-up) .ixf-front:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 5px #111, inset 0 0 0 6px rgba(200, 154, 61, .7), 0 18px 28px -14px rgba(0, 0, 0, .95); }
.lx .ixf-back {
	transform: rotateY(180deg); padding: 16px 16px 12px; visibility: hidden; pointer-events: none; cursor: pointer;
	display: flex; flex-direction: column;
	background: radial-gradient(ellipse 90% 60% at 0 0, rgba(232, 106, 34, .14), transparent 60%), #14110c;
}
.lx .ixf-card.is-up .ixf-back, .lx .ixf-card.is-turning-down .ixf-back { visibility: visible; }
.lx .ixf-card.is-up:not(.is-turning-up) .ixf-back { pointer-events: auto; }
.lx .ixf-card.is-up .ixf-front { pointer-events: none; }
.lx .ixf-again { margin: auto 0 0; padding-top: 8px; font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ria-sage); text-align: center; max-width: none; }
.lx .ixf-back a { position: relative; z-index: 1; }

/* the turn: lift, turn over, land (same curve and weight as the daily card) */
.lx .ixf-card.is-turning-up { animation: ixb-turn-up 1.15s both; }
.lx .ixf-card.is-turning-down { animation: ixb-turn-down 1.05s both; }
@keyframes ixb-turn-up {
	0% { transform: translate3d(0, 0, 0) rotateX(0) rotateY(0); animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
	24% { transform: translate3d(0, -22px, 60px) rotateX(8deg) rotateY(-7deg); animation-timing-function: cubic-bezier(.55, 0, .3, 1); }
	70% { transform: translate3d(0, -16px, 60px) rotateX(4deg) rotateY(180deg); animation-timing-function: cubic-bezier(.6, 0, .8, .45); }
	88% { transform: translate3d(0, 3px, 0) rotateX(-1deg) rotateY(180deg); animation-timing-function: cubic-bezier(.2, .6, .3, 1); }
	100% { transform: translate3d(0, 0, 0) rotateX(0) rotateY(180deg); }
}
@keyframes ixb-turn-down {
	0% { transform: translate3d(0, 0, 0) rotateX(0) rotateY(180deg); animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
	24% { transform: translate3d(0, -18px, 50px) rotateX(7deg) rotateY(187deg); animation-timing-function: cubic-bezier(.55, 0, .3, 1); }
	70% { transform: translate3d(0, -12px, 50px) rotateX(3deg) rotateY(0); animation-timing-function: cubic-bezier(.6, 0, .8, .45); }
	88% { transform: translate3d(0, 2px, 0) rotateX(-1deg) rotateY(0); animation-timing-function: cubic-bezier(.2, .6, .3, 1); }
	100% { transform: translate3d(0, 0, 0) rotateX(0) rotateY(0); }
}
/* the soft shadow under the card spreads and fades while it is in the air */
.lx .ixf-shadow { position: absolute; left: 10%; right: 10%; bottom: -12px; height: 24px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0)); opacity: .55; filter: blur(2px); z-index: -1; }
.lx .ixf-scene.is-turning .ixf-shadow { animation: ixb-shadow 1.15s both; }
@keyframes ixb-shadow {
	0% { opacity: .55; transform: scale(1); filter: blur(2px); }
	24% { opacity: .22; transform: translateY(10px) scale(.84, .7); filter: blur(8px); }
	70% { opacity: .25; transform: translateY(8px) scale(.86, .72); filter: blur(8px); }
	88% { opacity: .7; transform: scale(1.04); filter: blur(1px); }
	100% { opacity: .55; transform: scale(1); filter: blur(2px); }
}
.lx .ixf-card.is-turning-up .ixf-face, .lx .ixf-card.is-turning-down .ixf-face { box-shadow: inset 0 0 0 5px #111, inset 0 0 0 6px rgba(200, 154, 61, .5), 0 26px 40px -10px rgba(0, 0, 0, .7); }

.lx .ixf-tools { justify-content: space-between; margin-top: 18px; }
.lx .ixf-tools .lx-btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.lx .ixf-tools .lx-btn[aria-disabled="true"]:hover { background: transparent; color: var(--ria-bone); border-color: var(--ria-gold); }
.lx .ixf-count { margin: 0; color: var(--ria-sage); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; }

/* phones: a tarot deck becomes a row you swipe, a word deck two columns */
@media (max-width: 599px) {
	.lx .ix-flip.is-live .ixf-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.lx .ix-flip.is-live .ixf-face { min-height: 190px; }
	.lx .ix-flip.is-live .ixf-front { padding: 12px 10px 10px; }
	.lx .ix-flip.is-live .ixf-frontin:not(.is-tarot) .ixf-name { font-size: 1.3rem; }
	.lx .ix-flip.is-live .ixf-back { padding: 14px 12px 10px; }
	.lx .ix-flip.is-live:not(.ixf-has-tarot) :is(.ixf-hint, .ixf-again) { font-size: .72rem; letter-spacing: .12em; }
	.lx .ix-flip.is-live:not(.ixf-has-tarot) .ixf-bname { font-size: 1.2rem; }
	/* A tarot deck, or any deck of three or more, is one row you swipe: every card is as tall as the
	   longest back, so a two-column grid of long backs left tall, empty fronts. Cards are narrow
	   enough that the next one shows at the edge. */
	.lx .ix-flip.is-live:is(.ixf-has-tarot, :not([data-count="1"]):not([data-count="2"])) .ixf-deck {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px;
		overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--ria-bronze) transparent;
		margin: 0 -18px; padding: 18px 18px 24px; scroll-padding: 0 18px;
	}
	.lx .ix-flip.ixf-has-tarot.is-live .ixf-deck { grid-auto-columns: 60%; }
	.lx .ix-flip.is-live .ixf-slot { scroll-snap-align: start; }
	.lx .ix-flip.ixf-has-tarot.is-live[data-count="1"] .ixf-deck { grid-auto-columns: 64%; justify-content: center; }
	.lx .ix-flip.is-live .ixf-deck:focus-visible { outline: 3px solid var(--ria-aqua); outline-offset: -3px; }
	.lx .ix-flip.ixf-has-tarot.is-live .ixf-name { font-size: 1.2rem; }
	.lx .ix-flip.ixf-has-tarot.is-live .ixf-note { font-size: .92rem; }
	.lx .ix-flip:is(.ixf-has-tarot, :not([data-count="1"]):not([data-count="2"])) .ixf-swipe { display: inline; }
	.lx .ix-flip.ixf-has-tarot[data-count="1"] .ixf-swipe { display: none; }
}
.lx .ixf-swipe { display: none; }
.lx [data-ixf-count]:not(:empty) + .ixf-swipe::before { content: "\00b7\00a0\00a0"; }

/* ================================================================== read the signs */

.lx .ixr-nojs { margin: 0 0 12px; padding-left: 1.3em; }
.lx .ixr-nq { margin-bottom: 14px; }
.lx .ixr-q { font-weight: 600; margin: 0 0 6px; }
.lx .ixr-nd { margin: 0 0 6px; }
.lx .ixr-nd p { margin: 6px 0 10px 1em; }
.lx .ixr-nclose { color: var(--ria-gold); font-weight: 600; }

.lx .ixr-fs { border: 0; margin: 0 0 16px; padding: 16px 0 0; min-width: 0; background: linear-gradient(90deg, rgba(200, 154, 61, .4), rgba(200, 154, 61, 0)) top left / 100% 1px no-repeat; }
.lx .ixr-fs:first-child { background: none; padding-top: 0; }
.lx .ixr-legend { float: left; width: 100%; }
.lx .ixr-legend + * { clear: both; }
.lx .ixr-legend { display: flex; align-items: baseline; gap: 12px; padding: 0; margin: 0 0 10px; font-weight: 600; font-size: 1.15rem; line-height: 1.3; color: var(--ria-bone); }
.lx .ixr-num { flex: none; min-width: 1.8em; font-family: var(--ria-font-display); font-weight: 400; color: var(--ria-gold); font-size: 1.2rem; letter-spacing: .06em; }
.lx .ixr-chips { display: flex; flex-wrap: wrap; gap: 8px 10px; padding-left: calc(1.8em + 12px); }
.lx .ixr-in { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.lx .ixr-chip, .lx .ixw-int {
	display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 16px 8px 13px; margin: 0;
	border: 1px solid rgba(165, 169, 121, .6); border-radius: 999px; background: rgba(17, 17, 17, .75);
	color: var(--ria-bone); font: inherit; font-size: 1.05rem; line-height: 1.2; cursor: pointer; user-select: none;
	transition: border-color .25s, background-color .25s, color .25s, transform .25s cubic-bezier(.3, .7, .2, 1);
}
.lx .ixr-chip::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ria-sage); transition: background-color .25s, border-color .25s, box-shadow .25s; }
.lx .ixr-chip:hover, .lx .ixw-int:hover { border-color: var(--ria-ember); background: #241d10; transform: translateY(-2px); }
.lx .ixr-in:checked + .ixr-chip { border-color: var(--ria-gold); background: var(--ria-gold); color: var(--ria-obsidian); font-weight: 600; transform: none; }
.lx .ixr-in:checked + .ixr-chip::before { border-color: var(--ria-obsidian); background: var(--ria-obsidian); box-shadow: inset 0 0 0 2px var(--ria-gold); }
.lx .ixr-in:focus-visible + .ixr-chip { outline: 3px solid var(--ria-aqua); outline-offset: 2px; }

/* the reading: a slip that fills in as you choose */
.lx .ixr-out {
	position: relative; margin: 22px 0 0; padding: 16px 18px 10px; border: 1px solid var(--ria-gold); border-radius: 4px;
	background: radial-gradient(ellipse 80% 120% at 0 0, rgba(232, 106, 34, .16), transparent 60%), #141210;
	box-shadow: inset 0 0 0 4px #141210, inset 0 0 0 5px rgba(200, 154, 61, .35);
}
.lx .ixr-outh { font-family: var(--ria-font-accent); color: var(--ria-ember); font-size: 1.35rem; line-height: 1.2; margin: 0 0 8px; }
.lx .ixr-empty { color: var(--ria-sage); margin: 0 0 8px; }
.lx .ixr-list { list-style: none; margin: 0; padding: 0; max-width: none; }
.lx .ixr-item { display: flex; gap: 12px; margin: 0; padding: 10px 0; border-top: 1px dashed rgba(200, 154, 61, .35); }
.lx .ixr-item:first-child { border-top: 0; padding-top: 2px; }
.lx .ixr-inum { flex: none; min-width: 1.8em; font-family: var(--ria-font-display); color: var(--ria-gold); font-size: 1.1rem; letter-spacing: .06em; line-height: 1.5; }
.lx .ixr-ibody { min-width: 0; }
.lx .ixr-isaw { margin: 0 0 3px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.lx .ixr-iq { font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ria-sage); }
.lx .ixr-il { font-weight: 700; color: var(--ria-gold); }
.lx .ixr-iread { margin: 0; color: var(--ria-bone); }
.lx .ixr-item.is-new { animation: ixb-arrive .7s cubic-bezier(.3, .6, .3, 1) both; }
.lx .ixr-close { max-width: none; margin: 10px 0 4px; padding-top: 10px; border-top: 3px double rgba(200, 154, 61, .6); font-style: italic; font-size: 1.12rem; color: var(--ria-gold); }
.lx .ixr-tools { justify-content: space-between; margin-top: 10px; }
.lx .ixr-again[aria-disabled="true"] { opacity: .55; cursor: default; }
.lx .ixr-again[aria-disabled="true"]:hover { background: transparent; color: var(--ria-bone); border-color: var(--ria-gold); }
.lx .ixr-progress { margin: 0; color: var(--ria-sage); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; }
@keyframes ixb-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 599px) {
	.lx .ixr-chips { padding-left: 0; }
	.lx .ixr-out { padding: 14px 14px 8px; }
}

/* ================================================================== colour swatches */

.lx .ixw-filter { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid rgba(200, 154, 61, .3); }
.lx .ixw-fh { font-weight: 600; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ria-sage); margin: 0 0 8px; }
.lx .ixw-ints, .lx .ixw-ptags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: none; }
.lx .ixw-ints li, .lx .ixw-ptags li { margin: 0; }
.lx .ixw-int { padding: 8px 16px; text-transform: lowercase; }
.lx .ixw-int[aria-pressed="true"] { border-color: var(--ria-gold); background: var(--ria-gold); color: var(--ria-obsidian); font-weight: 600; transform: none; }
.lx .ixw-int:focus-visible { outline: 3px solid var(--ria-aqua); outline-offset: 2px; }
.lx .ixw-fnote { margin: 10px 0 0; min-height: 1.4em; color: var(--ria-gold); font-weight: 600; }
.lx .ixw-fnote:empty { display: none; }

/* no JavaScript: a plain list, colour beside its meaning */
.lx .ixw-grid { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; gap: 14px; }
.lx .ixw-item { margin: 0; display: grid; grid-template-columns: 72px 1fr; gap: 6px 14px; align-items: start; }
.lx .ixw-face { display: contents; }
.lx .ixw-fill { display: block; grid-row: span 2; width: 72px; aspect-ratio: 1; border-radius: 3px; background: var(--ixw-c, transparent); box-shadow: inset 0 0 0 1px rgba(241, 236, 226, .25); }
.lx .ixw-fill.is-bad, .lx .ixw-pfill.is-bad { background: repeating-linear-gradient(45deg, #2a2a2a 0 6px, #1b1b1b 6px 12px); }
.lx .ixw-name { font-family: var(--ria-font-display); color: var(--ria-gold); font-size: 1.2rem; letter-spacing: .05em; }
.lx .ixw-info p { margin: 0 0 4px; }
.lx .ixw-forh { color: var(--ria-sage); font-weight: 600; }

/* with JavaScript: paint chips, a bone label strip under each colour so the name always reads */
.lx .ix-swatch.is-live .ixw-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 96px), 1fr)); gap: 12px; }
.lx .ix-swatch.is-live .ixw-item { display: block; transition: opacity .35s, filter .35s; }
.lx .ixw-btn {
	display: flex; flex-direction: column; width: 100%; padding: 0; margin: 0; border: 0; border-radius: 4px; overflow: hidden;
	background: var(--ria-bone); color: var(--ria-obsidian); font: inherit; cursor: pointer; text-align: left;
	box-shadow: 0 0 0 1px rgba(241, 236, 226, .3), 0 8px 18px -12px rgba(0, 0, 0, .9);
	transition: transform .3s cubic-bezier(.3, .7, .2, 1), box-shadow .3s;
}
.lx .ixw-btn .ixw-fill { width: 100%; aspect-ratio: 5 / 4; border-radius: 0; box-shadow: inset 0 -1px 0 rgba(17, 17, 17, .25); }
.lx .ixw-btn .ixw-name { display: block; padding: 7px 9px 8px; min-height: 36px; font-family: var(--ria-font-body); font-weight: 600; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.15; color: var(--ria-obsidian); }
.lx .ixw-btn:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--ria-ember), 0 14px 22px -12px rgba(0, 0, 0, .95); }
.lx .ixw-btn[aria-pressed="true"] { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--ria-gold), 0 16px 24px -12px rgba(0, 0, 0, .95); }
.lx .ixw-btn[aria-pressed="true"] .ixw-name { background: var(--ria-obsidian); color: var(--ria-gold); }
.lx .ixw-btn:focus-visible { outline: 3px solid var(--ria-aqua); outline-offset: 3px; }
/* dimmed: the colour fades, the name stays readable (sage on dark, 6:1) */
.lx .ixw-item.is-dim:not(.is-on) .ixw-fill { opacity: .22; filter: saturate(.4); }
.lx .ixw-item.is-dim:not(.is-on) .ixw-btn { background: #24221e; box-shadow: 0 0 0 1px rgba(165, 169, 121, .3); }
.lx .ixw-item.is-dim:not(.is-on) .ixw-name { color: var(--ria-sage); }
.lx .ixw-item.is-dim .ixw-fill { transition: opacity .35s, filter .35s; }
.lx .ixw-item.is-lit .ixw-name::after { content: " \2022"; color: var(--ria-maroon); }
.lx .ixw-btn[aria-pressed="true"] .ixw-name::after { color: var(--ria-gold); }

/* the chip you picked, read large */
.lx .ixw-panel {
	display: grid; grid-template-columns: 96px 1fr; margin: 18px 0 0; border: 1px solid var(--ria-gold); border-radius: 4px; overflow: hidden;
	background: #141414; scroll-margin: 90px 0;
}
.lx .ixw-panel[hidden] { display: none; }
.lx .ixw-panel.is-new { animation: ixb-arrive .5s cubic-bezier(.3, .6, .3, 1) both; }
.lx .ixw-pfill { background: var(--ixw-c, transparent); min-height: 100%; box-shadow: inset -1px 0 0 rgba(200, 154, 61, .6); }
.lx .ixw-pbody { position: relative; padding: 14px 16px 12px; min-width: 0; }
.lx .ixw-pbody p { max-width: none; }
.lx .ixw-pname { font-family: var(--ria-font-display); color: var(--ria-gold); font-size: 1.6rem; letter-spacing: .05em; line-height: 1.05; margin: 0 52px 2px 0; }
.lx .ixw-phex { font-weight: 600; letter-spacing: .18em; font-size: .85rem; color: var(--ria-sage); margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.lx .ixw-pmean { margin: 0 0 10px; }
.lx .ixw-ptagsh { font-weight: 600; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ria-sage); margin: 0 0 6px; }
.lx .ixw-ptag { font-size: .95rem; }
.lx .ixw-close { position: absolute; top: 4px; right: 4px; min-width: 44px; min-height: 44px; padding: 0 8px; background: none; border: 0; color: var(--ria-aqua); font: inherit; font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lx .ixw-close:hover { color: var(--ria-bone); }

@media (max-width: 599px) {
	.lx .ix-swatch.is-live .ixw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.lx .ixw-ints { gap: 6px; }
	.lx .ixw-ints .ixw-int { min-height: 40px; padding: 6px 13px; font-size: 1rem; }
	.lx .ixw-panel { grid-template-columns: 1fr; }
	.lx .ixw-pfill { min-height: 56px; box-shadow: inset 0 -1px 0 rgba(200, 154, 61, .6); }
}

/* ================================================================== module spec: a ledger sheet */

.lx .ixs {
	position: relative; margin: 44px 0 20px; padding: 26px 28px 18px 66px; color: var(--ria-obsidian);
	background:
		linear-gradient(90deg, transparent 44px, rgba(176, 42, 42, .5) 44px, rgba(176, 42, 42, .5) 45px, transparent 45px, transparent 48px, rgba(176, 42, 42, .36) 48px, rgba(176, 42, 42, .36) 49px, transparent 49px),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 .54 0 0 0 0 .38 0 0 0 0 .2 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23p)'/%3E%3C/svg%3E"),
		repeating-linear-gradient(180deg, transparent 0, transparent 31px, rgba(43, 130, 200, .12) 31px, rgba(43, 130, 200, .12) 32px),
		radial-gradient(ellipse 100% 90% at 50% 40%, var(--ria-rice) 62%, #efe6d6 100%);
	border: 1px solid var(--ria-gold);
	box-shadow: inset 0 0 0 5px var(--ria-rice), inset 0 0 0 6px var(--ria-gold), 0 18px 40px -18px rgba(0, 0, 0, .9);
	font-family: 'IM Fell English', 'Cormorant Garamond', Georgia, serif; font-size: 1.12rem; line-height: 1.45;
}
.lx .ixs p, .lx .ixs ul, .lx .ixs ol { max-width: none; }
.lx .ixs a { color: var(--ria-maroon); }
.lx .ixs :focus-visible { outline: var(--ria-focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ria-obsidian); }
.lx .ixs-top { position: relative; border-bottom: 3px double #8A6032; padding: 0 120px 10px 0; margin: 0 0 12px; }
.lx .ixs-kick { font-family: var(--ria-font-body); font-weight: 600; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--ria-bronze); margin: 0 0 4px; }
.lx .ixs .ixs-h { font-family: 'IM Fell English SC', 'Cormorant Garamond', Georgia, serif; color: var(--ria-obsidian); font-size: clamp(1.6rem, 4vw, 2.15rem); letter-spacing: .03em; line-height: 1.05; margin: 0; }
/* a rubber stamp in iron oxide red */
.lx .ixs-stamp {
	position: absolute; right: 0; top: 2px; margin: 0; padding: 5px 12px 3px; transform: rotate(-7deg);
	font-family: 'IM Fell English SC', Georgia, serif; font-size: 1.1rem; letter-spacing: .14em; line-height: 1.1; color: var(--ria-crimson);
	border: 2px solid var(--ria-crimson); border-radius: 3px; box-shadow: inset 0 0 0 2px var(--ria-rice), inset 0 0 0 3px rgba(176, 42, 42, .7);
	mix-blend-mode: multiply;
}
.lx .ixs-sum { font-size: 1.2rem; margin: 0 0 6px; }
.lx .ixs-sum p { margin: 0 0 10px; }
.lx .ixs-rows { margin: 0; }
.lx .ixs-row { display: grid; grid-template-columns: minmax(150px, 12.5rem) 1fr; gap: 4px 24px; padding: 12px 0 10px; border-top: 1px solid rgba(138, 96, 50, .4); }
.lx .ixs-row dt { font-family: 'IM Fell English SC', 'Cormorant Garamond', Georgia, serif; font-size: 1.15rem; letter-spacing: .03em; line-height: 1.2; color: var(--ria-maroon); padding-top: 2px; }
.lx .ixs-row dd { margin: 0; min-width: 0; }
.lx .ixs-row dd p { margin: 0 0 8px; }
.lx .ixs-row dd > :last-child { margin-bottom: 0; }
.lx .ixs-row ol { margin: 0; padding-left: 1.8em; }
.lx .ixs-row ol li { margin: 0 0 3px; padding-left: 4px; }
.lx .ixs-row ol li::marker { font-family: var(--ria-font-display); color: var(--ria-maroon); font-size: .95em; }
.lx .ixs-dash { list-style: none; margin: 0; padding: 0; }
.lx .ixs-dash li { position: relative; margin: 0 0 3px; padding-left: 20px; }
.lx .ixs-dash li::before { content: "\2014"; position: absolute; left: 0; color: #8A6032; }
.lx .ixs-ph dd { font-style: italic; color: var(--ria-bronze); }
/* the two bookkeeping rows (whose words are whose) read a size down */
.lx .ixs-ref dd { font-size: .94em; line-height: 1.4; }
.lx .ixs-boxes { list-style: none; margin: 0; padding: 0; }
.lx .ixs-boxes li { position: relative; margin: 0 0 7px; padding-left: 32px; }
.lx .ixs-boxes li::before { content: ""; position: absolute; left: 2px; top: .22em; width: 17px; height: 17px; border: 1.5px solid var(--ria-obsidian); border-radius: 1px; background: var(--ria-rice); box-shadow: 1px 1px 0 rgba(17, 17, 17, .25); }
.lx .ixs-effort dd p { font-family: var(--ria-font-body); font-weight: 600; font-size: 1.05rem; letter-spacing: .06em; color: var(--ria-obsidian); }

@media (max-width: 599px) {
	.lx .ixs { padding: 20px 14px 14px 34px; font-size: 1rem; line-height: 1.4; background:
		linear-gradient(90deg, transparent 20px, rgba(176, 42, 42, .5) 20px, rgba(176, 42, 42, .5) 21px, transparent 21px, transparent 24px, rgba(176, 42, 42, .36) 24px, rgba(176, 42, 42, .36) 25px, transparent 25px),
		repeating-linear-gradient(180deg, transparent 0, transparent 31px, rgba(43, 130, 200, .12) 31px, rgba(43, 130, 200, .12) 32px),
		radial-gradient(ellipse 100% 90% at 50% 40%, var(--ria-rice) 62%, #efe6d6 100%); }
	.lx .ixs-top { padding-right: 0; }
	.lx .ixs-sum { font-size: 1.08rem; }
	.lx .ixs-stamp { position: static; display: inline-block; margin: 0 0 8px; transform: rotate(-4deg); font-size: .95rem; }
	.lx .ixs-row { grid-template-columns: 1fr; }
}

/* ================================================================== calm */
/* learn.css stops all motion inside .lx in calm mode; these keep hover lifts still too. */
html.sm-calm .lx :is(.ixf-front, .ixr-chip, .ixw-int, .ixw-btn) { transform: none !important; }
html.sm-calm .lx .ixw-btn[aria-pressed="true"] { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
	.lx :is(.ixf-front, .ixr-chip, .ixw-int, .ixw-btn) { transform: none !important; }
	.lx .ixf-shadow { display: none; }
}
html.sm-calm .lx .ixf-shadow { display: none; }
