/* /blog/[slug] v2 — white editorial reading */

.bp2 {
  --bp-ink: #171717;
  --bp-muted: #737373;
  --bp-line: #e5e5e5;
  --bp-soft: #fafafa;
  background: #fff;
  color: var(--bp-ink);
}

/* hero — centered text + same width 44rem for content boxes */
.bp2-hero {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .bp2-hero {
    padding: 4rem 2rem 2.5rem;
  }
}

.bp2-hero .bp2-crumb {
  justify-content: center;
}

.bp2-hero .bp2-crumb,
.bp2-hero .bp2-kicker,
.bp2-hero .bp2-meta-row {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.bp2-hero .bp2-title {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.bp2-hero .bp2-meta-row {
  justify-content: center;
}

.bp2-crumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bp-muted);
}

.bp2-crumb a {
  color: var(--bp-muted);
  text-decoration: none;
}

.bp2-crumb a:hover {
  color: var(--bp-ink);
}

.bp2-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bp-muted);
}

.bp2-title {
  margin: 0 0 0.8rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.bp2-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bp-muted);
  margin-bottom: 1.75rem;
}

.bp2-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--bp-line);
}

.bp2-hero__fig {
  margin: 0;
  border: 1px solid var(--bp-line);
  border-radius: 0.6rem;
  overflow: hidden;
  background: var(--bp-soft);
}

.bp2-hero__fig img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* body 3 cols */
.bp2-body {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .bp2-body {
    padding: 0 2rem 4rem;
  }
}

@media (min-width: 1000px) {
  .bp2-body {
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
  }
}

.bp2-toc {
  flex-shrink: 0;
}

@media (max-width: 999px) {
  .bp2-toc {
    position: sticky;
    top: var(--header-h, 4rem);
    z-index: 15;
    margin: 0 -1.25rem;
    padding: 0.65rem 1.25rem 0.75rem;
    background: rgb(255 255 255 / 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bp-line);
  }
}

@media (min-width: 768px) and (max-width: 999px) {
  .bp2-toc {
    margin: 0 -2rem;
    padding: 0.65rem 2rem 0.75rem;
  }
}

@media (min-width: 1000px) {
  .bp2-toc {
    position: sticky;
    top: 100px;
    width: 16rem;
  }
}

.bp2-toc__label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bp-muted);
}

@media (max-width: 999px) {
  .bp2-toc__label {
    display: none;
  }
}

.bp2-toc__list {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.bp2-toc__list::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--bp-line);
}

@media (min-width: 1000px) {
  .bp2-toc__list {
    display: block;
  }
}

.bp2-toc__list li {
  position: relative;
}

.bp2-toc__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background 0.18s;
}

.bp2-toc__list li.is-active::before {
  background: var(--bp-ink);
}

.bp2-toc__list a {
  display: block;
  padding: 0.5rem 0 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bp-muted);
  text-decoration: none;
  transition: color 0.18s;
}

.bp2-toc__list a:hover {
  color: var(--bp-ink);
}

.bp2-toc__list li.is-active a {
  color: var(--bp-ink);
  font-weight: 600;
}

.bp2-toc__item--h3 a {
  font-size: 0.82rem;
  padding-left: 1.5rem;
  font-weight: 500;
}

.bp2-toc__chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.bp2-toc__chips::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1000px) {
  .bp2-toc__chips {
    display: none;
  }
}

.bp2-toc__chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--bp-line);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bp-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: 0.18s;
}

.bp2-toc__chip.is-active {
  background: var(--bp-ink);
  border-color: var(--bp-ink);
  color: #fff;
}

/* main article */
.bp2-main {
  min-width: 0;
  max-width: 44rem;
}

.bp2-article {
  font-size: 1.06rem;
  line-height: 1.8;
  color: #262626;
  overflow-wrap: anywhere;
}

.bp2-article img {
  max-width: 100%;
  height: auto;
  border-radius: 0.6rem;
  border: 1px solid var(--bp-line);
  margin: 1.25rem 0;
}

.bp2-article h2,
.bp2-article h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.25;
  scroll-margin-top: 6rem;
  color: var(--bp-ink);
}

.bp2-article h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 2.25rem 0 0.85rem;
  letter-spacing: -0.015em;
}

.bp2-article h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.6rem;
  font-weight: 500;
}

.bp2-article p {
  margin: 0 0 1.15rem;
}

.bp2-article a {
  color: var(--bp-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.bp2-article ul,
.bp2-article ol {
  padding-left: 1.25rem;
  margin: 0 0 1.15rem;
}

.bp2-article li {
  margin-bottom: 0.4rem;
}

.bp2-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 1.25rem;
}

.bp2-tag {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--bp-soft);
  border: 1px solid var(--bp-line);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bp-ink);
  text-decoration: none;
}

.bp2-share-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bp-line);
  margin-top: 0.5rem;
}

.bp2-like,
.bp2-share {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--bp-line);
  background: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bp-ink);
  cursor: pointer;
}

.bp2-like:hover,
.bp2-share:hover {
  border-color: #a3a3a3;
}

.bp2-like[data-liked="1"] {
  border-color: #171717;
  background: #171717;
  color: #fff;
}

/* side share desktop */
.bp2-side {
  display: none;
}

@media (min-width: 1000px) {
  .bp2-side {
    display: block;
    width: 3rem;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
  }
}

.bp2-side__box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  padding: 0.6rem 0;
  border: 1px solid var(--bp-line);
  border-radius: 999px;
  background: #fff;
}

.bp2-side__like,
.bp2-side__share {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--bp-ink);
  cursor: pointer;
  font: inherit;
}

.bp2-side__like:hover,
.bp2-side__share:hover {
  background: var(--bp-soft);
}

.bp2-side__count {
  font-size: 0.7rem;
  font-weight: 700;
}

/* related — inside bp2-bottom, same width */
.bp2-related {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-top: 1px solid var(--bp-line);
  padding-top: 2rem;
  margin-top: 0;
}

@media (min-width: 768px) {
  .bp2-related {
    padding-top: 2.5rem;
  }
}

.bp2-related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.bp2-related__head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.3rem;
}

.bp2-related__more {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bp-ink);
  text-decoration: none;
}

.bp2-related__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .bp2-related__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bp2-related__card {
  border: 1px solid var(--bp-line);
  border-radius: 0.6rem;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}

.bp2-related__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.06);
}

.bp2-related__media {
  aspect-ratio: 16 / 10;
  background: var(--bp-soft);
  overflow: hidden;
}

.bp2-related__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp2-related__ph {
  width: 100%;
  height: 100%;
  background: #e5e5e5;
}

.bp2-related__card .bp2-meta {
  display: block;
  padding: 0.7rem 0.9rem 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bp-muted);
}

.bp2-related__card h3 {
  margin: 0.2rem 0 0;
  padding: 0 0.9rem 0.9rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
}

/* bottom: author + related + comments — full width 72rem like hero/body */
.bp2-bottom {
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .bp2-bottom {
    padding: 0 2rem 5rem;
  }
}

.bp2-bottom > .bp2-author-box,
.bp2-bottom > .bp2-related,
.bp2-bottom > .bp2-comments {
  max-width: 100%;
  width: 100%;
}

.bp2-author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1.25rem;
  border: 1px solid var(--bp-line);
  border-radius: 0.65rem;
  background: var(--bp-soft);
}

.bp2-author__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--bp-line);
}

.bp2-author__name {
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bp-ink);
}

.bp2-author__bio {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--bp-muted);
}

.bp2-author__link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bp-ink);
  text-decoration: none;
}

.bp2-author__link:hover {
  text-decoration: underline;
}

.bp2-comments {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--bp-line);
  border-radius: 0.65rem;
  padding: 1.25rem;
  background: #fff;
}

.bp2-related {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.bp2-comments h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
}

.bp2-comments__lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--bp-muted);
}

.bp2-comments__row {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .bp2-comments__row {
    grid-template-columns: 1fr 1fr;
  }
}

.bp2-comments__form input,
.bp2-comments__form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--bp-line);
  border-radius: 0.5rem;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
  outline: 0;
}

.bp2-comments__form input:focus,
.bp2-comments__form textarea:focus {
  border-color: #a3a3a3;
}

.bp2-comments__form textarea {
  resize: vertical;
  min-height: 6rem;
}

.bp2-comments__submit {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--bp-ink);
  background: var(--bp-ink);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.bp2-comments__submit:hover {
  background: #000;
}

.bp2-comments__note {
  margin: 0.6rem 0 0;
  font-size: 0.76rem;
  color: var(--bp-muted);
}

/* sticky mobile */
.bp2-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--bp-line);
  padding: 0.6rem 1rem;
  transform: translateY(100%);
  transition: transform 0.25s;
}

.bp2-sticky.is-visible {
  transform: translateY(0);
}

.bp2-sticky[hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}

.bp2-sticky__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bp2-sticky__title {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 18rem;
}

.bp2-sticky__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.bp2-like--sm,
.bp2-share--sm {
  min-height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.78rem;
}

@media (min-width: 1000px) {
  .bp2-sticky {
    display: none !important;
  }
}
