/* Scoped 6-Step S-Curve App Workflow Poster Styles — YoungYou (ยังอยู่) */
.yy-poster-section {
  padding: 56px 0;
}

.yy-poster {
  --yyp-ink: #1b1917;
  --yyp-muted: #3d3832;
  --yyp-gold: #f5b800;
  --yyp-gold-soft: #ffe27a;
  --yyp-orange: #eb6b1f;
  --yyp-red: #d91b24;
  --yyp-green: #2ecc71;
  --yyp-blue-bg: #eaf3fb;
  --yyp-font: 'Noto Sans Thai', 'Plus Jakarta Sans', 'Noto Sans SC', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

  font-family: var(--yyp-font);
  color: var(--yyp-ink);
  background:
    radial-gradient(circle at 12% 24%, rgba(255, 226, 122, 0.24), transparent 32%),
    radial-gradient(circle at 86% 52%, rgba(255, 224, 130, 0.22), transparent 34%),
    #ffffff;
  border-radius: 28px;
  border: 1.5px solid #efe5cd;
  box-shadow: 0 18px 44px rgba(34, 26, 12, 0.1);
  overflow: hidden;
  max-width: 1060px;
  margin: 0 auto;
  line-height: 1.48;
}

.yy-poster * {
  box-sizing: border-box;
}

/* Header */
.yy-poster-header {
  padding: 34px 28px 18px;
  text-align: center;
}

.yy-poster-title {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.24;
  color: var(--yyp-ink);
  letter-spacing: -0.015em;
}

.yy-poster-pill {
  display: inline-block;
  background: linear-gradient(90deg, #ffe27a, #f9d456);
  color: var(--yyp-ink);
  font-weight: 800;
  font-size: clamp(0.92rem, 1.6vw, 1.12rem);
  padding: 9px 28px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(245, 184, 0, 0.22);
}

/* 3-Row S-Curve Workflow Body */
.yy-wf-body {
  padding: 12px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yy-wf-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

/* Horizontal Arrow between Left & Right steps */
.yy-wf-arrow-h {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vertical Turn Connector between rows (Right turn after Row 1, Left turn after Row 2) */
.yy-wf-turn {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  height: 36px;
  align-items: center;
}

.yy-wf-turn-right {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  padding-right: 48px;
}

.yy-wf-turn-left {
  grid-column: 1;
  display: flex;
  justify-content: flex-start;
  padding-left: 48px;
}

/* Step Node Card (Open Illustrated Style matching reference) */
.yy-wf-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.yy-wf-node.stacked {
  flex-direction: column;
  text-align: center;
  gap: 10px;
}

.yy-wf-node.stacked .yy-wf-copy {
  max-width: 420px;
}

.yy-wf-art {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Numbered Glowing Circle Badge (1-6) */
.yy-num {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.yy-num.gold {
  background: linear-gradient(135deg, #f7c948, #d49b00);
  box-shadow: 0 0 0 5px rgba(245, 184, 0, 0.22);
}

.yy-num.orange {
  background: linear-gradient(135deg, #ff9800, #e05d0f);
  box-shadow: 0 0 0 5px rgba(235, 107, 31, 0.22);
}

.yy-num.red {
  background: linear-gradient(135deg, #ef3340, #b80f18);
  box-shadow: 0 0 0 5px rgba(217, 27, 36, 0.22);
}

.yy-num.pos-tl { top: -4px; left: -6px; }
.yy-num.pos-tr { top: -4px; right: -4px; }
.yy-num.pos-tm { top: -8px; left: 50%; transform: translateX(-50%); }

.yy-wf-copy h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--yyp-ink);
}

.yy-wf-copy p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--yyp-muted);
  line-height: 1.5;
}

/* Step 6 Dark Speech-Bubble Callout (exact reference style) */
.yy-callout-bubble {
  position: relative;
  display: inline-block;
  background: #22201e;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 7px 12px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 6px;
}

.yy-callout-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #22201e transparent transparent transparent;
}

.yy-step6-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.yy-step6-right-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.yy-step6-mini-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Bottom 3-Column Severity Bar */
.yy-severity-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 18px;
  border-radius: 16px;
  overflow: hidden;
}

.yy-sev-col {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.yy-sev-top {
  padding: 9px 12px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
}

.yy-sev-main {
  flex: 1;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.yy-sev-watch .yy-sev-top { background: #c58f00; }
.yy-sev-watch .yy-sev-main { background: #ffc800; color: #1b1917; }

.yy-sev-urgent .yy-sev-top { background: #d64e08; }
.yy-sev-urgent .yy-sev-main { background: #f57c00; color: #1b1917; }

.yy-sev-critical .yy-sev-top { background: #a80a12; }
.yy-sev-critical .yy-sev-main { background: #e31822; color: #ffffff; }

.yy-sev-label {
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.35;
}

.yy-sev-sub {
  font-size: 0.77rem;
  font-weight: 600;
  opacity: 0.92;
  margin-top: -4px;
}

/* Bottom Light-Blue Disclaimer Bar */
.yy-disclaimer {
  margin: 14px 18px 18px;
  background: var(--yyp-blue-bg);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.yy-disclaimer-copy {
  font-size: 0.88rem;
  line-height: 1.42;
  color: #1c242d;
}

.yy-disclaimer-copy strong {
  display: block;
  font-weight: 800;
}

.yy-poster-footer-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Responsive Mobile Stack (Natural 1 -> 2 -> 3 -> 4 -> 5 -> 6 order) */
@media (max-width: 880px) {
  .yy-poster-header {
    padding: 24px 16px 12px;
  }
  .yy-wf-body {
    padding: 8px 14px 20px;
    gap: 12px;
  }
  .yy-wf-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .yy-wf-row.row-reverse {
    flex-direction: column-reverse;
  }
  .yy-wf-arrow-h,
  .yy-wf-turn {
    display: none;
  }
  .yy-wf-node {
    flex-direction: column;
    text-align: center;
    background: #fffdf8;
    border: 1.5px solid #f0e6ce;
    padding: 18px 14px;
  }
  .yy-severity-bar {
    grid-template-columns: 1fr;
  }
  .yy-disclaimer {
    flex-direction: column;
    text-align: center;
  }
}

@media print {
  .yy-poster {
    box-shadow: none;
    border: none;
    border-radius: 0;
  }
  .yy-poster-footer-cta {
    display: none !important;
  }
}
