/* ============================================================
   Building Compliance Solutions: blog.css
   The blog's own styles, on top of style.css. blog.py copies this
   file to blog/blog.css under a content-hashed ?v=, so it ships with
   the blog and never needs a site release. Every color and font is a
   style.css variable, so the blog recolors with the rest of the site.
   ============================================================ */

/* ── Post: banner ── */
.bcs-post-banner .overline span { opacity: .55; margin: 0 8px; }
.bcs-post-banner h1 { max-width: 900px; }

/* ── Post: article beside a sticky panel ── */
.bcs-post-section { padding: 64px 0 88px; }
.bcs-post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: start;
}
.bcs-article { min-width: 0; max-width: 760px; }

.bcs-lead { margin: 0 0 40px; }
.bcs-lead img {
  width: 100%; height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--steel-200);
  box-shadow: var(--shadow-sm);
}
.bcs-lead figcaption { font-size: .85rem; color: var(--steel-500); margin-top: 10px; }

/* ── Prose ── */
.bcs-prose { color: var(--body); font-size: 1.06rem; line-height: 1.75; }
.bcs-prose > * + * { margin-top: 1.1em; }
.bcs-prose h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-top: 2em;
  padding-top: .35em;
  border-top: 3px solid var(--amber);
  display: inline-block;
}
.bcs-prose h2 + * { margin-top: .8em; }
.bcs-prose h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); margin-top: 1.7em; }
.bcs-prose a {
  color: var(--navy-600); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--amber);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.bcs-prose a:hover { color: var(--amber-700); }
.bcs-prose strong { color: var(--ink); font-weight: 600; }
.bcs-prose ul, .bcs-prose ol { padding-left: 1.4em; }
/* style.css clears list markers site-wide; prose lists need theirs back. */
.bcs-prose ul { list-style: disc; }
.bcs-prose ol { list-style: decimal; }
.bcs-prose li + li { margin-top: .45em; }
.bcs-prose li::marker { color: var(--amber-700); font-weight: 700; }
.bcs-prose code {
  font-size: .9em; background: var(--mist-100); padding: 1px 6px; border-radius: var(--radius);
}
.bcs-prose hr { border: 0; border-top: 1px solid var(--steel-200); margin: 2.4em 0; }

/* A blockquote is a callout: the one line the post turns on, or a list to have ready. */
.bcs-prose blockquote {
  background: var(--mist-100);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 18px 22px;
  color: var(--ink);
}
.bcs-prose blockquote p + p { margin-top: .5em; }

/* A paragraph that is all italic: how the facts were checked. */
.bcs-prose .bcs-method { font-size: .9rem; color: var(--steel-500); font-style: italic; }

.bcs-prose figure { margin: 2em 0; }
.bcs-prose figure img {
  width: 100%; height: auto;
  border: 1px solid var(--steel-200); border-radius: var(--radius-lg);
}
.bcs-prose figcaption { font-size: .85rem; line-height: 1.55; color: var(--steel-600); margin-top: 10px; }

.bcs-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6em 0; }
.bcs-table table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; min-width: 520px; }
.bcs-table th {
  text-align: left; font-family: var(--font-sans); font-weight: 600; color: var(--white);
  background: var(--navy-700); padding: 12px 14px;
}
.bcs-table td { padding: 12px 14px; border-bottom: 1px solid var(--steel-200); vertical-align: top; color: var(--body); }
.bcs-table tr:nth-child(even) td { background: var(--mist-50); }

.bcs-dates { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--steel-200); font-size: .85rem; color: var(--steel-500); }

/* ── The panel beside the post ── */
.bcs-aside { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 20px; }
.bcs-aside-card {
  background: var(--navy-800); color: var(--steel-200);
  border-radius: var(--radius-lg); padding: 26px 24px;
  box-shadow: var(--shadow-md);
}
.bcs-aside-card .overline { color: var(--amber); margin-bottom: 8px; }
.bcs-aside-card h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 10px; }
.bcs-aside-card p { font-size: .95rem; line-height: 1.6; }
.bcs-aside-card .btn { width: 100%; margin-top: 18px; }
.bcs-aside-creds {
  border: 1px solid var(--steel-200); border-radius: var(--radius-lg); padding: 20px 22px;
  font-size: .9rem; line-height: 1.55;
}
.bcs-aside-creds h4 { font-family: var(--font-sans); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-700); margin-bottom: 10px; }
.bcs-aside-creds ul { list-style: none; display: grid; gap: 6px; }
.bcs-aside-creds li { display: flex; gap: 8px; align-items: baseline; color: var(--ink); }
.bcs-aside-creds li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); transform: translateY(-1px); }
.bcs-aside-more a { display: block; font-weight: 600; color: var(--navy-600); padding: 10px 0; border-top: 1px solid var(--steel-200); line-height: 1.4; }
.bcs-aside-more a:hover { color: var(--amber-700); }
.bcs-aside-more h4 { font-family: var(--font-sans); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-700); margin-bottom: 4px; }

/* ── Blog index ── */
.bcs-index { padding: 72px 0 96px; }
.bcs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.bcs-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--steel-200); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.bcs-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bcs-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 1px solid var(--steel-200); }
.bcs-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.bcs-card .overline { margin-bottom: 8px; }
.bcs-card h2 { font-size: 1.65rem; line-height: 1.1; color: var(--ink); }
.bcs-card p { margin-top: 10px; font-size: .97rem; line-height: 1.6; }
.bcs-card .link-arrow { margin-top: auto; padding-top: 16px; }
.bcs-card-date { font-size: .82rem; color: var(--steel-500); margin-top: 12px; }

@media (max-width: 960px) {
  .bcs-post-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .bcs-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .bcs-article { max-width: none; }
}
@media (max-width: 560px) {
  .bcs-post-section { padding: 40px 0 64px; }
  .bcs-index { padding: 48px 0 72px; }
  .bcs-cards { grid-template-columns: minmax(0, 1fr); }
  .bcs-prose { font-size: 1rem; }
}
