/* MAIN STAGE pack: the look of a SINGLE POST (the Theme Builder template "(01-Stage-26) Post", build/post/). The site's
   posts are its artists' own pages, each a Divi layout the operator wrote; this file frames them and sets a readable
   measure and type for their words. It never restyles what a post's own Divi settings set on purpose beyond that.
   Loaded by kit/modules/post/module.php on a single post drawn in a pack, after stage.css. Every rule starts with
   .slmg-dir-stage and names the template's own classes. */

/* the template's columns: the page's width, inside the side gutter */
.slmg-dir-stage .slmg-post .slmg-post__col { max-width: calc(1180px + 2 * var(--slmg-gut)); padding: 0 var(--slmg-gut); margin-left: auto !important; margin-right: auto !important; }

/* head: breadcrumb, the one H1, the date, the featured picture */
.slmg-dir-stage .slmg-post--head .slmg-post__col { padding-top: var(--slmg-s4); padding-bottom: var(--slmg-s5); }
.slmg-dir-stage .slmg-post__crumbs { margin-bottom: var(--slmg-s5); }
.slmg-dir-stage .slmg-post__title .et_pb_module_header { font-size: clamp(36px, calc(4.4vw / var(--vp-zoom, 1)), 72px); overflow-wrap: break-word; hyphens: manual; }
.slmg-dir-stage .slmg-post__date { margin: var(--slmg-s3) 0 0; font: 500 13px/1.4 var(--slmg-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slmg-mute); }
.slmg-dir-stage .slmg-post__figure { margin: var(--slmg-s5) 0 0; }
.slmg-dir-stage .slmg-post__img { display: block; max-width: 100%; height: auto; border-radius: var(--slmg-r); }

/* the post's own content (Divi's Post Content module holding the post's sections): the post's sections keep their own
   layout; inside them the words get a readable measure and the pack's type */
.slmg-dir-stage .slmg-post--body .slmg-post__col { padding-bottom: var(--slmg-s6); }
.slmg-dir-stage .slmg-post__content .et_pb_section { padding-top: 0; padding-bottom: 0; background-color: transparent; }
.slmg-dir-stage .slmg-post__content .et_pb_row { width: 100%; max-width: none; padding: var(--slmg-s4) 0; }
.slmg-dir-stage .slmg-post__content .et_pb_text { font-size: 17px; line-height: 1.6; color: var(--slmg-ink); }
.slmg-dir-stage .slmg-post__content .et_pb_text p,
.slmg-dir-stage .slmg-post__content .et_pb_text ul,
.slmg-dir-stage .slmg-post__content .et_pb_text ol { max-width: 68ch; }
.slmg-dir-stage .slmg-post__content .et_pb_text p + p { margin-top: var(--slmg-s4); }
.slmg-dir-stage .slmg-post__content .et_pb_text h2 { font-size: clamp(26px, calc(2.4vw / var(--vp-zoom, 1)), 40px); line-height: 1.1; margin-bottom: var(--slmg-s3); }
/* the post's own headings are titles too: the one title style of the site (operator #11), sizes as the post sets them */
.slmg-dir-stage .slmg-post__content .et_pb_text :is(h1, h2, h3, h4):not(.slmg-name) { font-family: var(--slmg-display); font-weight: 800; font-stretch: 62%; text-transform: uppercase; letter-spacing: -.005em; line-height: 1; }
.slmg-dir-stage .slmg-post__content .et_pb_text a { color: var(--slmg-ink); text-decoration: underline; text-decoration-color: var(--slmg-orange); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.slmg-dir-stage .slmg-post__content .et_pb_text a:hover { color: var(--slmg-orange); }
/* the artists' lists of links (Facebook, Soundcloud ...): each a 44 px target on a phone */
.slmg-dir-stage .slmg-post__content .et_pb_text li > a { display: inline-flex; align-items: center; min-height: 44px; }
.slmg-dir-stage .slmg-post__content .et_pb_text li + li { margin-top: 0; }
.slmg-dir-stage .slmg-post__content img { max-width: 100%; height: auto; }
.slmg-dir-stage .slmg-post__content iframe { max-width: 100%; }

/* the way back */
.slmg-dir-stage .slmg-post--back .slmg-post__col { padding-bottom: var(--slmg-s7); }
.slmg-dir-stage .slmg-post__backline { margin: 0; padding-top: var(--slmg-s5); border-top: 1px solid var(--slmg-line); }
.slmg-dir-stage .slmg-post__backlink { display: inline-flex; align-items: center; gap: var(--slmg-s2); min-height: 44px;
  font: 500 13px/1.2 var(--slmg-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slmg-ink);
  text-decoration: underline; text-decoration-color: var(--slmg-orange); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.slmg-dir-stage .slmg-post__backlink:hover { color: var(--slmg-orange); }

@media (max-width: 900px) {
  .slmg-dir-stage .slmg-post__content .et_pb_text { font-size: 16px; }
}

/* the newest releases sit inside the page's side gutter, on the line of their heading (the label pages' rule since round 2,
   finding V2). Closing pass, 2026-11-20. */
.slmg-dir-stage #et-boc .slmg-post-new .slmg-col.slmg-wall__grid { padding-left: var(--slmg-gut); padding-right: var(--slmg-gut); }

/* The newest releases' column counts before Divi's deferred stylesheet arrives (and without script): the generator's own
   (gen_post.py: 6 / 3 / 2), at the label pages' weight, so Divi's own rule still wins once it loads. Closing pass. */
.slmg-dir-stage .slmg-post-new .slmg-wall__grid { --column-count: 6; }
@media (max-width: 980px) { .slmg-dir-stage .slmg-post-new .slmg-wall__grid { --column-count: 3; } }
@media (max-width: 767px) { .slmg-dir-stage .slmg-post-new .slmg-wall__grid { --column-count: 2; } }

/* the artist's releases (#17, 2026-11-21): the kit's cards, the line to all of them in the catalogue; the band hides itself
   when the artist has no release in the store (body class slmg-post--no-releases, kit/modules/post/module.php). Since #99
   the band is only a fallback: hidden on a post that holds its own releases block (body class slmg-post--rel-inline). */
.slmg-dir-stage.slmg-post--no-releases .slmg-post-rel,
.slmg-dir-stage.slmg-post--rel-inline .slmg-post-rel,
.slmg-dir-stage.slmg-post--no-releases .slmg-artist-rel { display: none !important; }
.slmg-dir-stage .slmg-post-rel .slmg-post__col { max-width: calc(1440px + 2 * var(--slmg-gut)); padding: var(--slmg-s4) var(--slmg-gut) 0; }   /* the band is not an .slmg-post section: its own side gutter */
.slmg-dir-stage .slmg-post__allrel { margin: 0; }

/* THE RELEASES INSIDE THE POST (#99, 2026-11-21, pages2): the post's own layout (build/pages/gen_posts.py): the picture,
   links and bio on the left (1/3), the artist's releases on the right (2/3: four cards a row on a computer, three on a
   tablet, two on a phone, Divi's own grid counts), stacked on a phone. A post with custom content (SenseNet's) holds the
   same releases block in its own column, where its old release list stood. */
.slmg-dir-stage .slmg-post__content .slmg-artist__row { row-gap: var(--slmg-s6); }
.slmg-dir-stage .slmg-artist__side .et_pb_image { margin-bottom: var(--slmg-s4); }
.slmg-dir-stage .slmg-artist__side .et_pb_image img { border-radius: var(--slmg-r); height: auto; }   /* width and height come from the kit, so the page keeps its place */
.slmg-dir-stage .slmg-artist-rel { width: 100%; }
.slmg-dir-stage .slmg-artist-rel__h { margin-bottom: var(--slmg-s4); }
.slmg-dir-stage .slmg-artist-rel__h .et_pb_module_header { font-size: clamp(26px, calc(2.4vw / var(--vp-zoom, 1)), 40px); line-height: 1.05; }
.slmg-dir-stage .slmg-artist-rel .slmg-post__rel { margin-top: var(--slmg-s4); }
/* the two columns' widths before Divi's deferred stylesheet arrives (and without script): the generator's own 8/24 + 16/24 on a
   computer and a tablet, one under the other on a phone, at Divi's own breakpoints, so nothing jumps when Divi's rules land
   (the gate measured 0.4 to 0.6 layout shift at 390 without this) */
.slmg-dir-stage .slmg-post__content .slmg-artist__row { display: flex; flex-wrap: wrap; }
.slmg-dir-stage .slmg-post__content .slmg-artist__side { width: 33.3333%; max-width: 33.3333%; }
.slmg-dir-stage .slmg-post__content .slmg-artist__main { width: 66.6667%; max-width: 66.6667%; }
@media (max-width: 767px) {
  .slmg-dir-stage .slmg-post__content .slmg-artist__side,
  .slmg-dir-stage .slmg-post__content .slmg-artist__main { width: 100%; max-width: 100%; }
}
/* the grid's column counts before Divi's deferred stylesheet arrives (and without script): the generator's own 4 / 3 / 2 */
.slmg-dir-stage .slmg-artist-rel__grid { display: grid; --column-count: 4; grid-template-columns: repeat(var(--column-count), minmax(0, 1fr)); }
@media (max-width: 980px) { .slmg-dir-stage .slmg-artist-rel__grid { --column-count: 3; } }
@media (max-width: 767px) { .slmg-dir-stage .slmg-artist-rel__grid { --column-count: 2; } }
/* on a computer the picture, links and bio stay in view beside a long list of releases */
@media (min-width: 981px) {
  .slmg-dir-stage .slmg-post__content .slmg-artist__row { align-items: flex-start; }
  .slmg-dir-stage .slmg-artist__side { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--slmg-s5)); }
}
