/* Plant guide pages (tool/build_plant_pages.py in the GardenGuide project). */
.pg { padding-top: 28px; padding-bottom: 56px; }
.pg h1 { font: 700 clamp(32px, 5vw, 46px)/1.1 var(--serif); margin: 0 0 6px; }
.pg h2 { font: 700 24px/1.3 var(--serif); margin: 36px 0 10px; }
.pg section { max-width: 820px; }
.pg-crumbs { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.pg-crumbs a { color: var(--muted); }
.pg-hero { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-areas: "fig info" "cta info"; grid-template-rows: auto 1fr; gap: 20px 32px; align-items: start; max-width: none !important; }
.pg-fig { grid-area: fig; margin: 0; }
.pg-info { grid-area: info; }
.pg-cta-side { grid-area: cta; margin: 0 !important; padding: 18px !important; }
.pg-cta-side img { width: 52px; height: 52px; }
.pg-cta-side h2 { font-size: 19px !important; }
.pg-cta-side p { font-size: 15px; }
.pg-fig img { width: 100%; border-radius: 16px; aspect-ratio: 3 / 2; object-fit: cover; background: var(--line); }
.pg-fig figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.pg-hero .eyebrow a { color: inherit; text-decoration: none; }
.pg-sci { color: var(--muted); margin: 0 0 16px; }
.pg-facts { border-collapse: collapse; width: 100%; min-width: 0 !important; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pg-facts caption { text-align: left; font: 700 15px/1.4 var(--sans); letter-spacing: 1.5px; text-transform: uppercase; color: var(--leaf); padding: 0 0 8px; }
.pg-facts th, .pg-facts td { text-align: left; vertical-align: top; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 15.5px; }
.pg-facts tr:first-child th, .pg-facts tr:first-child td { border-top: 0; }
.pg-facts th { color: var(--muted); font-weight: 600; width: 46%; background: rgba(63, 107, 58, 0.07); }
.pg-vars td:first-child { font-weight: 700; }
.pg-muted { color: var(--muted); }
.pg ul { padding-left: 22px; }
.pg li { margin-bottom: 6px; }
.pg-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.pg-vars { border-collapse: collapse; min-width: 640px; width: 100%; font-size: 15px; }
.pg-vars th, .pg-vars td { text-align: left; vertical-align: top; padding: 8px 12px; border-top: 1px solid var(--line); }
.pg-vars thead th { border-top: 0; color: var(--muted); font-weight: 600; }
.pg-vars td:nth-child(3) { white-space: nowrap; }
.pg-cta { display: flex; gap: 18px; align-items: flex-start; max-width: 820px; margin: 36px 0; padding: 22px; border-radius: 18px; background: var(--deep-leaf); color: #F5EFE2; }
.pg-cta img { border-radius: 14px; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22), 0 4px 12px rgba(0, 0, 0, 0.25); }
.pg-cta h2 { color: #fff; margin: 0 0 6px; font-size: 22px; }
.pg-cta p { margin: 0 0 12px; }
.pg-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pg-sources { font-size: 14.5px; }
.pg-sources ul { columns: 2; }
.pg-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 8px; }
.pg-toc a { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-size: 15px; }
#pg-find { width: 100%; max-width: 420px; font: inherit; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.pg-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 18px; }
.pg-list li { margin: 0; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pg-list span { display: block; font-size: 13px; color: var(--muted); font-style: italic; }
@media (max-width: 640px) {
  /* The site's tables turn into cards on phones; keep the facts as a plain two-column table. */
  .pg-facts { display: table; background: var(--card); }
  .pg-facts tbody { display: table-row-group; }
  .pg-facts tr { display: table-row; border: 0; margin: 0; padding: 0; background: none; border-radius: 0; }
  .pg-facts th, .pg-facts td { display: table-cell; width: auto; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 15px; }
  .pg-facts td:first-child { font-weight: 400; font-family: var(--sans); font-size: 15px; }
  .pg-facts caption { display: table-caption; }
  .pg-scroll { border: 0; background: none; overflow: visible; }
  .pg-vars { min-width: 0; }
  .pg-vars td { border-top: 0; }
}
@media (max-width: 760px) {
  .pg-hero { grid-template-columns: 1fr; grid-template-areas: "fig" "info" "cta"; grid-template-rows: auto; gap: 18px; }
  .pg-cta-side { flex-direction: row !important; }
  .pg-sources ul { columns: 1; }
  .pg-cta { flex-direction: column; }
}
