/* ============================================================
   POSH WASH v2 — blog. Loaded after v2.css on every /blog page.
   The posts are hand-written HTML; these rules style their existing classes.
   ============================================================ */

/* ---------- Article ---------- */
.blog-article { max-width: 760px; margin: 0 auto; padding: 28px 20px 0; color: var(--body); }
.blog-article p, .blog-article li { font-size: 17.5px; line-height: 1.75; }
.blog-article p + p { margin-top: 18px; }
.blog-article h1 { margin-top: 6px; font-size: clamp(32px, 4.6vw, 50px); letter-spacing: -.04em; line-height: 1.05; }
.blog-article h2 { margin: 52px 0 14px; font-size: clamp(25px, 2.8vw, 32px); scroll-margin-top: 96px; }
.blog-article h3 { margin: 30px 0 8px; font-size: 21px; letter-spacing: -.02em; scroll-margin-top: 96px; }
.blog-article h4 { font-size: 16px; letter-spacing: -.01em; }
.blog-article ul, .blog-article ol { margin: 16px 0; padding-left: 22px; display: grid; gap: 8px; }
.blog-article li::marker { color: var(--sky-ink); font-weight: 800; }
.blog-article strong { color: var(--ink); font-weight: 800; }
.blog-article p a, .blog-article li a, .blog-related a, .blog-toc a {
  color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--sky);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.blog-article p a:hover, .blog-article li a:hover, .blog-related a:hover, .blog-toc a:hover { text-decoration-color: var(--ink); }

.blog-breadcrumbs { font-size: 13.5px; font-weight: 600; color: var(--soft); }
.blog-breadcrumbs a { color: var(--soft); text-decoration: none; }
.blog-breadcrumbs a:hover { color: var(--ink); }
.blog-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 14px 0 10px; font-size: 13.5px; font-weight: 600; color: var(--soft); }

/* Short-version box, warnings, contents */
.blog-insert, .blog-warn { margin: 26px 0; padding: 20px 22px; border-radius: var(--radius); font-size: 16.5px; line-height: 1.7; }
.blog-insert { background: var(--tint); }
.blog-insert strong { color: var(--sky-ink); }
.blog-warn { background: #fff7e8; box-shadow: inset 4px 0 0 #f5a623; }
.blog-toc { margin: 28px 0; padding: 22px 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--card-shadow); }
.blog-toc h4 { margin-bottom: 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.blog-toc ol { margin: 8px 0 0; gap: 6px; }
.blog-toc li { font-size: 16px; line-height: 1.5; }
.blog-toc a { font-weight: 600; text-decoration-thickness: 1.5px; }

/* Figures and tables */
.blog-fig { margin: 30px 0; }
.blog-fig img { width: 100%; height: auto; border-radius: var(--radius); background: var(--hair); }
.blog-fig figcaption { margin-top: 8px; font-size: 12.5px; color: var(--soft); text-align: right; }
.blog-article table { display: block; width: 100%; max-width: 100%; overflow-x: auto; margin: 24px 0; border-collapse: collapse; font-size: 15.5px; border-radius: var(--radius); background: #fff; box-shadow: var(--card-shadow); }
.blog-article th, .blog-article td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.blog-article th { background: var(--paper); font-size: 14px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.blog-article tr:last-child td { border-bottom: 0; }

/* In-post FAQ (details/summary) */
.blog-article .faq { margin: 18px 0 0; border-bottom: 1px solid var(--hair); }
.blog-article .faq details { border-top: 1px solid var(--hair); }
.blog-article .faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 16px 0; font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--ink); cursor: pointer; list-style: none; }
.blog-article .faq summary::-webkit-details-marker { display: none; }
.blog-article .faq summary::after { content: "+"; flex: 0 0 auto; font-size: 26px; font-weight: 500; line-height: .9; color: var(--sky-ink); transition: transform .2s ease; }
.blog-article .faq details[open] summary::after { transform: rotate(45deg); }
.blog-article .faq details p { margin: 0 0 18px; padding-right: 36px; font-size: 16px; }

.back-to-top { display: block; margin-top: 26px; text-align: right; font-size: 14px; font-weight: 700; color: var(--sky-ink); text-decoration: none; }

/* Author, related, call to action */
.blog-author { display: flex; gap: 18px; align-items: center; margin: 40px 0 0; padding: 22px 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--card-shadow); }
.blog-author img { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 14px; background: var(--tint); object-fit: contain; }
.blog-author h4 { font-size: 16px; }
.blog-author-info p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--soft); }
.blog-author-link { margin-top: 8px !important; }
.blog-author-link a { font-size: 14px; font-weight: 700; color: var(--sky-ink); text-decoration: none; }
.blog-related { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--hair); }
.blog-related h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.blog-related p { font-size: 16px; line-height: 1.9; }
.blog-cta { margin: 36px 0 0; padding: 34px 28px 30px; border-radius: 26px; background: var(--ink); color: #dce8f2; }
.blog-cta h3 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); color: #fff; }
.blog-cta p { margin-top: 10px; font-size: 16.5px; color: #b9cad8; }
.blog-cta p strong { color: #fff; }
.blog-cta p a { color: #fff; text-decoration-color: var(--sky); }
.blog-cta > a { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; margin-top: 20px; padding: 15px 26px; border-radius: 14px; background: var(--sky); color: var(--ink); font-size: 16px; font-weight: 800; text-decoration: none; transition: transform .18s ease, filter .18s ease; }
.blog-cta > a:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* Price guide table in two posts */
.price-table td:last-child, .price-table th:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Blog index ---------- */
.blog-grid { display: grid; gap: 14px; margin-top: 34px; }
.blog-card { display: flex; flex-direction: column; padding: 24px 22px 22px; border-radius: var(--radius); background: #fff; box-shadow: var(--card-shadow); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.blog-card:hover { transform: translateY(-2px); box-shadow: 0 1px 0 var(--hair), 0 30px 50px -30px rgba(10, 31, 51, .55); }
.blog-card__category { align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: var(--tint); font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--sky-ink); }
.blog-card h3 { margin-top: 14px; font-size: 19px; letter-spacing: -.02em; line-height: 1.25; }
.blog-card p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--soft); }
.blog-card__meta { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 700; color: var(--soft); }
.blog-featured { background: var(--ink); }
.blog-featured h3 { color: #fff; font-size: clamp(22px, 2.4vw, 28px); }
.blog-featured p, .blog-featured .blog-card__meta { color: #b9cad8; }
.blog-featured .blog-card__category { background: var(--sky); color: var(--ink); }
.blog-featured-inner { display: grid; gap: 22px; }
.blog-featured img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; }
@media (min-width: 760px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-column: 1 / -1; padding: 30px; }
  .blog-featured-inner { grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
}
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
/* The featured card spans the row, so lead with it rather than leave a lone card above it. */
.blog-featured { order: -1; }
