/* California58 local news article layout repair — draft QA.
 * One readable story column on all screen sizes. Related news comes after the article.
 * Avoid competing 790px + 320px grid tracks, orphan empty rails and narrow text.
 * No editorial copy, ads, video embeds or tracking changed.
 */
body.single-post article.c58-local-story > .article-head.wrap-narrow,
body.single-post article.c58-local-story > .article-image.wrap,
body.single-post article.c58-local-story > .article-body.wrap-narrow {
  box-sizing: border-box !important;
  width: min(calc(100% - 48px), 1000px) !important;
  max-width: 1000px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.single-post article.c58-local-story > .article-body.wrap-narrow {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  padding: 22px clamp(0px,1vw,8px) 70px !important;
}
body.single-post article.c58-local-story > .article-body.wrap-narrow > :not(.c58-article-rail) {
  box-sizing: border-box;
  position: relative;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  grid-column: auto !important;
  grid-row: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
}
body.single-post article.c58-local-story > .article-body.wrap-narrow > :is(p,blockquote,ul,ol,h2,h3,h4,h5,h6) {
  text-align: left !important;
  overflow-wrap: break-word !important;
}
body.single-post article.c58-local-story > .article-body.wrap-narrow > :is(p,blockquote,ul,ol) {
  font-size: calc(clamp(17px,1.34vw,19px) * var(--c58-reader-scale,1)) !important;
  line-height: 1.72 !important;
  margin-block: 0 1.2em !important;
}
body.single-post article.c58-local-story > .article-body.wrap-narrow > :is(h2,h3) {
  margin-block: 1.5em .65em !important;
  line-height: 1.25 !important;
}
body.single-post article.c58-local-story > .article-body.wrap-narrow > .c58-article-rail {
  order: 100 !important;
  position: static !important;
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 28px 0 10px !important;
  padding: clamp(16px,2.5vw,24px) !important;
  border-radius: 12px;
}
body.single-post article.c58-local-story > .article-body.wrap-narrow > .c58-article-rail > ul {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: 22px;
}
body.single-post article.c58-local-story > .article-body.wrap-narrow :is(img,iframe,video,table,pre,figure) {
  max-width: 100% !important;
}
body.single-post article.c58-local-story > .article-body.wrap-narrow :is(table,pre) {
  overflow-x: auto !important;
}
@media(max-width:760px){
  body.single-post article.c58-local-story > :is(.article-head.wrap-narrow,.article-image.wrap,.article-body.wrap-narrow) {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  body.single-post article.c58-local-story > .article-body.wrap-narrow { padding-top: 12px !important; padding-bottom: 38px !important; }
  body.single-post article.c58-local-story > .article-body.wrap-narrow > .c58-article-rail > ul {
    grid-template-columns: 1fr;
  }
  body.single-post article.c58-local-story > .article-body.wrap-narrow > :is(p,blockquote,ul,ol) {
    font-size: calc(17px * var(--c58-reader-scale,1)) !important;
    line-height: 1.65 !important;
  }
}
@media print {
  body.single-post article.c58-local-story > .article-body.wrap-narrow > .c58-article-rail { display: none !important; }
  body.single-post article.c58-local-story > .article-body.wrap-narrow { display: block !important; width:100% !important; }
}
