/* Single blog page — scoped; does not alter global site chrome */

.sb-shell {
  max-width: 77.5rem;
  margin: 0 auto;
  padding: 2.75rem 1.5rem 4.5rem;
  color: #5e565a;
  overflow-x: clip;
}

.sb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 18.5rem);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.sb-primary {
  min-width: 0;
}

/* —— Hero —— */
.sb-hero {
  margin: 0 0 1.25rem;
}

.sb-hero__eyebrow {
  margin: 0 0 0.85rem;
}

.sb-hero__eyebrow a {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.3rem 0.95rem;
  border-radius: 999px;
  background: #ff934f;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.sb-hero__eyebrow a:hover,
.sb-hero__eyebrow a:focus-visible {
  color: #fff;
  filter: brightness(0.96);
}

.sb-hero__title {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #5e565a;
}

.sb-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.9rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(94, 86, 90, 0.78);
}

.sb-hero__sep {
  opacity: 0.55;
}

.sb-hero__media {
  margin: 0 0 2rem;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #efecca;
  aspect-ratio: 16 / 9;
}

.sb-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Article body —— */
.sb-content {
  max-width: 42.5rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.sb-content > *:first-child {
  margin-top: 0;
}

.sb-content > * + * {
  margin-top: 1.15em;
}

.sb-content h2,
.sb-content h3,
.sb-content h4 {
  margin: 1.75em 0 0.55em;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #5e565a;
}

.sb-content h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.7rem);
}

.sb-content h3 {
  font-size: clamp(1.2rem, 2vw, 1.35rem);
}

.sb-content h4 {
  font-size: 1.1rem;
}

.sb-content p {
  margin: 0;
}

.sb-content a {
  color: #ff934f;
  text-underline-offset: 0.15em;
}

.sb-content a:hover,
.sb-content a:focus-visible {
  color: #e67a35;
}

.sb-content ul,
.sb-content ol {
  padding-left: 1.25rem;
}

.sb-content li + li {
  margin-top: 0.4em;
}

.sb-content blockquote {
  margin: 1.5em 0;
  padding: 0.85rem 0 0.85rem 1.15rem;
  border-left: 3px solid #ff934f;
  color: rgba(94, 86, 90, 0.9);
  font-style: italic;
}

.sb-content img,
.sb-content .wp-block-image img,
.sb-content .elementor-widget-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.sb-content figure {
  margin: 1.5em 0;
}

.sb-content figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(94, 86, 90, 0.7);
}

.sb-content iframe,
.sb-content video,
.sb-content embed,
.sb-content object,
.sb-content .wp-block-embed__wrapper iframe {
  max-width: 100%;
}

.sb-content .wp-block-embed,
.sb-content .wp-block-video {
  margin: 1.5em 0;
}

.sb-content .wp-block-embed__wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
}

.sb-content .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sb-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.sb-content :where(.wp-block-table, .table-wrap),
.sb-content > .wp-block-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Raw HTML tables without block wrapper */
.sb-content > table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sb-content th,
.sb-content td {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(94, 86, 90, 0.18);
  text-align: left;
}

.sb-content pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #f7f5ea;
  font-size: 0.9rem;
}

.sb-page-links {
  margin-top: 1.5rem;
  font-weight: 500;
}

/* —— Taxonomies —— */
.sb-article__footer {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(94, 86, 90, 0.12);
}

.sb-tax__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(94, 86, 90, 0.65);
}

.sb-tax__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sb-tax__list a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: #efecca;
  color: #5e565a;
  font-size: 0.875rem;
  text-decoration: none;
}

.sb-tax__list a:hover,
.sb-tax__list a:focus-visible {
  background: #ff934f;
  color: #fff;
}

/* —— Prev / next —— */
.sb-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(94, 86, 90, 0.12);
}

.sb-post-nav__link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: #efecca;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sb-post-nav__link:hover,
.sb-post-nav__link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  color: inherit;
}

.sb-post-nav__link.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.sb-post-nav__link--next {
  text-align: right;
  justify-self: end;
  width: 100%;
}

.sb-post-nav__dir {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ff934f;
}

.sb-post-nav__title {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
  color: #5e565a;
}

/* —— Sidebar —— */
.sb-sidebar {
  min-width: 0;
}

.sb-sidebar__inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .sb-sidebar__inner {
    position: sticky;
    top: 6.5rem;
  }
}

.sb-widget {
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: #efecca;
}

.sb-widget__title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #5e565a;
}

.sb-widget .bs-search-form {
  display: grid;
  gap: 0.65rem;
}

.sb-widget .bs-search-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sb-widget .bs-search-form input[type="search"] {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(94, 86, 90, 0.2);
  border-radius: 0.75rem;
  background: #fff;
  color: #5e565a;
  font-size: 1rem;
}

.sb-widget .bs-search-form button {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: #ff934f;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.sb-widget .bs-search-form button:hover,
.sb-widget .bs-search-form button:focus-visible {
  filter: brightness(0.96);
}

.sb-recent {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sb-recent__item + .sb-recent__item {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(94, 86, 90, 0.12);
}

.sb-recent__link {
  display: grid;
  gap: 0.25rem;
  color: inherit;
  text-decoration: none;
}

.sb-recent__link:hover .sb-recent__title,
.sb-recent__link:focus-visible .sb-recent__title {
  color: #ff934f;
}

.sb-recent__title {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
  color: #5e565a;
  transition: color 0.2s ease;
}

.sb-recent__date {
  font-size: 0.8125rem;
  color: rgba(94, 86, 90, 0.7);
}

.sb-comments {
  margin-top: 2.5rem;
}

.sb-primary .bs-related {
  margin-top: 2.75rem;
}

/* —— Responsive —— */
@media (max-width: 991px) {
  .sb-layout {
    grid-template-columns: 1fr;
  }

  .sb-sidebar {
    order: 2;
  }

  .sb-primary {
    order: 1;
  }

  .sb-sidebar__inner {
    position: static;
  }

  .sb-widget,
  .sb-widget .bs-search-form,
  .sb-widget .bs-search-form input[type="search"],
  .sb-widget .bs-search-form button {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .sb-shell {
    padding: 1.75rem 1rem 3.5rem;
  }

  .sb-hero__media {
    border-radius: 1rem;
    margin-bottom: 1.5rem;
  }

  .sb-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .sb-post-nav {
    grid-template-columns: 1fr;
  }

  .sb-post-nav__link--next {
    text-align: left;
    justify-self: stretch;
  }

  .sb-post-nav__link.is-empty {
    display: none;
  }
}

@media (max-width: 575px) {
  .sb-hero__title {
    font-size: clamp(1.55rem, 7vw, 1.9rem);
  }
}
