/* Blog (.bl) — index + single article */

.bl .cx-eyebrow { font: 800 13px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }
.bl-wrap { padding-bottom: 80px; }

/* hero */
.bl-hero { background: linear-gradient(180deg, #FFFFFF 0%, #EEF2F7 100%); padding: 66px 0 52px; }
.bl-hero h1 { font-size: clamp(36px, 4.2vw, 50px); line-height: 1.08; font-weight: 800; color: var(--navy); margin: 0; }
.bl-sub { font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); margin: 16px 0 0; max-width: 540px; }

/* shared meta row */
.bl-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font: 600 12.5px/1 var(--sans); color: var(--ink-soft); margin: 0 0 12px; }
.bl-cat { font: 800 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); background: #EAF3FD; border-radius: 999px; padding: 7px 12px; }

/* placeholder when a post has no featured image */
.bl-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #E8EEF6 0%, #D7E3F0 100%); }

/* featured post */
.bl-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 54px 0 46px; border-bottom: 1px solid var(--line); }
.bl-feature-img { display: block; aspect-ratio: 16/10; border-radius: 18px; overflow: hidden; box-shadow: 0 22px 56px rgba(13,27,51,.16); }
.bl-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-feature-body h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.18; font-weight: 800; margin: 0 0 14px; }
.bl-feature-body h2 a { color: var(--navy); text-decoration: none; }
.bl-feature-body h2 a:hover { color: var(--brand); }
.bl-excerpt { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 18px; }
.bl-more { display: inline-flex; align-items: center; gap: 8px; font: 700 14.5px/1 var(--sans); color: var(--brand); text-decoration: none; }
.bl-more span { transition: transform .2s; }
.bl-more:hover span { transform: translateX(4px); }

/* grid */
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 46px 0 10px; }
.bl-card-img { display: block; aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; margin-bottom: 16px; background: #F2F5F9; }
.bl-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.bl-card:hover .bl-card-img img { transform: scale(1.04); }
.bl-card h3 { font-size: 18px; line-height: 1.35; font-weight: 800; margin: 0 0 8px; }
.bl-card h3 a { color: var(--navy); text-decoration: none; }
.bl-card h3 a:hover { color: var(--brand); }

/* pager */
.bl-pager { display: flex; gap: 8px; flex-wrap: wrap; padding: 34px 0 0; }
.bl-pager a { font: 700 13.5px/1 var(--sans); color: var(--navy); text-decoration: none; border: 1px solid var(--line); border-radius: 9px; padding: 10px 14px; }
.bl-pager a.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* empty state */
.bl-empty { text-align: center; padding: 90px 0 100px; }
.bl-empty h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; color: var(--navy); margin: 0 0 12px; }
.bl-empty p { font-size: 16px; color: var(--ink-soft); margin: 0 auto 26px; max-width: 460px; }

/* ---------- single ---------- */
.bls-head { background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%); padding: 44px 0 40px; }
.bls-crumb { display: flex; gap: 9px; font: 600 13px/1 var(--sans); color: var(--ink-soft); margin-bottom: 20px; }
.bls-crumb a { color: var(--ink-soft); text-decoration: none; }
.bls-crumb a:hover { color: var(--brand); }
.bls-head h1 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.14; font-weight: 800; color: var(--navy); margin: 0 0 18px; max-width: 860px; }
.bls-hero { margin: 0; padding: 30px 0 0; }
.bls-hero img { max-width: 100%; max-height: 560px; width: auto; margin: 0 auto; border-radius: 18px; display: block; box-shadow: 0 22px 56px rgba(13,27,51,.14); }
/* No object-fit crop: square and portrait heroes (e.g. product-update
   carousels) must show their full frame, not a widescreen slice. */

.bls-body { max-width: 720px; margin: 44px auto 0; font-size: 17px; line-height: 1.75; color: #2C3648; }
.bls-body > * + * { margin-top: 1.15em; }
.bls-body h2 { font-size: 26px; font-weight: 800; color: var(--navy); margin-top: 1.8em; line-height: 1.25; }
.bls-body h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin-top: 1.6em; }
.bls-body a { color: var(--brand); }
.bls-body ul, .bls-body ol { padding-left: 1.3em; }
.bls-body li + li { margin-top: .5em; }
.bls-body img { max-width: 100%; height: auto; border-radius: 14px; }
.bls-body blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--brand);
  font-size: 19px; line-height: 1.6; color: var(--navy);
}
.bls-body blockquote p { margin: 0; }

.bls-author {
  max-width: 720px; margin: 54px auto 0; display: flex; gap: 18px; align-items: flex-start;
  background: #F5F8FC; border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px;
}
.bls-author img { flex: none; }
.bls-author strong { display: block; font-size: 15.5px; color: var(--navy); margin-bottom: 6px; }
.bls-author p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

.bls-related { background: #F6F8FB; margin-top: 70px; padding: 54px 0 60px; }
.bls-related h2 { font-size: 24px; font-weight: 800; color: var(--navy); margin: 0; }
.bls-related .bl-grid { padding-bottom: 0; }

/* CTA (blog pages don't load cameras.css) */
.bl .cx-cta { background: #0D1B33; color: #fff; padding: 74px 0; }
.bl .cx-cta-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 50px; align-items: center; }
.bl .cx-cta h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; font-weight: 800; margin: 0; }
.bl .cx-cta h2 em { font-style: normal; color: var(--brand); }
.bl .cx-cta p { font-size: 15.5px; line-height: 1.6; color: #C9D6EA; margin: 0; max-width: 320px; }
.bl .cx-cta-act { text-align: center; }
.bl .cx-cta-act small { display: block; font-size: 12.5px; color: #9FB1CC; margin-top: 10px; }

@media (max-width: 1024px) {
  .bl-feature { grid-template-columns: 1fr; gap: 26px; }
  .bl-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .bl .cx-cta-grid { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .bl .cx-cta-act { text-align: left; }
}
@media (max-width: 620px) {
  .bl-grid { grid-template-columns: 1fr; }
  .bls-body { font-size: 16.5px; }
}

/* Comparison tables in post bodies. Wrapped so a wide table scrolls inside its
   own box rather than pushing the whole article sideways on a phone. */
.bls-body table {
  width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.55;
  display: block; overflow-x: auto; white-space: nowrap;
}
.bls-body table thead th {
  text-align: left; font-weight: 800; color: var(--navy);
  border-bottom: 2px solid var(--line); padding: 10px 14px 10px 0;
}
.bls-body table td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.bls-body table tbody tr:last-child td { border-bottom: 0; }
.bls-body table td:first-child { font-weight: 700; color: var(--navy); }
@media (min-width: 700px) {
  .bls-body table { display: table; white-space: normal; }
}

/* ---- article furniture: figures, callouts, the short-version box ---- */

/* Inline figures. Full column width, generous vertical air so they read as
   section breaks, captions set small and quiet. */
.bls-fig { margin: 2.2em 0; }
.bls-fig img { width: 100%; height: auto; display: block; border-radius: 14px; }
.bls-fig figcaption {
  margin-top: 12px; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft);
  padding-left: 14px; border-left: 3px solid var(--brand);
}

/* The short version: a summary card near the top for the reader who scrolls.
   Also the block most likely to get quoted, which is the point. */
.bls-key {
  margin: 2em 0; padding: 24px 26px; border-radius: 16px;
  background: linear-gradient(170deg, #F6FBFF 0%, #EEF4FC 100%);
  border: 1px solid #D5E5F8;
}
.bls-key h2, .bls-key h3 {
  margin: 0 0 10px !important; font-size: 15px !important;
  letter-spacing: .1em; text-transform: uppercase; color: var(--brand);
}
.bls-key ul { margin: 0; padding-left: 1.2em; }
.bls-key li { font-size: 15.5px; }
.bls-key li + li { margin-top: .45em; }

/* Field notes: the gotcha paragraphs, pulled out of the flow so they read as
   the voice of somebody who has been on the ladder. */
.bls-note {
  margin: 1.6em 0; padding: 18px 22px; border-radius: 0 14px 14px 0;
  border-left: 4px solid var(--brand); background: #F6F7FA;
  font-size: 15.5px;
}
.bls-note strong:first-child { color: var(--navy); }

/* Numbered section chips, so a listicle scans as one. */
.bls-body h2 .bls-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  margin-right: 12px; border-radius: 10px; background: var(--navy); color: #fff;
  font-size: 16px; vertical-align: -6px;
}

/* Tutorial design language — modeled on Alarm.com's product-launch emails:
   generous space, bold blocks, rounded image cards, circled step numbers,
   one pill CTA. All opt-in classes scoped to post content, so ordinary
   posts are untouched. */
.bls-body .tut-lede { font-size: 19px; line-height: 1.7; color: #3A4356; }
.bls-body figure.tut-fig { margin: 2em 0; }
.bls-body figure.tut-fig img { width: 100%; border-radius: 18px; box-shadow: 0 18px 44px rgba(13,27,51,.16); display: block; }
.bls-body figure.tut-fig figcaption { font-size: 13.5px; color: #64748B; margin-top: 12px; text-align: center; }
.bls-body .tut-req { background: #F5F8FC; border: 1px solid var(--line); border-radius: 18px; padding: 26px 30px; margin: 1.8em 0; }
.bls-body .tut-req > strong { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.bls-body .tut-req ul { list-style: none; padding: 0; margin: 0; }
.bls-body .tut-req li { padding-left: 28px; position: relative; }
.bls-body .tut-req li::before { content: '\2713'; position: absolute; left: 2px; top: 0; font-weight: 800; color: var(--brand); }
.bls-body ol.tut-steps { list-style: none; counter-reset: tut; padding: 0; margin: 1.4em 0; }
.bls-body ol.tut-steps li { counter-increment: tut; position: relative; padding: 14px 18px 14px 64px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-top: 10px; }
.bls-body ol.tut-steps li::before { content: counter(tut); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.bls-body .tut-note { border-left: 3px solid var(--brand); background: #F8FAFD; border-radius: 0 14px 14px 0; padding: 18px 22px; margin: 1.6em 0; font-size: 15.5px; }
.bls-body .tut-note p { margin: 0; }
.bls-body .tut-note p + p { margin-top: .8em; }
.bls-body a.tut-btn { display: inline-block; background: var(--navy); color: #fff; font-weight: 700; font-size: 15.5px; padding: 14px 28px; border-radius: 999px; text-decoration: none; }
.bls-body a.tut-btn:hover { background: var(--brand); }

/* Category filter chips on the blog index */
.bl-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 6px; }
.bl-filter a { font: 700 13.5px/1 var(--sans); color: var(--navy); text-decoration: none; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; transition: border-color .2s, color .2s, background .2s; }
.bl-filter a:hover { border-color: var(--brand); color: var(--brand); }
.bl-filter a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
