/* The Tnuki blog (/blog, /blog/<slug>): templates/landing/blog/. The interview card borrows the Life Sci Universe search
   card's look (app.css .record-search-*): the same navy and teal, so a reader who has seen the card in the app
   recognizes it. A post's figure (.ba-card) is an editorial sidebar instead: cream paper and the Newsreader serif. */

/* ── Index ─────────────────────────────────────────────────────────── */
.blog-hero { max-width: 760px; margin: 0 auto; padding: 9.5rem 1.5rem 2.5rem; text-align: center; }
.blog-hero h1 {
    font-size: clamp(2.125rem, 5vw, 3rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.03em;
    margin: 0 0 1rem; text-wrap: balance;
}
.blog-hero p { font-size: 1.125rem; line-height: 1.6; color: var(--color-text-secondary); margin: 0; }

.blog-list { max-width: 1040px; margin: 0 auto; padding: 1rem 1.5rem 5rem; display: grid; gap: 1.5rem; }
.blog-card {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; text-decoration: none;
    color: inherit; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 18px;
    overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-card:hover { box-shadow: 0 12px 32px rgba(11, 22, 48, 0.10); transform: translateY(-2px); }
.blog-card-art {
    position: relative; min-height: 15rem;
    background: linear-gradient(135deg, #0b1630 0%, #0b1d48 100%);
}
.blog-card-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.blog-card-body { padding: 2rem 2rem 1.75rem; display: flex; flex-direction: column; }
.blog-meta { font-size: 0.8125rem; color: var(--color-text-tertiary); margin-bottom: 0.75rem; }
.blog-card h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 0.75rem; }
.blog-card p { font-size: 1rem; line-height: 1.6; color: var(--color-text-secondary); margin: 0 0 1.25rem; flex: 1; }
.blog-read { font-size: 0.9375rem; font-weight: 600; color: var(--color-primary); }

.blog-more {
    max-width: 1040px; margin: 0 auto; padding: 0 1.5rem 5rem; display: grid;
    grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.blog-more a {
    display: block; text-decoration: none; color: inherit; padding: 1.25rem 1.375rem; border-radius: 14px;
    background: var(--color-surface); border: 1px solid var(--color-border);
}
.blog-more a:hover { border-color: var(--color-border-strong); }
.blog-more b { display: block; font-size: 1rem; margin-bottom: 0.25rem; }
.blog-more span { font-size: 0.875rem; line-height: 1.5; color: var(--color-text-secondary); }

/* ── Post ──────────────────────────────────────────────────────────── */
/* the cream paper behind a post's figure and its "In short" box */
.post-figure, .post-body { --blog-paper: #fbf8f1; --blog-paper-edge: #e8e1d2; }
.post-head { max-width: 760px; margin: 0 auto; padding: 9rem 1.5rem 2rem; }
/* Back link up to the blog, styled like the conference guides' "← All conferences" (conference-guide.css
   .cg-eyebrow-crumb): small bold teal uppercase. Inside <header>, so landing-shared.css's body > nav pin never applies. */
.post-crumb { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-primary); margin: 0 0 1.2rem; }
.post-crumb a { color: inherit; text-decoration: none; }
.post-crumb a:hover { text-decoration: underline; text-underline-offset: 2px; }
.post-head h1 {
    font-size: clamp(2.125rem, 5.2vw, 3.25rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em;
    margin: 0 0 1.125rem; text-wrap: balance;
}
.post-dek { font-size: 1.25rem; line-height: 1.55; color: var(--color-text-secondary); margin: 0 0 1.75rem; }
.post-byline { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--color-text-secondary); }
.post-byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.post-byline strong { color: var(--color-text); font-weight: 600; }

.post-figure { max-width: 960px; margin: 1rem auto 3rem; padding: 0 1.5rem; }
.post-figure figcaption { max-width: 680px; margin: 0.875rem auto 0; font-size: 0.9375rem; line-height: 1.55; color: var(--color-text-secondary); text-align: center; }
.post-figure-n { font-weight: 600; color: var(--color-text); }   /* "Figure 1.", as a paper labels its figures */

.post-body { max-width: 680px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.post-body > p, .post-body li { font-size: 1.125rem; line-height: 1.75; color: #2d2a26; }
.post-body > p { margin: 0 0 1.375rem; }
.post-body h2 {
    font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin: 3rem 0 1rem;
    text-wrap: balance;
}
.post-body h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.35; margin: 2rem 0 0.625rem; }
.post-body a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.post-body strong { color: var(--color-text); }
.post-body ul, .post-body ol { margin: 0 0 1.5rem; padding-left: 1.375rem; }
.post-body ul { list-style: disc; }      /* the Tailwind base reset turns list markers off */
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 0.5rem; }
.post-body li::marker { color: var(--color-primary); font-weight: 700; }

/* "In short": the figure's cream paper, without the watercolor */
.post-summary {
    background: var(--blog-paper); border: 1px solid var(--blog-paper-edge); border-radius: 6px; padding: 1.375rem 1.625rem 0.625rem;
    margin: 0 0 2.5rem; box-shadow: 0 1px 0 var(--blog-paper-edge);
}
.post-summary b {
    display: block; font-family: 'Newsreader', 'Newsreader Fallback', Georgia, serif; font-size: 1.3125rem; font-weight: 500;
    color: var(--color-text); margin-bottom: 0.5rem;
}
.post-summary ul { list-style: none; padding-left: 0 !important; }
.post-summary li { position: relative; padding-left: 1.625rem; font-size: 1rem; line-height: 1.6; color: #2d2a26; }
.post-summary li::before { content: '\21B3'; position: absolute; left: 0.125rem; top: 0; color: #a3967f; font-weight: 700; }

.post-next {
    max-width: 680px; margin: 0 auto 5rem; padding: 0 1.5rem; display: grid; grid-template-columns: 1fr; gap: 1rem;
}
.post-next a {
    display: block; text-decoration: none; color: inherit; padding: 1.25rem 1.375rem; border-radius: 14px;
    background: var(--color-surface); border: 1px solid var(--color-border);
}
.post-next a:hover { border-color: var(--color-border-strong); }
.post-next b { font-size: 1.0625rem; }

/* ── The interview card at the end of a post (navy; links out, never embeds) ── */
.post-video-wrap { max-width: 680px; margin: 0 auto 3rem; padding: 0 1.5rem; }
.post-video {
    overflow: hidden; border-radius: 16px; background: linear-gradient(135deg, #0b1630 0%, #0b1d48 100%);
    border: 1px solid #1e293b; color: #e2e8f0;
}
.post-video-thumb { position: relative; display: block; }
.post-video-thumb img { display: block; width: 100%; height: auto; }
.post-video-play {
    position: absolute; left: 50%; top: 50%; width: 4.25rem; height: 4.25rem; margin: -2.125rem 0 0 -2.125rem;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff;
    background: rgba(11, 22, 48, 0.72); border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); transition: transform 0.15s ease, background 0.15s ease;
}
.post-video-thumb:hover .post-video-play { transform: scale(1.06); background: rgba(11, 22, 48, 0.85); }
.post-video-play svg { width: 1.75rem; height: 1.75rem; margin-left: 3px; }
.post-video-text { padding: 1.125rem 1.5rem 1.375rem; }
.post-video-text b { display: block; font-size: 1.0625rem; font-weight: 600; color: #f8fafc; }
.post-video-text p { margin: 0.25rem 0 0.625rem; font-size: 0.9375rem; line-height: 1.5; color: #cbd5e1; }
.post-video-links { display: flex; flex-wrap: wrap; gap: 0.375rem 1.25rem; }
.post-video-links a { font-size: 0.9375rem; font-weight: 500; color: #99f6e4; text-decoration: none; }
.post-video-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── A post's figure: an editorial sidebar on the home page's light watercolor ── */
.ba-card {
    position: relative; border-radius: 6px; padding: 2rem 2rem 1.75rem; border: 1px solid var(--blog-paper-edge);
    background: linear-gradient(rgba(251, 248, 241, 0.5), rgba(251, 248, 241, 0.5)),   /* paper over it: the wash at half strength */
        url('/static/landing/images/background-image.webp') center / cover no-repeat, var(--blog-paper);
    color: var(--color-text); box-shadow: 0 1px 0 var(--blog-paper-edge), 0 14px 30px rgba(60, 45, 20, 0.07);
}

/* ── The email-check figure: one real check, three example addresses ── */
.ec svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ec-head {
    font-family: 'Newsreader', 'Newsreader Fallback', Georgia, serif; font-size: 1.5rem; font-weight: 500; line-height: 1.25;
    letter-spacing: -0.01em; margin: 0; text-wrap: balance;
}
/* where Tnuki looks: one quiet row, split by thin rules like a table's column headers */
.ec-sources { display: flex; flex-wrap: wrap; margin: 1rem 0 1.5rem; padding-bottom: 1.375rem; border-bottom: 1px solid var(--color-text); }
.ec-src {
    display: inline-flex; align-items: center; gap: 0.4375rem; padding: 0.125rem 1rem; font-size: 0.8125rem; font-weight: 500;
    line-height: 1.4; color: #4a443b;
}
.ec-src:first-child { padding-left: 0; }
.ec-src + .ec-src { border-left: 1px solid rgba(26, 24, 20, 0.16); }
.ec-src svg { width: 1rem; height: 1rem; color: #8a8172; }
.ec-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ec-col { display: flex; flex-direction: column; gap: 0.625rem; padding: 0 1.5rem; }
.ec-col:first-child { padding-left: 0; }
.ec-col:last-child { padding-right: 0; }
.ec-col + .ec-col { border-left: 1px solid #e2d9c7; }
.ec-n { font-family: 'Newsreader', 'Newsreader Fallback', Georgia, serif; font-size: 2.25rem; line-height: 1; color: #c9bea8; }
.ec-t { font-family: 'Newsreader', 'Newsreader Fallback', Georgia, serif; font-size: 1.25rem; font-weight: 500; line-height: 1.2; }
.ec-k { margin-top: 0.25rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: #8a8172; }
.ec-ai, .ec-clip code { font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.ec-ai { font-size: 0.9375rem; }
/* what Tnuki found, drawn as a clipping */
.ec-clip {
    padding: 0.625rem 0.75rem 0.75rem; border-radius: 4px; background: #fff; border: 1px solid #e2d9c7;
    font-size: 0.8125rem; line-height: 1.5; color: #4a443b; box-shadow: 2px 3px 0 rgba(60, 45, 20, 0.06); transform: rotate(-0.6deg);
}
.ec-col:nth-child(2) .ec-clip { transform: rotate(0.5deg); }
.ec-clip small { display: flex; align-items: center; gap: 0.3125rem; margin-bottom: 0.25rem; font-size: 0.6875rem; color: #8a8172; }
.ec-clip small svg { width: 0.875rem; height: 0.875rem; color: var(--color-primary); }
.ec-clip code { font-size: 0.8125rem; color: var(--color-text); }
.ec-clip--none { background: rgba(255, 255, 255, 0.45); box-shadow: none; border-style: dashed; color: #8a8172; font-style: italic; transform: none; }
/* a highlighter on the match, a red pen circle on the wrong letter, a stamp for the verdict */
.ec-hl {
    padding: 0 2px; border-radius: 2px;
    background: linear-gradient(104deg, rgba(253, 224, 71, 0) 0.9%, rgba(253, 224, 71, 0.75) 2.4%, rgba(253, 224, 71, 0.55) 92%, rgba(253, 224, 71, 0) 98%);
}
.ec-ring { position: relative; display: inline-block; margin: 0 4px; }
.ec-ring::after {
    content: ''; position: absolute; left: -6px; right: -6px; top: -4px; bottom: -4px;
    border: 2px solid #c2410c; border-radius: 50%; transform: rotate(-8deg);
}
.ec-why { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: #6b6355; }
.ec-stamp {
    align-self: flex-start; margin-top: auto; padding: 0.25rem 0.625rem; border: 2px solid currentColor; border-radius: 4px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; transform: rotate(-3deg);
}
.ec-stamp--ok { color: var(--color-primary); }
.ec-stamp--no { color: #c2410c; }

@media (max-width: 768px) {
    .blog-hero { padding: 8rem 1rem 2rem; }
    .blog-list, .blog-more { padding-left: 1rem; padding-right: 1rem; }
    .blog-card { grid-template-columns: 1fr; }
    .blog-card-art { min-height: 11rem; }
    .blog-card-body { padding: 1.5rem 1.25rem 1.375rem; }
    .blog-more { grid-template-columns: 1fr; }
    .post-head { padding: 8rem 1rem 1.5rem; }
    .post-dek { font-size: 1.125rem; }
    .post-figure { padding: 0 0.75rem; margin-bottom: 2.25rem; }
    .post-body { padding: 0 1rem 2.5rem; }
    .post-body > p, .post-body li { font-size: 1.0625rem; }
    .post-next { padding: 0 1rem; }
    .post-video-wrap { padding: 0 1rem; }
    .post-video-text { padding: 1rem 1.125rem 1.25rem; }
    .ba-card { padding: 1.25rem 1.125rem 1.375rem; }
    .ec-head { font-size: 1.25rem; }
    /* the three examples stack, a rule between each */
    .ec-cols { grid-template-columns: 1fr; }
    .ec-col, .ec-col:first-child, .ec-col:last-child { padding: 0; }
    .ec-col + .ec-col { border-left: 0; border-top: 1px solid #e2d9c7; margin-top: 1.25rem; padding-top: 1.25rem; }
    .ec-n { display: none; }   /* the rules already separate the examples; saves a tall phone figure some height */
    .ec-sources { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; }
    .ec-src, .ec-src:first-child { padding: 0; }
    .ec-src + .ec-src { border-left: 0; }
    .ec-stamp { margin-top: 0.25rem; }
}
