/* Shared seasonal reference on every species guide. Both calendars stay visible. */
.guide-hemisphere {
  margin: 1.75rem 0;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.guide-hemisphere h2 { margin: 0 0 0.75rem; }
.guide-hemisphere p { margin: 0.7rem 0; }
.guide-hemisphere .guide-hemisphere-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.guide-hemisphere .guide-hemisphere-choice {
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: inherit;
  background: transparent;
}
.guide-hemisphere .guide-hemisphere-choice.is-active,
.guide-hemisphere .guide-hemisphere-choice[aria-pressed="true"] {
  border-color: var(--forest);
  color: var(--forest);
  background: #e8f1e9;
}
.guide-hemisphere .guide-hemisphere-choice:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}
.guide-hemisphere .guide-hemisphere-table-wrap { overflow-x: auto; }
.guide-hemisphere table { width: 100%; border-collapse: collapse; margin: 0.8rem 0; }
.guide-hemisphere th,
.guide-hemisphere td { text-align: left; padding: 0.65rem; border-bottom: 1px solid var(--line); }
.guide-hemisphere th { font-weight: 700; }
.guide-hemisphere [data-hemisphere-months] { transition: background-color 100ms ease; }
.article[data-active-hemisphere="southern"] .guide-hemisphere [data-hemisphere-months="southern"],
.article[data-active-hemisphere="northern"] .guide-hemisphere [data-hemisphere-months="northern"] {
  background: #e8f1e9;
  font-weight: 700;
}
.guide-season-months {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.76em;
  font-weight: 500;
  line-height: 1.5;
}
.guide-season-month {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}
.article[data-active-hemisphere="southern"] .guide-season-month[data-hemisphere-months="southern"],
.article[data-active-hemisphere="northern"] .guide-season-month[data-hemisphere-months="northern"] {
  background: #e8f1e9;
  color: var(--forest);
  font-weight: 700;
}
@media (max-width: 600px) {
  .guide-hemisphere { padding: 0.9rem; }
  .guide-hemisphere th, .guide-hemisphere td { padding: 0.45rem; font-size: 0.88rem; }
}

/* Region notes are authored as static HTML and selectively displayed. Without
   JavaScript, the Australia-wide default remains readable and useful. */
.guide-region-panel {
  display: none;
  margin: 1rem 0 1.15rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
}
.article[data-active-region="australia"] .guide-region-panel[data-guide-region-content="australia"],
.article[data-active-region="southern"] .guide-region-panel[data-guide-region-content="southern"],
.article[data-active-region="northern"] .guide-region-panel[data-guide-region-content="northern"] {
  display: block;
}
.guide-region-panel h3 { margin: 0 0 0.5rem; }
.guide-region-panel label { display: block; margin-top: 0.8rem; font-weight: 650; }
.guide-region-panel select {
  display: block;
  margin: 0.45rem 0 0.7rem;
  width: 100%;
  max-width: 36rem;
  padding: 0.6rem;
  font: inherit;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.guide-region-panel select:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.guide-region-panel .guide-climate-note { display: none; }
.article[data-active-climate="all"] [data-guide-climate-note="all"],
.article[data-active-climate="temperate"] [data-guide-climate-note="temperate"],
.article[data-active-climate="frost"] [data-guide-climate-note="frost"],
.article[data-active-climate="mediterranean"] [data-guide-climate-note="mediterranean"],
.article[data-active-climate="humid"] [data-guide-climate-note="humid"],
.article[data-active-climate="arid"] [data-guide-climate-note="arid"],
.article[data-active-climate="tropical"] [data-guide-climate-note="tropical"] {
  display: block;
}
.guide-region-panel .guide-climate-source { font-size: 0.87rem; color: var(--muted); }

/* Show the authored tree-specific regional evidence for the selected climate.
   The Australia-wide overview is visible without JavaScript. */
.guide-species-research {
  border-top: 1px solid var(--line);
  margin: 1.1rem 0 0;
  padding: 0.9rem 0 0;
}
.guide-species-research h4 { margin: 0 0 0.55rem; }
.guide-species-research ul { padding-left: 1.3rem; margin: 0.55rem 0; }
.guide-species-research li { margin: 0.4rem 0; }
.guide-species-climate { display: none; }
.article[data-active-climate="all"] .guide-species-climate[data-species-climate="all"],
.article[data-active-climate="temperate"] .guide-species-climate[data-species-climate="temperate"],
.article[data-active-climate="frost"] .guide-species-climate[data-species-climate="frost"],
.article[data-active-climate="mediterranean"] .guide-species-climate[data-species-climate="mediterranean"],
.article[data-active-climate="humid"] .guide-species-climate[data-species-climate="humid"],
.article[data-active-climate="arid"] .guide-species-climate[data-species-climate="arid"],
.article[data-active-climate="tropical"] .guide-species-climate[data-species-climate="tropical"] {
  display: block;
}
.guide-species-research .guide-species-evidence { color: var(--muted); font-size: 0.87rem; }
