/* Blog uses the shared SoberRise palette and typography. */
.blog-page { padding-top: 10rem; padding-bottom: var(--space-section); }
.blog-intro { text-align: center; max-width: 760px; margin: 0 auto 4rem; }
.blog-intro h1 { font-size: var(--heading-hero); letter-spacing: -.065em; line-height: 1.05; margin-bottom: 1.5rem; }
.blog-intro h1 span { color: var(--primary); }
.blog-intro > p:last-child { color: var(--text-sub); max-width: 600px; margin: auto; font-size: 1.0625rem; line-height: 1.8; }
.blog-nav-active { color: var(--primary) !important; background: var(--primary-muted); }
.blog-featured { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--surface); margin-bottom: 4rem; }
.blog-featured-copy { padding: var(--space-card); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.blog-featured h2 { font-size: var(--heading-large); line-height: 1.12; letter-spacing: -.055em; margin-bottom: 1.5rem; }
.blog-featured-copy > p:not(.section-eyebrow) { color: var(--text-sub); margin-bottom: 1.75rem; }
.blog-link { color: var(--primary); font-weight: 700; display: inline-flex; align-items: center; gap: .75rem; min-height: 48px; }
.blog-link::after { content: '↗'; }
.blog-section-title { font-size: 1.75rem; letter-spacing: -.04em; margin-bottom: 1.5rem; }
.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.blog-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.blog-card-copy { padding: var(--space-card); }
.blog-card h3 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -.04em; margin-bottom: 1rem; }
.blog-card-copy > p:not(.section-eyebrow) { color: var(--text-sub); margin-bottom: 1.25rem; }
.blog-card h3 a:hover, .blog-featured h2 a:hover { color: var(--primary); }
.blog-bottom { margin-top: 4rem; border-radius: var(--radius-xl); background: var(--primary-muted); padding: 3rem 2rem; text-align: center; }
.blog-bottom h2 { font-size: 2rem; letter-spacing: -.04em; }
.blog-bottom p { color: var(--text-sub); margin: .75rem auto 1.5rem; }
.blog-footer { border-top: 1px solid var(--border); padding: 2rem 0; }
.blog-footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }
.blog-footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; color: var(--text-sub); font-size: .8125rem; }
.blog-footer-links a { min-height: 48px; display: inline-flex; align-items: center; }
.blog-footer-links a:hover { color: var(--primary); }
.blog-article { max-width: 760px; margin: auto; padding: 10rem 1.5rem 4rem; }
.blog-article header { margin: 2rem 0 3rem; }
.blog-article h1 { font-size: var(--heading-large); letter-spacing: -.055em; line-height: 1.12; margin-bottom: 1.5rem; }
.blog-article-lead { font-size: 1.125rem; color: var(--text-sub); line-height: 1.8; }
.blog-article-body h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; letter-spacing: -.035em; }
.blog-article-body p { margin-bottom: 1.25rem; color: var(--text-sub); line-height: 1.9; }
.blog-article-body ul { list-style: disc; padding-left: 1.5rem; color: var(--text-sub); }
.blog-article-body li { margin-bottom: .75rem; }
.blog-article-note { font-size: .8125rem; border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 3rem; color: var(--text-sub); }
.blog-related { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
@media (max-width: 860px) {
  .blog-featured { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .blog-page { padding-top: 8rem; }
  .blog-intro { margin-bottom: 2.5rem; }
  .blog-intro h1 { font-size: 3rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured h2 { font-size: 2.25rem; }
  .blog-article { padding-top: 8rem; }
  .blog-footer-inner { justify-content: center; }
}

/* Editorial covers: shared layout with a distinct, quiet pattern per topic. */
.editorial-cover { position: relative; display: flex; flex-direction: column; align-items: flex-start; aspect-ratio: 4 / 3; padding: var(--space-card); overflow: hidden; isolation: isolate; color: var(--text); background: var(--primary-muted); }
.editorial-cover-category { position: relative; z-index: 1; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--primary); margin-bottom: 1.75rem; }
.editorial-cover-title { position: relative; z-index: 1; font-size: clamp(2rem, 3.5vw, 3.5rem); line-height: 1.08; letter-spacing: -.055em; font-weight: 800; text-align: left; }
.editorial-cover-logo { position: absolute; z-index: 1; bottom: var(--space-card); left: var(--space-card); width: 44px; height: 44px; border-radius: var(--radius-md); }
.editorial-cover-pattern { position: absolute; z-index: 0; width: 90%; aspect-ratio: 1; bottom: -45%; right: -20%; border-radius: var(--radius-full); color: color-mix(in srgb, var(--primary) 18%, transparent); }
.editorial-cover--daily .editorial-cover-pattern { background-image: radial-gradient(circle, currentColor 2px, transparent 3px); background-size: 18px 18px; mask-image: radial-gradient(circle, black 15%, transparent 70%); }
.editorial-cover--journal { background: var(--accent-muted); }
.editorial-cover--journal .editorial-cover-pattern { color: color-mix(in srgb, var(--accent) 30%, transparent); background: repeating-radial-gradient(circle, transparent 0 28px, currentColor 29px 30px, transparent 31px 55px); bottom: -38%; right: -15%; }
.editorial-cover--connection { background: var(--success-muted); }
.editorial-cover--connection .editorial-cover-pattern { background: color-mix(in srgb, var(--success) 9%, transparent); border: 1px solid color-mix(in srgb, var(--success) 18%, transparent); width: 65%; bottom: -25%; right: -5%; }
.editorial-cover--connection .editorial-cover-pattern::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: inherit; background: inherit; transform: translate(-45%, -12%); }
a.editorial-cover:hover .editorial-cover-title { color: var(--primary); }
.blog-featured > .editorial-cover { min-height: 100%; }
.blog-article > article > .editorial-cover { border-radius: var(--radius-xl); margin: 0 0 2.5rem; }
@media (max-width: 860px) {
 .blog-featured > .editorial-cover { min-height: auto; }
 .editorial-cover-title { font-size: clamp(2rem, 7vw, 3.5rem); }
}

.blog-article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: .2em; }

/* Long-form guides reuse the existing editorial cover system. */
.blog-article-meta { color: var(--text-sub); font-size: .8125rem; margin-bottom: 1rem; }
.blog-safety, .blog-editorial-note { background: var(--accent-muted); border-left: 4px solid var(--accent); border-radius: var(--radius-md); padding: 1.5rem; margin: 0 0 2rem; }
.blog-safety h2 { font-size: 1.125rem; line-height: 1.4; margin: 0 0 .75rem; }
.blog-safety p, .blog-editorial-note p { color: var(--text); line-height: 1.8; margin: 0; }
.blog-safety a, .blog-editorial-note a { color: var(--primary); text-decoration: underline; text-underline-offset: .2em; }
.blog-article-body h3 { font-size: 1.125rem; line-height: 1.5; margin: 1.5rem 0 .5rem; }
.blog-table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: var(--radius-md); }
.blog-table-wrap table { border-collapse: collapse; width: 100%; min-width: 520px; text-align: left; }
.blog-table-wrap caption { text-align: left; font-size: .875rem; color: var(--text-sub); padding: 1rem; }
.blog-table-wrap th, .blog-table-wrap td { padding: 1rem; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.7; }
.blog-table-wrap th { background: var(--surface); font-weight: 700; }
.blog-table-wrap tr:last-child td { border-bottom: 0; }
.blog-faq, .blog-sources { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 2rem; }
.blog-sources { font-size: .875rem; }
.blog-sources li { overflow-wrap: anywhere; }

.blog-article-body h2 { scroll-margin-top: 8rem; }
.blog-table-wrap:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.blog-toc { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; margin: 1.5rem 0 2rem; }
.blog-toc h2 { font-size: 1.125rem; margin-bottom: .75rem; }
.blog-toc ul, .blog-toc ol { padding-left: 1.5rem; }
.blog-toc a { display: inline-flex; align-items: center; min-height: 44px; color: var(--primary); text-decoration: underline; text-underline-offset: .2em; }
.blog-toc summary { cursor: pointer; min-height: 44px; font-weight: 700; }
.blog-toc a:focus-visible, .blog-toc summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.blog-article-body section[id] { scroll-margin-top: 8rem; }
