/* Quick Dry — blog styles. Loads AFTER styles.css and reuses its tokens. */

/* ---------- shared bits ---------- */
.blog-crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); font-family: var(--font-display); font-weight: 600; margin-bottom: 22px; flex-wrap: wrap; }
.blog-crumb a { color: var(--brand-700); }
.blog-crumb a:hover { text-decoration: underline; }
.blog-crumb span.sep { color: var(--line); }
.blog-crumb .here { color: var(--ink-soft); }
.cat-badge { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-700); background: var(--teal-tint); padding: 5px 11px; border-radius: 999px; font-weight: 500; }

/* ---------- index hero ---------- */
.blog-hero { background: radial-gradient(120% 90% at 88% -10%, var(--teal-tint), transparent 58%), linear-gradient(180deg, var(--surface-2), var(--bg)); }
.blog-hero .wrap { padding-block: clamp(40px, 5vw, 72px); text-align: center; }
.blog-hero .eyebrow { justify-content: center; display: flex; }
.blog-hero h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.03em; margin-top: 14px; }
.blog-hero p { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); margin: 18px auto 0; max-width: 56ch; text-wrap: pretty; }

/* ---------- index grid ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-grid.has-feature { grid-template-columns: repeat(3, 1fr); }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-xl); overflow: hidden; transition: transform .18s ease, box-shadow .22s ease, border-color .2s ease; }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand-300); }
.pcard .ph { aspect-ratio: 16/10; overflow: hidden; background: var(--tint); }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pcard:hover .ph img { transform: scale(1.05); }
.pcard .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; text-wrap: pretty; }
.pcard p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.pcard .meta { margin-top: auto; display: flex; align-items: center; gap: 11px; padding-top: 6px; }
.pcard .meta img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--tint); flex: none; }
.pcard .meta b { font-family: var(--font-display); font-size: 13.5px; color: var(--ink); display: block; line-height: 1.1; }
.pcard .meta small { font-size: 12px; color: var(--muted); }

/* featured (first) card spans full width, horizontal */
.pcard.feature { grid-column: 1 / -1; flex-direction: row; }
.pcard.feature .ph { aspect-ratio: auto; flex: 1 1 52%; min-height: 320px; }
.pcard.feature .body { flex: 1 1 48%; justify-content: center; padding: clamp(26px, 4vw, 48px); gap: 16px; }
.pcard.feature h3 { font-size: clamp(24px, 3vw, 34px); }
.pcard.feature p { font-size: 17px; }
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } .pcard.feature { flex-direction: column; } .pcard.feature .ph { min-height: 0; aspect-ratio: 16/9; } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- article ---------- */
.post-hero .wrap { padding-block: clamp(34px, 4vw, 56px) 0; max-width: 820px; }
.post-hero h1 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -0.03em; line-height: 1.06; margin-top: 16px; text-wrap: pretty; }
.post-byline { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-bottom: 30px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.post-byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--tint); flex: none; }
.post-byline .who b { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; color: var(--ink); display: block; line-height: 1.15; }
.post-byline .who small { font-size: 13px; color: var(--muted); }
.post-byline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.post-byline .det { font-size: 13.5px; color: var(--muted); font-family: var(--font-display); font-weight: 600; }

.post-cover { max-width: 980px; margin: 30px auto 0; padding-inline: 24px; }
.post-cover img { width: 100%; max-height: 540px; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow); background: var(--tint); }

/* body column + blocks */
.post-body { max-width: 720px; margin: 0 auto; padding: clamp(36px, 5vw, 60px) 24px clamp(20px, 4vw, 40px); }
.post-body > * { margin-top: 0; }
.post-body p { font-size: 18.5px; line-height: 1.78; color: var(--ink-soft); margin: 0 0 1.35em; }
.post-body p strong { color: var(--ink); font-weight: 700; }
.post-body h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; color: var(--navy-900); margin: 1.6em 0 0.5em; line-height: 1.15; }
.post-body h3 { font-size: clamp(19px, 2.2vw, 23px); letter-spacing: -0.01em; color: var(--navy-900); margin: 1.5em 0 0.4em; }
.post-body figure { margin: 2em 0; }
.post-body figure img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); background: var(--tint); display: block; }
.post-body figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; text-align: center; font-style: italic; }
.post-body .b-ul { list-style: none; padding: 0; margin: 1.4em 0; display: flex; flex-direction: column; gap: 14px; }
.post-body .b-ul li { position: relative; padding-left: 34px; font-size: 17.5px; line-height: 1.6; color: var(--ink-soft); }
.post-body .b-ul li::before { content: ""; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b7cb3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.post-body .b-ul li b { color: var(--ink); font-weight: 700; }
.post-body .callout { background: var(--surface-2); border-left: 4px solid var(--brand); border-radius: 0 var(--r) var(--r) 0; padding: 22px 26px; margin: 1.8em 0; font-size: 18px; line-height: 1.65; color: var(--ink); }
.post-body .pquote { border: 0; margin: 1.8em 0; padding: 0 0 0 4px; }
.post-body .pquote p { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 28px); line-height: 1.3; color: var(--navy-900); letter-spacing: -0.01em; }

/* share / back row */
.post-foot { max-width: 720px; margin: 0 auto; padding: 8px 24px 4px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line-soft); padding-top: 26px; flex-wrap: wrap; }
.post-foot a.back { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--brand-700); display: inline-flex; align-items: center; gap: 7px; }
.post-foot .shares { display: flex; gap: 9px; }
.post-foot .shares a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); transition: background .15s, color .15s, border-color .15s; }
.post-foot .shares a:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.post-foot .shares svg { width: 17px; height: 17px; }

/* related */
.post-related .rel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.post-related .blog-grid { margin-top: 36px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .post-related .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-related .blog-grid { grid-template-columns: 1fr; } }
