/* =========================================================
   OSSA — Blog ("Guides"). Uses tokens from styles.css.
   ========================================================= */

/* ---------- blog index hero ---------- */
.blog-hero { background: var(--deep-grad); color: #fff; position: relative; z-index: 2; overflow: hidden; padding: calc(var(--nav-h) + clamp(44px, 6vw, 76px)) 0 clamp(40px, 6vw, 68px); }
.blog-hero::before { content: ""; position: absolute; right: -6%; top: -30%; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(38,220,208,0.14), transparent 70%); pointer-events: none; }
.blog-hero__inner { position: relative; max-width: 760px; }
.blog-hero h1 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 52px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.03; margin-top: 8px; }
.blog-hero p { color: rgba(255,255,255,0.8); font-size: clamp(15px, 1.5vw, 18px); margin-top: 16px; text-wrap: pretty; }

/* ---------- blog list (index + related) ---------- */
.bloglist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blogcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line, #e2eaea); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); color: inherit; }
.blogcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blogcard__img { aspect-ratio: 16/10; overflow: hidden; }
.blogcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blogcard:hover .blogcard__img img { transform: scale(1.05); }
.blogcard__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blogcard__tag { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-primary); }
.blogcard__body h3 { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--brand-deep); line-height: 1.25; }
.blogcard__body p { font-size: 14px; color: var(--brand-slate); line-height: 1.55; flex: 1; }
.blogcard__more { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 800; color: var(--brand-primary); margin-top: 2px; }
.blogcard__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.blogcard:hover .blogcard__more svg { transform: translateX(4px); }

/* filters reuse .pf-filter from services.css */
#blogFilters { justify-content: flex-start; }

/* ---------- single post ---------- */
.post__head { background: var(--deep-grad); color: #fff; position: relative; z-index: 2; overflow: hidden; padding: calc(var(--nav-h) + clamp(30px, 4vw, 52px)) 0 clamp(32px, 4vw, 56px); }
.post__head::before { content: ""; position: absolute; right: -6%; top: -30%; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(38,220,208,0.12), transparent 70%); pointer-events: none; }
.post__head-inner { position: relative; max-width: 780px; }
.crumb--post { background: none; border: none; }
.crumb--post ol { padding: 0 0 16px; color: rgba(255,255,255,0.6); }
.crumb--post a { color: rgba(255,255,255,0.75); }
.crumb--post a:hover { color: var(--brand-accent); }
.crumb--post svg { stroke: rgba(255,255,255,0.4); }
.post__cluster { font-size: 11px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-accent); }
.post__title { font-family: var(--font-display); font-size: clamp(28px, 4.4vw, 48px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.05; margin-top: 10px; text-wrap: balance; }
.post__dek { color: rgba(255,255,255,0.82); font-size: clamp(16px, 1.6vw, 19px); margin-top: 14px; max-width: 62ch; text-wrap: pretty; }
.post__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; font-size: 13px; color: rgba(255,255,255,0.6); }
.post__meta span:nth-child(odd) { color: rgba(255,255,255,0.85); font-weight: 600; }

.post__hero { margin-top: clamp(-40px, -4vw, -28px); position: relative; z-index: 3; }
.post__hero img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 16/9; object-fit: cover; }

.post__body { max-width: 760px; padding-top: clamp(32px, 4vw, 52px); padding-bottom: clamp(20px, 3vw, 40px); }
.post__answer { border-left: 4px solid var(--brand-primary); background: var(--brand-light); padding: 20px 24px; border-radius: 0 12px 12px 0; margin-bottom: 8px; }
.post__answer p { font-size: 17.5px; line-height: 1.6; color: var(--brand-deep); text-wrap: pretty; }
.post__body h2 { font-family: var(--font-display); font-size: clamp(23px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.025em; color: var(--brand-deep); margin: 38px 0 14px; text-wrap: balance; }
.post__body h3 { font-size: 19px; font-weight: 800; color: var(--brand-deep); margin: 26px 0 10px; }
.post__body p { font-size: 16.5px; line-height: 1.75; color: #33474d; margin-bottom: 16px; text-wrap: pretty; }
.post__body ul, .post__body ol { margin: 0 0 18px; padding-left: 24px; }
.post__body li { font-size: 16.5px; line-height: 1.7; color: #33474d; margin-bottom: 9px; }
.post__body a { color: var(--brand-primary); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(38,163,191,0.35); text-underline-offset: 2px; }
.post__body a:hover { text-decoration-color: var(--brand-primary); }
.post__body strong { color: var(--brand-deep); font-weight: 800; }

/* tables in posts */
.post__body .tblwrap { overflow-x: auto; margin: 8px 0 22px; border: 1px solid var(--line, #e2eaea); border-radius: 12px; }
.post__body table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 420px; }
.post__body th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-slate); background: var(--brand-light); padding: 12px 16px; border-bottom: 1px solid var(--line, #e2eaea); }
.post__body td { padding: 12px 16px; border-bottom: 1px solid #eef3f3; color: var(--brand-deep); }
.post__body tbody tr:last-child td { border-bottom: none; }
.post__body td:nth-child(2), .post__body td:nth-child(3) { font-variant-numeric: tabular-nums; font-weight: 600; }

/* inline CTA */
.post__cta { background: var(--brand-deep); color: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); text-align: center; margin-top: 40px; }
.post__cta h3 { color: #fff; font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.02em; }
.post__cta p { color: rgba(255,255,255,0.78); margin: 10px auto 20px; max-width: 46ch; font-size: 15px; }

@media (max-width: 1000px) { .bloglist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .bloglist { grid-template-columns: 1fr; }
  .post__hero { margin-top: 0; padding-top: 20px; }
  .post__hero img { aspect-ratio: 4/3; border-radius: var(--radius); }
}
