/* Public spacing follows the accepted Rigdzin homepage rails.
   Page-specific compositions, colours, typefaces, controls and data stay local. */
.public-site{
 --layout-gutter:56px;
 --layout-width:1260px;
 --layout-panel-inset:24px;
 --layout-section-space:clamp(64px,7vw,104px);
 --layout-column-gap:clamp(40px,6vw,88px);
 --layout-heading-gap:28px;
 --layout-paragraph-gap:22px;
}

/* The outside panel inset is already part of the page gutter; do not add it twice. */
.public-site:not(.namkha-rinpoche-page) .wrap:not(.hero):not(.event-banner){
 width:min(var(--layout-width),calc(100% - var(--layout-gutter)*2));
}
.public-site:not(.namkha-rinpoche-page) .panel>.wrap{
 width:min(var(--layout-width),calc(100% - (var(--layout-gutter) - var(--layout-panel-inset))*2));
}
.public-site:not(.namkha-rinpoche-page) .section{
 padding-block:var(--layout-section-space);
}
.public-site.vajra-art-page .art-hero{
 width:min(var(--layout-width),calc(100% - var(--layout-gutter)*2));
}

/* Ordinary editorial openings have a heading, then a measured introduction.
   The homepage keeps its accepted split compositions. */
.public-site:not(.home-page):not(.namkha-rinpoche-page) .section-intro{
 grid-template-columns:minmax(0,1fr);
 gap:var(--layout-heading-gap);
 align-items:start;
}
.public-site:not(.home-page):not(.namkha-rinpoche-page) .section-intro>div:first-child{
 max-width:880px;
}
.public-site:not(.home-page):not(.namkha-rinpoche-page) .section-intro>:nth-child(2){
 padding-top:0;
 max-width:760px;
}
.public-site:not(.home-page):not(.namkha-rinpoche-page) .section-intro h2{
 margin:0;
}
.public-site:not(.home-page):not(.namkha-rinpoche-page) .section-intro .eyebrow{
 margin-bottom:24px;
}

/* The story title spans the photograph and reading column. Text starts below
   the complete title, so wrapped headings never compete with the first paragraph. */
.public-site:not(.home-page):not(.namkha-rinpoche-page) .story-grid{
 grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
 column-gap:var(--layout-column-gap);
 row-gap:24px;
 align-items:start;
}
.public-site:not(.home-page):not(.namkha-rinpoche-page) .story-heading{
 display:contents;
}
.public-site:not(.home-page):not(.namkha-rinpoche-page) .story-heading>.eyebrow{
 grid-column:1/-1;
 grid-row:1;
 margin:0;
}
.public-site:not(.home-page):not(.namkha-rinpoche-page) .story-heading>h2{
 grid-column:1/-1;
 grid-row:2;
 max-width:880px;
 margin:0 0 16px;
}
.public-site:not(.home-page):not(.namkha-rinpoche-page) .story-heading>.photo{
 grid-column:1;
 grid-row:3;
 margin-top:0;
}
.public-site:not(.home-page):not(.namkha-rinpoche-page) .story-grid>.story-body{
 grid-column:2;
 grid-row:3;
 padding-top:0;
 max-width:720px;
}
.public-site:not(.home-page):not(.namkha-rinpoche-page) .story-grid:not(:has(.story-heading>.photo))>.story-body{
 grid-column:1/-1;
 max-width:760px;
}

/* Keep the existing art-led two-column headings, aligned below the eyebrow. */
.public-site.vajra-art-page .art-section-heading{
 align-items:start;
 column-gap:var(--layout-column-gap);
 margin-bottom:44px;
}
.public-site.vajra-art-page .art-section-heading>.culture-section-lead{
 padding-top:42px;
}
.public-site.vajra-art-page .art-section-heading .eyebrow{
 margin-bottom:24px;
}
.public-site.vajra-art-page .art-section-heading h2{
 margin:0;
}

/* Body paragraphs share a reading cadence; cards, captions and utility copy
   retain their compact local spacing. No font or colour replacement is applied. */
.public-site:not(.home-page):not(.namkha-rinpoche-page) :is(.story-body,.page-opening,.section-lead,.sangye-biography,.event-story-copy,.culture-opening-grid>.body)>p:not(.eyebrow):not(.lead):not(.opening-lead){
 margin-bottom:var(--layout-paragraph-gap);
}
.public-site:not(.home-page):not(.namkha-rinpoche-page) :is(.story-body,.page-opening,.section-lead,.sangye-biography,.event-story-copy,.culture-opening-grid>.body)>p:last-child{
 margin-bottom:0;
}
.public-site:not(.home-page):not(.namkha-rinpoche-page) :is(.section-intro,.art-section-heading,.culture-opening,.centres-intro,.archive-heading) h2+:is(p,.body){
 margin-top:var(--layout-heading-gap);
}

@media(max-width:1250px){
 .public-site{--layout-gutter:40px}
}
@media(max-width:760px){
 .public-site{
  --layout-gutter:22px;
  --layout-panel-inset:12px;
  --layout-column-gap:30px;
  --layout-heading-gap:26px;
 }
 .public-site:not(.home-page):not(.namkha-rinpoche-page) .section-intro .eyebrow{
  margin-bottom:20px;
 }
 .public-site:not(.home-page):not(.namkha-rinpoche-page) .story-grid{
  grid-template-columns:minmax(0,1fr);
  row-gap:24px;
 }
 .public-site:not(.home-page):not(.namkha-rinpoche-page) .story-heading>h2{
  margin-bottom:8px;
 }
 .public-site:not(.home-page):not(.namkha-rinpoche-page) .story-heading>.photo{
  grid-column:1;
  grid-row:3;
 }
 .public-site:not(.home-page):not(.namkha-rinpoche-page) .story-grid>.story-body{
  grid-column:1;
  grid-row:4;
 }
 .public-site:not(.home-page):not(.namkha-rinpoche-page) .story-grid:not(:has(.story-heading>.photo))>.story-body{
  grid-row:3;
 }
 .public-site.vajra-art-page .art-section-heading{
  margin-bottom:30px;
  row-gap:var(--layout-heading-gap);
 }
 .public-site.vajra-art-page .art-section-heading>.culture-section-lead{
  padding-top:0;
 }
 .public-site.vajra-art-page .art-section-heading .eyebrow{
  margin-bottom:20px;
 }
}
