/*
 * The card (0.7.0, "cards as the primary metaphor"): one face and one back for every practice card, wherever it
 * shows: your hand, my deck, the full deck and its packs, "Try something else", the guidebook's small card, and
 * other plugins' cards (ilp_card_face_html() / ilp_card_back_html() in includes/cards.php; handle ilp-cards). Not
 * scoped to .ilp-app, so other pages can use it; everything is under .ilp-cf / .ilp-cardback. The homepage
 * (visionlogix assets/home/practice.css, "the card") draws the same markup with the same rules.
 *
 * The face is Corey's "Tarot window" (canvas "10 · Card faces", design 3). At 200px wide (everything scales with
 * the width; container units, 1cqi is 1.84px there): 200×345, #F6F0E2, 10px corners; a double gold rule (a 1.5px
 * border and a 1px rule 5px inside it); the suit (its drawn pip, Earth and sky, and "BODY", in the suit's ink); an
 * arched art window that gives way to a long name; the name in a cartouche (Newsreader capitals, never cut); the
 * teacher and the length in capitals (floors: 13px for the name, 9.5px for the suit, 9px for the teacher and length;
 * the arch fills the rest, and gives way when the text needs room). No corner pips. Under about 120px wide (a pack's
 * fan, a mini): one rule, the pip alone, no teacher, smaller type.
 * Set --dot (the suit's color) and --ink-c (its ink on cream) on the face. The back: the same proportions and
 * double gold frame on navy, a fine gold pattern, and the four pips in a medallion.
 */
.ilp-cf {
  -webkit-appearance: none; appearance: none; position: relative; display: block; box-sizing: border-box;
  width: 100%; aspect-ratio: 200 / 345; min-height: 44px; margin: 0; padding: 4%;
  border: 0; border-radius: 10px; background: #F6F0E2; color: #1C1B2E; box-shadow: 0 14px 30px rgba(0, 0, 0, .4);
  text-align: center; text-decoration: none; text-transform: none; letter-spacing: 0; font: 400 14px/1.3 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  overflow: hidden; cursor: pointer; container-type: inline-size; transition: box-shadow .35s ease;
}
.ilp-cf:focus-visible { outline: 3px solid #F3EEE4; outline-offset: 3px; }
/* (0.18.6; live, iPhones: every face cut off flat at the foot) The frame sits in the card by position, not by height:
   100%: WebKit doesn't resolve a percentage height inside a box sized by aspect-ratio, so the frame grew to its content
   and the card cut it off. --cf-in: the card's own padding (4% of its width; set where a card's padding is set). */
.ilp-cf__frame { position: absolute; inset: var(--cf-in, 4cqi); display: flex; flex-direction: column; align-items: center; box-sizing: border-box; height: auto; padding: 5.4cqi 6.5cqi max(5.4cqi, 11px); border: 1.5px solid #B8975A; outline: 1px solid #B8975A; outline-offset: -5px; border-radius: 4px; }
.ilp-cf__frame * { box-sizing: border-box; margin: 0; }
.ilp-cf__frame .ilp-cf__suit { display: flex; align-items: center; justify-content: center; gap: .4em; flex: none; margin-top: 1cqi; font-size: clamp(9.5px, 5.43cqi, 12px); font-weight: 600; letter-spacing: .3em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; color: var(--ink-c, #5A5566); }
/* (0.40.0) A gold star practice: a small gold seal on the frame's top right corner, clear of the suit label. */
.ilp-cf__frame .ilp-cf__star { position: absolute; z-index: 3; top: -3.4cqi; right: -3.4cqi; display: grid; place-items: center; width: 11cqi; height: 11cqi; min-width: 17px; min-height: 17px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFE7A8, #E2B44E 55%, #9C7424); box-shadow: 0 0 0 1.5px #F6F0E2, 0 1px 4px rgba(0, 0, 0, .3); }
.ilp-cf__frame .ilp-cf__star svg { width: 62%; height: 62%; fill: #5A3D0A; }
/* (0.42.0) Admins: "Draft" or "Retired" on a card that isn't published, on the art window's top left, clear of the
   suit label and the gold star, small and readable on any card size. Published cards have none. */
.ilp-cf__frame .ilp-cf__status { position: absolute; z-index: 3; top: 26cqi; left: 3cqi; padding: 2px 6px; border-radius: 999px; font: 700 clamp(9px, 5cqi, 11.5px)/1.2 'Hanken Grotesk', system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  background: #FCF0D9; color: #6B4500; border: 1px solid #B8975A; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.ilp-cf__frame .ilp-cf__status--retired { background: #ECEDEF; color: #3C4043; border-color: #8C8F94; }
.ilp-cf__frame .ilp-cf__suitname { margin-right: -.3em; } /* the letter-spacing's trailing gap, so the label centers */
.ilp-cf__frame .ilp-cf__art {
  position: relative; display: block; align-self: stretch; flex: 1 1 108.7cqi; min-height: 0; margin-top: 4.3cqi;
  border: 1px solid #B8975A; border-radius: 999px 999px 4px 4px; overflow: hidden;
  background: var(--dot, #C9A877);
  background: linear-gradient(160deg, color-mix(in srgb, var(--dot, #C9A877) 55%, #FFFFFF), color-mix(in srgb, var(--dot, #C9A877) 62%, #0F2131));
}
.ilp-cf__frame .ilp-cf__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
/* The cartouche: gold rules above and below; the name in capitals, wrapping, never cut (the art gives way). A name
   never breaks inside a word: it wraps at spaces and after a hyphen, and a card with a long word sets its own fit
   (ilp_card_name_fit() in cards.php, nameFit() in app.js): tighter letter-spacing (--cf-ls), the cartouche widened to
   the inner rule (--cf-wide, --cf-pad), then a smaller size for that card (--cf-size). The arch gives way to a long
   name (its min-height is low), so the foot keeps its room inside the inner rule. */
.ilp-cf__frame .ilp-cf__name {
  display: block; flex: none; align-self: stretch; margin-top: 5.4cqi; margin-inline: var(--cf-wide, 0); padding: 3.3cqi var(--cf-pad, 2.2cqi);
  border-top: 1px solid #B8975A; border-bottom: 1px solid #B8975A;
  font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: var(--cf-size, clamp(13px, 8.15cqi, 18px)); line-height: 1.15;
  letter-spacing: var(--cf-ls, .08em); text-transform: uppercase; overflow-wrap: normal; word-break: normal; -webkit-hyphens: manual; hyphens: manual;
}
.ilp-cf__frame .ilp-cf__who, .ilp-cf__frame .ilp-cf__foot { display: block; flex: none; font-size: clamp(9px, 4.9cqi, 11px); line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: #5A5566; overflow-wrap: break-word; }
.ilp-cf__frame .ilp-cf__who { margin-top: 3.3cqi; }
.ilp-cf__frame .ilp-cf__who + .ilp-cf__foot { margin-top: 0; }
.ilp-cf__frame .ilp-cf__name + .ilp-cf__foot { margin-top: 3.3cqi; }
/* Two teachers: "KEN WILBER + 1" on cards under 200px, both names from 200px (ilp_card_who(); the wide form is
   hidden in the markup, so a page without this rule still shows the short one). */
@container (min-width: 184px) {
  .ilp-cf__frame .ilp-cf__who-s { display: none; }
  .ilp-cf__frame .ilp-cf__who-w[hidden] { display: inline; }
}
/* The drawn pips (Earth and sky), sized with their text. */
.ilp-cf__frame .ilp-cf__pip { display: block; flex: none; }
.ilp-cf__frame .ilp-cf__pip svg { display: block; width: 1.35em; height: 1.35em; }
.ilp-pipsvg-wrap { display: inline-flex; vertical-align: -.15em; }
.ilp-pipsvg { display: block; width: 1em; height: 1em; overflow: visible; }
/* Under about 120px wide: one rule, the label as its pip alone, no teacher. */
@container (max-width: 120px) {
  .ilp-cf__frame { outline: 0; }
  .ilp-cf__frame .ilp-cf__who { display: none; }
  /* (0.18.6; Corey: the suit's name on every face) Small, tight, sized to its own length (--sl, its letters), across
     the frame's whole width: BODY at 9px, RELATIONSHIPS at about 6.5px. */
  .ilp-cf__frame .ilp-cf__suit { gap: .25em; margin-inline: -4cqi; letter-spacing: .08em; font-size: clamp(6.5px, calc(88cqi / (var(--sl, 6) * .75 + 1.8)), 9px); }
  .ilp-cf__frame .ilp-cf__suitname { margin-right: -.08em; }
  .ilp-cf__frame .ilp-cf__name { font-size: min(clamp(8px, 9cqi, 13px), var(--cf-mini, 13px)); letter-spacing: min(.04em, var(--cf-ls, .04em)); padding: 2cqi 1cqi; margin-inline: 0; }
  .ilp-cf__frame .ilp-cf__foot { font-size: clamp(7px, 6.5cqi, 9px); }
}

/* The back: on locked course cards, sealed or "Coming soon" packs, and the flip when a card is added to the hand. */
.ilp-cardback { position: absolute; inset: 0; z-index: 3; display: block; border-radius: inherit; background: #13283B; overflow: hidden; container-type: inline-size; }
.ilp-cardback__pattern {
  position: absolute; inset: 4%; border: 1.5px solid #B8975A; outline: 1px solid #B8975A; outline-offset: -5px; border-radius: 4px;
  background-image: radial-gradient(circle at 25% 25%, rgba(227, 201, 143, .38) 1.5px, transparent 2.5px), radial-gradient(circle at 75% 75%, rgba(227, 201, 143, .38) 1.5px, transparent 2.5px);
  background-size: 16px 16px;
}
.ilp-cardback__medal { position: absolute; left: 50%; top: 50%; display: grid; grid-template-columns: 1fr 1fr; place-items: center; box-sizing: border-box; width: 40%; aspect-ratio: 1 / 1; padding: 9%; transform: translate(-50%, -50%); border: 1.5px solid #E3C98F; border-radius: 50%; background: #13283B; font-size: clamp(9px, 8cqi, 17px); line-height: 1; }
.ilp-cardback__medal svg { display: block; width: 1.15em; height: 1.15em; }
/* The completed back (Corey's board 17, "Open, Complete, and the card turns over"): a cream edge as the face has,
   the navy and gold pattern, the card's own suit pip glowing in its color in the medallion, the name in a small
   gold cartouche, and "COMPLETED TODAY" (or "COMPLETED THIS WEEK"). Set --dot and --glow (the suit's color, lighter
   for Shadow on navy). The locked back (a course card): the plain back with a small lock in the medallion. */
.ilp-cardback--done { background: #F6F0E2; }
.ilp-cardback--done .ilp-cardback__pattern { background-color: #13283B; }
.ilp-cardback__done { position: absolute; inset: 4%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6cqi; padding: 6cqi; }
.ilp-cardback__seal {
  display: grid; place-items: center; width: 40%; aspect-ratio: 1 / 1; border: 1.5px solid #E3C98F; border-radius: 50%; background: #13283B;
  color: var(--glow, #E3C98F); font-size: clamp(14px, 18cqi, 34px); line-height: 1;
  box-shadow: 0 0 18px color-mix(in srgb, var(--glow, #E3C98F) 45%, transparent);
}
.ilp-cardback__seal svg { display: block; width: 1em; height: 1em; filter: drop-shadow(0 0 6px var(--glow, #E3C98F)); }
.ilp-cardback__name {
  display: block; max-width: 92%; padding: 2.6cqi 3cqi; border-top: 1px solid #E3C98F; border-bottom: 1px solid #E3C98F; background: #13283B;
  font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: var(--cf-back-size, clamp(10px, 7.2cqi, 15px)); line-height: 1.15;
  letter-spacing: var(--cf-back-ls, .06em); text-transform: uppercase; color: #F3EEE4; text-align: center; overflow-wrap: normal; word-break: normal; -webkit-hyphens: manual; hyphens: manual;
}
.ilp-cardback__when { display: block; padding: 1cqi 3cqi; background: #13283B; font: 600 clamp(8px, 5.4cqi, 11px)/1.25 'Hanken Grotesk', system-ui, sans-serif; letter-spacing: .2em; color: #E3C98F; text-align: center; }
.ilp-cardback__lock { position: absolute; left: 50%; bottom: -16%; display: grid; place-items: center; width: 36%; aspect-ratio: 1 / 1; transform: translateX(-50%); border: 1px solid #E3C98F; border-radius: 50%; background: #13283B; color: #E3C98F; }
.ilp-cardback__lock svg { display: block; width: 62%; height: 62%; }
/* A card shown by its back (a locked course practice): its name on a cream plate, so it's still findable. */
.ilp-cf.is-back { background: #13283B; }
.ilp-cf__plate {
  position: absolute; left: 12%; right: 12%; bottom: 12%; z-index: 4; display: flex; flex-direction: column; gap: 2px; padding: 8px 8px 9px;
  border-radius: 4px; border: 1px solid #B8975A; background: #F6F0E2; color: #1C1B2E;
}
.ilp-cf__plate .ilp-cf__name { display: block; font: 400 clamp(11px, 6.5cqi, 15px)/1.15 'Newsreader', Georgia, serif; letter-spacing: .06em; text-transform: uppercase; overflow-wrap: break-word; }
.ilp-cf__plate .ilp-cf__foot { display: block; margin: 0; font-size: clamp(8px, 4.6cqi, 10px); letter-spacing: .08em; text-transform: uppercase; color: #6E4A1E; }

/* Outside the app, a page's own element styles can't push into the card: margins off inside it. :where() keeps
   this at specificity 0, so the card's own rules above still win. */
:where(.ilp-cf) :where(p, span, img), :where(.ilp-cardback) :where(span) { margin: 0; }
/* An upgraded card (0.14: a course teaches it too, and the member is enrolled): a thin second frame line in the
   course's color inside the gold rules, and a small course seal. (0.19.2; Corey read the old gold disc as a gold star,
   and it sat over the art) The seal is the course's own: a small disc in its color with a thin gold ring and its
   glyph in cream, sitting on the frame's corner rule, never over the art. Gold stars will have a mark of their own.
   (The frame keeps its own position: absolute since 0.18.6, so the art window is the same with a seal or without.) */
/* (0.31.0; Corey's course-upgrade package, mockup v5's black-and-gold face) A card in a course's look, for its members:
   the course pack's ground over the whole card (the frame's spread shadow covers the cream edge; the card clips it), a
   gold frame, the name in cream, the suit, teacher and length in a softer gold. Its own picture, or the course's cover.
   Set --cl-ground, --cl-frame, --cl-ink and --cl-muted on the frame (app.js cardFace()); a gradient face, below. */
.ilp-cf__frame.is-course { border-color: var(--cl-frame, #C9A35E); outline-color: var(--cl-frame, #C9A35E); background: var(--cl-ground, #050407); box-shadow: 0 0 0 30cqi var(--cl-ground, #050407); }
.ilp-cf__frame.is-course .ilp-cf__suit, .ilp-cf__frame.is-course .ilp-cf__who, .ilp-cf__frame.is-course .ilp-cf__foot { color: var(--cl-muted, #D9B776); }
.ilp-cf__frame.is-course .ilp-cf__name { color: var(--cl-ink, #F3E6C8); border-color: var(--cl-frame, #C9A35E); }
.ilp-cf__frame.is-course .ilp-cf__art { border-color: var(--cl-frame, #C9A35E); box-shadow: inset 0 0 0 1px rgba(5, 4, 7, .6); }
/* (2026-11-09; Corey chose Loving Completely's "Metallic gold": "i like the metallic gold Loving Completely cards") A
   gradient ground (--cl-gradient, from the pack's face): a shadow's spread can't carry a gradient, so a layer under the
   frame fills the whole card with it (the card clips it to its corners; the card is isolated, so z-index -1 sits over
   its cream and under the frame's rules and type). With .has-sheen, a soft light band across it that sweeps once when
   pointed at (not with reduced motion). The type's contrast is checked against every stop and the band's lightest
   point (ilp_course_look()). */
:has(> .ilp-cf__frame.is-gradient) { isolation: isolate; }
.ilp-cf__frame.is-course.is-gradient { background: transparent; box-shadow: none; }
.ilp-cf__frame.is-course.is-gradient::before {
  content: ''; position: absolute; inset: calc(-1 * var(--cf-in, 4cqi) - 1.5px); z-index: -1; pointer-events: none;
  background: var(--cl-gradient, var(--cl-ground, #050407)); box-shadow: inset 0 -10px 24px rgba(120, 80, 20, .18);
}
.ilp-cf__frame.is-course.is-gradient.has-sheen::before {
  background: linear-gradient(115deg, rgba(255, 253, 244, 0) 30%, rgba(255, 253, 244, .45) 44%, rgba(255, 253, 244, 0) 58%) 60% 0 / 260% 100% no-repeat,
    var(--cl-gradient, var(--cl-ground, #050407));
}
@media (prefers-reduced-motion: no-preference) {
  .ilp-cf:hover .ilp-cf__frame.is-gradient.has-sheen::before, .ilp-cf:focus-visible .ilp-cf__frame.is-gradient.has-sheen::before { animation: ilp-cf-sheen 1.4s ease-out 1; }
}
@keyframes ilp-cf-sheen { from { background-position: 100% 0, 0 0; } to { background-position: 0% 0, 0 0; } }
/* (0.44.0; Corey picked "C · Holographic foil" for Full Spectrum Mindfulness, 2026-11-17: "i like C holographic foil";
   mockup content/mockups/fsm-fronts/) A foil course (look.foil, ilp_course_foil()): the frame's two rules, the arch's
   edge and the cartouche's rules in a holographic foil (champagne, cyan, lilac, gold, mint, rose) instead of gold. It
   shifts with the pointer: app.js sets --fa (its angle), --fx and --fy (where the light is) on the card, and with
   .is-lean the card leans a little toward the pointer; with reduced motion nothing is set, so it holds one angle. A
   card with a band (.has-lean, --foil-lean: its level's color) has a foil that leans toward that color. The name and
   the small type sit on the plain ground, never on the foil. An arch with no picture (.is-glow) shows its band rising
   from the foot (--foil-band; the whole course's cards a white light), and eight dots (.ilp-cf__bands) at its foot
   show where the card sits in the course's spectrum. */
.ilp-cf__frame.is-foil { --foil-stops: #D8C08A 0%, #F6ECD2 12.5%, #9AD7E6 25%, #D7A8EE 37.5%, #F5D48E 50%, #A6E5C6 62.5%, #F2B4CF 75%, #D8C08A 87.5%, #F6ECD2 100%; border-color: transparent; outline: 0; }
.ilp-cf__frame.is-foil.has-lean { --foil-stops: #D8C08A 0%, color-mix(in srgb, #F6ECD2 58%, var(--foil-lean)) 12.5%, #9AD7E6 25%, color-mix(in srgb, #D7A8EE 58%, var(--foil-lean)) 37.5%, #F5D48E 50%,
  color-mix(in srgb, #A6E5C6 58%, var(--foil-lean)) 62.5%, #F2B4CF 75%, color-mix(in srgb, #D8C08A 58%, var(--foil-lean)) 87.5%, #F6ECD2 100%; }
.ilp-cf__frame.is-foil::before, .ilp-cf__frame.is-foil::after, .ilp-cf__frame.is-foil .ilp-cf__art::before {
  content: ''; position: absolute; pointer-events: none;
  background: linear-gradient(var(--fa, 115deg), var(--foil-stops)) var(--fx, 50%) var(--fy, 50%) / 260% 260%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.ilp-cf__frame.is-foil::before { inset: -2px; padding: 2px; border-radius: 4px; }
.ilp-cf__frame.is-foil::after { inset: 3.5px; padding: 1px; border-radius: 2px; }
.ilp-cf__frame.is-course.is-foil .ilp-cf__art { border-color: transparent; }
.ilp-cf__frame.is-foil .ilp-cf__art::before { inset: 0; z-index: 3; padding: 1.5px; border-radius: inherit; }
/* (0.49.3) The sheen across the picture slides with the light (--fx, --fy), as on the foil pack cover, not only turns. */
.ilp-cf__frame.is-foil .ilp-cf__art::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(var(--fa, 115deg), transparent 28%, rgba(255, 255, 255, .16) 42%, rgba(150, 220, 255, .16) 48%, rgba(255, 170, 230, .15) 54%, rgba(255, 230, 160, .12) 60%, transparent 74%) var(--fx, 50%) var(--fy, 50%) / 240% 240%; }
.ilp-cf__frame.is-course.is-foil .ilp-cf__name { border-image: linear-gradient(var(--fa, 115deg), var(--foil-stops)) 1; }
.ilp-cf__frame.is-foil .ilp-cf__art.is-glow { background: radial-gradient(75% 55% at 50% 100%, color-mix(in srgb, var(--foil-band, #F4F2FF) 90%, transparent), transparent 72%), linear-gradient(180deg, #08070F, color-mix(in srgb, #08070F 80%, var(--foil-band, #F4F2FF))); }
.ilp-cf__frame.is-foil .ilp-cf__art.is-glow.is-all { background: radial-gradient(90% 70% at 50% 100%, rgba(244, 242, 255, .35), transparent 70%), #08070F; }
.ilp-cf__frame.is-foil .ilp-cf__art.is-glow > .ilp-art { display: none; }
.ilp-cf__bands { position: absolute; left: 50%; bottom: 5cqi; z-index: 2; display: flex; align-items: flex-end; gap: 2.2cqi; padding: 1.6cqi 2.4cqi; border-radius: 999px; background: rgba(5, 4, 10, .55); transform: translateX(-50%); }
.ilp-cf__bands i { display: block; width: 2.2cqi; height: 2.2cqi; border-radius: 50%; background: var(--c); opacity: .32; }
.ilp-cf__bands i.is-on { opacity: 1; box-shadow: 0 0 2.5cqi var(--c); transform: scale(1.35); }
@container (max-width: 130px) { .ilp-cf__bands { display: none; } }
.ilp-cf.is-lean { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }
@media (prefers-reduced-motion: reduce) { .ilp-cf.is-lean { transform: none; } }
/* (0.45.0; Corey's picks from the course-looks round, content/mockups/course-looks/) A course's own style (look.frame2,
   ilp_course_style()): its inner rule in a second color (Integrating Polarities: the outer rule blue, the inner amber;
   The Fourth Turning: gold, and a saffron line), its cartouche's two rules (--cl-rule-top, --cl-rule-bot), and in an arch
   with no picture its own drawing (.is-drawn, app.js archArt(): the figure eight; the wheel of four jewels, turning once
   a minute, still with reduced motion). */
.ilp-cf__frame.is-course.is-styled { outline-color: var(--cl-frame2, var(--cl-frame, #C9A35E)); }
.ilp-cf__frame.is-course.is-styled .ilp-cf__name { border-top-color: var(--cl-rule-top, var(--cl-frame, #C9A35E)); border-bottom-color: var(--cl-rule-bot, var(--cl-frame, #C9A35E)); }
.ilp-cf__frame.is-course.is-gradient.is-styled::before { box-shadow: none; }
.ilp-cf__frame.is-course .ilp-cf__art.is-drawn { background: var(--cl-ground, #05080D); }
.ilp-cf__frame .ilp-cf__art.is-drawn > .ilp-art { display: none; }
.ilp-cf__archart { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ilp-cf__archart .ilp-cf__spin { transform-origin: 50px 70px; }
@media (prefers-reduced-motion: no-preference) { .ilp-cf__archart .ilp-cf__spin { animation: ilp-cf-turn 60s linear infinite; } }
@keyframes ilp-cf-turn { to { transform: rotate(360deg); } }
/* (0.46.0; Corey: "i like thangka, let's go with that"; mockup content/mockups/course-looks/) Okay, I'm Dead's cards as
   small thangkas (look.mount 'thangka', ilp_course_style()). The painted field (the frame) is indigo canvas with gold
   line work, a vermilion inner rule, gold cloud scrolls in its corners, rainbow bands around the arch and a gold lotus on
   the cartouche. It's mounted in brocade: lapis silk with gold scrolls (a layer under the frame; the card is isolated),
   red and yellow silk strips around the field, a deeper lower border with its "door", and a short silk veil with two
   cords at the top. On a card under 150px wide (its content box under 138px: phones, a pack's fan) and with look.mount_strength 'subtle' it steps
   down to the subtle mount: plain red silk and one yellow strip, no door, veil or cords, so the title and the teacher
   keep their room. */
:has(> .ilp-cf__frame.is-thangka) { isolation: isolate; }
.ilp-cf__frame.is-course.is-thangka { inset: 11cqi 8.5cqi 16cqi; border-color: var(--cl-frame, #D4AF5A); outline: 1px solid var(--cl-frame2, #D9452B); outline-offset: -5px;
  background-color: var(--cl-ground, #141C46);
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .2) 0 1px, transparent 1px 3px), radial-gradient(120% 90% at 50% 35%, #1E2A66, #10163A 75%);
  box-shadow: 0 0 0 1.2cqi #E8B83E, 0 0 0 3.2cqi #B3261C, 0 0 0 3.8cqi #E8B83E; }
.ilp-cf__frame.is-thangka::before { content: ''; position: absolute; inset: -40cqi; z-index: -1; pointer-events: none; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2728%27%20height%3D%2728%27%20viewBox%3D%270%200%2028%2028%27%3E%3Crect%20width%3D%2728%27%20height%3D%2728%27%20fill%3D%27%231F3A86%27%2F%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23D4AF5A%27%20stroke-width%3D%271%27%20stroke-linecap%3D%27round%27%20opacity%3D%27.62%27%3E%3Cpath%20d%3D%27M4%2010c0-3%204.5-3%204.5%200c0%202-3%202-3%20.3M10%2010c0-3%204.5-3%204.5%200%27%2F%3E%3Cpath%20d%3D%27M18%2024c0-3%204.5-3%204.5%200c0%202-3%202-3%20.3M24%2024c0-3%204.5-3%204.5%200%27%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2721%27%20cy%3D%277%27%20r%3D%271.1%27%20fill%3D%27%23D4AF5A%27%20opacity%3D%27.7%27%2F%3E%3Ccircle%20cx%3D%277%27%20cy%3D%2721%27%20r%3D%271.1%27%20fill%3D%27%23D4AF5A%27%20opacity%3D%27.7%27%2F%3E%3C%2Fsvg%3E") 0 0 / 14cqi 14cqi, #1F3A86; }
.ilp-cf__frame.is-course.is-thangka .ilp-cf__art { border-color: var(--cl-frame, #D4AF5A); box-shadow: 0 0 0 1.3px #D9452B, 0 0 0 2.6px #E8B83E, 0 0 0 3.9px #2FA79A, 0 0 0 5.2px #2B4FB0; }
.ilp-cf__frame.is-course.is-thangka .ilp-cf__name { position: relative; padding-top: 4cqi; }
.ilp-cf__tk-lotus { position: absolute; left: 50%; top: 0; display: block; width: 14cqi; height: 7cqi; transform: translate(-50%, -62%); }
.ilp-cf__tk { position: absolute; inset: 0; pointer-events: none; }
.ilp-cf__tk-scrolls { position: absolute; inset: 2.4cqi; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2026%2026%22%3E%3Cg%20transform%3D%22%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23D4AF5A%22%20stroke-width%3D%221.1%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M2%2014C2%207%207%202%2014%202%22%2F%3E%3Cpath%20d%3D%22M5%2016c0-3%202.5-5%205.5-5c2.5%200%204%201.8%204%203.8c0%201.6-1.2%202.7-2.6%202.7c-1.2%200-2-.9-2-1.9%22%2F%3E%3Cpath%20d%3D%22M14%205c3%200%205%202.4%205%205.2c0%202-1.4%203.4-3%203.4%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2220.5%22%20cy%3D%224.5%22%20r%3D%221.3%22%20fill%3D%22%23D9452B%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") 0 0 / 13cqi 13cqi no-repeat, url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2026%2026%22%3E%3Cg%20transform%3D%22translate%2826%200%29%20scale%28-1%201%29%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23D4AF5A%22%20stroke-width%3D%221.1%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M2%2014C2%207%207%202%2014%202%22%2F%3E%3Cpath%20d%3D%22M5%2016c0-3%202.5-5%205.5-5c2.5%200%204%201.8%204%203.8c0%201.6-1.2%202.7-2.6%202.7c-1.2%200-2-.9-2-1.9%22%2F%3E%3Cpath%20d%3D%22M14%205c3%200%205%202.4%205%205.2c0%202-1.4%203.4-3%203.4%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2220.5%22%20cy%3D%224.5%22%20r%3D%221.3%22%20fill%3D%22%23D9452B%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") 100% 0 / 13cqi 13cqi no-repeat, url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2026%2026%22%3E%3Cg%20transform%3D%22translate%280%2026%29%20scale%281%20-1%29%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23D4AF5A%22%20stroke-width%3D%221.1%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M2%2014C2%207%207%202%2014%202%22%2F%3E%3Cpath%20d%3D%22M5%2016c0-3%202.5-5%205.5-5c2.5%200%204%201.8%204%203.8c0%201.6-1.2%202.7-2.6%202.7c-1.2%200-2-.9-2-1.9%22%2F%3E%3Cpath%20d%3D%22M14%205c3%200%205%202.4%205%205.2c0%202-1.4%203.4-3%203.4%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2220.5%22%20cy%3D%224.5%22%20r%3D%221.3%22%20fill%3D%22%23D9452B%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") 0 100% / 13cqi 13cqi no-repeat, url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2026%2026%22%3E%3Cg%20transform%3D%22translate%2826%2026%29%20scale%28-1%20-1%29%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23D4AF5A%22%20stroke-width%3D%221.1%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M2%2014C2%207%207%202%2014%202%22%2F%3E%3Cpath%20d%3D%22M5%2016c0-3%202.5-5%205.5-5c2.5%200%204%201.8%204%203.8c0%201.6-1.2%202.7-2.6%202.7c-1.2%200-2-.9-2-1.9%22%2F%3E%3Cpath%20d%3D%22M14%205c3%200%205%202.4%205%205.2c0%202-1.4%203.4-3%203.4%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2220.5%22%20cy%3D%224.5%22%20r%3D%221.3%22%20fill%3D%22%23D9452B%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") 100% 100% / 13cqi 13cqi no-repeat; }
.ilp-cf__tk-veil { position: absolute; left: -4cqi; right: -4cqi; top: calc(-11cqi - 1.5px); height: 6.5cqi; z-index: 2; border-radius: 0 0 40% 40% / 0 0 100% 100%; opacity: .94;
  background: repeating-linear-gradient(90deg, transparent 0 2cqi, rgba(120, 90, 40, .18) 2cqi 3cqi), linear-gradient(180deg, #F3E6C2, #E6D3A2); box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.ilp-cf__tk-veil::before, .ilp-cf__tk-veil::after { content: ''; position: absolute; top: 3cqi; width: 2.6cqi; height: 9cqi;
  background: linear-gradient(180deg, #B3261C, #E8B83E) 50% 0 / 1px calc(100% - 2cqi) no-repeat, radial-gradient(circle, #B3261C 58%, transparent 62%) 50% 100% / 2.6cqi 2.6cqi no-repeat; }
.ilp-cf__tk-veil::before { left: 20%; } .ilp-cf__tk-veil::after { right: 20%; }
.ilp-cf__tk-door { position: absolute; left: 50%; bottom: calc(-12.4cqi - 1.5px); width: 22cqi; height: 7.5cqi; transform: translateX(-50%); border: 1px solid #E8B83E; border-radius: 1px;
  background: repeating-linear-gradient(45deg, rgba(232, 184, 62, .35) 0 1px, transparent 1px 4px), #9E2418; }
/* The subtle mount: by choice, or on a narrow card. */
.ilp-cf__frame.is-course.is-thangka.is-thangka--subtle { inset: 6.5cqi 6cqi 8.5cqi; box-shadow: 0 0 0 1cqi #E8B83E; }
.ilp-cf__frame.is-thangka.is-thangka--subtle::before { background: radial-gradient(120% 90% at 50% 40%, #8A2A1C, #5E1A14 80%); }
.ilp-cf__frame.is-course.is-thangka.is-thangka--subtle .ilp-cf__art { box-shadow: 0 0 0 1.3px #D9452B, 0 0 0 2.6px #E8B83E; }
.ilp-cf__frame.is-thangka.is-thangka--subtle .ilp-cf__tk-veil, .ilp-cf__frame.is-thangka.is-thangka--subtle .ilp-cf__tk-door { display: none; }
@container (max-width: 137px) {
  .ilp-cf__frame.is-course.is-thangka { inset: 6.5cqi 6cqi 8.5cqi; box-shadow: 0 0 0 1cqi #E8B83E; }
  .ilp-cf__frame.is-thangka::before { background: radial-gradient(120% 90% at 50% 40%, #8A2A1C, #5E1A14 80%); }
  .ilp-cf__frame.is-course.is-thangka .ilp-cf__art { box-shadow: 0 0 0 1.3px #D9452B, 0 0 0 2.6px #E8B83E; }
  .ilp-cf__tk-veil, .ilp-cf__tk-door { display: none; }
  .ilp-cf__tk-scrolls { background-size: 11cqi 11cqi; }
}
@container (max-width: 120px) {
  .ilp-cf__frame.is-course.is-thangka { inset: 5cqi; }
  .ilp-cf__tk-lotus, .ilp-cf__tk-scrolls { display: none; }
  .ilp-cf__frame.is-course.is-thangka .ilp-cf__name { padding-top: 2cqi; }
}
/* (0.48.0; Corey: "i kind of like the scroll actually"; mockup content/mockups/lwp-look/, option C) Lead With Purpose's
   cards as Zen hanging scrolls (look.mount 'scroll', ilp_course_style()), for his ink-on-washi art. The field (the frame)
   is washi paper with sumi type, gold rules and a sumi inner line; it's mounted in indigo silk (a layer under the frame;
   the card is isolated), with a gold strip above and below the field, a hanging cord at the top and a wooden roller at
   the foot (.ilp-cf__sc). On a card under 138px wide the mount narrows; under 121px the cord and roller drop away, so
   the title and the teacher keep their room. Nothing moves. */
:has(> .ilp-cf__frame.is-scroll) { isolation: isolate; }
/* (0.49.10; Corey: "our Lead With Purpose scroll style feels a bit smaller than the other cards, probably because the card
   background is being lost against the blue. Maybe we should tweak so that the scroll goes all the way top to bottom?")
   The scroll fills the card's box: a wooden rod along the top edge (its cord above it) and the roller along the foot,
   each nearly the card's full width, and the washi field taller and wider, so only a thin band of silk shows at the
   sides. Positions are from the field (the frame, its 1.5px border): card top 0 to 3.4cqi the cord, 3.4 to 6.2 the rod,
   7 to 9.4 the gold strip, 10 the field; at the foot 1.4 to 6.2 the roller, 9 to 11.6 the strip, 12.5 the field. */
.ilp-cf__frame.is-course.is-scroll { inset: 10cqi 5.5cqi 12.5cqi; border-radius: 1px; box-shadow: 0 1.5cqi 3cqi rgba(0, 0, 0, .35);
  background-color: var(--cl-ground, #EEE2C6);
  background-image: radial-gradient(120% 70% at 30% 20%, rgba(255, 250, 236, .55), transparent 60%), repeating-linear-gradient(63deg, rgba(150, 120, 70, .05) 0 1px, transparent 1px 7px); }
.ilp-cf__frame.is-scroll::before { content: ''; position: absolute; inset: -40cqi; z-index: -1; pointer-events: none; background-color: #1B2A4A;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px), repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 4px); }
.ilp-cf__frame.is-course.is-scroll .ilp-cf__art { box-shadow: none; }
/* The field is narrower than a plain card's: the suit's name spaced tighter, so RELATIONSHIPS stays inside it. */
.ilp-cf__frame.is-scroll .ilp-cf__suit { letter-spacing: .18em; }
.ilp-cf__sc { position: absolute; inset: 0; pointer-events: none; }
.ilp-cf__sc-strip { position: absolute; left: calc(-5.5cqi - 1.5px); right: calc(-5.5cqi - 1.5px); height: 2.4cqi; background: linear-gradient(90deg, #8E6A2C, #D8B468 20%, #A8823C 45%, #E2C27A 70%, #93702F); }
.ilp-cf__sc-strip--top { top: calc(-3cqi - 1.5px); }
.ilp-cf__sc-strip--bot { bottom: calc(-3.5cqi - 1.5px); height: 2.6cqi; }
/* The rod (the top of the scroll) and the roller (its foot): dark wood with a lit edge, rounded ends. */
.ilp-cf__sc::before, .ilp-cf__sc-roller { content: ''; position: absolute; left: calc(-4cqi - 1.5px); right: calc(-4cqi - 1.5px); border-radius: 2.4cqi; background: linear-gradient(#8A6440, #4A3220 38%, #1E140C); box-shadow: 0 .6cqi 1.2cqi rgba(0, 0, 0, .45); }
.ilp-cf__sc::before { top: calc(-6.6cqi - 1.5px); height: 2.8cqi; }
.ilp-cf__sc-roller { bottom: calc(-11.1cqi - 1.5px); left: calc(-3.5cqi - 1.5px); right: calc(-3.5cqi - 1.5px); height: 4.8cqi; }
.ilp-cf__sc-cord { position: absolute; top: calc(-9.6cqi - 1.5px); left: 50%; width: 22cqi; height: 3.4cqi; transform: translateX(-50%); border: 1.4px solid #C9A35E; border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
@container (max-width: 137px) {
  .ilp-cf__frame.is-course.is-scroll { inset: 9cqi 5cqi 11cqi; }
  .ilp-cf__sc-strip { left: calc(-5cqi - 1.5px); right: calc(-5cqi - 1.5px); }
  .ilp-cf__sc-strip--top { top: calc(-2.6cqi - 1.5px); } .ilp-cf__sc-strip--bot { bottom: calc(-3.2cqi - 1.5px); }
  .ilp-cf__sc::before { top: calc(-6cqi - 1.5px); height: 2.6cqi; }
  .ilp-cf__sc-cord { top: calc(-8.6cqi - 1.5px); height: 2.8cqi; }
  .ilp-cf__sc-roller { bottom: calc(-9.8cqi - 1.5px); height: 4.2cqi; }
}
/* A small card (the hand's piles, a pack's fan): no cord, a slimmer rod and roller, so the title and the teacher keep
   their room; the scroll still reaches the card's edges. */
@container (max-width: 120px) {
  .ilp-cf__frame.is-course.is-scroll { inset: 7cqi 4.5cqi 8.5cqi; }
  .ilp-cf__sc-strip { left: calc(-4.5cqi - 1.5px); right: calc(-4.5cqi - 1.5px); height: 2cqi; }
  .ilp-cf__sc-strip--top { top: calc(-2.4cqi - 1.5px); } .ilp-cf__sc-strip--bot { bottom: calc(-2.6cqi - 1.5px); height: 2cqi; }
  .ilp-cf__sc::before { top: calc(-5.4cqi - 1.5px); height: 2.6cqi; left: calc(-3cqi - 1.5px); right: calc(-3cqi - 1.5px); }
  .ilp-cf__sc-roller { bottom: calc(-7.4cqi - 1.5px); height: 3.4cqi; left: calc(-3cqi - 1.5px); right: calc(-3cqi - 1.5px); }
  .ilp-cf__sc-cord { display: none; }
}
.ilp-cf__frame.is-upgraded::after { content: ''; position: absolute; inset: 7px; border: 1px solid var(--course, #16284A); border-radius: 2px; pointer-events: none; }
.ilp-cf__seal { position: absolute; top: 0; right: 0; z-index: 2; display: grid; place-items: center; width: max(9cqi, 12px); height: max(9cqi, 12px); border-radius: 50%; transform: translate(42%, -42%);
  background: var(--course, #16284A); box-shadow: 0 0 0 1px #B8975A, 0 1px 3px rgba(0, 0, 0, .3); color: #F6F0E2; }
.ilp-cf__seal svg { width: 64%; height: 64%; }

/* (0.49.22; Corey approved the mockup "Series Line and Master Marker", 2026-11-21) A family card's series line above its
   name, in small capitals ("THE ZEN LEADER · 4 OF 10"; a master's "10 PARTS"), and a master's wordless ribbon across its
   top right corner, its color from its face (--rib: app.js cardFace(), cards.php ilp_card_face_html(); packs.php
   ilp_ribbon_color()); on a gold star master the star rides the ribbon, centered, on top. Too small a face (a fanned
   pile's back cards) drops the line. */
.ilp-cf__frame .ilp-cf__series { display: block; margin: 0 0 1.6cqi; font: 700 clamp(7px, 5.2cqi, 11px)/1.25 'Hanken Grotesk', system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-c, #5A5566); }
.ilp-cf__frame.is-course .ilp-cf__series { color: var(--cl-muted, #D9B776); }
.ilp-cf__frame .ilp-cf__series-s, .ilp-cf__frame .ilp-cf__series-x { white-space: nowrap; }
.ilp-cf__frame .ilp-cf__series:not(.is-master) .ilp-cf__series-x { font-weight: 600; opacity: .85; }
@container (max-width: 95px) { .ilp-cf__frame .ilp-cf__series { display: none; } }
/* (0.49.25; Corey: "the ribbon doesn't run to the edges of the front card") A true corner ribbon. .ilp-cf__rib is a box the
   card's own size and shape (from inside the frame: the frame's inset and its 1.5px border, back out to the card's edge),
   clipping what it holds. Inside, the band (.ilp-cf__ribbar) crosses the corner at 45 degrees, its center 16cqi in from
   the top and the right, and long enough (76cqi) that both ends run well past the card's top and right edges (by about
   9-12px at the grid and sheet sizes), cut by them.
   A gold star sits centered on the band, upright. cqi: the card's width (.ilp-cf is the container). */
.ilp-cf__frame .ilp-cf__rib { position: absolute; z-index: 4; inset: calc(-1 * var(--cf-in, 4cqi) - 1.5px); overflow: hidden; border-radius: var(--cf-r, 10px); pointer-events: none; }
.ilp-cf__frame .ilp-cf__ribbar { position: absolute; top: 16cqi; right: 16cqi; width: 76cqi; height: 7cqi; min-height: 6px; transform: translate(50%, -50%) rotate(45deg);
  display: flex; align-items: center; justify-content: center;
  background: var(--rib, #6E1F2A); box-shadow: 0 1px 2px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 250, 235, .3), inset 0 -1px 0 rgba(0, 0, 0, .2); }
.ilp-cf__frame .ilp-cf__ribbar .ilp-cf__star { position: static; flex: none; transform: rotate(-45deg); width: 12cqi; height: 12cqi; min-width: 17px; min-height: 17px; }
