/* ============================================================
   NAVASA — Blog (/blog). Loaded only on blog pages, on top of site.css.
   Uses the site tokens: --brown, --accent, --cream, --display, --sans.
   ============================================================ */

.blog-hero{ padding-bottom:56px; }
.blog-hero h1{ max-width:760px; }

.blog-body{ padding:48px 0 88px; }
.blog-body--post{ padding-top:44px; }
.blog-layout{ display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:48px; align-items:start; }
.blog-main, .blog-article{ min-width:0; }
.blog-note{ font-size:14px; color:var(--grey-700); margin-bottom:22px; }
.blog-note a{ color:var(--accent); font-weight:700; }

/* Meta line: date · minutes */
.blog-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 0; font-size:12.5px; color:var(--grey-500); font-weight:600; }
.blog-meta > * + *::before{ content:""; display:inline-block; width:3px; height:3px; border-radius:50%; background:currentColor; opacity:.6; margin:0 10px; vertical-align:middle; }

/* Category chip on images (same family as project status chips) */
.blog-chip{ position:absolute; top:14px; left:14px; z-index:2; font-size:11px; font-weight:700; letter-spacing:.04em;
  padding:6px 11px; border-radius:30px; background:rgba(255,255,255,.94); color:var(--brown); }

.blog-ph{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#c75d2b; opacity:.45; }
.blog-ph svg{ width:52px; height:52px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.i-arrow{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:transform .25s ease; flex:none; }

/* ---------- Featured article ---------- */
.blog-feature{ display:grid; grid-template-columns:1.1fr 1fr; background:#fff; border:1px solid #ebe6db; border-radius:24px; overflow:hidden; margin-bottom:32px;
  transition:box-shadow .3s ease, border-color .3s ease; }
.blog-feature:hover{ border-color:#e2d8c8; box-shadow:0 2px 4px rgba(69,40,38,.04), 0 34px 60px -34px rgba(69,40,38,.5); }
.blog-feature__media{ position:relative; display:block; min-height:300px; background:linear-gradient(135deg,#efe9dc,#f6f3ec); overflow:hidden; }
.blog-feature__media img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .7s cubic-bezier(.2,.7,.2,1); }
.blog-feature:hover .blog-feature__media img{ transform:scale(1.04); }
.blog-feature__body{ padding:34px 34px 32px; display:flex; flex-direction:column; justify-content:center; }
.blog-feature__body h2{ font-size:clamp(22px,2.3vw,28px); line-height:1.22; letter-spacing:-.015em; }
.blog-feature__body h2 a:hover{ color:var(--accent); }
.blog-feature__body > p{ color:var(--grey-700); font-size:15.5px; line-height:1.7; margin:12px 0 16px; }
.blog-feature__btn{ align-self:flex-start; margin-top:22px; }
.blog-feature__btn:hover .i-arrow{ transform:translateX(3px); }

/* ---------- Cards ---------- */
.blog-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.blog-grid--3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.blog-card{ display:flex; flex-direction:column; background:#fff; border:1px solid #ebe6db; border-radius:20px; overflow:hidden;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.blog-card:hover{ transform:translateY(-4px); border-color:#e2d8c8; box-shadow:0 2px 4px rgba(69,40,38,.04), 0 34px 60px -34px rgba(69,40,38,.55); }
.blog-card__media{ position:relative; display:block; aspect-ratio:16 / 10; background:linear-gradient(135deg,#efe9dc,#f6f3ec); overflow:hidden; }
.blog-card__media img{ width:100%; height:100%; object-fit:cover; transition:transform .7s cubic-bezier(.2,.7,.2,1); }
.blog-card:hover .blog-card__media img{ transform:scale(1.05); }
.blog-card__body{ flex:1; display:flex; flex-direction:column; padding:18px 22px 20px; }
.blog-card h3{ font-size:18px; line-height:1.32; margin:10px 0 8px; letter-spacing:-.01em; }
.blog-card h3 a:hover{ color:var(--accent); }
.blog-card__body > p:not(.blog-meta){ flex:1; font-size:14.5px; line-height:1.65; color:var(--grey-700); }
.blog-more{ display:inline-flex; align-items:center; gap:8px; margin-top:16px; font-size:13.5px; font-weight:700; color:var(--accent); }
.blog-card .blog-more{ padding-top:14px; border-top:1px solid #f0ebe2; }
.blog-card:hover .blog-more .i-arrow, .blog-more:hover .i-arrow{ transform:translateX(4px); }

/* ---------- Pagination ---------- */
.blog-pages{ display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:44px; }
.blog-pages a, .blog-pages span{ display:inline-flex; align-items:center; justify-content:center; min-width:42px; height:42px; padding:0 12px; border-radius:30px;
  font-weight:700; font-size:14px; border:1px solid #e4ddd0; background:#fff; color:var(--ink); transition:all .2s ease; }
.blog-pages a:hover{ border-color:var(--accent); color:var(--accent); }
.blog-pages span[aria-current]{ background:var(--brown); border-color:var(--brown); color:#fff; }
.blog-pages .gap{ border:0; background:none; min-width:20px; padding:0; }
.blog-pages svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }

/* ---------- Sidebar ---------- */
.blog-side{ display:flex; flex-direction:column; gap:20px; position:sticky; top:calc(var(--header-h, 70px) + 20px); }
.blog-box{ background:#fff; border:1px solid #ebe6db; border-radius:20px; padding:22px; }
.blog-box__title{ font-size:15px; margin-bottom:14px; }
.blog-search{ display:flex; border:1px solid #e4ddd0; border-radius:30px; overflow:hidden; background:#fff; transition:border-color .2s ease, box-shadow .2s ease; }
.blog-search:focus-within{ border-color:var(--accent); box-shadow:0 0 0 3px rgba(180,82,31,.12); }
.blog-search input{ flex:1; min-width:0; border:0; outline:0; padding:11px 16px; font:inherit; font-size:14px; color:var(--ink); background:transparent; }
.blog-search button{ border:0; background:var(--accent); color:#fff; width:46px; display:flex; align-items:center; justify-content:center; transition:background .2s ease; }
.blog-search button:hover{ background:var(--accent-dark); }
.blog-search svg{ width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; }
.blog-cats li + li{ margin-top:2px; }
.blog-cats a{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 12px; border-radius:12px; font-size:14px; font-weight:600; color:var(--ink); transition:background .2s ease, color .2s ease; }
.blog-cats a span{ min-width:26px; text-align:center; font-size:11.5px; font-weight:700; color:var(--grey-500); background:var(--grey-100); border-radius:20px; padding:2px 8px; }
.blog-cats a:hover{ background:#f6f3ec; color:var(--accent); }
.blog-cats a[aria-current]{ background:var(--cream); color:var(--brown); }
.blog-cats a[aria-current] span{ background:#fff; color:var(--brown); }
.blog-recent li{ padding:10px 0; border-top:1px solid #f0ebe2; }
.blog-recent li:first-child{ padding-top:0; border-top:0; }
.blog-recent li:last-child{ padding-bottom:0; }
.blog-recent a{ display:flex; gap:12px; align-items:flex-start; }
.blog-recent img, .blog-recent__ph{ width:56px; height:56px; border-radius:12px; object-fit:cover; flex:none; background:linear-gradient(135deg,#efe9dc,#f6f3ec); }
.blog-recent b{ display:block; font-family:var(--display); font-size:14px; font-weight:700; line-height:1.38; color:var(--ink); transition:color .2s ease; }
.blog-recent a:hover b{ color:var(--accent); }
.blog-recent small{ display:block; font-size:12px; color:var(--grey-500); margin-top:4px; }
.blog-box--cta{ background:var(--brown); border-color:var(--brown); color:#fff; }
.blog-box--cta h2{ color:#fff; font-size:18px; line-height:1.3; }
.blog-box--cta p{ font-size:14px; line-height:1.6; color:rgba(233,231,218,.78); margin:8px 0 18px; }
.blog-box__link{ display:flex; align-items:center; justify-content:center; gap:8px; margin-top:12px; font-size:13.5px; font-weight:700; color:var(--sand); }
.blog-box__link:hover{ color:#fff; }
.blog-box__link:hover .i-arrow{ transform:translateX(3px); }

/* ---------- Article ---------- */
.blog-post-hero{ background:linear-gradient(180deg, var(--cream) 0%, #f3f0e8 100%); padding:40px 0 48px; }
.blog-post-hero .p-crumbs{ color:var(--grey-500); margin-bottom:16px; }
.blog-post-hero .p-crumbs a{ color:var(--grey-700); }
.blog-post-hero .p-crumbs a:hover{ color:var(--ink); }
.blog-post-hero h1{ font-size:clamp(28px,3.6vw,44px); line-height:1.14; letter-spacing:-.02em; max-width:860px; }
.blog-meta--hero{ margin-top:18px; font-size:13.5px; color:var(--grey-700); }
.blog-meta--hero > span:first-child{ color:var(--ink); font-weight:700; }

.blog-article__hero{ margin:0 0 30px; border-radius:24px; overflow:hidden; background:#efe9dc; }
.blog-article__hero img{ width:100%; height:auto; aspect-ratio:16 / 9; object-fit:cover; }
.blog-lead{ font-size:19px; line-height:1.65; color:var(--ink); font-weight:500; margin-bottom:28px; }

.blog-toc{ background:#f8f6f0; border:1px solid #ebe6db; border-radius:18px; padding:4px 22px; margin:0 0 32px; }
.blog-toc summary{ list-style:none; cursor:pointer; padding:14px 0; font-family:var(--display); font-weight:700; font-size:15px; display:flex; align-items:center; justify-content:space-between; }
.blog-toc summary::-webkit-details-marker{ display:none; }
.blog-toc summary::after{ content:""; width:8px; height:8px; border-right:2px solid var(--grey-500); border-bottom:2px solid var(--grey-500); transform:rotate(45deg); transition:transform .2s ease; margin-right:4px; }
.blog-toc[open] summary::after{ transform:rotate(-135deg); }
.blog-toc ol{ list-style:none; margin:0; padding:0 0 16px; counter-reset:toc; }
.blog-toc li{ padding:5px 0; font-size:14.5px; line-height:1.45; }
.blog-toc li.lvl-2{ counter-increment:toc; }
.blog-toc li.lvl-2 a::before{ content:counter(toc) "."; display:inline-block; min-width:24px; color:var(--accent); font-weight:700; }
.blog-toc li.lvl-3{ padding-left:24px; font-size:13.5px; }
.blog-toc a{ color:var(--grey-700); }
.blog-toc a:hover{ color:var(--accent); }

.blog-prose{ font-size:17px; line-height:1.8; color:#4a3633; overflow-wrap:break-word; }
.blog-prose > *:first-child{ margin-top:0; }
.blog-prose h2{ font-size:clamp(22px,2.4vw,27px); line-height:1.28; color:var(--ink); margin:46px 0 14px; letter-spacing:-.015em; scroll-margin-top:calc(var(--header-h, 70px) + 20px); }
.blog-prose h3{ font-size:20px; line-height:1.35; color:var(--ink); margin:34px 0 10px; scroll-margin-top:calc(var(--header-h, 70px) + 20px); }
.blog-prose h4{ font-size:17px; color:var(--ink); margin:26px 0 8px; }
.blog-prose p{ margin:0 0 20px; }
.blog-prose a{ color:var(--accent); font-weight:600; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
.blog-prose a:hover{ color:var(--accent-dark); text-decoration-thickness:2px; }
.blog-prose strong, .blog-prose b{ color:var(--ink); font-weight:700; }
.blog-prose ul, .blog-prose ol{ margin:0 0 22px; padding-left:0; }
.blog-prose ul{ list-style:none; }
.blog-prose ul > li{ position:relative; padding-left:24px; margin-bottom:10px; }
.blog-prose ul > li::before{ content:""; position:absolute; left:6px; top:.72em; width:6px; height:6px; border-radius:50%; background:var(--accent); }
.blog-prose ol{ list-style:decimal; padding-left:24px; }
.blog-prose ol > li{ margin-bottom:10px; padding-left:4px; }
.blog-prose ol > li::marker{ color:var(--accent); font-weight:700; }
.blog-prose blockquote{ margin:32px 0; padding:22px 26px; background:var(--cream); border-radius:18px; font-family:var(--display); font-size:19px; line-height:1.55; color:var(--brown); }
.blog-prose blockquote p:last-child{ margin-bottom:0; }
.blog-prose img{ max-width:100%; height:auto; border-radius:16px; margin:10px 0; }
.blog-prose figure{ margin:30px 0; }
.blog-prose figure img{ margin:0 auto; }
.blog-prose figcaption{ font-size:13px; color:var(--grey-500); text-align:center; margin-top:10px; }
.blog-prose .table-wrap, .blog-prose figure.table{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.blog-prose table{ width:100%; border-collapse:separate; border-spacing:0; margin:28px 0; font-size:15px; border:1px solid #e4ddd0; border-radius:14px; overflow:hidden; }
.blog-prose th{ background:var(--brown); color:#fff; font-family:var(--display); font-size:13.5px; font-weight:700; text-align:left; padding:12px 14px; }
.blog-prose td{ padding:11px 14px; border-top:1px solid #eee8dd; vertical-align:top; }
.blog-prose tr:nth-child(even) td{ background:#faf8f3; }
.blog-prose hr{ border:0; height:1px; background:#e4ddd0; margin:38px 0; }
.blog-prose iframe{ width:100%; aspect-ratio:16 / 9; height:auto; border:0; border-radius:16px; margin:10px 0 24px; }
.blog-prose code{ background:var(--grey-100); padding:2px 6px; border-radius:4px; font-size:.9em; }

.blog-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:36px; }
.blog-tags a{ font-size:13px; font-weight:700; color:var(--accent-dark); background:#f8ece5; padding:6px 13px; border-radius:30px; transition:background .2s ease, color .2s ease; }
.blog-tags a:hover{ background:var(--accent); color:#fff; }

.blog-share{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; margin-top:30px; padding:18px 0; border-top:1px solid #ebe6db; border-bottom:1px solid #ebe6db; }
.blog-share > span{ font-family:var(--display); font-size:15px; font-weight:700; }
.blog-share > div{ display:flex; gap:8px; }
.blog-share a, .blog-share button{ display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:50%; border:1px solid #e4ddd0; background:#fff; color:var(--brown); padding:0; transition:all .2s ease; }
.blog-share svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.blog-share a:hover, .blog-share button:hover{ background:var(--brown); border-color:var(--brown); color:#fff; }
.blog-share button.is-copied{ background:var(--success); border-color:var(--success); color:#fff; }

.blog-author{ display:flex; gap:18px; align-items:flex-start; margin-top:30px; padding:24px; background:#f8f6f0; border-radius:20px; }
.blog-author__ava{ flex:none; display:flex; align-items:center; justify-content:center; width:54px; height:54px; border-radius:50%; background:var(--brown); color:var(--sand); font-family:var(--display); font-weight:800; font-size:20px; }
.blog-author__name{ font-family:var(--display); font-weight:700; font-size:16px; color:var(--ink); margin-bottom:6px; }
.blog-author p:last-child{ font-size:14.5px; line-height:1.65; color:var(--grey-700); }

.blog-cta{ display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:32px; padding:30px 32px; border-radius:24px; background:var(--brown); color:#fff; }
.blog-cta h2{ color:#fff; font-size:22px; }
.blog-cta p{ color:rgba(233,231,218,.78); margin-top:6px; font-size:14.5px; max-width:460px; }
.blog-cta .btn{ flex:none; }

.blog-related{ background:var(--cream); padding:64px 0 76px; }
.blog-related__head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:26px; }
.blog-related__head h2{ font-size:clamp(24px,2.8vw,32px); }
.blog-related__head .blog-more{ margin-top:0; }

.blog-progress{ position:fixed; top:0; left:0; height:3px; width:0; background:var(--accent); z-index:1100; transition:width .08s linear; }

/* ---------- Blog home: topics, areas, FAQs ---------- */
.blog-hub{ margin-top:56px; display:flex; flex-direction:column; gap:44px; }
.blog-hub__block h2{ font-size:clamp(21px,2.2vw,25px); line-height:1.3; letter-spacing:-.015em; margin-bottom:10px; }
.blog-hub__block > p{ color:var(--grey-700); font-size:15.5px; line-height:1.7; margin-bottom:18px; max-width:680px; }
.blog-hub__table{ overflow-x:auto; border:1px solid #ebe6db; border-radius:18px; background:#fff; }
.blog-hub__table table{ width:100%; border-collapse:collapse; font-size:14.5px; }
.blog-hub__table th{ text-align:left; font-family:var(--display); font-size:13px; font-weight:700; color:var(--grey-700); background:#f8f6f0; padding:12px 18px; }
.blog-hub__table td{ padding:14px 18px; border-top:1px solid #f0ebe2; vertical-align:top; line-height:1.55; color:var(--grey-700); }
.blog-hub__table td:first-child{ width:32%; font-weight:700; color:var(--ink); }
.blog-hub__table td a{ color:var(--accent); }
.blog-hub__table td a:hover{ color:var(--accent-dark); text-decoration:underline; text-underline-offset:3px; }
.blog-hub__areas{ display:flex; flex-wrap:wrap; gap:10px; }
.blog-hub__areas a{ display:inline-flex; align-items:center; padding:9px 16px; border-radius:30px; border:1px solid #e4ddd0; background:#fff; font-size:14px; font-weight:600; color:var(--ink); transition:all .2s ease; }
.blog-hub__areas a:hover{ border-color:var(--accent); color:var(--accent); }
.blog-hub__areas li:last-child a{ background:var(--brown); border-color:var(--brown); color:#fff; }
.blog-hub__areas li:last-child a:hover{ background:var(--accent); border-color:var(--accent); }
@media (max-width:640px){
  .blog-hub{ margin-top:40px; gap:34px; }
  .blog-hub__table td:first-child{ width:40%; }
}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  .blog-layout{ grid-template-columns:minmax(0,1fr) 290px; gap:32px; }
  .blog-feature{ grid-template-columns:1fr; }
  .blog-feature__media{ min-height:0; aspect-ratio:16 / 9; }
  .blog-grid--3{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:920px){
  .blog-layout{ grid-template-columns:1fr; }
  .blog-side{ position:static; }
}
@media (max-width:640px){
  .blog-body{ padding:32px 0 56px; }
  .blog-grid, .blog-grid--3{ grid-template-columns:1fr; gap:18px; }
  .blog-feature__body{ padding:22px 20px 24px; }
  .blog-feature{ border-radius:20px; }
  .blog-prose{ font-size:16.5px; line-height:1.75; }
  .blog-lead{ font-size:17px; }
  .blog-cta{ flex-direction:column; align-items:flex-start; padding:24px 22px; border-radius:20px; }
  .blog-cta .btn{ width:100%; }
  .blog-share{ flex-direction:column; align-items:flex-start; }
  .blog-post-hero{ padding:28px 0 34px; }
  .blog-article__hero{ border-radius:18px; margin-bottom:24px; }
  .blog-related{ padding:44px 0 52px; }
  .blog-related__head{ flex-direction:column; align-items:flex-start; }
}
@media (prefers-reduced-motion:reduce){
  .blog-card, .blog-card__media img, .blog-feature__media img, .i-arrow{ transition:none; }
}
