/* Panora Life — suggestions and Your path (js/suggest.js, js/path.js; decisions/0009).
 * Loaded after css/standard.css. */

/* ---------- Home: "For you now", one idea in the sky's glass; more fold under it ---------- */
#wins-home.sky .sg-card {
  padding: 14px 14px 10px;
  margin: 14px 0 4px;
  color: var(--sky-ink, #fff);
}
.sg-eyebrow {
  margin: 0 0 10px;
  font-size: var(--head-size);
  font-weight: 800;
  letter-spacing: var(--head-track);
  text-transform: uppercase;
}
.sg-item {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-right: 34px;
}
.sg-item + .sg-item {
  margin-top: 14px;
}
.sg-ic {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}
.sg-ic svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #1d2b24;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sg-t {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sg-t b {
  font-size: 16px;
  line-height: 1.25;
}
.sg-t span {
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.92;
}
.sg-go {
  align-self: flex-start;
  margin-top: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  background: #fff;
  color: #22453a;
  cursor: pointer;
}
html[data-sky='sunrise'] .sg-go {
  color: #5b4fae;
}
html[data-sky='glacier'] .sg-go {
  color: #2a40a6;
}
.sg-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  opacity: 0.8;
  cursor: pointer;
}
.sg-more {
  margin-top: 10px;
}
.sg-more > summary {
  min-height: 36px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}
.sg-more > summary::-webkit-details-marker {
  display: none;
}
.sg-more > summary::after {
  content: ' \203A';
  margin-left: 4px;
}
.sg-more[open] > summary {
  margin-bottom: 10px;
}

/* ---------- In a part: one line under the header, the part's own best idea ---------- */
.parthead .ph-sg {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 50px);
  min-height: 40px;
  margin: 0 0 8px 50px;
  padding: 6px 12px;
  border: 1px solid var(--edge-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.parthead .ph-sg-t {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.parthead .ph-sg-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.sg-sheet-btns {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.sg-sheet-btns .btn {
  flex: 1;
}
/* "Stop suggesting this": quiet, under the two buttons, a full tap target. */
.sg-stop {
  display: block;
  margin: 12px auto 0;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--ink-muted);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Home: Your path (js/path.js) ---------- */
#wins-home.sky .pa-card {
  position: relative;
  overflow: hidden;
  padding: 14px 16px 10px;
  margin: 14px 0 4px;
  color: var(--sky-ink, #fff);
}
.pa-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pa-top .sg-eyebrow {
  margin: 0;
}
.pa-dots {
  display: flex;
  gap: 6px;
}
.pa-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.55;
}
.pa-dot.on,
.pa-dot.done {
  background: var(--pc);
  border-color: var(--pc);
  opacity: 1;
}
.pa-dot.now {
  background: var(--pc);
  border-color: #fff;
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}
.pa-title {
  margin: 12px 0 6px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}
.pa-why {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.92;
}
.pa-steps {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
/* The steps still to come at 0.9: 0.75 measured 3.6:1 on the sky, under 4.5 (UI review). */
.pa-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 15px;
  opacity: 0.9;
}
.pa-steps li.now {
  opacity: 1;
  font-weight: 700;
}
.pa-steps li.ok {
  opacity: 0.9;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.pa-steps small {
  font-weight: 600;
  opacity: 0.85;
  margin-left: 4px;
}
.pa-tick {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  border: 1.5px solid currentColor;
}
.pa-steps li.ok .pa-tick {
  background: #fff;
  color: #22453a;
  border-color: #fff;
}
.pa-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.pa-link {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.pa-all {
  display: block;
  margin-top: 2px;
  font-weight: 600;
  opacity: 0.85;
}
/* Ready for more: three parts to pick from (Phase 3.1). */
.pa-ask {
  margin: 12px 0 6px;
  font-size: 15px;
  font-weight: 700;
}
.pa-picks {
  display: grid;
  gap: 8px;
}
.pa-pick {
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pa-pick b {
  font-size: 16px;
}
/* A part the person asked for in the welcome (issue 5). */
.pa-asked {
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}
.pa-more > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  list-style: none;
}
.pa-more > summary::-webkit-details-marker {
  display: none;
}
.pa-pick span {
  font-size: 13.5px;
  line-height: 1.35;
}
/* A part learned: a burst of rays, once, in the empty bottom corner beside the links,
   clear of the words and the dots (the UI review: its lines crossed the text). */
.pa-burst {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  pointer-events: none;
  z-index: 0;
}
/* The words and buttons sit over the burst. */
#wins-home.sky .pa-card > :not(.pa-burst) {
  position: relative;
  z-index: 1;
}
.pa-burst line {
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0;
  animation: pa-ray 1.4s ease-out calc(var(--i) * 40ms) 2 both;
}
@keyframes pa-ray {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  40% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}
.pa-burst line {
  transform-origin: 50px 50px;
}
@media (prefers-reduced-motion: reduce) {
  .pa-burst line {
    animation: none;
    opacity: 0.3;
  }
}

/* The welcome: the picks numbered in the order tapped, the first marked "Starts here"
   (issue 5), or everything at once. */
.ww-tag {
  margin-left: 6px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-text, var(--accent));
  white-space: nowrap;
}
.welcome-all {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 1.5px solid var(--accent, currentColor);
  border-radius: 14px;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  color: var(--accent-text, inherit);
  cursor: pointer;
}
