/* bruknow.com blog. Loaded by website/blog/*.html on top of plans/base_client.html,
   whose :root already defines the brand palette (--navy --blue --cyan --lcyan
   --teal --dark --muted); nothing here re-declares a colour. */

.blog { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto;
        padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 40px) 96px; }
.blog a { color: inherit; text-decoration: none; }
.blog-grad { background: linear-gradient(120deg, var(--cyan) 0%, var(--blue) 55%, var(--teal) 110%);
             -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ── Hero ── */
.blog-hero { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.blog-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px;
                border: 1px solid var(--border-c); background: rgba(41, 182, 232, .06);
                color: var(--cyan); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.blog-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
                        box-shadow: 0 0 10px var(--cyan); }
.blog-hero h1 { font-family: "Sora", sans-serif; font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
                font-size: clamp(2.3rem, 6vw, 4rem); margin: 18px 0 14px; }
.blog-hero p { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); }

/* ── Toolbar: categories + search ── */
.blog-toolbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
                margin: 0 0 36px; padding: 10px; border-radius: 18px; border: 1px solid var(--border);
                background: rgba(15, 39, 68, .35); backdrop-filter: blur(14px); }
.blog-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.blog-chip { padding: 8px 16px; border-radius: 12px; font-size: .86rem; font-weight: 600; color: var(--muted);
             transition: color .2s, background .2s; }
.blog-chip:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.blog-chip.on { color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan));
                box-shadow: 0 6px 20px rgba(41, 182, 232, .25); }
.blog-search { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 42px; min-width: 240px;
               border-radius: 12px; border: 1px solid var(--border); background: rgba(7, 16, 31, .55); }
.blog-search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(41, 182, 232, .15); }
.blog-search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.blog-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: .92rem; }
.blog-search input::placeholder { color: var(--muted); }

/* ── Cover art: the image, or a branded gradient when there is none ── */
.blog-cover { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 0% 0%, rgba(41, 182, 232, .35), transparent 55%),
              radial-gradient(120% 120% at 100% 100%, rgba(10, 191, 163, .28), transparent 55%), var(--navy); }
.blog-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.blog-cover-mark { position: absolute; inset: 0; display: grid; place-items: center; }
.blog-cover-mark img { position: static; width: 80px; height: auto; opacity: .9; filter: drop-shadow(0 0 24px rgba(41, 182, 232, .6)); }

.blog-pill { display: inline-block; padding: 4px 11px; border-radius: 99px; font-size: .7rem; font-weight: 700;
             letter-spacing: .08em; text-transform: uppercase; color: var(--lcyan);
             background: rgba(41, 182, 232, .12); border: 1px solid rgba(41, 182, 232, .25); }
.blog-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.blog-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

/* ── Featured ── */
.blog-featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; margin-bottom: 40px; border-radius: 24px;
                 overflow: hidden; border: 1px solid var(--border-c); background: var(--card);
                 transition: border-color .25s, transform .25s, box-shadow .25s; }
.blog-featured:hover { border-color: rgba(41, 182, 232, .45); transform: translateY(-3px);
                       box-shadow: 0 24px 60px rgba(0, 0, 0, .35), 0 0 40px rgba(41, 182, 232, .08); }
.blog-featured:hover .blog-cover img { transform: scale(1.04); }
.blog-featured .blog-cover { min-height: 340px; }
.blog-featured-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.blog-featured-body h2 { font-family: "Sora", sans-serif; font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.15; letter-spacing: -.02em; }
.blog-featured-body p { color: rgba(255, 255, 255, .72); line-height: 1.65; }
.blog-read { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-weight: 700; font-size: .92rem; }
.blog-read span { transition: transform .2s; }
.blog-featured:hover .blog-read span, .blog-card:hover .blog-read span { transform: translateX(4px); }

/* ── Grid of cards ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--border);
             background: var(--card); transition: border-color .25s, transform .25s, box-shadow .25s; }
.blog-card:hover { border-color: rgba(41, 182, 232, .4); transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0, 0, 0, .35); }
.blog-card:hover .blog-cover img { transform: scale(1.05); }
.blog-card .blog-cover { aspect-ratio: 16 / 9; }
.blog-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-card h3 { font-family: "Sora", sans-serif; font-size: 1.12rem; line-height: 1.3; letter-spacing: -.01em; }
.blog-card p { color: rgba(255, 255, 255, .66); font-size: .92rem; line-height: 1.6; flex: 1;
               display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.blog-empty { text-align: center; padding: 72px 20px; border-radius: 24px; border: 1px dashed var(--border-c); color: var(--muted); }
.blog-empty h2 { font-family: "Sora", sans-serif; color: #fff; font-size: 1.4rem; margin-bottom: 8px; }

.blog-pages { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 44px; }
.blog-pages a, .blog-pages span { min-width: 42px; height: 42px; padding: 0 14px; display: inline-grid; place-items: center;
                                  border-radius: 12px; border: 1px solid var(--border); color: var(--muted); font-weight: 600; }
.blog-pages a:hover { color: #fff; border-color: var(--cyan); }
.blog-pages .current { color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); border-color: transparent; }

/* ── Call to action band ── */
.blog-cta { position: relative; overflow: hidden; margin-top: 64px; padding: clamp(28px, 5vw, 52px); border-radius: 24px;
            display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
            border: 1px solid var(--border-c);
            background: linear-gradient(135deg, rgba(26, 93, 190, .55), rgba(15, 39, 68, .85) 55%, rgba(10, 191, 163, .35)); }
.blog-cta::after { content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -120px; border-radius: 50%;
                   background: var(--cyan); filter: blur(110px); opacity: .25; pointer-events: none; }
.blog-cta h2 { font-family: "Sora", sans-serif; font-size: clamp(1.3rem, 2.6vw, 1.9rem); letter-spacing: -.02em; max-width: 560px; }
.blog-cta p { color: rgba(255, 255, 255, .75); margin-top: 6px; max-width: 560px; }
.blog-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 14px;
            font-weight: 700; color: #fff !important; background: linear-gradient(135deg, var(--blue), var(--cyan));
            box-shadow: 0 10px 30px rgba(41, 182, 232, .35); transition: transform .2s, box-shadow .2s; white-space: nowrap; }
.blog-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(41, 182, 232, .45); }

/* ── Article ── */
.blog-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 600;
                 background: linear-gradient(90deg, var(--teal), var(--cyan), var(--blue)); box-shadow: 0 0 12px var(--cyan); }
.post-head { max-width: 860px; margin: 0 auto 34px; text-align: center; }
.post-crumbs { display: flex; justify-content: center; gap: 8px; color: var(--muted); font-size: .85rem; margin-bottom: 22px; }
.post-crumbs a:hover { color: var(--cyan); }
.post-head h1 { font-family: "Sora", sans-serif; font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
                font-size: clamp(2rem, 5vw, 3.3rem); margin: 18px 0; }
.post-lead { color: rgba(255, 255, 255, .72); font-size: clamp(1.02rem, 1.7vw, 1.2rem); line-height: 1.6; }
.post-head .blog-meta { justify-content: center; margin-top: 20px; }
.post-avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center;
               background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-weight: 700; font-size: .8rem; }
.post-hero { max-width: 1080px; margin: 0 auto 48px; border-radius: 24px; overflow: hidden; aspect-ratio: 21 / 9;
             border: 1px solid var(--border-c); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; max-width: 1080px; margin: 0 auto; align-items: start; }
.post-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.post-box { padding: 18px; border-radius: 18px; border: 1px solid var(--border); background: var(--card); }
.post-box h4 { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.post-toc a { display: block; padding: 6px 10px; margin-left: -10px; border-left: 2px solid transparent;
              color: var(--muted); font-size: .86rem; line-height: 1.4; transition: color .2s, border-color .2s; }
.post-toc a.lvl-3 { padding-left: 22px; font-size: .82rem; }
.post-toc a:hover { color: #fff; }
.post-toc a.on { color: #fff; border-left-color: var(--cyan); }
.post-share { display: flex; gap: 8px; flex-wrap: wrap; }
.post-share a, .post-share button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
                                    border: 1px solid var(--border); background: rgba(255, 255, 255, .03); color: var(--lcyan);
                                    cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.post-share a:hover, .post-share button:hover { border-color: var(--cyan); color: #fff; background: rgba(41, 182, 232, .12); }
.post-share svg { width: 17px; height: 17px; }

/* Typography for the body (what the editor writes). */
.prose { font-size: 1.08rem; line-height: 1.8; color: rgba(255, 255, 255, .86); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: "Sora", sans-serif; font-size: 1.65rem; line-height: 1.25; letter-spacing: -.02em; color: #fff;
            margin-top: 2em; scroll-margin-top: 96px; }
.prose h3 { font-family: "Sora", sans-serif; font-size: 1.28rem; color: #fff; margin-top: 1.6em; scroll-margin-top: 96px; }
.prose h4 { font-size: 1.05rem; color: var(--lcyan); margin-top: 1.4em; }
.prose a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(41, 182, 232, .4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--cyan); }
.prose strong, .prose b { color: #fff; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--cyan); }
.prose blockquote { padding: 18px 22px; border-radius: 0 16px 16px 0; border-left: 3px solid var(--cyan);
                    background: linear-gradient(90deg, rgba(41, 182, 232, .1), transparent); color: #fff; font-size: 1.12rem; }
.prose img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); }
.prose pre { padding: 18px 20px; border-radius: 14px; background: #050C18; border: 1px solid var(--border);
             overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.prose code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .92em;
              background: rgba(41, 182, 232, .1); color: var(--lcyan); padding: 2px 6px; border-radius: 6px; }
.prose pre code { background: none; padding: 0; color: #dbeafe; }
.prose hr { border: 0; height: 1px; background: var(--border-c); margin: 2.4em 0; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }

.post-author { display: flex; gap: 16px; align-items: center; margin-top: 48px; padding: 22px; border-radius: 18px;
               border: 1px solid var(--border); background: var(--card); }
.post-author .post-avatar { width: 52px; height: 52px; font-size: 1.1rem; flex: none; }
.post-author strong { display: block; font-family: "Sora", sans-serif; }
.post-author span { color: var(--muted); font-size: .9rem; }
.post-lang { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--cyan); font-weight: 600; font-size: .9rem; }
.post-preview { position: sticky; top: 72px; z-index: 400; margin: -12px auto 24px; max-width: 860px; padding: 10px 16px;
                border-radius: 12px; text-align: center; font-weight: 600; font-size: .9rem;
                color: #1f1400; background: var(--warning); }
.blog-related { margin-top: 72px; }
.blog-related h2 { font-family: "Sora", sans-serif; font-size: 1.5rem; margin-bottom: 22px; }

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-aside { position: static; order: -1; }
  .post-toc-box { display: none; }
}
@media (max-width: 760px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured .blog-cover { min-height: 0; aspect-ratio: 16 / 9; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-search { min-width: 0; width: 100%; }
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .blog-chips { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .blog-chip { white-space: nowrap; }
  .post-hero { aspect-ratio: 16 / 9; border-radius: 16px; }
  .prose { font-size: 1.02rem; }
}
