/* Native blog (blog.php / blog-post.php). Uses the main site design tokens from header.php :root. */
/* Layout container — same values as .app-container on the homepage */
.nyb-wrap { max-width: 1040px; margin: 0 auto; padding: 12px 20px 32px; display: flex; flex-direction: column; gap: 12px; width: 100%; }

/* Breadcrumb — same look as .view-breadcrumb on app pages */
.nyb-crumb { background: #FFFFFF; padding: 8px 14px; border-radius: 10px; border: 1px solid #ECEDF7; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; width: max-content; max-width: 100%; }
.nyb-crumb a { font-size: 12px; font-weight: 700; color: var(--text-muted, #64748B); transition: color .2s; }
.nyb-crumb a:hover { color: var(--brand-primary, #4F46E5); }
.nyb-crumb span { font-size: 12px; font-weight: 800; color: var(--brand-dark, #3730A3); letter-spacing: .3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.nyb-crumb svg { width: 10px; height: 10px; stroke: #CBD5E1; stroke-width: 3; flex-shrink: 0; }

/* Cards — same as .seo-master-card / .review-card */
.nyb-card { background: #FFFFFF; border: 1px solid #ECEDF7; border-radius: 14px; box-shadow: 0 1px 2px rgba(30, 27, 75, .04); }
.nyb-list-head, .nyb-empty { padding: 18px 20px; }
.nyb-title { font-size: 20px; line-height: 1.35; font-weight: 700; color: var(--brand-forest, #1E1B4B); letter-spacing: -.2px; }
.nyb-intro, .nyb-empty p { margin-top: 8px; font-size: 13px; line-height: 1.75; color: var(--text-muted, #64748B); font-weight: 500; }
.nyb-intro a, .nyb-empty a { color: var(--brand-dark, #3730A3); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(55, 48, 163, .3); text-underline-offset: 2px; }
.nyb-sec { margin: 8px 0 0; }

/* Listing grid */
.nyb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nyb-post-card { display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.nyb-post-card:hover { border-color: #C7D2FE; box-shadow: 0 6px 16px -8px rgba(55, 48, 163, .35); transform: translateY(-1px); }
.nyb-thumb { display: block; aspect-ratio: 16 / 9; background: var(--brand-mint, #E0E7FF); overflow: hidden; }
.nyb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nyb-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nyb-date { font-size: 11px; font-weight: 600; color: var(--brand-dark, #3730A3); text-transform: uppercase; letter-spacing: .5px; }
.nyb-card-title { font-size: 14.5px; line-height: 1.4; font-weight: 700; color: var(--text-dark, #16163A); }
.nyb-card-title a:hover { color: var(--brand-dark, #3730A3); }
.nyb-excerpt { font-size: 12.5px; line-height: 1.65; color: var(--text-muted, #64748B); font-weight: 500; flex: 1; }
.nyb-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 8px 14px; border-radius: 10px; background: var(--brand-gradient, linear-gradient(135deg, #4F46E5 0%, #3730A3 100%)); color: #FFFFFF; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; box-shadow: 0 6px 16px -8px rgba(55, 48, 163, .55); transition: filter .2s, transform .2s; }
.nyb-btn:hover { filter: brightness(1.08); }
.nyb-btn:active { transform: scale(.97); }
.nyb-btn svg { width: 14px; height: 14px; }


/* Article */
.nyb-article { padding: 22px 24px 26px; }
.nyb-article-head { max-width: 760px; }
.nyb-article .nyb-title { font-size: 24px; }
.nyb-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--text-muted, #64748B); }
.nyb-meta span + span::before { content: "•"; margin-right: 14px; color: #CBD5E1; }
.nyb-hero { margin: 16px 0 4px; max-width: 760px; border-radius: 12px; overflow: hidden; background: var(--brand-mint, #E0E7FF); }
.nyb-hero img { display: block; width: 100%; height: auto; }

/* Article body typography (main site resets margins/padding globally) */
.nyb-content { max-width: 760px; margin-top: 16px; font-size: 15px; line-height: 1.8; color: #334155; font-weight: 500; overflow-wrap: anywhere; }
.nyb-content > * + * { margin-top: 14px; }
.nyb-content h2 { margin-top: 28px; font-size: 19px; line-height: 1.4; font-weight: 700; color: #312E81; }
.nyb-content h3 { margin-top: 22px; font-size: 16px; line-height: 1.45; font-weight: 700; color: var(--text-dark, #16163A); }
.nyb-content h4 { margin-top: 18px; font-size: 15px; font-weight: 700; color: var(--text-dark, #16163A); }
.nyb-content a { color: var(--brand-dark, #3730A3); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(55, 48, 163, .3); text-underline-offset: 2px; }
.nyb-content a:hover { text-decoration-color: currentColor; }
.nyb-content strong { color: var(--text-dark, #16163A); font-weight: 700; }
.nyb-content ul, .nyb-content ol { padding-left: 1.3em; }
.nyb-content li + li { margin-top: 6px; }
.nyb-content li::marker { color: var(--brand-primary, #4F46E5); }
.nyb-content img { max-width: 100%; height: auto; border-radius: 10px; }
.nyb-content figure { margin-left: 0; margin-right: 0; }
.nyb-content figcaption { font-size: 12px; color: var(--text-muted, #64748B); margin-top: 6px; }
.nyb-content blockquote { border-left: 3px solid var(--brand-primary, #4F46E5); background: #F5F6FB; padding: 12px 16px; border-radius: 0 10px 10px 0; color: #312E81; }
.nyb-content table { width: 100%; border-collapse: collapse; font-size: 13.5px; display: block; overflow-x: auto; }
.nyb-content th, .nyb-content td { border: 1px solid #ECEDF7; padding: 8px 10px; text-align: left; vertical-align: top; }
.nyb-content th { background: #EEF2FF; color: #312E81; font-weight: 700; }
.nyb-content hr { border: 0; border-top: 1px solid #ECEDF7; margin: 24px 0; }
.nyb-related { display: flex; flex-direction: column; gap: 10px; }

/* Pagination */
.nyb-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 6px; }
.nyb-page { min-width: 36px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #FFFFFF; border: 1px solid #ECEDF7; font-size: 13px; font-weight: 600; color: #475569; }
.nyb-page.current { background: #EEF2FF; color: #312E81; border-color: #C7D2FE; }

/* Screen-reader-only text (descriptive "Read guide" links) */
.nyb-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Migrated WordPress block markup */
.nyb-content figure.wp-block-table { overflow-x: auto; }
.nyb-content figure.wp-block-table table { display: table; }
.nyb-content .wp-block-image { text-align: center; }
.nyb-content .wp-block-image img { display: inline-block; }
.nyb-kicker { font-size: 11px; font-weight: 700; color: var(--brand-primary, #4F46E5); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }

/* Responsive — same breakpoints as the main site (900 / 600 px) */
@media (min-width: 1100px) { .nyb-wrap { max-width: 1100px; } }
@media (max-width: 1100px) { .nyb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .nyb-wrap { padding: 4px 12px 24px; gap: 10px; }
    .nyb-grid { grid-template-columns: 1fr; gap: 10px; }
    .nyb-list-head, .nyb-empty { padding: 16px; }
    .nyb-title { font-size: 18px; }
    .nyb-article { padding: 16px 16px 20px; }
    .nyb-article .nyb-title { font-size: 20px; }
    .nyb-content { font-size: 14.5px; line-height: 1.75; }
    .nyb-content h2 { font-size: 17px; }
    .nyb-crumb span { max-width: 26ch; }
}
