/* =============================================================================
   blog_post_detail.css
   Reproduces the davonex.com static-post article look (article > breadcrumb >
   article-head > figure > div.prose > author-line) for DB-rendered posts, so a
   Django-served /blog/<slug>/ page is visually consistent with the 22 legacy
   static posts. All rules are scoped under .blogpost-detail (and the davonex
   design tokens are declared there too) so nothing leaks into base.css.
   ========================================================================== */

.blogpost-detail {
    --bg: #FAFBFE;
    --bg-alt: #EFF4FD;
    --paper: #FFFFFF;
    --ink: #08152B;
    --ink-soft: #46597A;
    --blue: #136BEE;
    --blue-deep: #0C4497;
    --navy: #062757;
    --tint: #A9C9F8;
    --line: rgba(6, 39, 87, .12);
    --line-strong: rgba(6, 39, 87, .22);
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 26px;
    --display: 'Space Grotesk', sans-serif;
    --body: 'Space Grotesk', sans-serif;
    --mono: 'Space Grotesk', sans-serif;
    --maxw: 1180px;

    font-family: var(--body);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.blogpost-detail .wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
}

.blogpost-detail h1,
.blogpost-detail h2,
.blogpost-detail h3 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.02em;
    color: var(--navy);
}

.blogpost-detail img {
    max-width: 100%;
    display: block;
}

/* ARTICLE LAYOUT (left aligned for reading) */
.blogpost-detail .article {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 0 64px;
}

.blogpost-detail .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 24px;
}
.blogpost-detail .breadcrumb a { color: inherit; text-decoration: none; }
.blogpost-detail .breadcrumb a:hover { color: var(--navy); }
.blogpost-detail .breadcrumb .sep { opacity: .45; }
.blogpost-detail .breadcrumb [aria-current] { color: var(--navy); font-weight: 600; }

.blogpost-detail .article-head h1 {
    font-size: clamp(2rem, 4.4vw, 3rem);
    line-height: 1.08;
    margin: 16px 0 0;
}
.blogpost-detail .meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    align-items: center;
    margin-top: 18px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink-soft);
}
.blogpost-detail .meta-row .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--ink-soft);
    opacity: .5;
}

/* FIGURE (hero) */
.blogpost-detail .figure { margin-top: 32px; }
.blogpost-detail .figure img {
    width: 100%;
    height: auto;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: var(--bg-alt);
}
.blogpost-detail .figure figcaption {
    margin-top: 10px;
    font-size: .86rem;
    color: var(--ink-soft);
    text-align: center;
}

/* PROSE (the stored post body == inner HTML of div.prose) */
.blogpost-detail .prose { margin-top: 8px; }
.blogpost-detail .prose h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.12;
    margin-top: 46px;
    scroll-margin-top: 96px;
}
.blogpost-detail .prose h3 { font-size: 1.2rem; margin-top: 28px; }
.blogpost-detail .prose p {
    margin-top: 14px;
    font-size: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.72;
}
.blogpost-detail .prose ul,
.blogpost-detail .prose ol {
    margin-top: 14px;
    padding-left: 26px;
    display: grid;
    gap: 10px;
}
.blogpost-detail .prose ul { list-style: none; padding-left: 0; }
.blogpost-detail .prose ul li {
    position: relative;
    padding-left: 26px;
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.55;
}
.blogpost-detail .prose ul li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
}
.blogpost-detail .prose ol li {
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.55;
}
.blogpost-detail .prose a { color: var(--blue); font-weight: 600; text-decoration: none; }
.blogpost-detail .prose a:hover { text-decoration: underline; }
.blogpost-detail .prose blockquote {
    margin-top: 18px;
    padding: 14px 20px;
    border-left: 3px solid var(--blue);
    background: var(--bg-alt);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    color: var(--navy);
}
.blogpost-detail .prose img {
    width: 100%;
    height: auto;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    margin-top: 24px;
}

/* COMPARISON TABLE */
.blogpost-detail .prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    margin-top: 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}
.blogpost-detail .prose th,
.blogpost-detail .prose td {
    text-align: left;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    color: var(--ink-soft);
}
.blogpost-detail .prose thead th {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    background: var(--bg-alt);
}

/* CITATIONS + REFERENCES (davonex prose extras) */
.blogpost-detail .prose sup.citation { font-size: .7em; }
.blogpost-detail .prose sup.citation a { color: var(--blue); font-weight: 600; }
.blogpost-detail .prose ol.references { font-size: .92rem; }
.blogpost-detail .prose ol.references li { word-break: break-word; }
.blogpost-detail .prose .ref-url { color: var(--ink-soft); opacity: .8; }
.blogpost-detail .prose .ref-date { color: var(--ink-soft); opacity: .8; }

/* AUTHOR */
.blogpost-detail .author-line {
    margin-top: 44px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.blogpost-detail .author-line .av {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    flex: none;
}
.blogpost-detail .author-line .a-name { font-weight: 700; color: var(--navy); }
.blogpost-detail .author-line .a-desc {
    font-size: .92rem;
    color: var(--ink-soft);
    margin-top: 2px;
}
.blogpost-detail .author-line .a-desc a { color: var(--blue); font-weight: 600; text-decoration: none; }
.blogpost-detail .author-line .a-desc a:hover { text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 400px) {
    .blogpost-detail .wrap { padding: 0 15px; }
}
