/* Blog-specific layout. Global shell, nav, footer, tokens, and typography come from shared/site.css. */

.blog-hero {
  padding-bottom: 0;
}

.blog-hero .hero-display {
  max-width: 980px;
  margin-bottom: 72px;
}

.blog-hero .hero-byline {
  grid-template-columns: 180px minmax(0, 760px);
  gap: 60px;
  align-items: start;
  max-width: 1040px;
  padding: 46px 0 92px;
}

.blog-list {
  padding-top: 80px;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 860px;
  padding: 0 0 44px;
  border-bottom: 1px solid rgba(255,123,26,0.14);
  color: inherit;
  text-decoration: none;
  text-decoration-line: none;
  transition: border-color 0.3s var(--rb-ease);
}

.blog-card:hover {
  border-bottom-color: rgba(255,123,26,0.45);
}

.blog-card:hover h2 {
  color: #FF7B1A;
}

.blog-card:hover p {
  color: rgba(255,255,255,0.78);
}

.blog-card,
.blog-card * {
  text-decoration: none;
  text-decoration-line: none;
}

.blog-date {
  margin-bottom: 32px;
}

.blog-date span {
  color: #FF7B1A;
}

.blog-card h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  transition: color 0.3s var(--rb-ease);
}

.blog-card h2 .accent {
  color: #FF7B1A;
  font-family: var(--rb-font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
}

.blog-card p {
  max-width: 780px;
  color: rgba(255,255,255,0.65);
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.6;
  transition: color 0.3s var(--rb-ease);
}

.article-head {
  padding-bottom: 0;
}

.article-head .hero-meta {
  gap: 24px;
}

.article-head .hero-meta-block {
  min-width: 0;
}

.article-head .hero-meta-block .val {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.article-head .hero-display {
  max-width: 1040px;
  margin-bottom: 72px;
}

.article-summary {
  display: grid;
  grid-template-columns: 180px minmax(0, 760px);
  gap: 60px;
  align-items: start;
  max-width: 1040px;
  padding: 52px 0 120px;
  border-top: 1px solid rgba(255,123,26,0.2);
}

.article-summary .label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.article-summary p {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.55;
  text-wrap: pretty;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 260px;
  gap: 80px;
  align-items: start;
}

.article-content p,
.article-content li {
  color: rgba(255,255,255,0.78);
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.7;
}

.article-content p {
  margin-bottom: 24px;
}

.article-content h2 {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 64px 0 20px;
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.article-content h2::before {
  content: "";
  flex: 0 0 42px;
  height: 1px;
  background: #FF7B1A;
}

.article-content h2 .accent {
  color: #FF7B1A;
  font-family: var(--rb-font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
}

.article-content > ul {
  list-style: disc;
  margin: 0 0 30px;
  padding-left: 1.1em;
}

.article-content > ul li::marker {
  color: rgba(255,255,255,0.78);
  font-size: 0.72em;
}

.article-steps {
  margin: 0 0 30px;
  padding-left: 1.25em;
}

.article-steps li::marker {
  color: #FF7B1A;
  font-family: var(--rb-font-mono);
  font-size: 0.78em;
  letter-spacing: 0;
}

.article-content li {
  margin-bottom: 12px;
}

.article-content a,
.article-references a {
  color: #FF7B1A;
  text-decoration: none;
  transition: color 0.3s var(--rb-ease);
}

.article-content a:hover,
.article-references a:hover {
  color: #fff;
}

.article-references {
  margin-top: 72px;
  padding-top: 12px;
}

.article-references ol {
  margin: 0;
  padding-left: 22px;
}

.article-references li {
  margin-bottom: 16px;
  color: rgba(255,255,255,0.62);
  font-size: 0.9rem;
  line-height: 1.55;
}

.article-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,123,26,0.18);
}

.share-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255,123,26,0.35);
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.74);
  font-family: var(--rb-font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s var(--rb-ease), border-color 0.3s var(--rb-ease), background 0.3s var(--rb-ease);
}

.share-link:hover {
  border-color: #FF7B1A;
  background: rgba(255,123,26,0.06);
  color: #FF7B1A;
}

.author-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,123,26,0.18);
}

.author-card img {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255,123,26,0.28);
  border-radius: 50%;
  object-fit: cover;
}

.author-eyebrow {
  margin-bottom: 8px;
  color: #FF7B1A;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.author-card h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}

.author-card h2::before {
  content: none;
}

.author-card p {
  margin: 0 0 14px;
  color: rgba(255,255,255,0.66);
  font-size: 0.94rem;
  line-height: 1.55;
}

.author-card a {
  color: #FF7B1A;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.author-card a:hover {
  color: #fff;
}

.article-aside {
  position: sticky;
  top: 100px;
  padding: 28px;
  border: 1px solid rgba(255,123,26,0.18);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}

.article-aside strong {
  display: block;
  margin-bottom: 12px;
  color: #FF7B1A;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.article-aside p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .blog-grid,
  .article-summary,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .blog-hero,
  .article-head {
    padding-bottom: 0;
  }

  .article-head .hero-meta {
    align-items: flex-start;
    gap: 18px;
  }

  .article-head .hero-meta-block {
    flex: 1 1 140px;
  }

  .blog-hero .hero-display,
  .article-head .hero-display {
    margin-bottom: 48px;
  }

  .blog-hero .hero-byline,
  .article-summary {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: 0;
    max-width: 100%;
    padding: 34px 0 40px;
  }

  .article-layout {
    gap: 48px;
  }

  .article-share {
    align-items: flex-start;
    flex-direction: column;
  }

  .share-actions {
    justify-content: flex-start;
  }

  .author-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .author-card img {
    width: 56px;
    height: 56px;
  }

  .article-content h2 {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 520px) {
  .article-head .hero-meta {
    letter-spacing: 0.18em;
  }

  .article-head .hero-meta-block[style] {
    text-align: left !important;
  }

  .article-head .hero-display {
    font-size: 2.35rem;
  }
}
