/* PBN shell — shared layout tokens + sticky footer + one content grid */

:root {
  --oslive-max: 68rem;
  --oslive-gutter: clamp(1rem, 3vw, 2.25rem);
}

/* Sticky footer: short pages keep footer at viewport bottom */
html {
  height: 100%;
}

body {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > .pbn-main,
body > main.pbn-main {
  flex: 1 0 auto;
  width: 100%;
}

/* Pages without <main> still push footer down via auto margin */
body > .site-footer.oslive-ftr,
body > footer.oslive-ftr {
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
}

/*
 * One content grid: header / page / footer share the same max-width + gutters.
 * Skins may override --oslive-max; do not invent per-block max-widths.
 */
.oslive-hdr .container,
.pbn-main .container,
.oslive-ftr .container,
.oslive-ftr .site-footer_inner,
.site-footer.oslive-ftr .site-footer_inner,
.sp_breadcrumbs_section .container,
.oslive-overview .container,
.blog_archive_section .container,
.pbn-authors-hub .container,
.pbn-author-hero .container,
.pbn-404 .container,
.article_single_section .container {
  width: 100%;
  max-width: var(--oslive-max);
  margin-inline: auto;
  padding-inline: var(--oslive-gutter);
  box-sizing: border-box;
}

/* Home skin slot: center even if design.css sets max-width without margin */
#oslive-home,
#oslive-home.oslive-home {
  width: 100%;
  max-width: var(--oslive-max);
  margin-inline: auto;
  box-sizing: border-box;
}

.oslive-hdr.header {
  box-shadow: none;
}

.oslive-hdr .header_inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.45rem 0;
  min-height: 0;
}

.oslive-hdr .header_menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.oslive-hdr .header_menu a {
  font-size: 0.9rem;
  line-height: 1.2;
}

.oslive-hdr .header_brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.oslive-hdr .header_brand_name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.oslive-hdr .header_burger {
  width: 2rem;
  height: 2rem;
}

/* Footer: 2 useful columns on the shared grid (not legacy 4-col EduPro) */
.oslive-ftr.site-footer {
  padding: 2.5rem 0 1.5rem;
}

.oslive-ftr .site-footer_top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.oslive-ftr .site-footer_bottom {
  margin-top: 1.5rem;
}

@media (max-width: 700px) {
  .oslive-ftr .site-footer_top {
    grid-template-columns: 1fr;
  }
}

.pbn-404 {
  padding: 4rem 0;
  text-align: center;
}

.pbn-404__code {
  font-size: 4rem;
  margin: 0;
  opacity: 0.35;
}

.pbn-404__links {
  list-style: none;
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 0;
}

/* Author profile — uses same blog_archive_* cards for posts */
.pbn-author-hero {
  padding: 3rem 0 1.5rem;
}

.pbn-author-hero__inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.pbn-author-hero__avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.pbn-author-hero__expertise,
.article_single_author_card__expertise {
  opacity: 0.85;
  font-size: 0.95em;
}

.pbn-author-posts {
  padding: 1rem 0 3rem;
}

.pbn-author-posts__title {
  margin: 0 0 1.25rem;
}

.article_single_author_card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(127, 127, 127, 0.25);
}

.article_single_author_card__avatar {
  border-radius: 50%;
  display: block;
}

.article_single_author_card__label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.article_single_author_card__name {
  font-weight: 600;
  text-decoration: none;
}

.article_single_author_card__job,
.article_single_author_card__bio {
  margin: 0.35rem 0 0;
}

.article_single_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
}

/* Physical separator only — never ::before text/background (causes vertical stripes) */
.article_single_meta_dot {
  display: inline-block;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  flex: 0 0 auto;
  align-self: center;
  line-height: 0;
  overflow: hidden;
}

.article_single_meta_dot::before,
.article_single_meta_dot::after {
  content: none !important;
}

.pbn-toc {
  margin: 0 0 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(127, 127, 127, 0.2);
}

.pbn-toc__list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.pbn-toc__item--h3 {
  margin-left: 0.75rem;
}

.pbn-authors-hub {
  padding: 0 0 3rem;
}

.pbn-authors-hub__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.pbn-authors-hub__card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  padding: 1.25rem;
}

@media (max-width: 360px) {
  :root {
    --oslive-gutter: 1rem;
  }
}

/* --- Shell variants (fingerprint + layout) --- */

.oslive-rail .oslive-rail__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}

.oslive-rail .oslive-rail__brand {
  margin-left: auto;
}

.oslive-rail .oslive-rail__nav-wrap {
  order: 0;
  flex: 1 1 auto;
}

.oslive-mast .oslive-mast__row--brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0 0.25rem;
}

.oslive-mast .oslive-mast__tag {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  line-height: 1.3;
  opacity: 0.72;
  max-width: 28rem;
}

.oslive-mast .oslive-mast__nav-wrap {
  padding-bottom: 0.55rem;
  border-top: 1px solid rgba(127, 127, 127, 0.18);
}

.oslive-mast .oslive-mast__nav .header_menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
}

.oslive-foot--rail .oslive-foot-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: start;
}

.oslive-foot--mast .oslive-foot-mast__nav .site-footer_menu,
.oslive-foot--mast .oslive-foot-mast__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.oslive-top__icon {
  display: block;
}

@media (max-width: 700px) {
  .oslive-foot--rail .oslive-foot-rail {
    grid-template-columns: 1fr;
  }
}
