/* BlogPilot blog styles. Every class starts with "bp-" so it will not clash with the rest of your website.
   Brand colour and font come from :root variables set in the page (--bp-primary, --bp-font). */
.bp-body { margin: 0; font-family: var(--bp-font, system-ui, sans-serif); color: #1f2937; background: #fff; line-height: 1.6; }
.bp-body *, .bp *, .bp-header *, .bp-footer * { box-sizing: border-box; }
.bp { font-family: var(--bp-font, inherit); color: #1f2937; line-height: 1.6; }
.bp img { max-width: 100%; height: auto; }
.bp-wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* built-in theme: header + footer */
.bp-header { background: #fff; border-bottom: 1px solid #e5e7eb; }
.bp-header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; flex-wrap: wrap; padding-block: .5rem; }
.bp-brand { text-decoration: none; color: #111827; font-weight: 800; font-size: 1.25rem; display: inline-flex; align-items: center; }
.bp-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.bp-nav a { color: #374151; text-decoration: none; font-weight: 600; font-size: .95rem; }
.bp-nav a:hover { color: var(--bp-primary); }
.bp-footer { background: #0f172a; color: #cbd5e1; padding: 2rem 0; margin-top: 3rem; font-size: .92rem; }
.bp-footer p { margin: 0; }

/* hero */
.bp-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--bp-primary) 88%, #000), var(--bp-primary)); color: #e8edff; padding: 2.6rem 0 3rem; }
.bp-hero h1 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem); line-height: 1.15; margin: .4rem 0 .5rem; max-width: 26ch; letter-spacing: -.02em; }
.bp-lead { max-width: 60ch; font-size: 1.1rem; opacity: .92; margin: .3rem 0 0; }
.bp-crumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; margin-bottom: 1rem; opacity: .9; }
.bp-crumbs a { color: #fff; text-decoration: none; }
.bp-crumbs a:hover { text-decoration: underline; }
.bp-hero .bp-meta { color: #dbe4ff; }

.bp-section { padding: 2.5rem 0; }
.bp-tint { background: #f3f4f8; }
.bp-h2 { font-size: 1.6rem; margin: 0 0 1.2rem; }
.bp-empty { text-align: center; color: #6b7280; padding: 3rem 0; }

/* cards */
.bp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.bp-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.bp-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px -12px rgba(15, 23, 42, .25); }
.bp-card-img { display: block; aspect-ratio: 16 / 10; background: #e5e7eb; overflow: hidden; }
.bp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, color-mix(in srgb, var(--bp-primary) 35%, #fff), var(--bp-primary)); }
.bp-card-b { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.bp-card h3 { font-size: 1.12rem; line-height: 1.3; margin: 0; }
.bp-card h3 a { color: #111827; text-decoration: none; }
.bp-card p { margin: 0; color: #4b5563; font-size: .95rem; }
.bp-more { margin-top: auto; padding-top: .3rem; color: var(--bp-primary); font-weight: 700; text-decoration: none; }
.bp-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; font-size: .82rem; color: #6b7280; }
.bp-pill { background: color-mix(in srgb, var(--bp-primary) 12%, #fff); color: var(--bp-primary); border-radius: 99px; padding: .15rem .65rem; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.bp-hero .bp-pill { background: rgba(255, 255, 255, .18); color: #fff; }

/* article */
.bp-article { max-width: 760px; margin-inline: auto; }
.bp-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; margin-bottom: 1.4rem; background: #e5e7eb; }
.bp-credit { font-size: .8rem; color: #6b7280; margin: -.8rem 0 1.4rem; }
.bp-article h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin: 2.2rem 0 .7rem; line-height: 1.25; }
.bp-article h3 { font-size: 1.25rem; margin: 1.6rem 0 .6rem; }
.bp-article p, .bp-article li { font-size: 1.06rem; line-height: 1.75; color: #374151; }
.bp-article p { margin: 0 0 1rem; }
.bp-article ul, .bp-article ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.bp-article a { color: var(--bp-primary); text-decoration: underline; text-underline-offset: 2px; }
.bp-article blockquote { margin: 1.6rem 0; padding: .8rem 1.2rem; border-left: 4px solid var(--bp-primary); background: color-mix(in srgb, var(--bp-primary) 8%, #fff); border-radius: 0 12px 12px 0; font-weight: 600; }
.bp-article table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.bp-article th, .bp-article td { border: 1px solid #e5e7eb; padding: .55rem .8rem; text-align: left; }
.bp-article th { background: #f3f4f6; }
.bp-toc { background: #f3f4f8; border: 1px solid #e5e7eb; border-radius: 14px; padding: 1rem 1.3rem; margin-bottom: 1.6rem; }
.bp-toc b { display: block; margin-bottom: .3rem; }
.bp-toc ol { margin: 0; padding-left: 1.2rem; }
.bp-toc a { text-decoration: none; font-size: .95rem; }
.bp-faq details { border-bottom: 1px solid #e5e7eb; }
.bp-faq summary { cursor: pointer; padding: 1rem 0; font-weight: 700; color: #111827; }
.bp-faq details[open] summary { color: var(--bp-primary); }
.bp-faq details p { margin: 0 0 1rem; }
.bp-cta { margin: 2.4rem 0; padding: 1.6rem; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--bp-primary) 85%, #000), var(--bp-primary)); color: #e8edff; }
.bp-cta h3 { color: #fff; margin: 0 0 .4rem; font-size: 1.3rem; }
.bp-cta p { color: #e8edff; margin: 0 0 1rem; }
.bp-article .bp-cta a, .bp-btn { display: inline-block; background: #fff; color: var(--bp-primary); font-weight: 800; padding: .7rem 1.3rem; border-radius: 10px; text-decoration: none; }
.bp-share { font-size: .9rem; color: #6b7280; }
.bp-pager { display: flex; gap: .5rem; justify-content: center; margin-top: 2.2rem; }
.bp-pager a, .bp-pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #e5e7eb; border-radius: 10px; font-weight: 700; text-decoration: none; color: #111827; }
.bp-pager .on { background: var(--bp-primary); border-color: var(--bp-primary); color: #fff; }

@media (max-width: 900px) { .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bp-grid { grid-template-columns: 1fr; } .bp-header-in { justify-content: center; } }
