/* Blog-specific layout; typography, navigation and colors come from the site theme. */
.blog-page { --blog-line: #e9ecef; --blog-muted: #8492a6; --blog-primary: #2f55d4; }
.blog-page [hidden] { display: none !important; }
.blog-page :focus-visible { outline: 3px solid #2f55d4; outline-offset: 4px; }
.blog-page .skip-link { position: fixed; top: -100px; left: 20px; padding: 12px 20px; background: white; z-index: 1000; }
.blog-page .skip-link:focus { top: 12px; }
.blog-page #topnav { background: #fff; }
.blog-page #topnav .navbar-toggle { background: transparent; }
.blog-page #topnav .navbar-toggle > .lines { background: transparent; }
.blog-page #topnav .navbar-toggle.open > .lines { position: relative; top: auto; transform: none; width: 25px; }
.blog-page #main { padding-top: 74px; }
.blog-content { padding-top: 60px; padding-bottom: 80px; }
.masthead { padding: 80px 0; background-image: url('../images/shapes/shape2.png'); background-position: top; }
.masthead h1 { font-size: 45px !important; line-height: 1.4; margin: 20px 0; letter-spacing: 1px; }
.masthead h1 em { color: var(--blog-primary); font-style: normal; }
.eyebrow, .small-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--blog-primary); }
.masthead .eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-dot { width: 7px; height: 7px; background: var(--blog-primary); border-radius: 50%; }
.edition { margin-left: auto; color: var(--blog-muted); font-weight: 400; }
.masthead-bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.masthead-bottom p { color: var(--blog-muted); margin: 0; font-size: 18px; }
.issue-note { font-size: 12px; letter-spacing: 1px; text-align: right; color: var(--blog-muted); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-heading h2 { font-size: 26px !important; margin: 0; }
.section-heading > span { font-size: 11px; color: var(--blog-muted); letter-spacing: 1px; }
.journal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; }
.sidebar-card, .community-card, .post-card, .empty-state { padding: 28px; border: 1px solid var(--blog-line); border-radius: 6px; background: white; box-shadow: 0 0 3px rgba(60, 72, 88, .15); }
.sidebar-card { background: #f8f9fc; }
.community-card { margin-top: 24px; }
.sidebar h2, .community-card h3 { font-size: 24px !important; margin: 16px 0; }
.sidebar p, .post-card p, .empty-state p { color: var(--blog-muted); }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.topic-list span { border-radius: 6px; background: rgba(47, 85, 212, .1); color: var(--blog-primary); padding: 4px 10px; font-size: 12px; }
.community-card a, .read-link, .back-link { color: var(--blog-primary); font-weight: 600; }
.post-card { margin-bottom: 24px; }
.post-meta { font-size: 12px; display: flex; gap: 12px; align-items: center; color: var(--blog-muted); flex-wrap: wrap; }
.category { color: var(--blog-primary); font-weight: 700; }
.post-card h3 { font-size: 26px !important; margin: 16px 0; }
.post-card h3 a { color: #161c2d; }
.post-card h3 a:hover { color: var(--blog-primary); }
.post-card p { margin: 12px 0 22px; }
.read-link span { margin-left: 10px; }
.empty-state .edition-number { font-size: 12px; color: var(--blog-primary); letter-spacing: 1px; }
.empty-state h3 { font-size: 28px !important; margin: 24px 0 16px; }
.empty-state .small-label { display: block; border-top: 1px solid var(--blog-line); padding-top: 24px; margin-top: 30px; }
.blog-page .button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; background: var(--blog-primary); color: white; border: 1px solid var(--blog-primary); padding: 8px 20px; border-radius: 6px; font-size: 16px; font-weight: 600; letter-spacing: .5px; line-height: 1.5; box-shadow: 0 3px 5px 0 rgba(47, 85, 212, .3); transition: background .2s; }
.blog-page .button:hover { background: #2443ac; border-color: #2443ac; }
.blog-page .button-outline { background: transparent; color: var(--blog-primary); margin-top: 24px; }
.blog-page .button-outline:hover { background: var(--blog-primary); color: white; }
.blog-page button:disabled { cursor: wait; opacity: .6; }
.notice { padding: 18px 22px; border: 1px solid var(--blog-line); border-radius: 6px; background: #f8f9fc; margin: 24px 0; }
.notice a, .sources a, .source-refs a { color: var(--blog-primary); text-decoration: underline !important; text-underline-offset: 3px; }
.notice.error { display: block; border-color: #efb8ba; background: #fff2f2; color: #a52a32; }
.loading, .muted { color: var(--blog-muted); }
.back-link { display: inline-block; margin-bottom: 30px; }
.article-header { border-bottom: 1px solid var(--blog-line); padding-bottom: 30px; margin-bottom: 32px; }
.article-header h1 { font-size: 40px !important; line-height: 1.3; max-width: 950px; margin: 22px 0; overflow-wrap: anywhere; }
.article-summary { font-size: 20px; color: var(--blog-muted); max-width: 850px; }
.byline { font-size: 14px; color: var(--blog-muted); }
.article-body, .sources, .discussion { max-width: 800px; }
.article-body h2 { font-size: 26px !important; line-height: 1.4; margin: 38px 0 14px; }
.article-body p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.source-refs { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.sources { background: #f8f9fc; padding: 24px 28px; margin: 36px 0; border-radius: 6px; }
.sources h2 { font-size: 22px !important; margin-top: 0; }
.sources ol { padding-left: 22px; }
.sources li { margin: 14px 0; overflow-wrap: anywhere; }
.sources small { display: block; color: var(--blog-muted); }
.discussion { margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--blog-line); }
.blog-page label { display: block; font-weight: 600; margin-bottom: 10px; }
.blog-page label span { font-weight: 400; }
.blog-page textarea { display: block; width: 100%; resize: vertical; background: white; border: 1px solid #dee2e6; border-radius: 6px; padding: 14px; color: #161c2d; }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.form-bottom > span { font-size: 13px; }
.comment { border-bottom: 1px solid var(--blog-line); padding: 22px 0; }
.comment-header { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.comment-header time { font-size: 12px; color: var(--blog-muted); }
.comment p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0; }
.text-button { margin-left: auto; background: none; border: 0; color: var(--blog-primary); font-size: 13px; text-decoration: underline; }
.comment-error { color: #a52a32; }
.blog-brand-accent { color: #b970ff; }
@media (max-width: 991px) {
  .masthead { padding: 60px 0; }
  .journal-layout { grid-template-columns: minmax(0, 1fr); }
  .blog-page .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .community-card { margin-top: 0; }
  .issue-note { display: none; }
}
@media (max-width: 575px) {
  .masthead h1 { font-size: 34px !important; letter-spacing: 0; }
  .masthead-bottom p { font-size: 16px; }
  .edition { display: none; }
  .blog-content { padding-top: 40px; padding-bottom: 60px; }
  .blog-page .sidebar { grid-template-columns: minmax(0, 1fr); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .post-card, .sidebar-card, .community-card, .empty-state { padding: 24px; }
  .post-card h3, .empty-state h3 { font-size: 24px !important; }
  .article-header h1 { font-size: 30px !important; }
  .article-summary { font-size: 18px; }
  .form-bottom { align-items: flex-start; flex-direction: column; }
}
