/* One Morning, Six Tools: the post's sunrise hero and its body extras (lead, status badges, risk
   notice). Loaded only on that post ({% blog_post_assets %}). Site tokens only. The sun sits on the arc
   through two nested full-size boxes, one moved by --sun-x and one by --sun-y (a translate in % is of
   the box itself, so a box as big as the sky moves by a share of the sky). Only transform and opacity
   change, and only when motion is welcome. Copied from zpzcoin.io (_blog.scss, .zpz-blog-morning). */

.lpb-cover--morning { aspect-ratio: auto; overflow: visible; padding: clamp(18px, 3.4vw, 36px); background: linear-gradient(180deg, var(--lp-bg-2), var(--lp-bg)); }

.mo-figure {
  /* The sun's warm light. */
  --sun-rgb: 229, 169, 58; --sun-100: #fdf3c8; --sun-300: #f5d56e; --sun-500: #e5a93a;
  --mo-mono: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --mo-ease: cubic-bezier(.22, 1, .36, 1);
  margin: 0; display: grid; gap: 20px; text-align: left; color: var(--lp-text);
}
.mo-figure [hidden] { display: none !important; }

.mo-eyebrow { margin: 0; display: flex; align-items: center; gap: 10px; font-size: var(--lp-fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--lp-muted); }
.mo-eyebrow-mark { width: 22px; height: 2px; background: linear-gradient(90deg, var(--sun-500), var(--lp-primary)); }
.mo-title { margin: 12px 0 8px; font-family: var(--lp-font-title); font-weight: 600; font-size: clamp(22px, 3vw, var(--lp-fs-xl)); line-height: 1.2; letter-spacing: -.02em; color: var(--lp-text); }
.mo-sub { margin: 0; max-width: 64ch; font-size: var(--lp-fs-base); line-height: 1.6; color: var(--lp-muted); }

/* ---------------- sky ---------------- */
.mo-sky {
  position: relative; height: 112px; overflow: hidden; /* clips the sun while it is still below the horizon */
  border-bottom: 1px solid var(--lp-border-strong); border-radius: var(--lp-r-lg) var(--lp-r-lg) 0 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--lp-accent) 12%, transparent), transparent 75%);
}
/* Three skies cross-fade by opacity: night fades out as the sun climbs, the dawn glow peaks on the
   first steps, and day takes over. */
.mo-night, .mo-dawn, .mo-day { position: absolute; inset: 0; }
.mo-night { background: linear-gradient(to bottom, color-mix(in srgb, var(--lp-bg) 85%, transparent), color-mix(in srgb, var(--lp-primary) 8%, transparent)); opacity: calc(1 - var(--day, 0) * 1.4); }
.mo-dawn {
  background:
    radial-gradient(42% 95% at 18% 100%, rgba(var(--sun-rgb), .42), transparent 70%),
    radial-gradient(70% 110% at 30% 100%, color-mix(in srgb, var(--lp-accent) 26%, transparent), transparent 75%);
  opacity: var(--dawn, 1);
}
.mo-day {
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(var(--sun-rgb), .12), transparent 70%),
    linear-gradient(to top, color-mix(in srgb, var(--lp-primary) 26%, transparent), color-mix(in srgb, var(--lp-primary) 6%, transparent));
  opacity: var(--day, 0);
}
.mo-star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--lp-muted); opacity: calc(.8 - var(--day, 0) * 2.4); }
.mo-arc { position: absolute; inset: 0; width: 100%; height: 100%; }
.mo-arc path { fill: none; stroke: var(--lp-border-strong); stroke-width: 1.5; stroke-dasharray: 4 5; }
.mo-open { position: absolute; inset: 0; transform: translateX(calc(var(--open-x) * 100%)); }
.mo-open::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1px dashed color-mix(in srgb, var(--lp-primary) 60%, transparent); }
/* Low and to the left of the line: the sun is high by then. */
.mo-open span { position: absolute; left: 0; bottom: 24px; font-family: var(--mo-mono); font-size: 11px; line-height: 1.4; white-space: nowrap; color: var(--lp-muted); transform: translateX(-100%) translateX(-12px); }
.mo-sun-x, .mo-sun-y { position: absolute; inset: 0; }
.mo-sun-x { transform: translateX(calc(var(--sun-x, 0) * 100%)); }
.mo-sun-y { transform: translateY(calc(var(--sun-y, 0) * 100%)); }
/* Soft clouds, lit warm at dawn. They drift only when motion is welcome. */
.mo-cloud { position: absolute; height: 18px; border-radius: 999px; background: radial-gradient(closest-side, rgba(var(--sun-rgb), calc(.1 + var(--dawn, 0) * .16)), color-mix(in srgb, var(--lp-primary) 8%, transparent) 60%, transparent); opacity: calc(.55 + var(--day, 0) * .35); }
.mo-cloud--a { left: 6%; top: 22%; width: 120px; }
.mo-cloud--b { left: 48%; top: 46%; width: 170px; height: 22px; }
.mo-cloud--c { left: 78%; top: 14%; width: 90px; height: 14px; }
/* Rays: a slow-turning fan of gold behind the sun, faded at the rim. */
.mo-rays {
  position: absolute; left: -80px; top: -80px; width: 160px; height: 160px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(var(--sun-rgb), .22) 0deg 6deg, transparent 6deg 22deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 100%); mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
  opacity: calc(.45 + var(--dawn, 0) * .55);
}
.mo-sun {
  position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--sun-100), var(--sun-300) 45%, var(--sun-500) 90%);
  box-shadow: 0 0 0 6px rgba(var(--sun-rgb), .16), 0 0 28px 6px rgba(var(--sun-rgb), .35);
}
.mo-sun::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(var(--sun-rgb), .45); opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  /* Slow and eased, so the climb reads as a sunrise, not a jump. */
  .mo-sun-x, .mo-sun-y { transition: transform 1.6s var(--mo-ease); }
  .mo-night, .mo-dawn, .mo-day, .mo-star { transition: opacity 1.6s var(--lp-ease); }
  .mo-sun::after { animation: mo-sun-halo 3.2s var(--lp-ease) infinite; }
  .mo-rays { animation: mo-sun-rays 48s linear infinite; }
  .mo-cloud--a { animation: mo-cloud-drift 38s ease-in-out infinite alternate; }
  .mo-cloud--b { animation: mo-cloud-drift 52s ease-in-out infinite alternate-reverse; }
  .mo-cloud--c { animation: mo-cloud-drift 44s ease-in-out infinite alternate; }
  /* The clock moves the sun every frame; a transition would only lag it. */
  .mo-figure.is-clock :is(.mo-sun-x, .mo-sun-y, .mo-night, .mo-dawn, .mo-day, .mo-star, .mo-cloud) { transition: none; }
  /* Off screen, nothing runs. */
  .mo-figure.is-paused :is(.mo-rays, .mo-cloud) { animation-play-state: paused; }
  .mo-figure.is-paused .mo-sun::after { animation-play-state: paused; }
}
@keyframes mo-sun-rays { to { transform: rotate(360deg); } }
@keyframes mo-cloud-drift { from { transform: translateX(-40px); } to { transform: translateX(40px); } }
@keyframes mo-sun-halo { 0% { opacity: .7; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.6); } }

/* ---------------- stops (tabs) ---------------- */
/* The stops ride up over the sky's bottom edge so each dot is centred on the horizon line. */
.mo-stops { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: -20px; }
.lp-main .mo-figure .mo-stop {
  appearance: none; margin: 0; border: 0; box-shadow: none; background: transparent; font: inherit; text-transform: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px; padding: 0 2px 6px;
  border-radius: var(--lp-r-sm); color: var(--lp-muted); transition: color var(--lp-dur) var(--lp-ease);
}
.lp-main .mo-figure .mo-stop:focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 2px; }
@media (any-hover: hover) { .lp-main .mo-figure .mo-stop:hover { color: var(--lp-text); } }
.lp-main .mo-figure .mo-stop.is-active { color: var(--lp-text); }
.mo-dot { display: block; width: 14px; height: 14px; margin: 13px 0 4px; border: 2px solid var(--lp-border-strong); border-radius: 50%; background: var(--lp-surface); transition: background-color var(--lp-dur) var(--lp-ease), border-color var(--lp-dur) var(--lp-ease); }
.is-done .mo-dot { border-color: var(--lp-primary); background: var(--lp-primary); }
.is-active .mo-dot { border-color: var(--lp-accent); background: var(--lp-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lp-primary) 22%, transparent); }
.mo-time { font-family: var(--mo-mono); font-size: var(--lp-fs-xs); line-height: 1.4; font-variant-numeric: tabular-nums; }
.mo-verb { display: none; font-size: 13px; font-weight: 500; line-height: 1.3; }
@media (min-width: 576px) { .mo-verb { display: block; } }

/* ---------------- step panel ---------------- */
.mo-panel { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--lp-border); border-radius: var(--lp-r-lg); background: var(--lp-surface); }
.mo-who { display: flex; align-items: center; gap: 14px; }
.mo-who p { margin: 0; }
.mo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mo-mono); font-size: var(--lp-fs-xs); color: var(--lp-muted); }
.mo-name { margin-top: 4px !important; font-family: var(--lp-font-title); font-size: var(--lp-fs-lg); line-height: 1.3; font-weight: 600; color: var(--lp-text); }
.mo-facts { display: grid; gap: 12px; margin: 0; }
@media (min-width: 768px) { .mo-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mo-facts > div { display: grid; align-content: start; gap: 2px; }
.mo-facts dt { font-family: var(--mo-mono); font-size: var(--lp-fs-xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--lp-muted); }
.mo-facts dd { margin: 0; font-size: var(--lp-fs-base); line-height: 1.6; color: var(--lp-muted); }
.mo-zpz dt { color: var(--lp-accent); }

/* Product marks: each in a round frame with a hairline ring. */
.mo-logo { position: relative; display: inline-block; flex: none; width: 44px; height: 44px; }
.mo-logo-frame { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; background: var(--lp-surface-3); }
.mo-logo-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--lp-border-strong); border-radius: inherit; pointer-events: none; }
.mo-logo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The EZPZ mark is drawn on black to its corners; the Trader mark is ink on transparent. (Artwork grounds, not UI colours.) */
.mo-logo--ezpz .mo-logo-frame { background: #000; }
.mo-logo--ezpz .mo-logo-frame img { transform: scale(.84); }
.mo-logo--ezpz-trader .mo-logo-frame { background: #fff; }
.mo-logo-badge { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: linear-gradient(135deg, var(--sun-300), var(--sun-500)); color: #1a1206; box-shadow: 0 0 0 2px var(--lp-surface); }
.mo-logo-badge svg { width: 11px; height: 11px; }

/* Status badges, here and in the post body. */
.mo-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: var(--lp-r-pill); font-family: var(--lp-font); font-size: var(--lp-fs-xs); font-weight: 600; line-height: 1.6; letter-spacing: 0; text-transform: none; vertical-align: middle; }
.mo-badge--live { color: var(--lp-green); background: color-mix(in srgb, var(--lp-green) 14%, transparent); }
.mo-badge--waitlist { color: var(--lp-amber); background: color-mix(in srgb, var(--lp-amber) 14%, transparent); }

.lp-main .mo-figure .mo-link { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-weight: 600; color: var(--lp-accent); text-decoration: none; transition: color var(--lp-dur) var(--lp-ease); }
.lp-main .mo-figure .mo-link:hover { color: var(--lp-text); }
.lp-main .mo-figure .mo-link:focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 3px; border-radius: 6px; }

.mo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.mo-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.mo-nav .lp-btn { display: inline-flex; align-items: center; gap: 6px; }
/* One icon on the Play button at a time; blog-morning.js sets data-state. */
[data-mo-play] svg { display: none; }
[data-mo-play][data-state="playing"] .mo-ico-pause,
[data-mo-play][data-state="ended"] .mo-ico-replay,
[data-mo-play][data-state="stopped"] .mo-ico-play,
[data-mo-play]:not([data-state]) .mo-ico-play { display: block; }
.mo-cap { margin: 0; font-size: var(--lp-fs-sm); line-height: 1.6; color: var(--lp-muted); }

/* ---------------- post body ---------------- */
.lp-prose .mo-lead { font-size: var(--lp-fs-md); line-height: 1.65; color: var(--lp-text); }
.lp-prose h3 .mo-badge { margin-left: 6px; }
.lp-prose .mo-risk { margin: 2.5em 0 0; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--lp-amber) 40%, transparent); border-radius: var(--lp-r); background: color-mix(in srgb, var(--lp-amber) 8%, transparent); font-size: var(--lp-fs-sm); line-height: 1.6; }
.lp-prose .mo-risk > strong { display: block; margin-bottom: 6px; color: var(--lp-amber); }
.lp-prose .mo-risk p { margin: 0; color: var(--lp-muted); }
