
:root {
  --gg-green: #115e38;
  --gg-green-dark: #0c4428;
  --gg-cream: #f5f1e8;
  --gg-text: #111827;
  --gg-muted: #6b7280;
  --gg-radius-lg: 18px;
  --gg-radius-sm: 12px;
  --gg-shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.18);
  --gg-max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--gg-cream);
  color: var(--gg-text);
  line-height: 1.6;
}

/* Layout wrapper */

.gg-wrapper {
  max-width: var(--gg-max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

@media (min-width: 960px) {
  .gg-wrapper {
    padding: 2.25rem 1.25rem 3.25rem;
  }
}

/* Header */

.gg-site-header {
  background: linear-gradient(130deg, var(--gg-green) 0%, var(--gg-green-dark) 60%, #020617 100%);
  color: #f9fafb;
  box-shadow: var(--gg-shadow-soft);
}

.gg-site-header-inner {
  max-width: var(--gg-max-width);
  margin: 0 auto;
  padding: 1.4rem 1.25rem 2.3rem;
}

.gg-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.gg-brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.5);
  background: rgba(15, 118, 110, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gg-brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gg-brand-text-title {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
}

.gg-brand-text-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.gg-nav {
  margin-top: 1.3rem;
}

.gg-nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

/* Support Ghost's {{navigation}} output (ul > li > a) */
.gg-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.gg-nav li {
  list-style: none;
}

/* --- Hybridized offer UI bits (used by page-masterclass + sidebars) --- */

/* Note: .gg-main and .gg-grid are defined in the main layout section below. */

.gg-sidebar {
  width: 100%;
}

.gg-sticky {
  position: sticky;
  top: 1.1rem;
}

.gg-sidebar-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.95rem;
}

.gg-mini-stack {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.gg-mini-stack-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(209, 213, 219, 0.8);
  background: rgba(249, 250, 251, 0.75);
}

.gg-mini-stack-item span {
  color: var(--gg-muted);
  font-size: 0.92rem;
}

.gg-callout {
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: rgba(245, 241, 232, 0.9);
}

.gg-nav a {
  text-decoration: none;
  color: #e5e7eb;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  border: 1px solid rgba(248, 250, 252, 0.2);
  display: inline-block;
}

.gg-nav a:hover {
  background: rgba(15, 23, 42, 0.5);
}

/* Hero */

.gg-hero {
  margin-top: 1.7rem;
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 900px) {
  .gg-hero {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    align-items: center;
  }
}

.gg-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.gg-hero-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.55);
  color: #e5e7eb;
}

.gg-hero-title {
  font-size: 2.0rem;
  margin: 0 0 0.6rem;
}

.gg-hero-text {
  margin: 0 0 1rem;
  color: #e5e7eb;
}

.gg-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.gg-btn-primary,
.gg-btn-outline {
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.gg-btn-primary {
  background: #facc15;
  color: #111827;
  border-color: rgba(202, 138, 4, 0.9);
}

.gg-btn-primary:hover {
  background: #eab308;
}

.gg-btn-outline {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(243, 244, 246, 0.5);
}

.gg-btn-outline:hover {
  background: rgba(15, 23, 42, 0.45);
}

/* Neutral button for light backgrounds (used in member callouts) */
.gg-btn-secondary {
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.95rem;
  border: 1px solid rgba(17, 24, 39, 0.18);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  background: #ffffff;
  color: #111827;
}

.gg-btn-secondary:hover {
  background: rgba(17, 24, 39, 0.04);
}

.gg-hero-side {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 16px;
  padding: 1.05rem 1.05rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.gg-hero-side h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.gg-hero-side p {
  margin: 0.4rem 0 0.85rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* Newsletter form */

.gg-newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.gg-newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
}

.gg-newsletter-form button {
  border: none;
}

.gg-newsletter-footnote {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: #d1d5db;
}

/* Main layout */

.gg-main {
  padding-top: 1.8rem;
}

.gg-grid {
  display: grid;
  gap: 1.3rem;
}

@media (min-width: 960px) {
  .gg-grid {
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.25fr);
  }
}

.gg-card {
  background: #ffffff;
  border-radius: var(--gg-radius-lg);
  box-shadow: var(--gg-shadow-soft);
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Pricing blocks (tiers) */

.gg-pricing-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 840px) {
  .gg-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gg-price-card {
  border-radius: 16px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 1.05rem 1.1rem;
  background: rgba(249, 250, 251, 0.6);
}

.gg-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 0.95rem 0 0.85rem;
}

.gg-price-amt {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.gg-price-label {
  font-size: 0.85rem;
  color: var(--gg-muted);
}

.gg-benefits {
  margin: 0 0 1rem;
  padding-left: 1.05rem;
}

.gg-benefits li {
  margin: 0.35rem 0;
}

/* Post list with thumbnails */

.gg-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gg-post-list-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: flex-start;
}

/* Ranked lists (e.g., Top 20 books) */

.gg-ranked-list .gg-ranked-list-item {
  grid-template-columns: 44px 96px minmax(0, 1fr);
}

.gg-rank {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--gg-green-dark);
  opacity: 0.9;
  padding-top: 0.35rem;
  text-align: right;
}

.gg-post-list-item + .gg-post-list-item {
  margin-top: 1.05rem;
}

.gg-post-thumb-link {
  display: block;
  text-decoration: none;
}

.gg-post-thumb {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  background: #e5e7eb;
}

.gg-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gg-post-list-body {
  min-width: 0;
}

.gg-post-item-title {
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
}

.gg-post-item-title a {
  color: var(--gg-green-dark);
  text-decoration: none;
}

.gg-post-item-title a:hover {
  text-decoration: underline;
}

.gg-post-meta {
  font-size: 0.8rem;
  color: var(--gg-muted);
}

/* Post view */

.gg-post-header {
  margin-bottom: 1.3rem;
}

.gg-post-title {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.gg-post-meta-line {
  font-size: 0.87rem;
  color: var(--gg-muted);
}

.gg-post-content {
  margin-top: 1.2rem;
}

/* Some taxonomy landing posts have intentionally blank content; hide the empty block to avoid tall whitespace */
.gg-post-content.is-empty {
  display: none;
  margin-top: 0;
 }

.gg-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--gg-radius-sm);
  margin: 1rem 0;
}

/* Koenig wide and full */

.kg-width-wide {
  width: 100%;
  display: block;
}

.kg-width-full {
  width: 100%;
  display: block;
}

/* Footer */

.gg-footer {
  margin-top: 2.6rem;
  padding: 1.7rem 1.25rem 2.3rem;
  background: #020617;
  color: #9ca3af;
}

.gg-footer-inner {
  max-width: var(--gg-max-width);
  margin: 0 auto;
}

.gg-footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

@media (min-width: 800px) {
  .gg-footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.gg-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gg-footer-links a {
  color: #d1d5db;
  font-size: 0.86rem;
  text-decoration: none;
}

.gg-footer-links a:hover {
  text-decoration: underline;
}

.gg-footer-bottom {
  margin-top: 1.3rem;
  font-size: 0.8rem;
  color: #6b7280;
}


/* === Grazing Grass custom: Spotlight, taxonomy lists, CTA blocks === */

.gh-main.gh-spotlight,
.gh-breeds,
.gh-states,
.gh-countries {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.gh-breeds-header {
  margin-bottom: 2rem;
}

.gh-breeds-title {
  font-size: 2.2rem;
  margin: 0 0 0.5rem;
}

.gh-breeds-intro {
  margin: 0;
  opacity: 0.85;
}

.gh-breeds-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gh-breeds-item {
  background: rgba(17, 94, 56, 0.04);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}

.gh-breeds-link {
  text-decoration: none;
  display: block;
}

.gh-breeds-name {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.gh-breeds-excerpt {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Spotlight CTA and related lists */

.gh-spotlight-section {
  margin-top: 2.5rem;
}

.gh-spotlight-heading {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.gh-spotlight-cta-inner {
  padding: 2rem 2.5rem;
  border-radius: 0.75rem;
  background: rgba(17, 94, 56, 0.08);
}

.gh-spotlight-cta-inner h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}

.gh-spotlight-cta-inner p {
  margin: 0 0 1.25rem;
}

.gh-spotlight-cta-button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--gg-green);
  color: var(--gg-cream);
}

.gh-spotlight-cta-button:hover {
  opacity: 0.9;
}

.gh-episode-list,
.gh-resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gh-episode-list-item,
.gh-resource-list-item {
  margin-bottom: 0.5rem;
}

.gh-episode-link,
.gh-resource-link {
  text-decoration: none;
}

.gh-episode-link:hover,
.gh-resource-link:hover {
  text-decoration: underline;
}

.gh-episode-meta {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Podcast episode grid */
.gg-episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.1rem;
}

.gg-episode-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gg-episode-image {
  border-radius: var(--gg-radius-lg);
  overflow: hidden;
  background: #e5e7eb;
  aspect-ratio: 1 / 1;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.gg-episode-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gg-episode-caption {
  font-size: 0.9rem;
}

.gg-episode-number {
  font-weight: 600;
  color: var(--gg-green-dark);
  margin-bottom: 0.1rem;
}

.gg-episode-title {
  color: var(--gg-text);
}


/* Species silhouette map */
.species-map__row { margin: 0.75rem 0 2rem; overflow-x: auto; }
.species-svg { width: 100%; height: auto; display: block; }
.species-map__heading { margin-top: 2rem; }
.species-totals__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.species-totals__col ul { list-style: none; padding-left: 0; margin: 0.5rem 0 0; }
.species-totals__col li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.25rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); }

/* Resources + Books */
.gg-resources-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.gg-resource-title {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.gg-resource-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  flex: 0 0 56px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.gg-book-header {
  display: grid;
  grid-template-columns: minmax(140px, 260px) 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-top: 1.25rem;
}

.gg-book-cover img {
  width: 100%;
  height: auto;
  border-radius: var(--gg-radius-lg);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
  display: block;
}

@media (max-width: 820px) {
  .gg-book-header { grid-template-columns: 1fr; }
  .gg-book-cover { max-width: 260px; }
}
.species-totals__col li a { text-decoration: none; }
.species-count { font-variant-numeric: tabular-nums; opacity: 0.8; }

/* Tooltip (shared with maps) */
.map-tooltip {
  position: absolute;
  display: none;
  pointer-events: none;
  background: rgba(17,24,39,0.95);
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.25;
  z-index: 9999;
  max-width: 220px;
}


/* Species totals list (multi-column, sorted) */
.species-totals-list {
  list-style: none;
  padding-left: 0;
  margin: 1.25rem 0 0;
  columns: 3;
  column-gap: 2rem;
}
@media (max-width: 900px) {
  .species-totals-list { columns: 2; }
}
@media (max-width: 600px) {
  .species-totals-list { columns: 1; }
}
.species-totals-list li {
  break-inside: avoid;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.species-totals-list li a { text-decoration: none; }
.gg-az {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .6rem 0 1rem;
  position: sticky;
  top: 0;
  background: var(--background-color, #fff);
  z-index: 5;
}

.gg-az-link {
  display: inline-block;
  padding: .25rem .45rem;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: .4rem;
  text-decoration: none;
  font-size: .95rem;
}

.gg-guest-letter {
  margin: 1.25rem 0 .75rem;
}

/* === Homepage content flow === */

.gg-home h1 {
  margin-top: 0;
}

.gg-home h2 {
  margin: 0;
}

.gg-home p.lead {
  margin: 0.65rem 0 0;
  color: var(--gg-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.gg-home .cta-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.gg-home .section-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 1.1rem 0;
}

.gg-home ul {
  padding-left: 1.1rem;
}

.gg-home .post-intro {
  margin: 0.5rem 0 0;
  color: var(--gg-muted);
}

.gg-home .post-excerpt {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

/* Only the guest card grid (does not affect existing .gg-post-list usage) */
.gg-post-list.gg-post-list--guest{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:40px;
}

@media(max-width:1000px){
  .gg-post-list.gg-post-list--guest{grid-template-columns:repeat(2,1fr); gap:28px;}
}
@media(max-width:600px){
  .gg-post-list.gg-post-list--guest{grid-template-columns:1fr; gap:22px;}
}

/* Guest card styles (safe new classnames) */
.gg-guest-card{list-style:none;}

.gg-guest-thumb{
  position:relative;
  display:block;
  aspect-ratio:1/1;
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--gg-shadow-soft);
}
.gg-guest-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.gg-guest-badge{
  position:absolute;
  top:12px;
  left:12px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  background:var(--gg-green);
  border-radius:10px;
  color:#fff;
  font-weight:700;
  font-size:12px;
}

.gg-guest-overlay{
  position:absolute;
  inset:0;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  padding:18px;
}
.gg-guest-overlay::before{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:55%;
  background:linear-gradient(to top,rgba(0,0,0,.75),transparent);
}
.gg-guest-left,
.gg-guest-right{
  position:relative;
  z-index:1;
  color:#fff;
}

.gg-guest-name{font-size:16px; font-weight:700;}
.gg-guest-sub{font-size:12px; opacity:.85;}

.gg-guest-right{
  font-size:34px;
  font-weight:900;
  line-height:.9;
  text-align:right;
}

.gg-guest-meta{margin-top:14px;}
.gg-guest-title{
  font-size:26px;
  font-weight:800;
  color:var(--gg-green);
  text-decoration:none;
}
.gg-guest-desc{
  font-size:26px;
  line-height:1.25;
}
