/* NeatScore blog — builds on site.css */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; }
.nav a[aria-current="page"] { color: #fff; }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-size: 14px; }
.crumbs li { color: #9fb0cc; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: #5d6f91; }
.crumbs a { color: #C9D2E3; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li[aria-current] { color: #fff; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Meta line + chips */
.nowrap { white-space: nowrap; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.chip { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: var(--lime); padding: 3px 9px; border-radius: 999px; }

/* Archive */
.blog-hero h1 { max-width: 20ch; }
.blog-list { padding-top: clamp(40px, 6vw, 70px); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card-img { display: block; aspect-ratio: 16 / 9; background: var(--mist); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy), var(--mid)); }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card-title { font-size: 20px; line-height: 1.25; margin: 4px 0 10px; }
.post-card-title a { text-decoration: none; }
.post-card-title a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.post-card-excerpt { color: var(--muted); font-size: 15.5px; margin: 0 0 16px; }
.read-more { margin-top: auto; font-weight: 800; font-size: 15px; color: var(--navy); text-decoration: none; }
.read-more:hover { text-decoration: underline; }

.post-featured { margin-bottom: 30px; }
.post-featured .post-card { display: grid; grid-template-columns: 1.25fr 1fr; }
.post-featured .post-card-img { aspect-ratio: auto; min-height: 100%; }
.post-featured .post-card-body { padding: clamp(22px, 3vw, 40px); justify-content: center; }
.post-featured .post-card-title { font-size: clamp(24px, 2.8vw, 32px); }
.post-featured .read-more { margin-top: 6px; }
@media (max-width: 820px) { .post-featured .post-card { grid-template-columns: 1fr; } .post-featured .post-card-img { aspect-ratio: 16 / 9; } }

.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; color: var(--muted); font-weight: 600; font-size: 15px; }

/* Post */
.wrap--post { max-width: 820px; }
.wrap--cover { max-width: 1040px; }
.post-hero { background: var(--navy); color: #fff; padding: clamp(36px, 5vw, 60px) 0 clamp(90px, 12vw, 150px); }
.post-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 50px); margin-bottom: 14px; }
.post-hero .post-meta { color: #B9C4D8; }
.post-lede { color: #C9D2E3; font-size: clamp(17px, 2vw, 20px); margin: 0 0 10px; }
.post-byline { color: #9fb0cc; font-size: 14.5px; font-weight: 600; margin: 0; }
.post-cover { margin: calc(-1 * clamp(70px, 10vw, 120px)) auto 0; padding: 0 22px; }
.post-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--mist); }
.post-cover figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: right; }
.post-cover figcaption a { color: inherit; }

.post-layout { padding-top: 34px; padding-bottom: 60px; }
.toc { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 30px; }
.toc-title { font-weight: 800; margin: 0 0 8px; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { color: var(--navy); font-weight: 600; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.post-body { max-width: none; font-size: 17.5px; line-height: 1.75; }
.post-body > :first-child { margin-top: 0; }
.post-body h2 { font-size: clamp(24px, 3vw, 30px); margin: 46px 0 14px; scroll-margin-top: 90px; }
.post-body h3 { font-size: 20px; margin: 30px 0 10px; scroll-margin-top: 90px; }
.post-body p, .post-body li { color: #2c3a47; font-size: 17.5px; }
.post-body ul, .post-body ol { padding-left: 24px; margin: 0 0 1.2em; }
.post-body li { margin-bottom: 8px; }
.post-body li::marker { color: var(--navy); font-weight: 800; }
.post-body a { color: var(--navy); font-weight: 700; text-decoration-color: var(--lime-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post-body strong { color: var(--ink); }
.post-body blockquote { margin: 26px 0; padding: 16px 20px; background: #F1FBDC; border-left: 5px solid var(--lime); border-radius: 0 14px 14px 0; }
.post-body blockquote p { margin: 0; }
.post-body blockquote p + p { margin-top: 8px; }
.post-body code { background: var(--mist); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.post-body pre { background: var(--navy); color: #e7ecef; padding: 16px; border-radius: 12px; overflow: auto; }
.post-body pre code { background: none; padding: 0; }
.post-body figure { margin: 26px 0; }
.post-body figure img { border-radius: 14px; }
.post-body figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.table-wrap { overflow-x: auto; margin: 22px 0 28px; border: 1px solid var(--line); border-radius: 14px; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 520px; }
.post-body th { text-align: left; background: var(--mist); font-weight: 800; padding: 11px 14px; }
.post-body td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; color: #2c3a47; }

.post-cta { margin: 44px 0 26px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--navy); color: #fff; }
.post-cta-title { font-size: 22px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.01em; }
.post-cta p { color: #C9D2E3; }
.post-cta .btn-row { margin: 18px 0 0; }
.post-cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }

.post-share { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: 15px; font-weight: 700; color: var(--muted); }
.post-share a { color: var(--navy); }

.related { padding: clamp(50px, 7vw, 80px) 0; background: var(--mist); }
.related h2 { margin-bottom: 26px; }
.related .center { margin-top: 30px; }
.home-blog .center { margin-top: 30px; }

@media (prefers-color-scheme: dark) {
  .post-card { background: #131A1E; border-color: #243037; }
  .post-card-excerpt, .post-meta { color: #9FADB9; }
  .read-more, .toc a, .post-share a, .post-body a { color: var(--lime); }
  .toc { background: #10171B; border-color: #243037; }
  .post-body p, .post-body li, .post-body td { color: #C9D3DB; }
  .post-body strong, .post-body h2, .post-body h3 { color: #F1F4F6; }
  .post-body li::marker { color: var(--lime); }
  .post-body blockquote { background: #1d2a0d; }
  .post-body th { background: #10171B; }
  .post-body code { background: #10171B; }
  .table-wrap { border-color: #243037; }
  .post-body td { border-color: #243037; }
  .related { background: #10171B; }
  .post-cover figcaption { color: #9FADB9; }
}

@media print {
  .post-cta, .post-share, .related, .toc, .crumbs, .skip-link { display: none !important; }
  .post-hero { background: none; color: #000; padding: 0 0 20px; }
  .post-hero h1, .post-lede, .post-byline, .post-hero .post-meta { color: #000; }
  .post-cover { margin-top: 0; }
}

/* Admin preview banner */
.preview-bar { position: sticky; top: 0; z-index: 90; background: #FFF4D6; color: #6b4a00; text-align: center; font-weight: 700; padding: 8px 14px; font-size: 14px; }

/* Numbered blog pagination */
.pager--numbers { display: flex; justify-content: center; margin-top: 40px; }
.pager--numbers ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; align-items: center; }
.pager--numbers .pg-num, .pager--numbers .pg-arrow {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px;
  border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 700; font-size: 15px; text-decoration: none; transition: border-color .15s, background .15s;
}
.pager--numbers a:hover { border-color: var(--navy); }
.pager--numbers .is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager--numbers .pg-arrow { font-size: 20px; line-height: 1; }
.pager--numbers .is-disabled { opacity: .35; }
.pager--numbers .pg-gap { color: var(--muted); padding: 0 4px; }
@media (prefers-color-scheme: dark) {
  .pager--numbers .pg-num, .pager--numbers .pg-arrow { background: #131A1E; border-color: #243037; color: #E7ECEF; }
  .pager--numbers .is-current { background: var(--lime); border-color: var(--lime); color: var(--navy); }
}
