/* Shared homepage template with post content. The actual homepage styles.css,
   dark.css, theme.css and alias-promotion.css own all grid and card design. */
body.nash-post-template > .wrapper-outer {
 position:fixed; inset:0; z-index:0; pointer-events:none;
}
body.nash-post-template > .wrapper-outer > .background-cover {
 position:absolute; inset:0; overflow:hidden;
}
body.nash-post-template > .design-frame {
 position:relative; z-index:1; background:transparent !important;
}
/* Keep T-140 secondary: only outer margins reveal the photograph; the actual
   homepage framework stays opaque behind the naturally tall article. */
body.nash-post-template .body-grid { background:var(--nash-page,#fff); }
/* The existing outer homepage grid and landmark rail remain authoritative.
   Allocate the inner grid to a secondary feed and a dominant full article. */
body.nash-post-template .center40 .editorial-columns {
 grid-template-columns:300px minmax(0,1fr); gap:14px;
}
/* Match the left article gutter with 8px + the existing 16px rail gap.
   The homepage rail and category row keep their original horizontal position. */
@media(min-width:1101px) {
 body.nash-post-template .center40 .editorial-columns {
  column-gap:24px; padding-right:8px;
 }
}
body.nash-post-template .center40 .music40 { position:relative; overflow:visible; margin-top:18px; }
/* One unmodified photographic asset, positioned relative to Latest Posts. */
body.nash-post-template .center40 .nash-post-hat {
 position:absolute; top:-30px; left:-25px; width:116px; height:auto; max-width:none;
 transform:rotate(-12deg); filter:drop-shadow(0 3px 4px #0008);
 pointer-events:none; z-index:2;
}
body.nash-post-template :is(.design-frame,#main,.body-grid,.main-column,.editorial-columns) { overflow:visible; }
body.nash-post-template .center40 .music40 > .center40-heading { padding-left:90px; }
body.nash-post-template .center40 .music40 .center40-heading h2 { font-size:22px; }
body.nash-post-template .center40 .main-column { padding-top:8px; }
body.nash-post-template .center40 .categories { margin-bottom:14px; }
body.nash-post-template .center40 .categories > .category {
 min-height:84px; padding:6px 4px 12px;
}
body.nash-post-template .center40 .category-art,
body.nash-post-template .center40 .category-icon { width:40px; height:40px; }
body.nash-post-template .center40 .category-art { margin-bottom:4px; }
body.nash-post-template .center40 .calendar-stack { min-width:0; }
body.nash-post-template .center40 .nash-post-card { margin:0; }
body.nash-post-template .center40 .nash-compact-story {
 display:block; padding:0; margin:0 0 8px; border-bottom:0;
}
body.nash-post-template .nash-compact-thumb {
 position:relative; display:grid; align-items:end; width:100%; min-height:128px;
 aspect-ratio:2/1; overflow:hidden; border-radius:5px; background:#101827;
}
body.nash-post-template .nash-compact-thumb img {
 position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover;
}
body.nash-post-template .nash-compact-thumb::after {
 content:""; position:absolute; inset:0; pointer-events:none;
 background:linear-gradient(180deg,rgba(0,0,0,.05) 10%,rgba(0,0,0,.42) 45%,rgba(0,0,0,.94) 100%);
}
body.nash-post-template .center40 .nash-compact-story h3 {
 position:relative; z-index:1; padding:32px 10px 10px; color:#fff;
 font-size:13px; line-height:1.3; margin:0; display:block; max-height:none; overflow:visible;
 overflow-wrap:break-word; text-shadow:0 1px 3px #000;
}
/* Article-only content formatting; its calendar40 container retains every
   existing homepage border, shadow, background, radius, padding and breakpoint. */
body.nash-post-template .nash-post-card .center40-heading h1 {
 font-family:NashvilleDisplay,'Arial Narrow',Arial,sans-serif;
 font-size:28px; line-height:1.15; font-weight:400; margin:0; overflow-wrap:anywhere;
}
body.nash-post-template .nash-post-photo img {
 display:block; width:100%; max-width:100%; aspect-ratio:16/9; height:auto;
 object-fit:cover; object-position:center; margin:0;
}
body.nash-post-template .nash-post-byline { margin:10px 0 14px; }
body.nash-post-template .nash-post-content { line-height:1.6; overflow-wrap:anywhere; }
body.nash-post-template .nash-post-content > * + * { margin-top:1em; }
body.nash-post-template .nash-post-content :is(img,video,iframe,.wp-caption) { max-width:100%; }
body.nash-post-template .nash-post-content img { height:auto; }
body.nash-post-template .nash-post-content :is(ul,ol) { padding-left:1.5em; }
body.nash-post-template .nash-post-content a { color:var(--nash-link,#135483); text-decoration:underline; }
body.nash-post-template .nash-post-content :is(pre,table) { display:block; max-width:100%; overflow:auto; }
@media(max-width:850px) {
 body.nash-post-template .center40 .editorial-columns {
  display:flex; flex-direction:column; gap:12px;
 }
 body.nash-post-template .center40 .calendar-stack { order:-1; width:100%; }
 body.nash-post-template .center40 .music40 { width:100%; }
 body.nash-post-template .center40 .nash-post-hat {
  top:-22px; left:-16px; width:84px; height:auto;
 }
 body.nash-post-template .center40 .music40 > .center40-heading { padding-left:64px; }
}
@media(max-width:600px) {
 body.nash-post-template .center40 .nash-post-hat { left:-8px; top:-20px; width:80px; transform:rotate(-10deg); }
 body.nash-post-template .center40 .categories {
  padding:0 2px 4px; margin-bottom:6px;
 }
 body.nash-post-template .center40 .categories > .category {
  min-height:56px; padding:8px 8px 12px; grid-template-rows:auto;
 }
 body.nash-post-template .center40 .categories > .category .category-art {
  grid-row:1; margin:0;
 }
 body.nash-post-template .center40 .categories > .category .category-art,
 body.nash-post-template .center40 .categories > .category .category-icon {
  width:32px; height:32px;
 }
}
