/* Pepper Grow Planner — all styles scoped under .pgp-app so they can't collide
   with the active theme. Tokens match the Substitute Finder's palette. */
.pgp-app {
  --pgp-paper: #faf6f0;
  --pgp-card: #ffffff;
  --pgp-ink: #2a2320;
  --pgp-ink-soft: #6b615a;
  --pgp-line: #e7ddd2;
  --pgp-chili: #b3261e;
  --pgp-chili-deep: #8a1c16;
  --pgp-good: #2f7d54;
  --pgp-tight: #c2820a;
  --pgp-bad: #c0392b;
  --pgp-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --pgp-sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  font-family: var(--pgp-sans);
  color: var(--pgp-ink);
  background: var(--pgp-paper);
  max-width: 760px;
  /* Vertical margin so text, images and headings above and below don't sit on
     the box (2.5.2). Matches the facts box's 1.5em; a little more below. */
  margin: 1.5em auto 2em;
  padding: 26px 22px 30px;
  line-height: 1.5;
  box-sizing: border-box;
  border-radius: 16px;
}
.pgp-app *, .pgp-app *::before, .pgp-app *::after { box-sizing: border-box; }
.pgp-app [hidden] { display: none !important; }

.pgp-head { margin-bottom: 20px; }
.pgp-app .pgp-kicker {
  font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--pgp-chili); margin: 0 0 4px;
}
.pgp-app .pgp-title {
  font-family: var(--pgp-serif); font-weight: 600; font-size: 31px; letter-spacing: -0.01em;
  margin: 0 0 6px; line-height: 1.12; color: var(--pgp-ink);
}
.pgp-sub { color: var(--pgp-ink-soft); font-size: 17px; margin: 0; max-width: 60ch; }

.pgp-controls {
  background: var(--pgp-card); border: 1px solid var(--pgp-line); border-radius: 14px;
  padding: 20px; margin-bottom: 22px;
}
.pgp-field { margin-bottom: 16px; }
.pgp-lbl {
  display: block; font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--pgp-ink);
}
.pgp-app .pgp-input, .pgp-app .pgp-select {
  font: inherit; font-size: 18px; color: var(--pgp-ink); background: #fff;
  border: 1px solid var(--pgp-line); border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
.pgp-app .pgp-input { width: 9.5em; }
.pgp-app .pgp-input[type="date"] { width: auto; margin-bottom: 10px; }
.pgp-app .pgp-select { width: 100%; }
.pgp-app .pgp-input:focus, .pgp-app .pgp-select:focus { outline: 2px solid var(--pgp-chili); outline-offset: 1px; }
.pgp-app .pgp-link {
  font: inherit; font-size: 16px; background: none; border: 0; padding: 4px 0; margin-left: 6px;
  color: var(--pgp-chili); text-decoration: underline; cursor: pointer;
}
.pgp-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pgp-app .pgp-seg-btn {
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; min-height: 40px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--pgp-line);
  background: #fff; color: var(--pgp-ink);
}
.pgp-app .pgp-seg-btn.pgp-active { background: var(--pgp-ink); border-color: var(--pgp-ink); color: #fff; }
.pgp-app .pgp-go {
  font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; min-height: 46px;
  padding: 11px 22px; border: 0; border-radius: 10px; background: var(--pgp-chili); color: #fff;
}
.pgp-app .pgp-go:hover { background: var(--pgp-chili-deep); }
.pgp-err { color: var(--pgp-bad); font-weight: 600; margin: 12px 0 0; }

.pgp-results:empty { display: none; }
.pgp-feed, .pgp-where { font-size: 17px; margin: 0 0 10px; }
.pgp-where { color: var(--pgp-ink-soft); }
.pgp-warn {
  font-size: 16px; margin: 0 0 10px; padding: 10px 12px; border-radius: 10px;
  background: #fff6e5; border: 1px solid #f0d9a8;
}
.pgp-season { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.pgp-stat { background: var(--pgp-card); border: 1px solid var(--pgp-line); border-radius: 12px; padding: 12px 14px; }
.pgp-stat-n { font-family: var(--pgp-serif); font-size: 24px; font-weight: 600; line-height: 1.15; }
.pgp-stat-l { font-size: 15px; color: var(--pgp-ink-soft); }

.pgp-verdict {
  margin: 16px 0; padding: 14px 16px; border-radius: 12px; border-left: 5px solid;
  background: var(--pgp-card); font-size: 17px;
}
.pgp-v-fits { border-color: var(--pgp-good); }
.pgp-v-tight { border-color: var(--pgp-tight); }
.pgp-v-no { border-color: var(--pgp-bad); }
.pgp-v-unknown { border-color: var(--pgp-line); }

.pgp-app .pgp-steps { list-style: none; margin: 18px 0; padding: 0; }
.pgp-step {
  display: grid; grid-template-columns: minmax(120px, 32%) 1fr; gap: 14px;
  padding: 12px 0; border-top: 1px solid var(--pgp-line);
}
.pgp-step:first-child { border-top: 0; }
.pgp-step-when { font-weight: 700; color: var(--pgp-chili-deep); font-size: 17px; }
.pgp-step-what strong { font-size: 17px; }
.pgp-step-note { font-size: 16px; color: var(--pgp-ink-soft); margin-top: 2px; }
.pgp-general { display: block; font-style: italic; }
.pgp-note { font-size: 16px; color: var(--pgp-ink-soft); margin: 8px 0; }
.pgp-alts {
  background: var(--pgp-card); border: 1px solid var(--pgp-line); border-radius: 12px;
  padding: 12px 16px; margin: 16px 0; font-size: 16px;
}
.pgp-alts ul { margin: 6px 0 0; padding-left: 18px; }
.pgp-alts-sub { margin: 10px 0 0; font-weight: 600; }
.pgp-app .pgp-ics {
  font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; min-height: 44px;
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--pgp-ink);
  background: #fff; color: var(--pgp-ink); margin: 6px 0 14px;
}
.pgp-sources { font-size: 16px; margin: 8px 0 0; }
.pgp-sources summary { cursor: pointer; font-weight: 600; }
.pgp-sources a { color: var(--pgp-chili-deep); }
.pgp-foot { font-size: 14px; color: var(--pgp-ink-soft); margin: 18px 0 0; }

/* What can I grow? */
.pgp-check { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; cursor: pointer; }
.pgp-check input { width: 18px; height: 18px; accent-color: var(--pgp-chili); }
.pgp-group { margin: 22px 0 0; }
.pgp-app .pgp-group-h {
  font-family: var(--pgp-serif); font-size: 22px; font-weight: 600; margin: 0 0 2px;
  display: flex; align-items: baseline; gap: 8px; color: var(--pgp-ink);
}
.pgp-group-n {
  font-family: var(--pgp-sans); font-size: 15px; font-weight: 700; color: var(--pgp-ink-soft);
  font-variant-numeric: tabular-nums;
}
.pgp-group-sub { font-size: 16px; color: var(--pgp-ink-soft); margin: 0 0 8px; }
.pgp-app .pgp-list { list-style: none; margin: 0; padding: 0; border-left: 4px solid var(--pgp-line); }
.pgp-g-room .pgp-list { border-left-color: var(--pgp-good); }
.pgp-g-fit .pgp-list { border-left-color: #8fbfa3; }
.pgp-g-tight .pgp-list { border-left-color: var(--pgp-tight); }
.pgp-g-no .pgp-list { border-left-color: var(--pgp-bad); }
.pgp-item {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px;
  padding: 10px 0 10px 14px; border-top: 1px solid var(--pgp-line);
}
.pgp-item:first-child { border-top: 0; }
.pgp-item-main { min-width: 0; }
.pgp-item-name { font-weight: 700; font-size: 17px; margin-right: 8px; }
.pgp-item-meta { font-size: 15.5px; color: var(--pgp-ink-soft); font-variant-numeric: tabular-nums; margin-top: 2px; }
.pgp-item-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pgp-app .pgp-item-links .pgp-link { margin-left: 0; font-size: 15.5px; }
.pgp-chip {
  display: inline-block; font-size: 13px; font-weight: 700; line-height: 1; padding: 4px 7px;
  border-radius: 999px; margin-right: 6px; vertical-align: 2px; white-space: nowrap;
}
/* Heat colors match the Hot Pepper List badges. */
.pgp-h-mild { background: #eaf4ee; color: #2f7d54; }
.pgp-h-medium { background: #fbf2dc; color: #9a6a00; }
.pgp-h-hot { background: #fbe4d5; color: #b5631b; }
.pgp-h-xhot { background: #fadfd9; color: #b3261e; }
.pgp-h-super { background: #7a1812; color: #fff; }
.pgp-chip-pot { background: #eef0f6; color: #3d4a6b; }

@media (max-width: 520px) {
  .pgp-app { padding: 20px 16px 24px; border-radius: 0; }
  .pgp-app .pgp-title { font-size: 27px; }
  .pgp-step { grid-template-columns: 1fr; gap: 2px; }
  .pgp-app .pgp-controls .pgp-link { display: block; margin: 6px 0 0; }
}

/* Zip or city input with suggestions */
.pgp-where-box { position: relative; display: inline-block; width: min(100%, 22em); vertical-align: top; }
.pgp-app .pgp-input.pgp-wide { width: 100%; }
.pgp-app .pgp-sugg {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0;
  list-style: none; background: #fff; border: 1px solid var(--pgp-line); border-radius: 10px;
  box-shadow: 0 6px 18px rgba(42, 35, 32, 0.12); max-height: 18em; overflow-y: auto;
}
.pgp-opt { padding: 8px 12px; font-size: 17px; cursor: pointer; }
.pgp-opt:hover, .pgp-opt-on { background: var(--pgp-paper); color: var(--pgp-chili-deep); }

/* Frost-risk slider */
.pgp-app .pgp-range { width: min(100%, 26em); accent-color: var(--pgp-chili); margin: 4px 0 0; }
.pgp-range-ends { display: flex; justify-content: space-between; width: min(100%, 26em); font-size: 14px; color: var(--pgp-ink-soft); }
.pgp-help { font-size: 15.5px; color: var(--pgp-ink-soft); margin: 6px 0 0; max-width: 60ch; }
.pgp-risk-val { color: var(--pgp-chili-deep); font-variant-numeric: tabular-nums; }

/* Odds-of-frost date check */
.pgp-datecheck { background: var(--pgp-card); border: 1px solid var(--pgp-line); border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; }
.pgp-dc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pgp-app .pgp-datecheck .pgp-input[type="date"] { margin: 0; }
.pgp-app .pgp-dc-go, .pgp-app .pgp-share, .pgp-app .pgp-fc-go {
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; min-height: 40px; padding: 8px 14px;
  border-radius: 10px; border: 1px solid var(--pgp-ink); background: #fff; color: var(--pgp-ink);
}
.pgp-dc-out { font-size: 17px; margin: 8px 0 0; max-width: 64ch; }
.pgp-dc-out span:first-child { font-weight: 600; }
.pgp-dc-out .pgp-dc-src { display: block; margin-top: 4px; font-size: 15px; color: var(--pgp-ink-soft); }
.pgp-dc-out:empty { display: none; }
.pgp-app .pgp-fc .pgp-lbl { margin: 0 0 8px; }
.pgp-app .pgp-fc-go[disabled] { opacity: .6; cursor: default; }
.pgp-fc-out { font-size: 17px; margin: 8px 0 0; max-width: 64ch; }
.pgp-fc-out:empty { display: none; }
.pgp-fc-out .pgp-dc-src { display: block; margin-top: 4px; font-size: 15px; color: var(--pgp-ink-soft); }

/* Share link */
.pgp-sharebox { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pgp-share-msg { font-size: 16px; color: var(--pgp-ink-soft); }
.pgp-app .pgp-share-url { width: min(100%, 28em); font-size: 15px; }

/* Rain and humidity */
.pgp-climate { margin: 20px 0 8px; padding-top: 14px; border-top: 1px solid var(--pgp-line); }
.pgp-app .pgp-climate-h { font-family: var(--pgp-serif); font-size: 22px; font-weight: 600; margin: 0 0 6px; color: var(--pgp-ink); }
.pgp-climate-p { font-size: 17px; margin: 0 0 10px; max-width: 64ch; }
.pgp-rain { margin: 0 0 12px; }
.pgp-rain-row { display: grid; grid-template-columns: 3em minmax(80px, 1fr) auto; gap: 10px; align-items: center; padding: 3px 0; font-size: 16px; }
.pgp-rain-m { font-weight: 700; }
.pgp-rain-bar { position: relative; height: 12px; background: var(--pgp-card); border: 1px solid var(--pgp-line); border-radius: 6px; overflow: hidden; }
.pgp-rain-fill { position: absolute; left: 0; top: 0; bottom: 0; background: #6d97b8; }
.pgp-rain-fill.pgp-rain-short { background: #c9a227; }
.pgp-rain-need { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: var(--pgp-ink); }
.pgp-rain-v { color: var(--pgp-ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pgp-rain-key { font-size: 14px; color: var(--pgp-ink-soft); margin: 6px 0 0; }
@media (max-width: 520px) { .pgp-rain-row { grid-template-columns: 2.6em minmax(60px, 1fr); } .pgp-rain-v { grid-column: 2; } }

/* Season-fit map (colors match design/grow-maps posters) */
.pgp-map { margin: 20px 0 8px; padding-top: 14px; border-top: 1px solid var(--pgp-line); }
.pgp-map > summary { cursor: pointer; font-family: var(--pgp-serif); font-size: 20px; font-weight: 600; color: var(--pgp-ink); }
.pgp-map-body { margin-top: 12px; }
.pgp-map-wait { font-size: 16px; color: var(--pgp-ink-soft); }
.pgp-map-svg svg { display: block; width: 100%; height: auto; }
.pgp-map-svg path[data-f] { fill: #ece6dd; stroke: none; cursor: pointer; }
.pgp-map-svg .pgp-map-s { stroke: #fff; stroke-width: 0.8; stroke-linejoin: round; pointer-events: none; }
.pgp-map-svg .pgp-map-n { stroke: #6b615a; stroke-width: 0.8; stroke-linejoin: round; pointer-events: none; }
.pgp-map-svg path.pgp-map-on { stroke: var(--pgp-ink); stroke-width: 1.6; }
.pgp-map-svg path.pgp-k-room, .pgp-map-sw.pgp-k-room { fill: #2f7d54; background: #2f7d54; }
.pgp-map-svg path.pgp-k-fit, .pgp-map-sw.pgp-k-fit { fill: #8fbfa3; background: #8fbfa3; }
.pgp-map-svg path.pgp-k-tight, .pgp-map-sw.pgp-k-tight { fill: #d9a23a; background: #d9a23a; }
.pgp-map-svg path.pgp-k-no, .pgp-map-sw.pgp-k-no { fill: #b3261e; background: #b3261e; }
.pgp-map-svg path.pgp-k-cool, .pgp-map-sw.pgp-k-cool { fill: #b9b2aa; background: #b9b2aa; }
.pgp-map-info { min-height: 2.8em; font-size: 17px; margin: 10px 0 6px; }
.pgp-app .pgp-map-key { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; }
.pgp-map-key li { display: flex; align-items: center; gap: 6px; margin: 0; }
.pgp-map-sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.pgp-map-pct { color: var(--pgp-ink-soft); }
.pgp-map-cap { font-size: 15px; color: var(--pgp-ink-soft); max-width: 70ch; }

/* Hardiness-zone map (inside the Winter section) */
.pgp-zmap { margin: 12px 0 0; padding-top: 10px; }
.pgp-zmap > summary { font-size: 18px; }
.pgp-map-svg path.pgp-z-you { stroke: var(--pgp-ink); stroke-width: 0.9; }
.pgp-app .pgp-zkey { gap: 6px 12px; font-size: 15px; }
.pgp-zkey li.pgp-z-mine { font-weight: 700; }
