/* Spacing refinement: selected Adeptee 8px scale within Pipely Home V.1. */
:root{
  --space-xs:.5rem;
  --space-sm:1rem;
  --space-md:1.5rem;
  --space-lg:2rem;
  --space-xl:3rem;
  --space-2xl:4rem;
  --space-3xl:6rem;
  --section-space:clamp(var(--space-xl),5.5vw,var(--space-3xl));
  --column-space:clamp(var(--space-lg),4vw,var(--space-2xl));
  --panel-space:clamp(var(--space-md),2.5vw,var(--space-lg));
  --header-content-gap:var(--space-md);
}
/* Let the actual header height set the first section's position. The old
   absolute header covered a preview banner that still occupied document space. */
.home-preview-note{display:none}
.page-wrapper{padding-top:0}
.page-wrapper>.navbar{position:relative}
.page-wrapper>main.main-wrapper{padding-top:var(--header-content-gap)}
.audience-page .section_hero,
.page-wrapper>main.main-wrapper>.page-heading{margin-top:0}
.page-wrapper>main.main-wrapper>.page-heading{margin-inline:0}
/* Keep actions near the copy they act on, without changing photo/scroll tracks. */
.hero_content>.spacer-xsmall{padding-top:0}
.hero_content>.spacer-huge{padding-top:var(--space-md)}
.hero_content>.section-gap-medium{padding-top:var(--space-lg)}
.section_features .service_content{
  gap:var(--space-lg);
  justify-content:flex-start;
  align-self:center;
  padding-block:var(--space-lg);
}
.section_features .service_header>:last-child{margin-bottom:0}
/* The original 7.5rem gaps belonged to much shorter demonstration text. */
.expertise_left{gap:var(--space-lg)}
.section_expertise .grid-col-2{align-items:start}
.expertise_max{max-width:100%}
.expertise_max>:last-child{margin-bottom:0}
.home-audience-paths{gap:var(--space-md);width:100%}
.home-audience-paths a{padding-top:var(--space-md)}
.home-audience-paths h3{margin:0 0 var(--space-sm)}
.home-audience-paths p{margin:0 0 var(--space-xs)}
.join_left{gap:var(--space-lg);justify-content:flex-start}
.join_left>.home-download-links,.join_left>.home-resource-note{margin-top:0;margin-bottom:0}
.visual-closing{gap:var(--space-lg);padding:var(--space-lg)}
/* Section space is generous; relationships inside a section stay tighter. */
.site-section{padding-block:var(--section-space)}
.page-editorial{padding-block:var(--section-space)}
.site-editorial,.enquiry-grid,.policy-grid{gap:var(--column-space)}
.site-section-heading{margin-bottom:var(--space-lg)}
.site-section-heading>p:last-child{margin-bottom:0}
.site-context-links{gap:var(--space-sm) var(--space-md)}
/* Keep prose readable without shrinking the evidence tables. */
.page-heading p:not(.text_title),.page-reading>p,.guide-section>p,.guide-example>p{max-width:65ch}
.page-reading>p:last-child{margin-bottom:0}
.page-reading>h2:not(:first-child){margin-top:var(--space-xl)}
/* Padded reading/demo panels supply their own edge space. */
.guide-example,.guide-scope,.demo-shell,.enquiry-shell{padding:var(--panel-space)}
.guide-example>.text_title{margin:0 0 var(--space-sm)}
.guide-example>h2{margin-top:0;margin-bottom:var(--space-sm)}
.guide-example>:last-child{margin-bottom:0}
.policy-reading>section:last-child{margin-bottom:0}
/* The guide groups previously added margins on top of section padding. */
.guide-index-group{margin:0}
.guide-index-group h2{margin-bottom:var(--space-sm)}
.guide-index-group>p{margin:0 0 var(--space-lg);max-width:65ch;line-height:1.7}
.guide-index-grid,.site-card-grid{gap:var(--space-md)}
.site-card,.guide-index-card,.page-download-card{padding:var(--panel-space)}
.site-card>.visual-topic-small{margin-bottom:var(--space-sm)}
.site-card>.text_title{margin:0 0 var(--space-xs)}
.site-card>h3{margin:0 0 var(--space-sm)}
.site-card>p:last-child{margin-bottom:0}
.guide-index-card>.visual-topic-small{margin-bottom:var(--space-sm)}
.guide-index-card>h3{margin-block:var(--space-sm)}
.page-download-grid{margin:var(--space-lg) 0}
.page-download-card>.visual-glyph{margin-bottom:var(--space-sm)}
.page-download-card>h3{margin:0 0 var(--space-sm)}
.page-download-card>p{margin:0 0 var(--space-md)}
.visual-file-preview{margin:var(--space-lg) 0}
.page-actions{gap:var(--space-sm);margin-block:var(--space-lg)}
/* Field labels belong with their control; separate fields by 24px. */
.enquiry-shell label{margin:0 0 var(--space-xs)}
.enquiry-shell :is(input,select,textarea){margin-bottom:var(--space-md)}
.enquiry-shell legend{margin-bottom:var(--space-md)}
.enquiry-shell .page-actions{margin-bottom:0}
@media(max-width:991px){
  .section_features .service_content{align-self:stretch;padding-block:var(--space-sm)}
  .site-editorial,.enquiry-grid,.policy-grid{gap:var(--space-lg)}
  .section_expertise .grid-col-2{row-gap:var(--space-lg)}
}
@media(max-width:600px){
  :root{--header-content-gap:var(--space-sm)}
  .hero_content>.section-gap-medium{padding-top:var(--space-md)}
  .section_features .service_content{gap:var(--space-md);padding-block:0}
  .guide-example,.guide-scope,.demo-shell,.enquiry-shell{padding:var(--space-md)}
  .expertise_left,.join_left{gap:var(--space-md)}
  .visual-closing{padding:var(--space-md)}
  .site-card,.guide-index-card,.page-download-card{padding:var(--space-md)}
  .guide-index-grid,.site-card-grid{gap:var(--space-sm)}
}
/* The guide index has several groups inside one shared editorial section. */
.guide-index-group+.guide-index-group{margin-top:var(--section-space)}
/* The final library notice is a new section, separate from the last cards. */
.guide-index-group+.guide-scope{margin-top:var(--section-space)}
.guide-scope>h2{margin:0 0 var(--space-sm)}
/* Outline actions on light editorial surfaces use the dark brand foreground. */
.site-section .button.is-outline{
  color:var(--adeptee-navy);
  border-color:var(--adeptee-navy);
  background:transparent;
}
.site-section .button.is-outline:hover{background:var(--adeptee-mist)}
/* Long closing actions may wrap, especially at narrow phone widths. */
.join_left .button_wrap{max-width:100%}
.join_left .button{
  max-width:100%;
  white-space:normal;
  text-align:center;
  height:auto;
  min-height:3.5rem;
}
/* The template's white list text belongs to dark sections, not articles. */
.page-reading li{color:var(--adeptee-navy)}
