/* Gift Journal (blog). Loaded after styles.css and uses its design tokens. */
.blog-page { background: var(--cream); }
.blog-main { max-width: 1120px; margin: 0 auto; padding: 110px 16px 72px; color: var(--text); }

/* styles.css styles every <nav> as the fixed site bar; reset navs inside the blog body */
.blog-main nav {
  position: static; background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 0; padding: 0; display: block; z-index: auto; justify-content: normal; align-items: normal;
}

.post-crumbs { font-size: .85rem; color: var(--mid); margin-bottom: .75rem; }
.post-crumbs a { color: var(--coral); }
.post-kick { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); margin-bottom: .5rem; }

/* ---------- Index and category pages ---------- */
.bl-head { max-width: 720px; margin-bottom: 1.5rem; }
.bl-title { margin-bottom: .75rem; }
.bl-intro { color: var(--mid); font-size: 1.05rem; }
.bl-chips { display: flex !important; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.bl-chip { padding: .45rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: .9rem; font-weight: 600; }
.bl-chip[aria-current="page"] { background: var(--coral); border-color: var(--coral); color: #fff; }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.bl-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--sh); transition: transform .2s ease, box-shadow .2s ease; }
.bl-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.bl-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--coral-lt); }
.bl-card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.bl-card-kick { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--coral); }
.bl-card-title { font-size: 1.2rem !important; line-height: 1.3; margin: 0; }
.bl-card-meta { font-size: .82rem; color: var(--mid); }
.bl-card--featured { display: grid; grid-template-columns: 1.3fr 1fr; margin-bottom: 1.25rem; }
.bl-card--featured img { height: 100%; }
.bl-card--featured .bl-card-body { justify-content: center; padding: 1.75rem; }
.bl-card--featured .bl-card-title { font-size: 1.75rem !important; }
.bl-empty { background: #fff; border-radius: var(--r-sm); padding: 1.5rem; color: var(--mid); }
.bl-empty a { color: var(--coral); text-decoration: underline; }

/* ---------- Post page ---------- */
.post { max-width: 720px; margin: 0 auto; }
.post-title { margin-bottom: 1rem; }
.post-answer { font-size: 1.15rem; line-height: 1.6; background: #fff; border-left: 4px solid var(--coral); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 1rem 1.25rem; }
.post-meta { font-size: .88rem; color: var(--mid); }
.post-meta a { color: var(--coral); font-weight: 600; }
.post-cover { margin: 1.25rem 0 1.5rem; }
.post-cover img { width: 100%; height: auto; border-radius: var(--r); background: var(--coral-lt); }
.post-takeaways { background: var(--yellow-lt); border: 1px solid #f1dfb2; border-radius: var(--r-sm); padding: 1.1rem 1.25rem; margin-bottom: 1.5rem; }
.post-takeaways h2 { font-size: 1.2rem !important; margin-bottom: .5rem; }
.post-takeaways ul { list-style: disc; padding-left: 1.2rem; margin: 0; }
.post-takeaways li { margin: .3rem 0; }
.post-toc { background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1rem 1.25rem; margin-bottom: 1.75rem; }
.post-toc-title { font-weight: 800; margin-bottom: .4rem; }
.post-toc ol { margin: 0; padding-left: 1.2rem; }
.post-toc a { color: var(--coral); }
.post-body { font-size: 1.05rem; line-height: 1.75; }
.post-body h2 { font-size: 1.7rem !important; margin: 2.2rem 0 .8rem; scroll-margin-top: 90px; }
.post-body h3 { margin: 1.6rem 0 .6rem; }
.post-body a { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; }
.post-body ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1rem; }
.post-body ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.post-body li { margin: .35rem 0; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.post-body figure { margin: 1.5rem 0; }
.post-body figure img { display: block; border: 1px solid var(--border); }
.post-body figcaption { font-size: .9rem; line-height: 1.5; color: var(--mid); margin-top: .5rem; }
.post-body table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; background: #fff; border-radius: var(--r-sm); overflow: hidden; }
.post-body th, .post-body td { padding: .65rem .8rem; border-bottom: 1px solid var(--border); text-align: left; }
.post-body th { background: var(--coral-lt); white-space: nowrap; }
.post-body blockquote { margin: 1.25rem 0; padding: .5rem 1rem; border-left: 3px solid var(--yellow); color: var(--mid); }

.blog-combo { display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); padding: .75rem; margin: 1.25rem 0; box-shadow: var(--sh); }
.blog-combo img, .bc-img-ph { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--coral-lt); display: block; }
.bc-info { display: flex; flex-direction: column; gap: .15rem; }
.bc-kick { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--coral); }
.post-body .bc-name { color: var(--text); text-decoration: none; font-weight: 700; }
.bc-price { font-size: .9rem; color: var(--mid); }
.post-body .bc-btn { background: var(--coral); color: #fff; text-decoration: none; border-radius: 999px; padding: .5rem 1.1rem; font-weight: 700; font-size: .9rem; }
.blog-combo-fallback a { font-weight: 700; }

.post-faq { margin-top: 2.5rem; }
.post-faq h2 { font-size: 1.7rem !important; }
.pf-item { background: #fff; border-radius: var(--r-sm); padding: 1rem 1.25rem; margin-bottom: .75rem; border: 1px solid var(--border); }
.pf-item h3 { font-family: 'DM Sans', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }
.pf-item p { margin: 0; color: var(--text); }
.post-sources ul { list-style: disc; padding-left: 1.2rem; }
.post-sources a { color: var(--coral); text-decoration: underline; }
.post-author { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: var(--r-sm); padding: 1.1rem 1.25rem; margin: 2rem 0 1.25rem; border: 1px solid var(--border); }
.pa-name { font-weight: 800; margin-bottom: .25rem; }
.pa-bio { color: var(--mid); font-size: .95rem; margin: 0; }
.post-cta { text-align: center; background: var(--coral-lt); border-radius: var(--r); padding: 1.75rem 1.25rem; }
.pc-title { font-family: 'DM Serif Display', serif; font-size: 1.6rem; margin-bottom: .25rem; }
.post-related { max-width: 1120px; margin: 3rem auto 0; }
.post-related h2 { font-size: 1.8rem !important; }

.blog-sticky { display: none; }

@media (max-width: 900px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-card--featured { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .blog-main { padding-top: 92px; }
  .bl-grid { grid-template-columns: 1fr; }
  .bl-card--featured .bl-card-body { padding: 1.1rem; }
  .bl-card--featured .bl-card-title { font-size: 1.4rem !important; }
  .blog-combo { grid-template-columns: 56px 1fr; }
  .blog-combo img, .bc-img-ph { width: 56px; height: 56px; }
  .post-body .bc-btn { grid-column: 1 / -1; text-align: center; }
  .blog-sticky {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    justify-content: space-between; align-items: center; gap: .75rem;
    padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -6px 24px rgba(0, 0, 0, .08);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .blog-sticky.is-visible { transform: translateY(0); }
  .blog-sticky .btn { padding: .6rem 1.3rem; }
  .blog-page footer { padding-bottom: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bl-card, .blog-sticky { transition: none; }
}
