/* =========================================================================
   BCC Blog — components layered on top of the shared design system
   (styles.css copied from the About Us page). Uses the same tokens:
   --navy #202652 · --gold #8b6f47 · --paper · --cream · --line · --muted
   ========================================================================= */

/* Language pill becomes a clickable switch */
a.lang-pill {
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
a.lang-pill:hover { color: var(--blue); border-color: var(--blue); }

/* --- Blog index hero category pills --------------------------------------- */
.hero-copy .cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.hero-copy .cat-nav a {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}
.hero-copy .cat-nav a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* --- Section heading for category bands ----------------------------------- */
.blog-section-head {
  margin-bottom: 26px;
}
.blog-section-head h2 {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--gold);
}

/* --- Post card grid (mirrors .service-grid look) -------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.post-card {
  display: grid;
  align-content: start;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}
.post-card .post-cat {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.post-card h3 {
  margin: 12px 0 10px;
  color: var(--navy);
  font-size: 1.12rem;
  line-height: 1.4;
}
.post-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
}
.post-card .post-link {
  color: var(--blue);
  font-weight: 800;
  font-size: 0.9rem;
}
.post-card .card-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* --- Services band -------------------------------------------------------- */
.services-band {
  scroll-margin-top: 110px;
}
.services-heading {
  margin: 0 0 32px;
  padding: 34px 28px;
  color: #fff;
  text-align: center;
  background: var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.services-heading h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 2.1rem;
}
.services-heading p {
  margin: 0;
  color: var(--gold);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.service-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 220px;
  padding: 30px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}
.service-emoji {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 16px;
  background: #faf2d8;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
}
.service-tile h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.18rem;
}
.service-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* --- Article page --------------------------------------------------------- */
.article-band {
  width: min(1160px, calc(100% - 40px));
  margin: var(--section-gap) auto 0;
  padding: 44px 0;
  border-radius: 8px;
  background: var(--cream);
}
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
}
.article-card {
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.article-meta .tag {
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
}
.article-meta .tag:hover { border-color: var(--gold); color: var(--gold-dark); }
.article-meta time { color: var(--muted); font-size: 0.84rem; }

.article-card h1 {
  margin: 0 0 26px;
  color: var(--navy);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.22;
}

.article-body { font-size: 1.06rem; color: var(--text); }
.article-body > p:first-of-type { font-size: 1.12rem; }
.article-body h2 {
  margin: 38px 0 14px;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.4vw, 1.72rem);
  line-height: 1.3;
}
.article-body h3 {
  margin: 26px 0 8px;
  color: var(--navy-2);
  font-size: 1.16rem;
}
.article-body p { margin: 0 0 18px; }
.article-body ul { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 9px; }
.article-body strong { color: var(--ink); }
.article-body .lead { color: var(--muted); font-size: 1.12rem; }

/* Cost / data tables */
.table-wrap { overflow-x: auto; margin: 0 0 24px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.data-table th,
.data-table td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.data-table thead th { background: var(--navy); color: #fff; font-weight: 700; }
.data-table tbody tr:nth-child(even) { background: var(--paper); }

/* FAQ */
.faq { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.faq > h2 { color: var(--navy); }
.faq details {
  margin-bottom: 12px;
  padding: 2px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.faq summary {
  padding: 14px 0;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.faq details p { margin: 0 0 14px; color: var(--text); }

/* Draft / outline note */
.draft-note {
  margin-bottom: 22px;
  padding: 13px 18px;
  border: 1px solid rgba(139, 111, 71, 0.4);
  border-radius: 8px;
  background: var(--cream);
  color: var(--gold-dark);
  font-size: 0.92rem;
  font-weight: 600;
}
.outline-note { color: var(--muted); }

/* Related guides */
.related-band {
  background: #f4faff;
}
.related h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 1.3rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.related-grid .post-card {
  background: var(--white);
}

/* Reuse the navy CTA band from the shared system, ensure spacing in-flow */
.blog-cta { margin-top: var(--section-gap); }

@media (max-width: 1180px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .post-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .services-heading { padding: 28px 20px; }
  .services-heading h2 { font-size: 1.75rem; }
  .article-band { width: min(100% - 28px, 1160px); padding: 28px 0; }
  .article-shell { width: min(100% - 28px, 880px); }
}
