/* Blog pages in the shared Gen-Z look (builds on genz.css). */
.gb-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; z-index: 300; background: var(--gradient-vibrant); box-shadow: 0 0 10px rgba(236,72,153,0.5); transition: width .1s linear; }
.gb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ===== Share buttons ===== */
.gb-share { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.gb-share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border: 2px solid transparent; cursor: pointer; text-decoration: none; font-family: inherit; font-weight: 800; color: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.gb-share-btn:hover { transform: translateY(-3px) rotate(-1deg); }
.gb-share-btn i { font-size: 1.05rem; }
.gb-s-whatsapp { background: #25d366; } .gb-s-linkedin { background: #0a66c2; } .gb-s-x { background: #0f172a; }
.gb-s-telegram { background: #229ed9; } .gb-s-facebook { background: #1877f2; }
.gb-s-copy, .gb-s-native { background: #fff; color: #0f172a; border-color: #0f172a; }
.gb-s-copy.is-copied { background: #dcfce7; color: #166534; border-color: #166534; }
.gb-share--card .gb-share-btn { width: 38px; height: 38px; border-radius: 50%; font-size: 0.85rem; }
.gb-share--card .gb-share-btn span { display: none; }
.gb-share--rail { flex-direction: column; gap: 0.65rem; }
.gb-share--rail .gb-share-btn { width: 46px; height: 46px; border-radius: 50%; }
.gb-share--rail .gb-share-btn span { display: none; }
.gb-share--big .gb-share-btn { padding: 0.8rem 1.25rem; border-radius: 99px; font-size: 0.92rem; }
.gb-share [hidden] { display: none !important; }

/* ===== List page ===== */
.gb-hero { padding: 6.5rem 0 2.5rem; }
.gb-hero .apl-lead { margin-bottom: 1.5rem; }
.gb-featured { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 2px solid #0f172a; border-radius: 28px; box-shadow: 8px 8px 0 #0f172a; overflow: hidden; margin-bottom: 2.5rem; }
.gb-featured-img { min-height: 320px; background: var(--gradient-vibrant) center/cover; position: relative; }
.gb-featured-img .gb-flag { position: absolute; top: 1rem; left: 1rem; background: #fef9c3; border: 2px solid #0f172a; border-radius: 99px; padding: 0.3rem 0.8rem; font-weight: 900; font-size: 0.78rem; }
.gb-featured-body { padding: clamp(1.4rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: 0.8rem; justify-content: center; }
.gb-featured-body h2 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.gb-featured-body h2 a { color: inherit; text-decoration: none; }
.gb-featured-body p { color: var(--text-secondary); margin: 0; }
.gb-cat { display: inline-block; width: fit-content; padding: 0.25rem 0.75rem; border-radius: 99px; background: #fce7f3; border: 1.5px solid #f9a8d4; color: #9d174d; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.gb-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; font-size: 0.82rem; font-weight: 700; color: var(--text-secondary); }
.gb-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--gradient-vibrant); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; }
.gb-sendrow { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.4rem; }
.gb-sendrow small { font-weight: 800; color: var(--text-secondary); }
.gb-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-bottom: 1.5rem; }
.gb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
.gb-card { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--border-color); border-radius: 22px; overflow: hidden; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.gb-card:hover { transform: translateY(-6px) rotate(-0.4deg); border-color: #0f172a; box-shadow: 8px 8px 0 #0f172a; }
.gb-card[hidden] { display: none; }
.gb-card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.gb-card-img { height: 180px; background: var(--gradient-vibrant) center/cover; position: relative; }
.gb-card-img .gb-cat { position: absolute; left: 0.9rem; bottom: 0.9rem; background: #fff; }
.gb-card-body { padding: 1.1rem 1.3rem 0.8rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.gb-card-body h3 { font-size: 1.15rem; font-weight: 900; line-height: 1.3; margin: 0; letter-spacing: -0.01em; }
.gb-card-body p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gb-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.8rem 1.3rem; border-top: 2px dashed var(--border-color); background: #fafafa; }
.gb-card-foot small { font-weight: 800; color: var(--text-secondary); font-size: 0.75rem; }
.gb-empty { text-align: center; padding: 3rem 1rem; color: var(--text-secondary); }
.gb-empty[hidden] { display: none; }

/* ===== Subscribe strip ===== */
.gb-strip { margin: 3rem 0 4rem; text-align: center; color: #fff; background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #3b82f6 100%); border-radius: 30px; padding: clamp(1.75rem, 4vw, 3rem) 1.25rem; box-shadow: 0 30px 60px -20px rgba(168,85,247,0.6); scroll-margin-top: 90px; }
.gb-strip h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.gb-strip > p { opacity: 0.92; margin: 0 auto 1.3rem; max-width: 52ch; }
.gb-form { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; max-width: 520px; margin: 0 auto; }
.gb-form input[type="email"] { flex: 1 1 240px; padding: 0.9rem 1.2rem; border-radius: 99px; border: 2px solid transparent; font-size: 1rem; outline: none; }
.gb-form input[type="email"]:focus { border-color: #0f172a; }
.gb-form button { border: none; cursor: pointer; font-family: inherit; }
.gb-form-msg { flex-basis: 100%; margin: 0.2rem 0 0; font-weight: 800; font-size: 0.9rem; min-height: 1.2em; }
.gb-form-msg.err { color: #fecaca; } .gb-form-msg.ok { color: #bbf7d0; }

/* ===== Post page ===== */
.gb-post-hero { position: relative; min-height: 460px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #4c1d95 100%); }
.gb-post-hero.no-img { background: var(--gradient-vibrant); }
/* The cover is only a soft, dimmed wash here, so text baked into a cover image can never fight the headline.
   The sharp, uncropped cover is shown in full at the top of the article instead. */
.gb-post-hero-bg { position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center; filter: blur(26px) saturate(1.15); opacity: 0.28; transform: scale(1.05); }
.gb-post-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,23,42,0.45) 0%, rgba(15,23,42,0.75) 100%); }
.gb-post-hero-inner { width: 100%; padding-block: 7rem 2.5rem; }
.gb-back { display: inline-flex; gap: 0.4rem; align-items: center; color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 700; font-size: 0.88rem; margin-bottom: 1.1rem; }
.gb-back:hover { color: #fff; }
.gb-post-hero .gb-cat { background: #fef9c3; border-color: #facc15; color: #854d0e; margin-bottom: 0.9rem; }
.gb-post-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.08; max-width: 22ch; margin: 0 0 1.2rem; color: #fff; }
.gb-post-hero .gb-meta { color: rgba(255,255,255,0.85); }
.gb-post-hero .gb-meta strong { color: #fff; }
.gb-hero-share { margin-top: 1.4rem; display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.gb-hero-share small { font-weight: 800; opacity: 0.85; }

.gb-layout { display: grid; grid-template-columns: 56px minmax(0, 1fr) 290px; gap: 2rem; padding: 2.5rem 0 1rem; align-items: start; }
.gb-rail { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.gb-rail-label { font-size: 0.66rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 0.3rem; }
.gb-article { background: #fff; border: 1px solid var(--border-color); border-radius: 26px; padding: clamp(1.5rem, 4vw, 3rem); box-shadow: 0 10px 40px -15px rgba(168,85,247,0.25); }
.gb-aside { position: sticky; top: 110px; display: grid; gap: 1.2rem; }
.gb-mini { background: #fff; border: 2px solid #0f172a; border-radius: 20px; box-shadow: 5px 5px 0 #0f172a; padding: 1.2rem; }
.gb-mini h4 { font-size: 1.05rem; font-weight: 900; margin: 0 0 0.3rem; }
.gb-mini p { font-size: 0.86rem; color: var(--text-secondary); margin: 0 0 0.8rem; }
.gb-mini .gb-form { flex-direction: column; }
.gb-mini .gb-form input[type="email"] { border-color: var(--border-color); flex: none; width: 100%; }
.gb-mini .gb-form-msg.err { color: #b91c1c; } .gb-mini .gb-form-msg.ok { color: #166534; }

.gb-cover { display: block; width: 100%; height: auto; border-radius: 18px; margin: 0 0 2rem; border: 1px solid var(--border-color); }
.blog-content { font-size: 1.1rem; line-height: 1.85; color: var(--text-primary); overflow-wrap: anywhere; }
.blog-content > *:first-child { margin-top: 0; }
.blog-content h2 { font-size: 1.6rem; font-weight: 900; line-height: 1.25; letter-spacing: -0.01em; margin: 2.8rem 0 1.1rem; }
.blog-content h3 { font-size: 1.25rem; font-weight: 800; margin: 2rem 0 0.9rem; }
.blog-content p { margin: 0 0 1.5rem; color: #334155; }
.blog-content strong { color: var(--text-primary); }
.blog-content a { color: var(--primary-color); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.blog-content ul, .blog-content ol { margin: 0 0 1.5rem; padding-left: 1.4rem; color: #334155; }
.blog-content li { margin-bottom: 0.6rem; }
.blog-content li::marker { color: var(--primary-color); font-weight: 800; }
.blog-content blockquote { margin: 2rem 0; padding: 1.1rem 1.5rem; border-left: 4px solid var(--primary-color); background: var(--gradient-soft); border-radius: 0 16px 16px 0; font-size: 1.15rem; font-style: italic; }
.blog-content img { max-width: 100%; height: auto; border-radius: 16px; margin: 1.5rem 0; }
.blog-content iframe { max-width: 100%; border-radius: 16px; }
.blog-content table { display: block; overflow-x: auto; max-width: 100%; }
.blog-content pre { overflow-x: auto; background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: 12px; }

.gb-sharecard { margin-top: 2.5rem; text-align: center; padding: 1.75rem 1.25rem; border-radius: 24px; border: 2px solid #0f172a; box-shadow: 6px 6px 0 #0f172a; background: linear-gradient(135deg, #fef9c3, #fce7f3); }
.gb-sharecard h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 900; letter-spacing: -0.01em; margin: 0 0 0.3rem; }
.gb-sharecard > p { margin: 0 0 1.1rem; color: #475569; font-weight: 600; }
.gb-sharecard .gb-share { justify-content: center; }

.gb-comments { margin-top: 2.5rem; }
.gb-comments h3 { font-size: 1.3rem; font-weight: 900; display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; }
.gb-comments h3 span { background: #0f172a; color: #fff; border-radius: 99px; font-size: 0.75rem; padding: 0.15rem 0.6rem; }
.gb-comment-form textarea { width: 100%; min-height: 110px; padding: 0.9rem 1rem; border: 2px solid var(--border-color); border-radius: 16px; font: inherit; margin-bottom: 0.7rem; }
.gb-comment-form textarea:focus { outline: none; border-color: var(--primary-color); }
.gb-login { text-align: center; padding: 1.5rem; border: 2px dashed var(--border-color); border-radius: 18px; background: #fafafa; }
.gb-login p { margin: 0.3rem 0 1rem; color: var(--text-secondary); }
.gb-comment { display: flex; gap: 0.8rem; padding: 1rem 0; border-top: 1px solid var(--border-color); }
.gb-comment:first-child { border-top: none; }
.gb-comment img.gb-avatar { object-fit: cover; }
.gb-comment b { display: block; font-size: 0.92rem; } .gb-comment small { color: var(--text-secondary); font-weight: 600; }
.gb-comment p { margin: 0.25rem 0 0; color: #334155; overflow-wrap: anywhere; }

.gb-related { padding: 2rem 0 0; }

.gb-sharebar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 250; padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-top: 2px solid #0f172a; align-items: center; justify-content: space-between; gap: 0.6rem; }
.gb-sharebar b { font-size: 0.85rem; font-weight: 900; }
.gb-sharebar .gb-share-btn { padding: 0.65rem 1rem; border-radius: 99px; font-size: 0.85rem; }

/* ===== Subscribe pop-up ===== */
.gb-pop { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 1rem; }
.gb-pop.is-open { display: flex; }
.gb-pop-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.6); backdrop-filter: blur(3px); }
.gb-pop-card { position: relative; width: 100%; max-width: 420px; text-align: center; background: #fff; border: 2px solid #0f172a; border-radius: 26px; box-shadow: 8px 8px 0 #0f172a; padding: 2rem 1.5rem 1.4rem; animation: gb-pop .35s ease; }
@keyframes gb-pop { from { transform: scale(0.9) rotate(-2deg); opacity: 0; } to { transform: none; opacity: 1; } }
.gb-pop-x { position: absolute; top: 0.6rem; right: 0.8rem; border: none; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--text-secondary); }
.gb-pop-emoji { font-size: 2.8rem; }
.gb-pop-card h2 { font-size: 1.45rem; font-weight: 900; letter-spacing: -0.01em; margin: 0.3rem 0 0.4rem; }
.gb-pop-card > div > p { color: var(--text-secondary); font-size: 0.93rem; margin: 0 0 1.1rem; }
.gb-pop .gb-form { flex-direction: column; }
.gb-pop .gb-form input[type="email"] { border-color: var(--border-color); flex: none; width: 100%; }
.gb-pop .gb-form-msg.err { color: #b91c1c; } .gb-pop .gb-form-msg.ok { color: #166534; }
.gb-pop-later { display: block; margin: 0.8rem auto 0; border: none; background: none; color: var(--text-secondary); font-weight: 700; cursor: pointer; text-decoration: underline; font-family: inherit; }
.gb-toast { position: fixed; left: 50%; bottom: 5.5rem; transform: translate(-50%, 20px); background: #0f172a; color: #fff; padding: 0.7rem 1.2rem; border-radius: 99px; font-weight: 800; font-size: 0.9rem; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 600; }
.gb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
    .gb-layout { grid-template-columns: 56px minmax(0, 1fr); }
    .gb-aside { grid-column: 1 / -1; position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 900px) {
    .gb-featured { grid-template-columns: 1fr; }
    .gb-featured-img { min-height: 220px; }
    .gb-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .gb-rail { display: none; }
    .gb-sharebar { display: flex; }
    .gb-post-page { padding-bottom: 76px; }
    .gb-post-page .help-assistant-root:not(.help-assistant-root--fullscreen) { bottom: 88px; }
    .gb-post-hero { min-height: 400px; }
    .gb-hero-share { display: none; }
}
@media (max-width: 520px) { .gb-post-hero-inner { padding-block-start: 5.5rem; } .gb-sharebar b { display: none; } .gb-sharebar { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .gb-pop-card { animation: none; } .gb-card:hover, .gb-share-btn:hover { transform: none; } }
