/* Style Marking blog post — shared styles (lifted from the hand-built posts, 2026-10-22) */
/* ============================================
   Key Man Risk Blog Post — page-specific styles
   ============================================ */

.blog-post-hero {
    padding: 9rem 0 4rem;
    position: relative;
}
.blog-post-meta {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    margin-bottom: 1.5rem; font-size: 0.85rem; color: rgba(226,232,240,0.6);
}
.meta-category-tag {
    display: inline-block; padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(245,200,66,0.12));
    color: #22c55e; border: 1px solid rgba(34,197,94,0.35);
    border-radius: 999px; font-weight: 700; font-size: 0.75rem;
    letter-spacing: 0.08em; text-transform: uppercase;
}
.meta-item { display:inline-flex; align-items:center; gap:0.4rem; }
.blog-post-title {
    font-family: 'Syne', sans-serif; font-weight: 800;
    font-size: clamp(2.25rem, 5.4vw, 4.2rem); line-height: 1.05;
    letter-spacing: -0.02em; margin-bottom: 1.5rem; max-width: 940px;
}
.blog-post-intro {
    font-size: 1.18rem; line-height: 1.75; color: rgba(226,232,240,0.78);
    max-width: 780px; margin-top: 1rem;
}
.blog-post-intro strong { color: #fff; }

/* Article body */
.article-wrap {
    max-width: 820px; margin: 0 auto; padding: 2rem 1.5rem 6rem;
    position: relative;
}
.article-card {
    background: linear-gradient(180deg, rgba(15,23,42,0.45), rgba(20,28,52,0.35));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1.5rem; padding: 3rem clamp(1.5rem, 4vw, 3rem);
    backdrop-filter: blur(8px);
}
.article-card h2 {
    font-family: 'Syne', sans-serif; font-size: 1.75rem; font-weight: 700;
    margin: 2.5rem 0 1.25rem; color: #fff; line-height: 1.25;
    border-left: 3px solid #22c55e; padding-left: 1rem;
}
.article-card h3 {
    font-family: 'Syne', sans-serif; font-size: 1.25rem; font-weight: 700;
    margin: 2rem 0 1rem; color: #f5c842;
}
.article-card p {
    font-size: 1.02rem; line-height: 1.78; color: rgba(226,232,240,0.82);
    margin-bottom: 1.25rem;
}
.article-card p strong { color: #fff; }
.article-card ul, .article-card ol {
    padding-left: 1.5rem; margin-bottom: 1.5rem;
}
.article-card li {
    font-size: 1.0rem; line-height: 1.75; color: rgba(226,232,240,0.82);
    margin-bottom: 0.65rem;
}
.article-card li strong { color: #fff; }
.article-card table{width:100%;border-collapse:collapse;font-size:.9rem;margin:1rem 0 1.4rem}.article-card th,.article-card td{padding:.55rem .6rem;border-bottom:1px solid rgba(255,255,255,.08);text-align:left;color:rgba(226,232,240,.85)}.article-card th{font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:rgba(226,232,240,.5)}.article-card td:not(:first-child){font-family:'JetBrains Mono',monospace;text-align:right}
.article-card a {
    color: #38bdf8; text-decoration: none;
    border-bottom: 1px dashed rgba(56,189,248,0.4);
    transition: 0.15s;
}
.article-card a:hover { color: #7dd3fc; border-bottom-style: solid; }

/* Pull quote */
.pull-quote {
    font-family: 'Syne', sans-serif; font-size: 1.45rem; font-weight: 700;
    line-height: 1.35; color: #fff;
    background: linear-gradient(135deg, rgba(168,85,247,0.06), rgba(34,197,94,0.06));
    border-left: 4px solid #a855f7;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
    border-radius: 0 0.85rem 0.85rem 0;
}
.pull-quote::before { content: '\201C'; color: #a855f7; font-size: 2rem; line-height: 0; vertical-align: -0.4em; margin-right: 0.25rem; }

/* Stat callout */
.stat-callout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
    margin: 2rem 0; background: rgba(15,23,42,0.5);
    border: 1px solid rgba(56,189,248,0.18); border-radius: 1rem;
    padding: 1.5rem; align-items: center;
}
.stat-callout .stat-num {
    font-family: 'Syne', sans-serif; font-size: 3.2rem; font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #22c55e, #f5c842);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-callout .stat-label {
    font-size: 0.95rem; color: rgba(226,232,240,0.78); line-height: 1.5;
}
@media (max-width: 540px) {
    .stat-callout { grid-template-columns: 1fr; }
    .stat-callout .stat-num { font-size: 2.5rem; }
}

/* Comparison block */
.compare-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
    margin: 2rem 0;
}
@media (max-width: 760px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-card {
    border-radius: 1rem; padding: 1.5rem;
    border: 1px solid; background: rgba(15,23,42,0.5);
}
.compare-card.bad {
    border-color: rgba(239,68,68,0.3);
    background: linear-gradient(135deg, rgba(239,68,68,0.06), rgba(15,23,42,0.5));
}
.compare-card.good {
    border-color: rgba(34,197,94,0.35);
    background: linear-gradient(135deg, rgba(34,197,94,0.06), rgba(15,23,42,0.5));
    box-shadow: 0 0 30px rgba(34,197,94,0.08);
}
.compare-card h4 {
    font-family: 'Syne', sans-serif; font-size: 0.85rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem;
}
.compare-card.bad h4 { color: #ef4444; }
.compare-card.good h4 { color: #22c55e; }
.compare-card .big {
    font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800;
    color: #fff; line-height: 1; margin-bottom: 0.4rem;
}
.compare-card.good .big {
    background: linear-gradient(90deg, #22c55e, #f5c842);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.compare-card .sub { font-size: 0.85rem; color: rgba(226,232,240,0.65); margin-bottom: 1rem; }
.compare-card ul { padding-left: 0; list-style: none; margin: 0; }
.compare-card li { font-size: 0.9rem; padding: 0.3rem 0; }
.compare-card li i { width: 16px; }
.compare-card.bad li i { color: #ef4444; margin-right: 0.5rem; }
.compare-card.good li i { color: #22c55e; margin-right: 0.5rem; }

/* Step list */
.step-list { list-style: none !important; padding: 0 !important; }
.step-list li {
    padding: 1.1rem 1.25rem 1.1rem 3.25rem;
    background: rgba(15,23,42,0.45); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.85rem; margin-bottom: 0.9rem; position: relative;
    counter-increment: step;
}
.step-list { counter-reset: step; }
.step-list li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute; left: 1.1rem; top: 1.1rem;
    font-family: 'JetBrains Mono', monospace; font-size: 0.95rem;
    font-weight: 700; color: #22c55e;
    background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3);
    padding: 0.2rem 0.55rem; border-radius: 0.4rem;
}
.step-list li strong { color: #fff; display:block; margin-bottom: 0.25rem; }

/* Mini test box */
.test-box {
    background: linear-gradient(135deg, rgba(245,200,66,0.07), rgba(15,23,42,0.5));
    border: 1px solid rgba(245,200,66,0.3);
    border-radius: 1rem; padding: 1.5rem; margin: 2rem 0;
}
.test-box h4 {
    font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700;
    color: #f5c842; margin-bottom: 0.75rem;
}
.test-box ul { margin-bottom: 0.75rem; }

/* FAQ */
.faq-item {
    background: rgba(15,23,42,0.5); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.85rem; padding: 1.1rem 1.4rem; margin-bottom: 0.9rem;
}
.faq-question {
    font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem;
    color: #fff; margin-bottom: 0.5rem;
}
.faq-answer { font-size: 0.95rem; color: rgba(226,232,240,0.78); line-height: 1.7; margin: 0; }

.article-divider {
    margin: 3rem auto; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34,197,94,0.4), transparent);
    max-width: 220px;
}

.article-cta {
    background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(245,200,66,0.05));
    border: 1px solid rgba(34,197,94,0.25);
    border-radius: 1.25rem; padding: 2rem; text-align: center; margin-top: 2rem;
}
.article-cta h3 {
    font-family: 'Syne', sans-serif; font-size: 1.45rem; font-weight: 700;
    margin-bottom: 0.75rem; color: #fff;
}
.article-cta p { font-size: 0.95rem; line-height: 1.65; color: rgba(226,232,240,0.78); }
.cta-btn-row {
    display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem;
}
.cta-btn-row .btn-primary {
    background: linear-gradient(135deg, #22c55e, #f5c842);
}

/* ============================================
   v2 additions: hero video, takeaways, widgets, author box
   ============================================ */
.post-hero-media { position: relative; border-radius: 22px; overflow: hidden; margin: 2.2rem auto 0; max-width: 1100px; aspect-ratio: 16 / 9; background: #0a0a14; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(124,58,237,.25); }
.post-hero-media video, .post-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,19,0) 55%, rgba(5,8,19,.75) 100%); pointer-events: none; }
.post-hero-caption { position: absolute; left: 20px; bottom: 16px; z-index: 2; font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(226,232,240,.75); }
.takeaways { margin: 0 0 2.2rem; padding: 1.4rem 1.6rem; border-radius: 16px; background: linear-gradient(135deg, rgba(124,58,237,.14), rgba(6,182,212,.08)); border: 1px solid rgba(124,58,237,.35); }
.takeaways h3 { font-family: 'Syne', sans-serif; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: #c084fc; margin: 0 0 .8rem; }
.takeaways ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.takeaways li { padding-left: 1.6rem; position: relative; color: rgba(226,232,240,.9); font-size: .98rem; line-height: 1.55; }
.takeaways li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: .15rem; color: #22d3ee; font-size: .8rem; }
.sm-widget { margin: 2.4rem 0; padding: 1.6rem; border-radius: 18px; background: rgba(10,10,20,.75); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.sm-widget h3 { font-family: 'Syne', sans-serif; font-size: 1.15rem; margin: 0 0 .35rem; color: #fff; }
.sm-widget .sub { color: rgba(226,232,240,.6); font-size: .9rem; margin: 0 0 1.2rem; }
.sm-widget label { display: flex; justify-content: space-between; font-size: .85rem; color: rgba(226,232,240,.8); margin: .9rem 0 .35rem; }
.sm-widget label output { font-family: 'JetBrains Mono', monospace; color: #22d3ee; }
.sm-widget input[type=range] { width: 100%; accent-color: #7c3aed; }
.sm-widget .result { margin-top: 1.3rem; padding: 1.1rem 1.2rem; border-radius: 12px; background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(6,182,212,.14)); border: 1px solid rgba(124,58,237,.4); display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.sm-widget .result .k { font-family: 'Syne', sans-serif; font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1.05; }
.sm-widget .result .k.gold { color: #f5c842; }
.sm-widget .result .v { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(226,232,240,.6); margin-top: .3rem; }
.sm-widget .note { font-size: .78rem; color: rgba(226,232,240,.45); margin-top: .9rem; }
.sm-widget .btn-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.sm-widget button { font-family: 'Inter', sans-serif; font-size: .88rem; font-weight: 600; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #fff; cursor: pointer; transition: all .2s; }
.sm-widget button:hover, .sm-widget button.active { background: linear-gradient(135deg, #7c3aed, #06b6d4); border-color: transparent; }
.sm-widget .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sm-widget .col { padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); }
.sm-widget .col h4 { font-family: 'Syne', sans-serif; font-size: .95rem; margin: 0 0 .7rem; }
.sm-widget .col.before h4 { color: #fb7185; } .sm-widget .col.after h4 { color: #22d3ee; }
.sm-widget .col ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; font-size: .9rem; color: rgba(226,232,240,.85); }
.sm-widget .col .metric { margin-top: .9rem; font-family: 'JetBrains Mono', monospace; font-size: .85rem; color: #f5c842; }
.sm-widget .flow { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; }
.sm-widget .flow .node { flex: 1 0 150px; padding: .9rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); cursor: pointer; transition: all .2s; position: relative; }
.sm-widget .flow .node i { color: #a855f7; font-size: 1.1rem; margin-bottom: .45rem; display: block; }
.sm-widget .flow .node b { display: block; font-size: .88rem; color: #fff; }
.sm-widget .flow .node.active { border-color: #22d3ee; background: rgba(6,182,212,.1); }
.sm-widget .flow .node::after { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); font-size: .7rem; color: rgba(255,255,255,.3); }
.sm-widget .flow .node:last-child::after { display: none; }
.sm-widget .flow-desc { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 12px; background: rgba(6,182,212,.08); border: 1px solid rgba(6,182,212,.3); color: rgba(226,232,240,.9); font-size: .93rem; min-height: 3.2rem; }
.sm-widget .q { font-family: 'Syne', sans-serif; font-size: 1.1rem; color: #fff; margin: .4rem 0 1rem; }
.sm-widget .verdict { padding: 1.1rem 1.2rem; border-radius: 12px; background: linear-gradient(135deg, rgba(245,200,66,.16), rgba(124,58,237,.12)); border: 1px solid rgba(245,200,66,.4); color: #fff; font-size: .97rem; line-height: 1.55; }
.sm-widget .check { display: grid; gap: .5rem; }
.sm-widget .check label { display: flex; justify-content: flex-start; gap: .7rem; align-items: center; margin: 0; padding: .65rem .8rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); cursor: pointer; font-size: .92rem; color: rgba(226,232,240,.88); }
.sm-widget .check input { accent-color: #22d3ee; width: 18px; height: 18px; }
.sm-widget .bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 1rem; }
.sm-widget .bar > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7c3aed, #06b6d4, #f5c842); transition: width .4s; }
.sm-widget table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: .6rem; }
.sm-widget td, .sm-widget th { padding: .55rem .6rem; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; color: rgba(226,232,240,.85); }
.sm-widget th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(226,232,240,.5); }
.sm-widget td.num { font-family: 'JetBrains Mono', monospace; text-align: right; }
.author-box { display: flex; gap: 1.1rem; align-items: center; margin: 2.4rem 0 0; padding: 1.2rem 1.3rem; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: contain; padding: 8px; background: #0a0a14; border: 2px solid rgba(124,58,237,.5); }
.author-box b { display: block; color: #fff; font-family: 'Syne', sans-serif; }
.author-box p { margin: .25rem 0 0; font-size: .88rem; color: rgba(226,232,240,.7); line-height: 1.5; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin-top: .8rem; }
.related-grid a { display: block; padding: .9rem 1rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); color: #fff !important; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.08) !important; font-size: .92rem; transition: all .2s; }
.related-grid a:hover { border-color: #7c3aed !important; transform: translateY(-2px); }
@media (max-width: 720px) { .sm-widget .cols { grid-template-columns: 1fr; } .post-hero-media { border-radius: 14px; } .author-box { flex-direction: column; align-items: flex-start; } }

/* Article comparison tables (wrapped in .table-wrap by the post JSON) + inline code. Scoped to .table-wrap so .sm-widget tables are untouched. */
.article-card .table-wrap{overflow-x:auto;margin:1.25rem 0;-webkit-overflow-scrolling:touch}
.article-card .table-wrap table{width:100%;min-width:560px;border-collapse:collapse;font-size:.92rem}
.article-card .table-wrap th,.article-card .table-wrap td{padding:.6rem .7rem;border-bottom:1px solid rgba(255,255,255,.08);text-align:left;vertical-align:top;line-height:1.5;color:rgba(226,232,240,.82)}
.article-card .table-wrap th{color:#fff;font-weight:600}
.article-card code{font-family:'JetBrains Mono',monospace;font-size:.9em;color:#f5c842}
/* Long unbroken strings (API URLs, query strings) wrap instead of pushing the page sideways on phones. */
.article-card p,.article-card li,.article-card blockquote,.article-card a{overflow-wrap:anywhere}
.article-card code{overflow-wrap:anywhere;word-break:break-word}
/* Blog FAQs are always open: the site-wide accordion (redesign.css / style.css) collapses .faq-answer to 0 and caps it at
   500px when clicked, which hid every answer on the blog and clipped long ones. Higher specificity than both global rules. */
.article-card .faq-item .faq-answer,.article-card .faq-item.active .faq-answer,.article-card .faq-item.open .faq-answer{max-height:none;overflow:visible;padding:0}
.article-card .faq-item .faq-question{padding:0;cursor:default}
/* Long words in the display headline ("Spreadsheets:", "NorthstarMLS") were wider than a phone screen. */
.blog-post-title{overflow-wrap:anywhere}
@media (max-width:480px){.blog-post-title{font-size:1.75rem}}
