/* Proof & Principle v409 — global guide spacing system
   Goal: tighter, consistent vertical rhythm across /guides/ only.
   Layout geometry and chapter-specific editorial treatments remain intact. */

:root{
  --pp-guide-hero-top:32px;
  --pp-guide-hero-bottom:38px;
  --pp-guide-chapter-top:48px;
  --pp-guide-chapter-bottom:52px;
  --pp-guide-head-gap:22px;
  --pp-guide-block-gap:22px;
  --pp-guide-tight-gap:16px;
  --pp-guide-grid-gap:28px;
  --pp-guide-card-pad:20px;
}

/* Guide opener */
body main > .hero.wrap{
  padding-top:var(--pp-guide-hero-top) !important;
  padding-bottom:var(--pp-guide-hero-bottom) !important;
}
.fruit-hero-inner{
  padding-top:54px !important;
  padding-bottom:50px !important;
  gap:54px !important;
}

/* Orientation / outcomes / contents */
.learn > *{padding:22px 24px !important;}
.jump-map{
  padding-top:48px !important;
  padding-bottom:48px !important;
}
.jump-head{margin-bottom:16px !important;}
.jump-card{padding-top:18px !important;padding-bottom:18px !important;}
.fruit-scope-inner{padding-top:28px !important;padding-bottom:28px !important;}

/* Chapter skeleton */
.chapter{
  padding-top:var(--pp-guide-chapter-top) !important;
  padding-bottom:var(--pp-guide-chapter-bottom) !important;
}
.fruit-chapter{
  padding-top:52px !important;
  padding-bottom:52px !important;
}
.chapter-head{margin-bottom:var(--pp-guide-head-gap) !important;}

/* Reading rhythm */
.body-copy p{margin-bottom:16px !important;}
.body-copy p:last-child{margin-bottom:0 !important;}
.section-grid{gap:var(--pp-guide-grid-gap) !important;}
.fruit-chapter .two-col{gap:30px !important;}

/* Standard content modules */
.cards-2,.cards-3,
.legal-grid,.tradition-grid,.tasting-grid,
.process-grid,.tag-grid,.taste-grid{
  margin-top:var(--pp-guide-block-gap) !important;
}
.callout{
  margin-top:20px !important;
  padding:20px 22px !important;
}
.bar-note{
  margin-top:22px !important;
  padding-top:14px !important;
  padding-bottom:14px !important;
}
.chapter-next{
  margin-top:18px !important;
  padding-top:14px !important;
}
.source-panel{margin-top:24px !important;}
.source-links{padding-top:16px !important;padding-bottom:17px !important;}

/* Standalone imagery gets breathing room; grid imagery remains flush. */
.chapter > .figure,.fruit-chapter > .figure{margin-top:22px !important;margin-bottom:22px !important;}
.section-grid > .figure,.two-col > .figure{margin-top:0 !important;margin-bottom:0 !important;}

/* Older editorial families */
.fruit-chapter .legal-grid,.fruit-chapter .tradition-grid,.fruit-chapter .tasting-grid{margin-top:22px !important;}
.fruit-chapter .process{margin-top:22px !important;margin-bottom:22px !important;}
.fruit-chapter .split-panel{margin-top:22px !important;margin-bottom:22px !important;}
.fruit-roadmap{padding-top:58px !important;padding-bottom:58px !important;}
.fruit-roadmap-heading{margin-bottom:26px !important;}
.fruit-close{padding-top:64px !important;padding-bottom:64px !important;}

/* Common later-generation special modules: tighten outer rhythm without changing their internal design. */
.bond-panel,.warehouse-study,.tasting-block,.sensory-reference,.maturation-mechanisms,
.aw-law-grid,.aw-label-order,.aw-proof-flow,.rye-law-grid,.rye-label-order{
  margin-top:var(--pp-guide-block-gap) !important;
}

@media(max-width:1100px){
  :root{--pp-guide-grid-gap:22px;}
}

@media(max-width:760px){
  :root{
    --pp-guide-hero-top:28px;
    --pp-guide-hero-bottom:32px;
    --pp-guide-chapter-top:40px;
    --pp-guide-chapter-bottom:44px;
    --pp-guide-head-gap:18px;
    --pp-guide-block-gap:18px;
    --pp-guide-grid-gap:18px;
  }
  body main > .hero.wrap{
    padding-top:var(--pp-guide-hero-top) !important;
    padding-bottom:var(--pp-guide-hero-bottom) !important;
    gap:24px !important;
  }
  .fruit-hero-inner{
    padding-top:38px !important;
    padding-bottom:38px !important;
    gap:28px !important;
  }
  .learn > *{padding:18px 20px !important;}
  .jump-map{padding-top:38px !important;padding-bottom:38px !important;}
  .jump-card{padding-top:15px !important;padding-bottom:15px !important;}
  .fruit-scope-inner{padding-top:22px !important;padding-bottom:22px !important;}
  .fruit-chapter{padding-top:42px !important;padding-bottom:44px !important;}
  .chapter-head{margin-bottom:18px !important;}
  .body-copy p{margin-bottom:14px !important;}
  .callout{margin-top:18px !important;padding:18px 18px !important;}
  .bar-note{margin-top:18px !important;padding-top:12px !important;padding-bottom:12px !important;}
  .chapter-next{margin-top:16px !important;padding-top:12px !important;}
  .source-panel{margin-top:20px !important;}
  .chapter > .figure,.fruit-chapter > .figure{margin-top:18px !important;margin-bottom:18px !important;}
  .fruit-roadmap{padding-top:46px !important;padding-bottom:46px !important;}
  .fruit-close{padding-top:50px !important;padding-bottom:50px !important;}
}
