/* ============================================================
   PlantMapper — Seasonal Gardening silo
   Additive only. Uses the shared design tokens from
   plantmapper.css / ecosystem.css and adds the few components
   this silo needs: the twelve month cards, the "at a glance"
   strip, the sow/plant columns, the weekend checklist and the
   previous / next month pager.
   No existing selector is redefined.
   ============================================================ */

/* ---------- 0. MONTHLY HERO ------------------------------------
   The twelve month pages do not load coming-soon.css, where the
   shared .cs-hero* rules live, so the hero is defined here in full.
   It follows the site's established "Hero Glass" standard — photo
   band behind a frosted warm-cream panel — centred, with a wider
   container and a narrower measure for the lead paragraph.
   Scoped to .sg-hero, so no other hero on the site is affected.
   ---------------------------------------------------------------- */
.sg-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(38px, 5vw, 64px) 24px;
  text-align: center;
  background-color: #20281f;
  background-image:
    linear-gradient(180deg, rgba(10,18,13,.28) 0%, rgba(10,18,13,.18) 52%, rgba(10,18,13,.38) 100%),
    var(--cs-hero-img);
  background-size: cover;
  background-position: center;
}

/* the centred glass panel — beats patios-hub.css's 668px cap */
.sg-hero.hub-hero .cs-hero-inner {
  max-width: 1060px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
  background: rgba(250,247,239,.82);            /* frosted warm cream */
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
          backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 26px;
  padding: clamp(30px, 3.6vw, 46px) clamp(26px, 3.6vw, 52px);
  box-shadow: 0 10px 30px rgba(14,28,19,.13);
}

.sg-hero .cs-hero-eyebrow {
  display: inline-block;
  margin: 0 0 .85rem;
  padding: .32rem .8rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #1f5730;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(74,122,79,.35);
  border-radius: 999px;
  text-shadow: none;
}

.sg-hero .floral-rule {
  display: flex;
  justify-content: center;
  margin: 0 auto 14px;
}

.sg-hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 auto .6rem;
  max-width: 20ch;
  color: #14321d;
  text-shadow: none;
}

/* narrower measure than the panel, so long paragraphs stay readable */
.sg-hero.hub-hero .cs-hero-lead {
  max-width: 740px;
  margin: 0 auto 1.7rem;
  font-size: clamp(1.01rem, 1.5vw, 1.16rem);
  line-height: 1.62;
  color: #33493b;
  text-shadow: none;
}

.sg-hero .cs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .6rem;
}
.sg-hero .cs-hero-actions .btn {
  padding: .66rem 1.15rem;
  font-size: .92rem;
  white-space: nowrap;
}
/* .cs-btn also lives in coming-soon.css, so define the primary here */
.sg-hero .cs-btn {
  background: var(--green, #5e8a5a);
  border-color: var(--green, #5e8a5a);
  color: #fff;
  box-shadow: 0 8px 22px rgba(31,74,42,.24);
}
.sg-hero .cs-btn:hover {
  background: var(--green-deep, #426544);
  border-color: var(--green-deep, #426544);
  color: #fff;
}
.sg-hero .btn-outline {
  color: #1f5730;
  border-color: rgba(74,122,79,.45);
  background: rgba(255,255,255,.42);
  text-shadow: none;
}
.sg-hero .btn-outline:hover {
  background: rgba(255,255,255,.74);
  border-color: #4a7a4f;
  color: #14321d;
}

/* the highlight tags, centred beneath the buttons */
.sg-hero .hub-hero-meta {
  justify-content: center;
  max-width: 740px;
  margin: 1.4rem auto 0;
}

@media (max-width: 720px) {
  .sg-hero { padding: 30px 16px; }
  .sg-hero.hub-hero .cs-hero-inner {
    border-radius: 20px;
    padding: 26px 20px;
  }
  .sg-hero .cs-hero-actions .btn {
    white-space: normal;
    flex: 1 1 auto;
    justify-content: center;
  }
}
@media (max-width: 420px) {
  .sg-hero .cs-hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- 1. MONTH CARDS (hub) ---------- */
.sg-months {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 6px;
}
.sg-month {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius, 16px);
  background: var(--bg-elev, #fff);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .2s ease, border-color .18s ease;
}
.sg-month::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--sg-season, var(--silo-accent, #6b8f4e));
}
.sg-month:hover,
.sg-month:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2, 0 10px 28px rgba(14,28,19,.12));
  border-color: var(--sg-season, var(--silo-accent, #6b8f4e));
}
.sg-month:focus-visible { outline: 2px solid var(--sg-season, #6b8f4e); outline-offset: 3px; }
.sg-month-season {
  font-size: .68rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sg-season, #6b8f4e);
}
.sg-month-name {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}
.sg-month-note { margin: 0; font-size: .84rem; line-height: 1.55; color: var(--ink-soft); }
.sg-month-go {
  margin-top: auto;
  padding-top: 8px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--sg-season, #6b8f4e);
}
.sg-month.is-current { border-color: var(--sg-season, #6b8f4e); box-shadow: 0 0 0 3px var(--silo-soft, #e6eedd); }
.sg-month .sg-now {
  position: absolute;
  top: 10px; right: 10px;
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  background: var(--sg-season, #6b8f4e);
  border-radius: 999px;
  padding: 3px 8px;
}

/* season tints */
.sg-month[data-season="Winter"] { --sg-season: #5b7c93; }
.sg-month[data-season="Spring"] { --sg-season: #6b8f4e; }
.sg-month[data-season="Summer"] { --sg-season: #a4813f; }
.sg-month[data-season="Autumn"] { --sg-season: #a4673f; }

/* ---------- 2. THIS MONTH AT A GLANCE ---------- */
.sg-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius, 16px);
  overflow: hidden;
}
.sg-glance-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-elev, #fff);
}
.sg-glance-ic {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--silo-soft, #e6eedd);
  color: var(--silo-accent, #4f6b39);
}
.sg-glance-ic svg { width: 18px; height: 18px; display: block; }
.sg-glance-k {
  margin: 0 0 2px;
  font-size: .7rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.sg-glance-v { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--ink); }

/* ---------- 3. SOW / PLANT COLUMNS ---------- */
.sg-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 16px;
}
.sg-col {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius, 16px);
  background: var(--bg-elev, #fff);
}
.sg-col h3 {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}
.sg-col-ic {
  flex: none; width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--silo-soft, #e6eedd);
  color: var(--silo-accent, #4f6b39);
}
.sg-col-ic svg { width: 16px; height: 16px; display: block; }
.sg-col-note { margin: 0 0 12px; font-size: .81rem; line-height: 1.55; color: var(--muted); }

.sg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sg-list li {
  position: relative;
  padding-left: 20px;
  font-size: .88rem;
  line-height: 1.62;
  color: var(--ink-soft);
}
.sg-list li::before {
  content: "";
  position: absolute;
  left: 3px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--silo-accent, #6b8f4e);
  opacity: .55;
}

/* ---------- 4. NOTE LISTS WITHOUT A FIGURE ---------- */
.sg-notes { display: grid; gap: 12px; }
.sg-cols + .sg-notes,
.hub-cards + .sg-notes { margin-top: 18px; }

/* ---------- 5. WEEKEND CHECKLIST ---------- */
.sg-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius, 16px);
  overflow: hidden;
}
.sg-check li { background: var(--bg-elev, #fff); }
.sg-check label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.sg-check input {
  flex: none;
  margin-top: .28em;
  width: 17px; height: 17px;
  accent-color: var(--silo-accent, #6b8f4e);
  cursor: pointer;
}
.sg-check label:hover { background: var(--silo-soft, #e6eedd); }
.sg-check input:checked + span { text-decoration: line-through; color: var(--muted); }
.sg-check-note { margin: 10px 0 0; font-size: .78rem; color: var(--muted); }

/* ---------- 6. PREVIOUS / NEXT MONTH PAGER ---------- */
.sg-pager {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.sg-pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius, 16px);
  background: var(--bg-elev, #fff);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .2s ease, border-color .18s ease;
}
.sg-pager-link:hover,
.sg-pager-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2, 0 10px 28px rgba(14,28,19,.12));
  border-color: var(--silo-accent, #6b8f4e);
}
.sg-pager-dir {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.sg-pager-dir svg { width: 13px; height: 13px; }
.sg-pager-name {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
}
.sg-next { text-align: right; align-items: flex-end; }
.sg-hub { text-align: center; align-items: center; }
@media (max-width: 700px) {
  .sg-pager { grid-template-columns: minmax(0, 1fr); }
  .sg-next, .sg-hub { text-align: left; align-items: flex-start; }
}

/* ---------- 7. SMALL SHARED BITS ---------- */
.sg-card { cursor: default; }
.sg-card:hover { transform: none; }
.sg-regional {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px dashed var(--line-strong, #c9d3c1);
  border-radius: var(--radius, 16px);
  background: var(--silo-soft, #e6eedd);
  font-size: .87rem;
  line-height: 1.62;
  color: var(--ink-soft);
}
.sg-regional strong { color: var(--ink); }
.pm-crumb-seed { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .sg-month, .sg-pager-link { transition: none; }
  .sg-month:hover, .sg-pager-link:hover { transform: none; }
}
