/* Root layout */
.ppc-sf { box-sizing: border-box; max-width: 960px; margin: 0 auto; padding: 16px; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: #0f172a; }
.ppc-sf * { box-sizing: inherit; }
.ppc-sf .muted { color: #475569; }
.ppc-sf .small { font-size: 12px; }

/* Card */
.ppc-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.ppc-card .ppc-card-body { padding: 20px; }
.ppc-gap > * + * { margin-top: 12px; }

/* Header */
.ppc-title { font-size: 24px; font-weight: 700; letter-spacing: .2px; margin: 0; }
.ppc-sub { margin: 8px auto 0; max-width: 680px; color: #475569; }

/* Controls */
.ppc-label { display: block; font-size: 14px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.ppc-select { display: block; width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px 12px; background: #fff; font-size: 14px; }
.ppc-row { display: flex; flex-direction: column; gap: 10px; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; }
@media (min-width: 768px) { .ppc-row { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Buttons */
.ppc-btn { appearance: none; border: 1px solid #cbd5e1; background: #fff; padding: 8px 12px; border-radius: 10px; font-size: 14px; cursor: pointer; transition: box-shadow .15s, transform .02s; }
.ppc-btn:hover { box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.ppc-btn:active { transform: translateY(1px); }
.ppc-btn.primary { background: #0ea5e9; border-color: #0284c7; color: white; }
.ppc-btn.selected { background: #0ea5e9; border-color: #0284c7; color: white; }
.ppc-btn.outline { background: #fff; color: #0f172a; }

/* Badge */
.ppc-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 8px; border-radius: 999px; border: 1px solid #cbd5e1; background: #f8fafc; color: #0f172a; }
.ppc-badge.danger { border-color: #fecaca; background: #fff1f2; color: #7f1d1d; }

/* Progress */
.ppc-progress { position: relative; width: 100%; height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.ppc-progress > span { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: linear-gradient(90deg,#22c55e,#f59e0b,#ef4444); }

/* Lists */
.ppc-list { margin: 0; padding: 0 0 0 18px; }
.ppc-list li { margin: 4px 0; }

/* Grid for seasonal blocks */
.ppc-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .ppc-grid { grid-template-columns: 1fr 1fr; } }

/* Icon chips */
.ppc-chip { display: inline-flex; align-items: center; gap: 8px; }
.ppc-icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }
.ppc-icon svg { width: 18px; height: 18px; display: block; }

/* Fix overly large download button */
.ppc-download {
  display: inline-block;
  background: #0ea5e9;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.ppc-download:hover {
  background: #0284c7;
}

.ppc-download img,
.ppc-download svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

.ppc-download-wrapper {
  text-align: center;
  padding: 40px 0;
  background: none;
}

.ppc-sf h2 {
  font-size: 2.8rem;
  font-weight: 700;
}
/* Force the download button to normal size even if JS injects width:100% */
.ppc-card .ppc-btn.primary {
  width: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 12px 18px;
  margin: 0 auto;
}

.ppc-card .ppc-btn.primary {
    width: auto !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 12px 18px;
    margin: 0 auto;
}

/* Inline Yes/No button group */
.ppc-yn-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.ppc-yn-group .ppc-btn {
  width: auto;
  padding: 6px 12px;
  font-size: 14px;
}
