/* Articles, archives and topic pages (blog and news). These pages are not in the redesign; they are built from its
   newsroom (news-and-blog.css: hero, cards, topics, CTA band) and privacy notice (one reading column, a sticky side
   column), with the same tokens: navy #0f1c4d, red #e0343c, link blue #2f5fd0, hairlines #e3e8f3, straight edges. */

/* ---------- hero ---------- */
.ar .nb-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); min-height: 0; padding-block: 34px 60px; align-items: end; }
.ar .nb-hero-in.solo { grid-template-columns: minmax(0, 1fr); }
.ar-title { margin: 0; font-size: clamp(34px, 3vw, 54px); font-weight: 900; line-height: 1.08; letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.ar-lede { max-width: 680px; margin-top: 20px !important; font-size: clamp(16.5px, 1.1vw, 18.5px); line-height: 1.6; color: #c9d4f2; }
.ar-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ar-meta span { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 15px 0 12px; border-radius: 999px; background: #ffffff12; box-shadow: inset 0 0 0 1px #ffffff26; font-size: 13.5px; font-weight: 700; color: #fff; }
.ar-meta svg { color: #9fb6ff; }
.ar-hero-art { position: relative; overflow: hidden; border-radius: 16px; background: #0b1640; box-shadow: 0 30px 60px rgba(3, 10, 40, .45), 0 0 0 1px #ffffff1f; }
.ar-hero-art .nb-blur { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(22px) brightness(.7); }
.ar-hero-art img { position: relative; display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.ar .nb-hero .nb-topics span { background: #ffffff1a; color: #dbe4ff; }
.ar .nb-hero .nb-topics a { color: inherit; }
.ar .nb-hero .nb-topics { margin-bottom: 18px; }

/* ---------- reading column + side column ---------- */
.ar-wrap { display: grid; grid-template-columns: minmax(0, 760px) 280px; justify-content: center; gap: clamp(40px, 5vw, 96px); padding-block: clamp(48px, 5vw, 80px) clamp(64px, 6vw, 104px); }
.ar-side { position: sticky; top: 104px; align-self: start; display: grid; gap: 18px; }
.ar-box { padding: 20px 22px; border-radius: 14px; background: #f5f7fc; box-shadow: inset 0 0 0 1px #e3e8f3; }
.ar-box > b { display: block; margin-bottom: 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #8a95b5; }
.ar-box .nb-topics a { color: inherit; }
.ar-share { display: flex; gap: 8px; }
.ar-share a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #dfe5f2; color: var(--navy); transition: box-shadow .2s, transform .2s; }
.ar-share a:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #b9c6e4, 0 10px 22px rgba(15, 28, 77, .1); }
.ar main .ar-share svg { width: 17px; height: 17px; }
.ar-share svg.fill { fill: currentColor; stroke: none; }
.ar-cta { padding: 24px 22px; border-radius: 16px; background: linear-gradient(180deg, #0f1c4d, #172a6a); color: #c9d4f2; }
.ar-cta h3 { margin: 0 0 8px !important; font-size: 18px; color: #fff !important; }
.ar-cta p { font-size: 14.5px; line-height: 1.55; }
.ar-cta .nb-btn { margin-top: 16px; height: 44px; background: #fff; color: var(--navy); }

/* ---------- article body: HTML from posts written on the old site, and Markdown alike ---------- */
.ar-body { font-size: 17px; line-height: 1.75; color: #2b3354; overflow-wrap: anywhere; }
.nb .ar-body p { margin: 0 0 18px; }
.ar-body > :first-child { margin-top: 0 !important; }
.nb .ar-body :is(h1, h2, h3, h4, h5, h6) { margin: 38px 0 12px; font-weight: 900; line-height: 1.25; letter-spacing: -.015em; color: var(--navy); }
.nb .ar-body :is(h1, h2) { font-size: clamp(26px, 1.9vw, 31px); }
.nb .ar-body h3 { font-size: clamp(22px, 1.6vw, 26px); }
.nb .ar-body :is(h4, h5) { font-size: 20px; }
.nb .ar-body h6 { font-size: 17.5px; }
.ar-body a { color: #2f5fd0; text-decoration: underline; text-decoration-color: #2f5fd055; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.ar-body a:hover { text-decoration-color: currentColor; }
.ar-body strong, .ar-body b { color: #1b2548; }
.ar-body ul, .ar-body ol { margin: 0 0 20px; padding-left: 24px; }
.ar-body ul { list-style: disc; }
.ar-body ol { list-style: decimal; }
.ar-body li { margin-bottom: 8px; }
.ar-body li::marker { color: #e0343c; }
.ar-body li > p { margin: 0 !important; }
.ar-body blockquote { margin: 0 0 24px; padding: 4px 0 4px 22px; border-left: 3px solid #e0343c; font-size: 19px; font-weight: 700; line-height: 1.55; color: var(--navy); }
.nb .ar-body blockquote p { margin: 0 0 10px; }
.ar-body hr { margin: 36px 0; border: 0; border-top: 1px solid #e3e8f3; }
.ar-body img { display: block; max-width: 100%; height: auto; margin: 8px auto 24px; border-radius: 12px; }
.ar-body :is(figure, .wp-caption) { width: auto !important; max-width: 100%; margin: 8px 0 26px; }
.ar-body :is(figure, .wp-caption) img { margin-bottom: 10px; }
.ar-body :is(figcaption, .wp-caption-text) { font-size: 13.5px; line-height: 1.5; text-align: center; color: #7b86a8; }
.ar-body iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; margin: 8px 0 26px; border: 0; border-radius: 12px; }
.ar-body code { padding: 2px 6px; border-radius: 5px; background: #eef2fa; font: 600 .88em ui-monospace, SFMono-Regular, Menlo, monospace; color: #1b2a66; }
.ar-body pre { margin: 0 0 24px; padding: 18px 20px; overflow-x: auto; border-radius: 12px; background: #0f1c4d; color: #dbe4ff; font-size: 14px; line-height: 1.6; }
.ar-body pre code { padding: 0; background: none; color: inherit; }
.ar-body table { width: 100%; margin: 8px 0 26px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.ar-body :is(th, td) { padding: 10px 12px; border: 1px solid #e3e8f3; text-align: left; vertical-align: top; }
.ar-body th, .ar-body thead td { background: #f5f7fc; font-weight: 800; color: var(--navy); }
.ar-body td p { margin: 0 !important; }
.ar-body .table-wrap { overflow-x: auto; }
/* Ghost-style button cards pasted into older posts */
.ar-body .kg-button-card { margin: 8px 0 26px; }
.ar-body .kg-btn { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; text-decoration: none; }
.ar-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid #e3e8f3; font-size: 13px; font-weight: 700; color: #7b86a8; }
.ar-tags .nb-topics a { color: inherit; }
.ar-src { margin-top: 18px !important; font-size: 14px; color: #7b86a8; }

/* ---------- archive and topic pages ---------- */
.ar-list .nb-grid { margin-top: 0; }
.ar-count { font-size: 15.5px; line-height: 1.6; color: #c9d4f2; margin-top: 18px !important; }
.ar-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 2.6vw, 40px); }
.ar-tabs a { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #dfe5f2; font-size: 14px; font-weight: 700; color: #4c5578; transition: box-shadow .2s, color .2s; }
.ar-tabs a:hover { color: var(--navy); box-shadow: inset 0 0 0 1px #b9c6e4; }
.ar-tabs a[aria-current] { background: var(--navy); color: #fff; box-shadow: none; }
.ar-pages { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: clamp(36px, 3vw, 52px); }
.ar-pages a, .ar-pages span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #dfe5f2; font-size: 15px; font-weight: 800; color: var(--navy); }
.ar-pages a:hover { box-shadow: inset 0 0 0 1px #b9c6e4, 0 10px 22px rgba(15, 28, 77, .08); }
.ar-pages [aria-current] { background: var(--navy); color: #fff; box-shadow: none; }
.ar-pages .gap { background: none; box-shadow: none; color: #9aa6c4; }
.ar-news { display: grid; gap: 14px; }
.ar-news a { display: grid; grid-template-columns: 220px minmax(0, 1fr) 20px; gap: 26px; align-items: center; padding: 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px #e1e6f2; transition: box-shadow .2s, transform .2s; }
.ar-news a:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #c8d3ec, 0 14px 30px rgba(15, 28, 77, .08); }
.ar-news img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.ar-news h3 { margin: 8px 0 6px !important; font-size: 19px; line-height: 1.3; }
.ar-news .nb-ex { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .ar .nb-hero-in { grid-template-columns: minmax(0, 1fr); }
  .ar-hero-art { max-width: 640px; }
  .ar-wrap { grid-template-columns: minmax(0, 1fr); max-width: 800px; margin-inline: auto; }
  .ar-side { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 700px) {
  .ar-body { font-size: 16.5px; }
  .ar-news a { grid-template-columns: 1fr; gap: 14px; }
  .ar-news a > svg { display: none; }
}
@media print {
  .ar-side, .nb-cta, .ar-more, [data-nav], .ftx { display: none !important; }
  .ar-wrap { display: block; padding: 0; }
}
