/* ============ BLOG: hub, archives, article ============ */

/* breadcrumbs (service-inner.css only loads on service pages) */
.crumbs { padding-block: clamp(18px, 2.4vw, 28px) 0; font-size: .88rem; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 !important; padding: 0; list-style: none; }
.crumbs a { text-decoration: none; color: var(--body) !important; transition: color .18s; }
.crumbs a:hover { color: var(--ink) !important; }
.crumbs li[aria-current] { color: var(--ink); font-weight: 500; }
.crumbs .sep { color: var(--line-2); }

/* ── Archive hero ─────────────────────────────────────────── */
.blog-hero { position: relative; padding-block: clamp(32px, 4.5vw, 64px) clamp(28px, 3.4vw, 44px); overflow: hidden; text-align: center; }
.blog-hero::before { content: ""; position: absolute; left: 50%; top: -280px; width: 820px; height: 560px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(254, 202, 61, .24), transparent 62%); pointer-events: none; }
.blog-hero__inner { position: relative; }
.blog-hero h1 { margin: 1rem auto 0; max-width: 20ch; }
.blog-hero p { margin: 1.1rem auto 0; max-width: 58ch; font-size: 1.02rem; }

.blog-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: clamp(20px, 2.6vw, 30px); }
.blog-filter a { font-size: .88rem; font-weight: 500; color: var(--ink-2) !important; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.05rem; text-decoration: none; transition: border-color .18s ease; }
.blog-filter a:hover { border-color: var(--line-2); }
.blog-filter a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff !important; }

/* ── Grid + card ──────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-s); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.blog-card__media { display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--ink) 0%, #22385F 100%); overflow: hidden; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__body { padding: clamp(18px, 2vw, 24px); display: grid; gap: .55rem; flex: 1; align-content: start; }
.blog-card__cat { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep); }
.blog-card__body h2 { font-size: 1.12rem; line-height: 1.25; letter-spacing: -.015em; }
.blog-card__body h2 a { text-decoration: none; }
.blog-card__body h2 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable, one real link */
.blog-card__body p { font-size: .95rem; margin: 0; }
.blog-card__body .blog-card__meta { margin-top: auto; padding-top: .5rem; font-size: .82rem; display: flex; flex-wrap: wrap; gap: .35rem; }

.blog-empty { text-align: center; padding: clamp(40px, 6vw, 72px) 20px; }

.blog-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: clamp(30px, 4vw, 48px); }
.blog-pagination .page-numbers { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink) !important; font-size: .9rem; text-decoration: none; padding: 0 .8rem; }
.blog-pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.blog-pagination .page-numbers:hover:not(.current) { border-color: var(--line-2); }

/* ── Article header ───────────────────────────────────────── */
.post__header { max-width: 860px; padding-block: clamp(24px, 3.4vw, 44px) 0; }
.post__cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.post__cats .pill { text-decoration: none; }
.post__header h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 22ch; }
.post__meta { display: flex; flex-wrap: wrap; gap: .4rem .6rem; margin: 1.1rem 0 0; font-size: .92rem; }
.post__author a { color: var(--ink) !important; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--gold); }
.post__image { margin: clamp(22px, 3vw, 34px) 0 0; }
.post__image img { width: 100%; height: auto; border-radius: var(--r); display: block; }

/* ── Article body ─────────────────────────────────────────── */
.post__body { max-width: 860px; padding-block: clamp(24px, 3vw, 40px) clamp(40px, 5vw, 72px); }

.takeaways { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--r-sm); padding: clamp(18px, 2.2vw, 26px); margin-bottom: clamp(26px, 3vw, 40px); text-align: left; }
.takeaways h2 { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .8rem; }
.takeaways ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.takeaways li, .takeaways p { color: var(--ink-2); font-size: 1rem; margin: 0; }

.entry { font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); }
.entry > * + * { margin-top: 1.25rem; }
.entry h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); margin-top: 2.4rem; scroll-margin-top: 100px; }
.entry h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-top: 1.9rem; scroll-margin-top: 100px; }
.entry a { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry a:hover { text-decoration-color: var(--ink); }
.entry ul, .entry ol { padding-left: 1.3rem; display: grid; gap: .45rem; }
.entry img, .entry video, .entry iframe { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.entry figure { margin-inline: 0; }
.entry figcaption { font-size: .86rem; margin-top: .5rem; }
.entry blockquote { margin-inline: 0; padding: .4rem 0 .4rem 1.2rem; border-left: 4px solid var(--gold); color: var(--ink); font-size: 1.12rem; }
.entry table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.entry pre { background: var(--ink); color: #e9edf5; padding: 1rem 1.2rem; border-radius: var(--r-sm); overflow-x: auto; font-size: .9rem; }
.entry :not(pre) > code { background: var(--gold-soft); padding: .1em .35em; border-radius: 4px; font-size: .92em; }

/* ── Share ────────────────────────────────────────────────── */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: clamp(30px, 4vw, 48px); padding-top: 1.4rem; border-top: 1px solid var(--line); }
.share__label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin-right: .4rem; }
.share__btn { font: inherit; font-size: .86rem; font-weight: 500; color: var(--ink-2) !important; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .42rem .95rem; text-decoration: none; cursor: pointer; transition: border-color .18s; }
.share__btn:hover { border-color: var(--ink); }

/* ── Author box ───────────────────────────────────────────── */
.author-box { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 2vw, 24px); align-items: start; margin-top: clamp(26px, 3vw, 40px); padding: clamp(18px, 2.2vw, 28px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-s); }
.author-box__avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author-box__kicker { margin: 0; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.author-box h2 { font-size: 1.2rem; margin: .15rem 0 .5rem; }
.author-box h2 a { text-decoration: none; }
.author-box p:not(.author-box__kicker) { font-size: .96rem; margin: 0 0 .8rem; }
@media (max-width: 520px) { .author-box { grid-template-columns: 1fr; } }

/* ── Related ──────────────────────────────────────────────── */
.blog-related { padding-block: clamp(40px, 5vw, 72px); }
.blog-service { display: grid; gap: .5rem; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 2vw, 24px); text-decoration: none; box-shadow: var(--shadow-s); transition: transform .2s ease, box-shadow .2s ease; }
.blog-service:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.blog-service h3 { font-size: 1.08rem; }
.blog-service p { font-size: .95rem; margin: 0; }
.blog-service span { font-size: .88rem; font-weight: 600; color: var(--gold-deep); }
