/* Yuni launch-plan section. Type and spacing follow the rest of the page. */

#yuni-plan {
  --ink: #2E2A26;
  --muted: #5C544B;
  --olive: #55613A;
  --gold: #9A6338;
  --gold-soft: #F5E6C8;
  --line: #E6DCCB;
  background: var(--bg);
  color: var(--ink);
}

#yuni-plan *,
#yuni-plan *::before,
#yuni-plan *::after {
  box-sizing: border-box;
}

#yuni-plan .wrap {
  max-width: 1120px;
  margin: 0 auto;
}

#yuni-plan h2,
#yuni-plan h3 {
  font-family: Fraunces, "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
}

#yuni-plan h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin: 0 0 0.5em;
}

#yuni-plan h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5em;
}

#yuni-plan h4 {
  font-family: Fraunces, "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.08rem;
  margin: 1.6em 0 0.35em;
  color: var(--ink);
}

#yuni-plan .xpass-table table {
  min-width: 980px;
}

#yuni-plan .xpass-table th,
#yuni-plan .xpass-table td {
  white-space: normal;
  vertical-align: top;
}

#yuni-plan p {
  margin: 0 0 1em;
}

#yuni-plan a {
  color: var(--olive);
}

#yuni-plan .kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #6B4A1E;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#yuni-plan .lede {
  max-width: 44em;
  color: var(--muted);
  font-size: 1.2rem;
}

#yuni-plan .label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
}

#yuni-plan .block {
  margin-top: 32px;
}

#yuni-plan .cards,
#yuni-plan .pillars,
#yuni-plan .days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

#yuni-plan .card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}

#yuni-plan .card h3 {
  font-size: 1.25rem;
}

#yuni-plan .card > p:last-child {
  margin-bottom: 0;
}

#yuni-plan .card .who {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

#yuni-plan .card.real {
  border-top: 4px solid var(--olive);
}

#yuni-plan .card.amb {
  border-top: 4px solid #a68534;
}

#yuni-plan .card.cons {
  border-top: 4px solid #8a9a62;
}

#yuni-plan .stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

#yuni-plan .stat:last-child {
  border-bottom: 0;
}

#yuni-plan .stat span {
  min-width: 0;
}

#yuni-plan .stat b {
  font-variant-numeric: tabular-nums;
  color: var(--olive);
  white-space: nowrap;
}

#yuni-plan .chart-card,
#yuni-plan .table-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}

#yuni-plan .chart-card {
  padding: 22px 22px 8px;
}

#yuni-plan .chart-scroll {
  overflow-x: auto;
  max-width: 100%;
}

#yuni-plan .chart-card svg {
  display: block;
  width: 100%;
  min-width: 640px;
  height: auto;
}

#yuni-plan .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 4px 0 12px;
  font-size: 0.95rem;
}

#yuni-plan .legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#yuni-plan .swatch {
  display: inline-block;
  width: 18px;
  height: 4px;
  border-radius: 4px;
  flex: 0 0 auto;
}

#yuni-plan .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#yuni-plan table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 0.95rem;
}

#yuni-plan th,
#yuni-plan td {
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#yuni-plan th:first-child,
#yuni-plan td:first-child,
#yuni-plan th:nth-child(2),
#yuni-plan td:nth-child(2) {
  text-align: left;
}

#yuni-plan th {
  background: var(--olive);
  color: var(--paper);
  font-weight: 600;
}

#yuni-plan tr:last-child td {
  border-bottom: 0;
}

#yuni-plan tr.best td {
  background: #F5E6C8;
  font-weight: 600;
}

#yuni-plan .note {
  margin: 10px 0 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 68ch;
}

#yuni-plan .pillar strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: Fraunces, "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-weight: 600;
}

#yuni-plan .pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

#yuni-plan .day .when {
  margin: 0 0 6px;
  color: var(--caramel);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

#yuni-plan .sources {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 0.95rem;
}

#yuni-plan .sources li {
  margin: 0 0 8px;
}

#yuni-plan .sources a {
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  #yuni-plan .cards,
  #yuni-plan .pillars,
  #yuni-plan .days {
    grid-template-columns: minmax(0, 1fr);
  }
}

.proj-lock {
  background: var(--cream, #F3EADB);
  border: 1px solid var(--line, #E6DCCB);
  border-radius: var(--radius, 22px);
  box-shadow: var(--shadow, 0 10px 30px -18px rgba(70, 50, 30, 0.35));
  padding: 28px 22px 24px;
  margin: 18px 0;
  text-align: center;
}

.proj-lock h3 {
  margin: 0 0 0.35em;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

#yuni-plan .proj-lock .proj-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.proj-anchor {
  display: none !important;
}

.proj-lock .proj-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
}

.proj-lock input {
  font: inherit;
  color: var(--ink, #2E2A26);
  background: var(--paper, #FFFDF8);
  border: 1px solid var(--line, #E6DCCB);
  border-radius: 999px;
  padding: 10px 16px;
  min-width: min(100%, 240px);
}

.proj-lock .proj-msg {
  margin: 12px 0 0;
  color: var(--olive, #55613A);
}

@media (prefers-reduced-motion: reduce) {
  #yuni-plan,
  #yuni-plan * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  #yuni-plan .proj-scroll,
  #yuni-plan .chart-scroll,
  #yuni-plan .table-wrap {
    overflow-x: visible;
  }

  #yuni-plan .chart-card svg {
    min-width: 0;
    width: 100%;
    height: auto;
  }

  #yuni-plan table,
  #yuni-plan .xpass-table table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }

  #yuni-plan th,
  #yuni-plan td,
  #yuni-plan .stat b {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
