/*
 * themes/alder/css/alder-shell.css
 *
 * The coming-soon shell (page--shell.tpl.php): the building figure
 * (partials/_shell-build.php) and the grayed-out preview
 * (partials/_shell-preview.php). Phone first: figure, then preview, stacked;
 * side by side from 921px. Colors are the site figure tones (the join door's
 * isometric palette, css/join-door.css) and the alder tokens; no new ones.
 *
 * The one motion is the crane lowering a block (cs-place), seven seconds and
 * eased; reduced motion stops it and the SVG's own transform keeps the block
 * hanging, so the figure is whole without it. The preview is grayed, faded
 * and never takes a pointer; it is aria-hidden and inert in the markup.
 */

.cs-shell .cs-body { padding: 28px 0 var(--al-rhythm); }
.cs-shell .cs-body__grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 921px) {
  .cs-shell .cs-body__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
}

/* The figure. */
.cs-shell .cs-fig { margin: 0; padding: 18px 12px 8px; background: var(--al-sand); border-radius: var(--al-r); }
.cs-shell .cs-build { display: block; width: 100%; max-width: min(300px, 100%); height: auto; margin: 0 auto; overflow: visible; }
.cs-shell .cs-shadow { fill: rgba(14, 42, 27, .07); }
.cs-shell .cs-cream.cs-t { fill: #FFFDF8; } .cs-shell .cs-cream.cs-l { fill: #F1E8D6; } .cs-shell .cs-cream.cs-r { fill: #E4D8C0; }
.cs-shell .cs-paper.cs-t { fill: #fff; }    .cs-shell .cs-paper.cs-l { fill: #F7F4ED; } .cs-shell .cs-paper.cs-r { fill: #EBE5D9; }
.cs-shell .cs-sage.cs-t { fill: #CFEFD8; }  .cs-shell .cs-sage.cs-l { fill: #A8DEB5; }  .cs-shell .cs-sage.cs-r { fill: #8DCB9D; }
.cs-shell .cs-deep.cs-t { fill: #1C6B3C; }  .cs-shell .cs-deep.cs-l { fill: #14532D; }  .cs-shell .cs-deep.cs-r { fill: #0E2A1B; }
.cs-shell .cs-win { fill: #A8DEB5; }
.cs-shell .cs-win--r { fill: #8DCB9D; }
.cs-shell .cs-slot { fill: rgba(168, 222, 181, .18); stroke: #1C6B3C; stroke-width: 1; stroke-dasharray: 4 4; }
.cs-shell .cs-steel { fill: none; stroke: #2F9E4F; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cs-shell .cs-steel--jib { stroke-width: 2.2; }
.cs-shell .cs-pole { fill: none; stroke: #1C6B3C; stroke-width: 1.8; stroke-linecap: round; }
.cs-shell .cs-board { fill: #E4D8C0; }
.cs-shell .cs-cable { fill: none; stroke: #0E2A1B; stroke-width: 1.2; }
.cs-shell .cs-hook { fill: none; stroke: #0E2A1B; stroke-width: 2; stroke-linecap: round; }

/* The block glides down into its slot, rests, and rises again. */
@keyframes cs-place {
  0%, 14%   { transform: translateY(-44px); }
  50%, 74%  { transform: translateY(0); }
  100%      { transform: translateY(-44px); }
}
.cs-shell .cs-load { animation: cs-place 7s cubic-bezier(.45, 0, .25, 1) infinite; }
@media (prefers-reduced-motion: reduce) {
  .cs-shell .cs-load { animation: none; }
}

/* The preview. */
.cs-shell .cs-pv__note { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--al-muted); max-width: 52ch; }
.cs-shell .cs-pv__tag {
  display: inline-block; margin-right: 6px; padding: 2px 10px; border-radius: 999px;
  background: var(--al-ink); color: #fff; font: 600 12px/1.6 var(--al-sans); letter-spacing: .04em; text-transform: uppercase;
}
.cs-shell .cs-pv__frame {
  position: relative; border: 1px solid var(--al-line); border-radius: var(--al-r); overflow: hidden; background: #fff;
  filter: grayscale(1); opacity: .62; pointer-events: none; user-select: none; -webkit-user-select: none;
}
/* Fades the sketch out at the bottom so it reads as a glimpse, not a page. */
.cs-shell .cs-pv__frame::after {
  content: ""; position: absolute; inset: auto 0 0; height: 72px; background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}
.cs-shell .cs-pv__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--al-line); background: var(--al-page); }
.cs-shell .cs-pv__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--al-sand-2); }
.cs-shell .cs-pv__bar strong { margin-left: 8px; font: 600 13px/1.2 var(--al-display); color: var(--al-ink); }
.cs-shell .cs-pv__page { padding: 18px 16px 40px; min-height: 260px; }

.cs-shell .cs-pv-bar { display: block; height: 9px; margin: 7px 0; border-radius: 5px; background: var(--al-sand-2); }
.cs-shell .cs-pv-bar--title { height: 12px; background: #C9D2CD; }
.cs-shell .cs-pv-chips { display: flex; gap: 8px; margin-bottom: 14px; }
.cs-shell .cs-pv-chip { height: 26px; border-radius: 999px; background: var(--al-paper); border: 1px solid var(--al-line); }
.cs-shell .cs-pv-list { list-style: none; margin: 0; padding: 0; }
.cs-shell .cs-pv-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--al-line); }
.cs-shell .cs-pv-row:first-child { border-top: 0; }
.cs-shell .cs-pv-stack { flex: 1; min-width: 0; }
.cs-shell .cs-pv-dot { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--al-sand-2); }
.cs-shell .cs-pv-count { flex: none; width: 36px; height: 22px; border-radius: 999px; background: var(--al-paper); }
.cs-shell .cs-pv-thumb { flex: none; width: 92px; height: 64px; border-radius: 10px; background: var(--al-paper); }

.cs-shell .cs-pv-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-shell .cs-pv-grid--people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-shell .cs-pv-card { padding: 12px; border: 1px solid var(--al-line); border-radius: 12px; }
.cs-shell .cs-pv-card--person { text-align: center; }
.cs-shell .cs-pv-card--person .cs-pv-bar { margin-inline: auto; }
.cs-shell .cs-pv-avatar { display: block; width: 44px; height: 44px; margin: 4px auto 8px; border-radius: 50%; background: var(--al-sand-2); }
.cs-shell .cs-pv-media { display: block; height: 70px; margin-bottom: 8px; border-radius: 8px; background: var(--al-paper); }

.cs-shell .cs-pv-tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-shell .cs-pv-tier { padding: 12px 10px; border: 1px solid var(--al-line); border-radius: 12px; }
.cs-shell .cs-pv-tier__name { display: block; font: 600 15px/1.3 var(--al-display); color: var(--al-ink); }
.cs-shell .cs-pv-tier__price { display: block; min-height: 2.6em; margin: 4px 0 8px; font-size: 12.5px; line-height: 1.3; color: var(--al-muted); }

.cs-shell .cs-pv-seg { display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 999px; background: var(--al-page); border: 1px solid var(--al-line); }
.cs-shell .cs-pv-seg span { flex: 1; padding: 8px 0; text-align: center; border-radius: 999px; font-size: 13px; color: var(--al-muted); }
.cs-shell .cs-pv-seg span:first-child { background: var(--al-ink); color: #fff; }
.cs-shell .cs-pv-fields { max-width: 420px; }
.cs-shell .cs-pv-label { display: block; margin: 12px 0 6px; font-size: 13px; color: var(--al-body); }
.cs-shell .cs-pv-field { display: block; height: 44px; border: 1px solid var(--al-line); border-radius: 10px; background: var(--al-page); }
.cs-shell .cs-pv-field--tall { height: 88px; margin-bottom: 12px; }
.cs-shell .cs-pv-btn { display: block; height: 36px; margin-top: 12px; border-radius: 999px; background: var(--al-sand-2); }
.cs-shell .cs-pv-btn--solid {
  display: inline-block; height: auto; margin-top: 18px; padding: 12px 22px; background: var(--al-ink); color: #fff;
  font: 600 14px/1.2 var(--al-sans);
}

.cs-shell .cs-pv-dash { display: grid; gap: 14px; }
.cs-shell .cs-pv-side { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cs-shell .cs-pv-side li { padding: 6px 12px; border-radius: 999px; background: var(--al-page); border: 1px solid var(--al-line); font-size: 13px; color: var(--al-muted); }
.cs-shell .cs-pv-side li:first-child { background: var(--al-ink); border-color: var(--al-ink); color: #fff; }
.cs-shell .cs-pv-progress { display: block; height: 6px; margin-top: 10px; border-radius: 3px; background: var(--al-sand-2); overflow: hidden; }
.cs-shell .cs-pv-progress span { display: block; height: 100%; background: #8DCB9D; }
@media (min-width: 600px) {
  .cs-shell .cs-pv-dash { grid-template-columns: 140px minmax(0, 1fr); }
  .cs-shell .cs-pv-side { flex-direction: column; }
  .cs-shell .cs-pv-tier { padding: 14px; }
}
@media (min-width: 921px) {
  .cs-shell .cs-build { max-width: 420px; }
}
