/* Kelly Dorsey Insurance — blog styles (layered on site.css) */

.blog-hero { padding-block: clamp(8rem, 14vw, 11rem) clamp(2rem, 5vw, 4rem); }
.blog-hero h1 { font-size: var(--step-4); max-width: 22ch; }
.blog-hero .scribble { margin-bottom: 0.5rem; }

/* tag filter chips */
.tagbar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.tagbar a { font-weight: 600; font-size: 0.85rem; color: var(--soft); background: var(--warmwhite); border: 1px solid var(--line); border-radius: 20px; padding: 0.35rem 0.9rem; transition: all .25s var(--ease); }
.tagbar a:hover, .tagbar a[aria-current="page"] { color: var(--forest); border-color: var(--forest); background: var(--sage); }

/* featured card */
.post-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem,4vw,3rem); background: var(--warmwhite); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); margin-bottom: clamp(2rem,4vw,3rem); }
.post-feature__img { aspect-ratio: 4/3; overflow: hidden; }
.post-feature__img img { width: 100%; height: 100%; object-fit: cover; }
.post-feature__body { padding: clamp(1.6rem,3vw,2.4rem); align-self: center; }
.post-feature__body h2 { font-size: var(--step-3); }
@media (max-width: 760px) { .post-feature { grid-template-columns: 1fr; } }

/* card grid */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 2.5rem; }
.post-card { background: var(--warmwhite); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__img { aspect-ratio: 16/9; overflow: hidden; background: var(--sage); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; }
.post-card__meta { font-size: var(--step--1); color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.6rem; }
.post-card h3 { font-size: var(--step-1); line-height: 1.2; }
.post-card p { margin-top: 0.7rem; color: var(--soft); font-size: 0.95rem; flex: 1; }
.post-card .link-arw { margin-top: 1.2rem; }

/* pagination */
.pagination { display: flex; gap: 1rem; justify-content: center; align-items: center; margin-top: clamp(2.5rem,5vw,4rem); font-weight: 700; color: var(--forest); }
.pagination a { border-bottom: 2px solid var(--tan); }
.pagination a:hover { border-color: var(--forest); }
.pagination .current { color: var(--muted); font-weight: 600; }

/* article */
.article-wrap { max-width: 68ch; margin-inline: auto; padding-block: clamp(2rem, 5vw, 4rem); }
.article-wrap > .back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--forest); font-size: 0.9rem; margin-bottom: 1.6rem; }
.article-wrap h1 { font-size: var(--step-3); line-height: 1.1; margin-bottom: 1rem; }
.post-meta { font-size: var(--step--1); color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 2rem; display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.post-meta .template-badge { background: var(--sage); color: var(--pine); border-radius: 6px; padding: 0.25em 0.7em; font-size: 0.75rem; }
.byline { display: flex; align-items: center; gap: 0.7rem; margin: 1.5rem 0 2rem; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline b { color: var(--forest); font-family: var(--serif); }
.byline small { display: block; color: var(--muted); }

.article-body > * + * { margin-top: 1.4rem; }
.article-body p { color: var(--soft); line-height: 1.8; }
.article-body h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.article-body h3 { font-size: var(--step-1); margin-top: 2rem; }
.article-body ul, .article-body ol { padding-left: 1.4rem; color: var(--soft); line-height: 1.8; }
.article-body li + li { margin-top: 0.4rem; }
.article-body blockquote { font-family: var(--serif); font-style: italic; font-size: var(--step-1); color: var(--pine); border-left: 3px solid var(--brown); padding-left: 1.2rem; margin-left: 0; }
.article-body a { color: var(--forest); border-bottom: 1px solid var(--tan); }
.article-body img, .article-body figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.article-body figure figcaption { font-family: var(--hand); font-size: 1.3rem; color: var(--muted); text-align: center; margin-top: 0.5rem; }
.article-lede { font-size: var(--step-1); color: var(--soft); line-height: 1.5; margin-bottom: 2rem; font-style: italic; }

/* checklist template */
.article-body ul.checklist { list-style: none; padding-left: 0; }
.article-body ul.checklist li { position: relative; padding-left: 2rem; }
.article-body ul.checklist li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 18px; height: 18px; background: var(--sage); border-radius: 50%; }

/* photo-led cover */
.photo-led-cover-wrap { padding-top: clamp(7rem, 12vw, 9rem); margin-bottom: 2.5rem; }
.photo-led-cover { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* standard cover */
.standard-cover { width: 100%; border-radius: var(--radius-lg); margin-bottom: 2rem; box-shadow: var(--shadow); max-height: 400px; object-fit: cover; }

/* end-of-post CTA */
.post-cta { display: flex; align-items: center; gap: 1.5rem; background: var(--sage); border-radius: var(--radius); padding: 1.5rem 1.8rem; margin-top: 3rem; }
.post-cta .btn { margin-top: 0.6rem; }

/* tags on post */
.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.post-tags a { font-size: 0.82rem; font-weight: 600; color: var(--brown); background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 0.25rem 0.75rem; }

/* ── legal / prose pages ──────────────────────────────────────────────────
   Treated like a printed document on the cream paper: a warm-white card with
   generous rhythm, Lora section heads, dashed dividers — same devices as the
   rest of the site. */
.legal-prose {
  max-width: 78ch; margin-inline: auto;
  background: var(--warmwhite); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  padding: clamp(1.8rem, 4vw, 3.5rem);
  color: var(--soft); line-height: 1.85; font-size: 1.02rem;
}
.legal-prose h1 { display: none; }
.legal-prose h2, .legal-prose h3 {
  font-family: var(--serif); color: var(--forest); line-height: 1.15;
  margin-top: 2.6rem; margin-bottom: 0.7rem; padding-top: 1.6rem;
  border-top: 1.5px dashed var(--tan);
}
.legal-prose > h2:first-child, .legal-prose > h3:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-prose h2 { font-size: var(--step-2); }
.legal-prose h3 { font-size: var(--step-1); }
.legal-prose h4 { font-family: var(--serif); color: var(--pine); font-size: 1.08rem; margin-top: 1.6rem; margin-bottom: 0.3rem; }
.legal-prose > p:first-of-type { font-size: 1.1rem; color: var(--ink); }
.legal-prose > p:first-of-type strong { color: var(--forest); }
.legal-prose p { margin-top: 1.05rem; }
.legal-prose ul, .legal-prose ol { margin-top: 1rem; padding-left: 0; list-style: none; }
.legal-prose ol { counter-reset: li; }
.legal-prose li { position: relative; padding-left: 1.7rem; margin-top: 0.5rem; }
.legal-prose ul li::before { content: ""; position: absolute; left: 0.1rem; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--sage-bright); box-shadow: 0 0 0 1px var(--forest) inset; }
.legal-prose ol li { counter-increment: li; }
.legal-prose ol li::before { content: counter(li); position: absolute; left: 0; top: 0.1em; font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--forest); font-size: 0.95em; }
.legal-prose a { color: var(--forest); border-bottom: 1px solid var(--tan); }
.legal-prose a:hover { border-color: var(--forest); }
.legal-prose strong { color: var(--ink); font-weight: 700; }
.legal-prose hr { border: none; border-top: 1.5px dashed var(--tan); margin: 2.2rem 0; }
.legal-prose blockquote { background: var(--sage); border-radius: var(--radius); padding: 1.1rem 1.5rem; margin: 1.6rem 0; color: var(--pine); border-left: 3px solid var(--forest); }

/* Disclosures page: each disclaimer as a tidy card. */
.legal-disclaimer { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.6rem; margin-top: 1.2rem; }
.legal-disclaimer h3 { margin-top: 0; padding-top: 0; border-top: none; font-size: var(--step-0); letter-spacing: 0.02em; }
.legal-disclaimer p { margin-top: 0.5rem; font-size: 0.97rem; }

/* ══ blog template layouts (genuinely different per template) ════════════ */

/* PHOTO-LED: full-bleed hero, title overlaid on a scrim */
.post-hero {
  position: relative; min-height: clamp(420px, 60vh, 620px);
  display: flex; align-items: flex-end;
  background-image: var(--hero-img); background-size: cover; background-position: center;
  background-color: var(--pine);
}
.post-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,45,25,0.86) 0%, rgba(16,45,25,0.45) 45%, rgba(16,45,25,0.15) 100%); }
.post-hero__inner { position: relative; z-index: 1; padding-block: clamp(2.5rem, 6vw, 4.5rem); padding-top: clamp(7rem,12vw,9rem); }
.post-hero h1 { color: var(--cream); font-size: var(--step-4); max-width: 20ch; line-height: 1.05; }
.post-hero__meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.2rem; color: var(--sage-bright); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.03em; text-transform: uppercase; }
.back-link.on-dark { color: var(--sage-bright); display: inline-flex; margin-bottom: 1.2rem; font-weight: 700; }

/* CHECKLIST: summary box + numbered step cards */
.summary-box { background: var(--sage); border-radius: var(--radius-lg); padding: 1.5rem 1.8rem; margin-bottom: 2.2rem; }
.summary-box .scribble { font-size: 1.4rem; }
.summary-box p { color: var(--pine); font-family: var(--serif); font-style: italic; font-size: var(--step-1); line-height: 1.4; margin-top: 0.4rem; }
.steps { list-style: none; padding: 0; margin-top: 2.2rem; display: grid; gap: 1.1rem; counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; background: var(--warmwhite); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow-soft); }
.step__no { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--forest); color: var(--cream); font-family: var(--serif); font-weight: 700; font-size: 1.25rem; display: grid; place-items: center; }
.step__body h3 { font-size: var(--step-1); color: var(--forest); }
.step__body p { color: var(--soft); margin-top: 0.4rem; line-height: 1.7; }

/* Q&A: styled question/answer pairs */
.qa-list { margin-top: 2rem; display: grid; gap: 1rem; }
.qa-item { background: var(--warmwhite); border: 1px solid var(--line); border-left: 4px solid var(--forest); border-radius: var(--radius); padding: 1.3rem 1.6rem; box-shadow: var(--shadow-soft); }
.qa-item__q { font-family: var(--serif); color: var(--forest); font-size: var(--step-1); display: flex; gap: 0.6rem; align-items: baseline; }
.qa-item__q::before { content: "Q"; font-style: italic; color: var(--brown); font-weight: 700; flex: none; }
.qa-item__a { color: var(--soft); line-height: 1.75; margin-top: 0.6rem; padding-left: 1.5rem; position: relative; }
.qa-item__a::before { content: "A"; position: absolute; left: 0; top: 0; font-family: var(--serif); font-style: italic; color: var(--brown); font-weight: 700; }
