/* =====================================================================
   NIIR blog - public stylesheet
   Everything is scoped to .nb (the <main> element) so the site's own
   header, footer and forms keep their existing styles.

   BRAND TOKENS: Claude Code - replace these with the values used in
   NIIR's main stylesheet (primary colour, link colour, font stack).
   ===================================================================== */
:root {
  /* NIIR brand, same values as /assets/npcs/industry.css (site header, footer, consultant pages) */
  --nb-brand: #1a237e;        /* NIIR indigo: links, heading accents, table heads */
  --nb-brand-deep: #111c55;   /* NIIR navy: hover, headings, rules */
  --nb-accent: #0d6efd;       /* site's bright blue, used sparingly (active Contents item, focus ring) */
  --nb-ink: #1f2937;          /* body text */
  --nb-muted: #5b6078;        /* meta text */
  --nb-rule: #e3e5ef;         /* hairlines */
  --nb-tint: #f5f6fa;         /* quiet panels */
  --nb-paper: #ffffff;
  --nb-font: "Poppins", "Noto Sans Devanagari", "Nirmala UI", Mangal, Arial, sans-serif; /* site font; Poppins also covers Devanagari, the rest are Hindi fallbacks */
  --nb-measure: 700px;        /* reading column: about 75 characters at 18px */
  --nb-sticky-offset: 0px;    /* height of a sticky site header, if any */
  --nb-radius: 6px;
}

/* ---------- base ---------- */
.nb { color: var(--nb-ink); font-family: var(--nb-font); font-size: 1rem; line-height: 1.6; background: var(--nb-paper); }
.nb *, .nb *::before, .nb *::after { box-sizing: border-box; }
.nb img { max-width: 100%; height: auto; }
.nb a { color: var(--nb-brand); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.nb a:hover { color: var(--nb-brand-deep); text-decoration-thickness: 2px; }
.nb :focus-visible { outline: 3px solid var(--nb-accent); outline-offset: 2px; border-radius: 2px; }
.nb-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px 64px; }
.nb-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nb-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; padding: 8px 14px; }
.nb-skip:focus { left: 12px; top: 12px; }
html { scroll-padding-top: calc(var(--nb-sticky-offset) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- breadcrumbs ---------- */
.nb-crumbs { padding: 18px 0 6px; font-size: 0.875rem; color: var(--nb-muted); }
.nb-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.nb-crumbs li { display: inline-flex; align-items: center; }
.nb-crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--nb-rule); }
.nb-crumbs a { color: var(--nb-muted); text-decoration: none; }
.nb-crumbs a:hover { color: var(--nb-brand); text-decoration: underline; }
@media (max-width: 640px) { .nb-crumbs li:last-child { display: none; } }

/* ---------- page heads (archive, hub, errors) ---------- */
.nb-pagehead { padding: 16px 0 28px; border-bottom: 1px solid var(--nb-rule); margin-bottom: 32px; }
.nb-pagehead h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.2; margin: 0 0 12px; color: var(--nb-brand-deep); letter-spacing: -0.01em; max-width: 28ch; }
.nb-pagehead__intro { font-size: 1.125rem; color: var(--nb-muted); max-width: 62ch; margin: 0 0 20px; }
.nb-pagehead--error { border-bottom: 0; padding-top: 48px; }
.nb-section-title { font-size: 1.25rem; line-height: 1.3; margin: 0 0 18px; color: var(--nb-brand-deep); }
.nb-count { color: var(--nb-muted); font-weight: 400; }

/* ---------- search ---------- */
.nb-search { display: flex; max-width: 560px; border: 1px solid var(--nb-rule); border-radius: var(--nb-radius); background: #fff; overflow: hidden; }
.nb-search:focus-within { border-color: var(--nb-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nb-brand) 18%, transparent); }
.nb-search input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--nb-ink); background: transparent; }
.nb-search input:focus { outline: none; }
.nb-search button { border: 0; background: var(--nb-brand); color: #fff; font: inherit; font-weight: 600; padding: 0 20px; cursor: pointer; }
.nb-search button:hover { background: var(--nb-brand-deep); }

/* ---------- topic index (archive) ---------- */
.nb-topics { margin-bottom: 44px; }
.nb-topics__sub { font-size: 1rem; margin: 28px 0 10px; color: var(--nb-muted); font-weight: 600; }
.nb-topics__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--nb-brand); }
.nb-topic { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--nb-rule); }
.nb-topic__name { font-weight: 700; font-size: 1.0625rem; text-decoration: none; color: var(--nb-brand-deep); }
.nb-topic__name:hover { text-decoration: underline; }
.nb-topic__desc { grid-column: 1; margin: 0; color: var(--nb-muted); font-size: 0.9375rem; }
.nb-topic__count { grid-column: 2; grid-row: 1; font-size: 0.875rem; color: var(--nb-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 820px) {
  .nb-topics__list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

/* ---------- article lists ---------- */
.nb-list { list-style: none; margin: 0; padding: 0; }
.nb-item { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--nb-rule); }
.nb-item:first-child { padding-top: 4px; }
.nb-item__thumb { display: block; border-radius: var(--nb-radius); overflow: hidden; background: var(--nb-tint); aspect-ratio: 16 / 9; }
.nb-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nb-item__title { font-size: 1.1875rem; line-height: 1.35; margin: 0 0 6px; }
.nb-item__title a { color: var(--nb-ink); text-decoration: none; }
.nb-item__title a:hover { color: var(--nb-brand); text-decoration: underline; }
.nb-item__excerpt { margin: 0 0 8px; color: var(--nb-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nb-item__meta { margin: 0; font-size: 0.875rem; color: var(--nb-muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.nb-item__meta span { color: var(--nb-brand); font-weight: 600; }
.nb-item--ad { display: block; }
@media (min-width: 640px) {
  .nb-item:has(.nb-item__thumb) { grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
}
.nb-list--compact .nb-item { padding: 14px 0; }
.nb-list--compact .nb-item__title { font-size: 1.0625rem; }
@media (min-width: 820px) {
  .nb-list--compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
  .nb-list--compact .nb-item { border-top: 2px solid var(--nb-brand); border-bottom: 0; padding-top: 14px; }
}

.nb-empty { padding: 28px; background: var(--nb-tint); border-radius: var(--nb-radius); color: var(--nb-muted); }
.nb-empty p { margin: 0 0 14px; max-width: 60ch; }
.nb-empty p:last-child { margin-bottom: 0; }

/* ---------- pagination ---------- */
.nb-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 36px 0 0; }
.nb-pager ol { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.nb-pager a, .nb-pager span[aria-current] { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--nb-rule); border-radius: var(--nb-radius); text-decoration: none; font-variant-numeric: tabular-nums; }
.nb-pager a:hover { border-color: var(--nb-brand); }
.nb-pager span[aria-current] { background: var(--nb-brand); border-color: var(--nb-brand); color: #fff; font-weight: 700; }
.nb-pager__gap { align-self: center; color: var(--nb-muted); padding: 0 2px; }

/* ---------- article layout ---------- */
.nb-post { display: grid; grid-template-columns: minmax(0, 1fr); }
.nb-post__main { min-width: 0; max-width: var(--nb-measure); }
.nb-post__side { display: none; }
@media (min-width: 1024px) {
  .nb-post--toc { grid-template-columns: minmax(0, var(--nb-measure)) 300px; column-gap: 56px; }
  .nb-post--toc .nb-post__side { display: block; }
  .nb-post--toc .nb-toc--inline { display: none; }
}
.nb-post__head { padding: 12px 0 22px; }
.nb-post__hub { display: inline-block; font-weight: 600; font-size: 0.9375rem; text-decoration: none; margin-bottom: 10px; }
.nb-post__hub:hover { text-decoration: underline; }
.nb-post__title { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem); line-height: 1.18; letter-spacing: -0.012em; margin: 0 0 16px; color: var(--nb-brand-deep); }
.nb-byline { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.9375rem; color: var(--nb-muted); }
.nb-byline strong { color: var(--nb-ink); }
.nb-post__figure { margin: 0 0 28px; border-radius: var(--nb-radius); overflow: hidden; background: var(--nb-tint); }
.nb-post__figure img { display: block; width: 100%; height: auto; }

/* ---------- Contents (report-style index) ---------- */
.nb-toc__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; font-weight: 700; color: var(--nb-brand-deep); }
.nb-toc__title span { font-weight: 400; font-size: 0.8125rem; color: var(--nb-muted); }
.nb-toc__list { list-style: none; margin: 0; padding: 0; counter-reset: nbtoc; }
.nb-toc__list li { counter-increment: nbtoc; }
.nb-toc__list a { display: grid; grid-template-columns: 1fr; padding: 7px 0 7px 12px; border-left: 2px solid var(--nb-rule); color: var(--nb-ink); text-decoration: none; font-size: 0.9375rem; line-height: 1.4; }
.nb-toc__list--num a { grid-template-columns: 2.1em 1fr; }
.nb-toc__list--num a::before { content: counter(nbtoc) "."; color: var(--nb-muted); font-variant-numeric: tabular-nums; }
.nb-toc__list a:hover { color: var(--nb-brand); border-left-color: var(--nb-brand); }
.nb-toc__list a[aria-current="true"] { border-left-color: var(--nb-accent); color: var(--nb-brand-deep); font-weight: 600; }
.nb-toc--inline { margin: 0 0 32px; border: 1px solid var(--nb-rule); border-radius: var(--nb-radius); background: var(--nb-tint); }
.nb-toc--inline summary { cursor: pointer; padding: 14px 16px; list-style: none; }
.nb-toc--inline summary::-webkit-details-marker { display: none; }
.nb-toc--inline summary .nb-toc__title::after { content: attr(data-show); margin-left: auto; font-weight: 600; font-size: 0.875rem; color: var(--nb-brand); }
.nb-toc--inline[open] summary .nb-toc__title::after { content: attr(data-hide); }
.nb-toc--inline .nb-toc__list { padding: 0 16px 14px; }
.nb-toc--side { position: sticky; top: calc(var(--nb-sticky-offset) + 24px); max-height: calc(100vh - var(--nb-sticky-offset) - 48px); overflow-y: auto; padding: 16px 4px 16px 0; margin-top: 12px; }
.nb-toc--side .nb-toc__title { padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid var(--nb-brand); }

/* ---------- prose ---------- */
.nb-prose { font-size: 1.0625rem; line-height: 1.75; }
@media (min-width: 640px) { .nb-prose { font-size: 1.125rem; } }
.nb-prose > * { margin-top: 0; margin-bottom: 1.15em; }
.nb-prose h2 { font-size: 1.55em; line-height: 1.25; margin: 2em 0 0.65em; padding-top: 0.55em; border-top: 1px solid var(--nb-rule); color: var(--nb-brand-deep); letter-spacing: -0.008em; }
.nb-prose > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.nb-prose h3 { font-size: 1.22em; line-height: 1.3; margin: 1.6em 0 0.5em; color: var(--nb-ink); }
.nb-prose h4 { font-size: 1.05em; margin: 1.4em 0 0.4em; }
.nb-prose ul, .nb-prose ol { padding-left: 1.4em; }
.nb-prose li { margin-bottom: 0.45em; }
.nb-prose li::marker { color: var(--nb-brand); }
.nb-prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--nb-brand); color: var(--nb-muted); }
.nb-prose figure { margin: 1.6em 0; }
.nb-prose figcaption { font-size: 0.875rem; color: var(--nb-muted); margin-top: 8px; }
.nb-prose img { border-radius: var(--nb-radius); }
.nb-prose hr { border: 0; border-top: 1px solid var(--nb-rule); margin: 2.4em 0; }
.nb-prose code { font-size: 0.9em; background: var(--nb-tint); padding: 0.1em 0.35em; border-radius: 3px; }
.nb-prose pre { overflow-x: auto; background: var(--nb-tint); padding: 16px; border-radius: var(--nb-radius); font-size: 0.9em; }
.nb-prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--nb-radius); }
.nb-prose a { word-break: break-word; }

/* Tables: spec-sheet style (costs, machinery, capacity) */
.nb-table { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--nb-rule); border-radius: var(--nb-radius);
  background: linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left/40px 100% no-repeat local,
              linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right/40px 100% no-repeat local,
              radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.12), transparent) left/12px 100% no-repeat scroll,
              radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.12), transparent) right/12px 100% no-repeat scroll; }
.nb-table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; min-width: 520px; }
.nb-table caption { caption-side: top; text-align: left; font-weight: 700; padding: 12px 14px 0; color: var(--nb-brand-deep); }
.nb-table th, .nb-table td { padding: 9px 14px; border-bottom: 1px solid var(--nb-rule); text-align: left; vertical-align: top; }
/* Google Docs wraps every cell in <p>: remove the paragraph gaps that made rows tall */
.nb-prose .nb-table th > p, .nb-prose .nb-table td > p { margin: 0; font-size: inherit; line-height: inherit; }
.nb-prose .nb-table th > p + p, .nb-prose .nb-table td > p + p { margin-top: 0.4em; }
.nb-table thead th, .nb-table tr:first-child > th { background: var(--nb-brand-deep); color: #fff; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; padding-top: 11px; padding-bottom: 11px; border-bottom: 0; white-space: nowrap; }
.nb-table tbody tr:nth-child(even) td { background: var(--nb-tint); }
.nb-table tbody tr:hover td { background: #eef0fa; }
.nb-table tr:last-child td { border-bottom: 0; }
.nb-table td:first-child { font-weight: 600; color: var(--nb-brand-deep); }
.nb-table .nb-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nb-table td.nb-num { font-weight: 400; color: var(--nb-ink); }
/* A narrow "#" / serial-number first column */
.nb-table .nb-serial { width: 1%; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nb-table td.nb-serial { color: var(--nb-muted); font-weight: 600; }

/* Author photo: small round photo in the byline, larger one in the "Written and reviewed by" box */
.nb-byline--photo { align-items: center; }
.nb-byline__photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--nb-rule); }
.nb-author--photo { display: flex; gap: 20px; align-items: flex-start; }
.nb-author__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--nb-tint); }
.nb-author__body { min-width: 0; }
@media (max-width: 480px) { .nb-author__photo { width: 72px; height: 72px; } .nb-author--photo { gap: 14px; } }

/* ---------- ad slots (only rendered when code is present) ---------- */
.nb-ad { margin: 2.2em 0; padding: 10px 0 12px; border-top: 1px solid var(--nb-rule); border-bottom: 1px solid var(--nb-rule); clear: both; }
.nb-ad__label { display: block; font-size: 0.75rem; color: var(--nb-muted); margin-bottom: 8px; text-align: center; letter-spacing: 0.02em; }
.nb-ad__unit { display: flex; justify-content: center; align-items: center; width: 100%; overflow: hidden; }
.nb-ad--outline .nb-ad__unit { border: 2px dashed #b9c2cc; border-radius: var(--nb-radius); background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 10px, #f3f5f7 10px, #f3f5f7 20px); }
.nb-item--ad .nb-ad { margin: 8px 0; border: 0; }
.nb-prose .nb-ad + h2 { border-top: 0; padding-top: 0; margin-top: 1.4em; }

/* ---------- author + enquiry ---------- */
.nb-author { margin: 40px 0 0; padding: 20px 0 0; border-top: 2px solid var(--nb-brand); max-width: var(--nb-measure); }
.nb-author__label { margin: 0 0 4px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--nb-muted); }
.nb-author__name { font-weight: 700; margin: 0 0 6px; color: var(--nb-brand-deep); }
.nb-author__name span { display: block; font-weight: 400; font-size: 0.9375rem; color: var(--nb-muted); }
.nb-author__bio { margin: 0 0 8px; color: var(--nb-ink); }
.nb-enquiry { margin: 44px 0 0; padding: 28px; background: var(--nb-tint); border-radius: var(--nb-radius); border-left: 4px solid var(--nb-brand); }
.nb-enquiry h2 { font-size: 1.375rem; margin: 0 0 8px; color: var(--nb-brand-deep); }
.nb-enquiry > p { margin: 0 0 16px; color: var(--nb-muted); max-width: 60ch; }
.nb-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: var(--nb-radius); background: var(--nb-brand); color: #fff !important; font-weight: 600; text-decoration: none !important; }
.nb-btn:hover { background: var(--nb-brand-deep); }
.nb-btn--ghost { background: transparent; color: var(--nb-brand) !important; border: 1px solid var(--nb-brand); }
.nb-btn--ghost:hover { background: var(--nb-tint); }

/* ---------- related ---------- */
.nb-related { margin-top: 56px; padding-top: 8px; }

/* ---------- hub intro ---------- */
.nb-hubintro { margin-bottom: 48px; }

/* ---------- preview + fallback chrome ---------- */
.nb-preview-bar { position: sticky; top: 0; z-index: 50; background: #fff4d6; color: #5a4300; border-bottom: 1px solid #f0d58a; padding: 10px 20px; font-size: 0.9375rem; text-align: center; }
.nb-fallback-header, .nb-fallback-footer { font-family: var(--nb-font); }
.nb-fallback-header { border-bottom: 1px solid var(--nb-rule); background: #fff; }
.nb-fallback-header .nb-wrap, .nb-fallback-footer .nb-wrap { display: flex; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.nb-fallback-header a { font-weight: 700; color: var(--nb-brand-deep); text-decoration: none; }
.nb-fallback-footer { border-top: 1px solid var(--nb-rule); color: var(--nb-muted); font-size: 0.875rem; }

/* =====================================================================
   NIIR additions: sticky sidebar (Contents + CTA), CTA cards, article cards
   ===================================================================== */

/* Sidebar: Contents list and the CTA card stick together below the site header */
.nb-side-sticky { position: sticky; top: calc(var(--nb-sticky-offset) + 24px); max-height: calc(100vh - var(--nb-sticky-offset) - 48px); overflow-y: auto; padding: 0 4px 8px 0; margin-top: 12px; scrollbar-width: thin; }
.nb-side-sticky .nb-toc--side { position: static; max-height: none; overflow: visible; margin-top: 0; padding-top: 4px; }

/* CTA card (buttons only) */
.nb-cta { border-radius: 10px; background: var(--nb-brand-deep); color: #fff; padding: 22px; }
.nb-cta .nb-cta__kicker { margin: 0 0 6px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #8fd3a8; }
.nb-cta .nb-cta__title { margin: 0 0 8px; font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: #fff; }
.nb-cta .nb-cta__text { margin: 0 0 16px; font-size: 0.9375rem; line-height: 1.55; color: #dfe3f5; max-width: 60ch; }
.nb-cta .nb-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.nb .nb-cta a.nb-cta__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 6px; font-weight: 600; font-size: 0.9375rem; line-height: 1.2; text-decoration: none; border: 1px solid transparent; }
.nb .nb-cta a.nb-cta__btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.nb .nb-cta a.nb-cta__btn--wa, .nb .nb-cta a.nb-cta__btn--wa:hover { background: #25d366; color: #fff; }
.nb .nb-cta a.nb-cta__btn--wa:hover { background: #1eb457; }
.nb .nb-cta a.nb-cta__btn--call, .nb .nb-cta a.nb-cta__btn--call:hover { background: #fff; color: var(--nb-brand-deep); }
.nb .nb-cta a.nb-cta__btn--call:hover { background: #e8eaf4; }
.nb .nb-cta a.nb-cta__btn--line, .nb .nb-cta a.nb-cta__btn--line:hover { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.nb .nb-cta a.nb-cta__btn--line:hover { background: rgba(255,255,255,.1); }

.nb-cta--side { margin-top: 24px; padding: 20px; }
.nb-cta--side .nb-cta__title { font-size: 1.125rem; }
.nb-cta--side .nb-cta__btns { flex-direction: column; }
.nb-cta--mid { margin: 36px 0; }
@media (min-width: 1024px) { .nb-cta--mid { display: none; } }
.nb-cta--band { margin: 8px 0 48px; padding: 28px; }
@media (min-width: 820px) {
  .nb-cta--band { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: center; padding: 32px 36px; }
  .nb-cta--band .nb-cta__btns { grid-column: 2; grid-row: 1 / span 3; flex-direction: column; min-width: 240px; }
  .nb-cta--band .nb-cta__title { font-size: 1.5rem; }
}
@media (max-width: 480px) { .nb-cta .nb-cta__btns { flex-direction: column; } }

/* Article cards (archive, hubs, related, recently published) */
.nb-cards { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 640px) { .nb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .nb-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nb-card { display: flex; flex-direction: column; background: var(--nb-paper); border: 1px solid var(--nb-rule); border-radius: 10px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.nb-card:hover { box-shadow: 0 10px 28px rgba(17, 28, 85, .12); transform: translateY(-2px); }
.nb-card__thumb { display: block; aspect-ratio: 16 / 9; background: var(--nb-tint); overflow: hidden; }
.nb-card__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nb-card__ph { display: flex; align-items: center; justify-content: center; height: 100%; padding: 16px; text-align: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--nb-brand-deep), var(--nb-brand)); }
.nb-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; }
.nb a.nb-card__hub { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; }
.nb-card__title { margin: 0; font-size: 1.0625rem; line-height: 1.4; }
.nb .nb-card__title a { color: var(--nb-ink); text-decoration: none; }
.nb .nb-card__title a:hover { color: var(--nb-brand); text-decoration: underline; }
.nb-card__excerpt { margin: 0; font-size: 0.9375rem; color: var(--nb-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nb-card__date { margin-top: auto; padding-top: 6px; font-size: 0.8125rem; color: var(--nb-muted); }
.nb-latest { margin-bottom: 44px; }
@media (prefers-reduced-motion: reduce) { .nb-card, .nb-card:hover { transition: none; transform: none; } }

@media print {
  .nb-ad, .nb-search, .nb-toc, .nb-enquiry, .nb-related, .nb-pager, .nb-crumbs, .nb-cta, .nb-post__side { display: none !important; }
}
