/* Blog list (/blogs) and blog article (/blog/:slug) — scoped to .amr-blog so nothing else on the site changes. */
.amr-blog {
  --amrb-navy: #023048;
  --amrb-blue: #3a6c87;
  --amrb-mint: #afeae4;
  --amrb-mint-soft: #e8f7f5;
  --amrb-ink: #1b2b33;
  --amrb-muted: #5b6f78;
  --amrb-line: #e3ecef;
  --amrb-bg: #f5f9fa;
  --amrb-radius: 16px;
  --amrb-shadow: 0 1px 2px rgba(2, 48, 72, .06), 0 8px 24px rgba(2, 48, 72, .06);
  --amrb-shadow-hover: 0 2px 4px rgba(2, 48, 72, .08), 0 16px 40px rgba(2, 48, 72, .12);
  color: var(--amrb-ink);
}
.amr-blog a { text-decoration: none; }
.amr-blog img { max-width: 100%; }

/* ---------- Shared pieces ---------- */
.amrb-breadcrumb { font-size: 14px; margin: 0 0 18px; padding: 0; background: none; }
.amrb-breadcrumb .breadcrumb-item, .amrb-breadcrumb .breadcrumb-item a { color: var(--amrb-muted); }
.amrb-breadcrumb .breadcrumb-item a:hover { color: var(--amrb-navy); }
.amrb-breadcrumb .breadcrumb-item.active { color: var(--amrb-ink); }

.amrb-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--amrb-mint-soft); color: var(--amrb-navy);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; line-height: 1.2;
}
a.amrb-pill:hover { background: var(--amrb-mint); color: var(--amrb-navy); }

.amrb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--amrb-muted); font-size: 14px; }
.amrb-meta span { display: inline-flex; align-items: center; gap: 6px; }
.amrb-meta i { color: var(--amrb-blue); font-size: 13px; }

.amrb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 15px;
  background: var(--amrb-navy); color: #fff; border: 2px solid var(--amrb-navy);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.amrb-btn:hover { background: #04476a; border-color: #04476a; color: #fff; transform: translateY(-1px); }
.amrb-btn-ghost { background: transparent; color: var(--amrb-navy); }
.amrb-btn-ghost:hover { background: var(--amrb-navy); color: #fff; }
.amrb-btn-mint { background: var(--amrb-mint); border-color: var(--amrb-mint); color: var(--amrb-navy); }
.amrb-btn-mint:hover { background: #c6f1ec; border-color: #c6f1ec; color: var(--amrb-navy); }

.amrb-section-title { font-size: 28px; line-height: 1.25; font-weight: 800; color: var(--amrb-navy); margin: 0 0 6px; }
.amrb-section-sub { color: var(--amrb-muted); margin: 0 0 24px; font-size: 16px; }

/* ---------- Blog cards ---------- */
.amrb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.amrb-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--amrb-line);
  border-radius: var(--amrb-radius); overflow: hidden; box-shadow: var(--amrb-shadow);
  transition: transform .2s ease, box-shadow .2s ease; height: 100%;
}
.amrb-card:hover { transform: translateY(-4px); box-shadow: var(--amrb-shadow-hover); }
.amrb-card-media { position: relative; display: block; aspect-ratio: 1024 / 713; background: var(--amrb-bg); overflow: hidden; }
.amrb-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.amrb-card:hover .amrb-card-media img { transform: scale(1.04); }
.amrb-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.amrb-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.amrb-card-body .amrb-meta { font-size: 13px; }
.amrb-card-title { font-size: 19px; line-height: 1.35; font-weight: 800; margin: 0; }
.amrb-card-title a { color: var(--amrb-navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.amrb-card-title a:hover { color: var(--amrb-blue); }
.amrb-card-excerpt { color: var(--amrb-muted); font-size: 15px; line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.amrb-card-link { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14px; color: var(--amrb-blue); display: inline-flex; align-items: center; gap: 6px; }
.amrb-card-link i { transition: transform .2s ease; }
.amrb-card:hover .amrb-card-link i { transform: translateX(4px); }

/* ---------- Blog list page ---------- */
.amrb-list-hero { background: linear-gradient(135deg, #023048 0%, #0b4a68 60%, #3a6c87 100%); color: #fff; padding: 36px 0 34px; position: relative; overflow: hidden; }
.amrb-list-hero::after { content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 48px 48px; }
.amrb-list-hero > .container { position: relative; z-index: 1; }
.amrb-list-hero .amrb-breadcrumb .breadcrumb-item, .amrb-list-hero .amrb-breadcrumb .breadcrumb-item a,
.amrb-list-hero .amrb-breadcrumb .breadcrumb-item::before { color: #cde2e7; }
.amrb-list-hero .amrb-breadcrumb .breadcrumb-item.active { color: #fff; }
.amrb-eyebrow { display: inline-block; color: var(--amrb-mint); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.amrb-list-hero h1 { color: #fff; font-size: 44px; line-height: 1.12; font-weight: 800; margin: 0 0 12px; max-width: 760px; }
.amrb-list-hero p { color: #cde2e7; font-size: 18px; line-height: 1.6; margin: 0; max-width: 680px; }

.amrb-chips-wrap { background: #fff; border-bottom: 1px solid var(--amrb-line); position: sticky; top: 0; z-index: 20; }
.amrb-chips { display: flex; gap: 10px; overflow-x: auto; padding: 14px 0; scrollbar-width: thin; scroll-snap-type: x proximity; }
.amrb-chips::-webkit-scrollbar { height: 6px; }
.amrb-chips::-webkit-scrollbar-thumb { background: var(--amrb-line); border-radius: 3px; }
.amrb-chip { flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--amrb-line); background: #fff;
  color: var(--amrb-ink); font-size: 14px; font-weight: 600; white-space: nowrap; transition: all .15s ease; }
.amrb-chip small { background: var(--amrb-bg); color: var(--amrb-muted); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; }
.amrb-chip:hover { border-color: var(--amrb-blue); color: var(--amrb-navy); }
.amrb-chip.active { background: var(--amrb-navy); border-color: var(--amrb-navy); color: #fff; }
.amrb-chip.active small { background: rgba(255, 255, 255, .18); color: #fff; }

.amrb-list-body { background: var(--amrb-bg); padding: 40px 0 56px; }

.amrb-featured { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid var(--amrb-line);
  border-radius: 20px; overflow: hidden; box-shadow: var(--amrb-shadow); margin-bottom: 36px; transition: box-shadow .2s ease; }
.amrb-featured:hover { box-shadow: var(--amrb-shadow-hover); }
.amrb-featured-media { display: block; background: var(--amrb-bg); aspect-ratio: 1024 / 713; overflow: hidden; align-self: center; }
.amrb-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.amrb-featured:hover .amrb-featured-media img { transform: scale(1.03); }
.amrb-featured-body { padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.amrb-featured-label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--amrb-blue); }
.amrb-featured-title { font-size: 30px; line-height: 1.2; font-weight: 800; margin: 0; }
.amrb-featured-title a { color: var(--amrb-navy); }
.amrb-featured-title a:hover { color: var(--amrb-blue); }
.amrb-featured-excerpt { color: var(--amrb-muted); font-size: 16px; line-height: 1.65; margin: 0; }

.amrb-empty { background: #fff; border: 1px dashed var(--amrb-line); border-radius: var(--amrb-radius); padding: 48px 24px; text-align: center; color: var(--amrb-muted); }

.amrb-pagination { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 44px; }
.amrb-pagination ul { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.amrb-pagination a, .amrb-pagination span.amrb-page {
  min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--amrb-line); background: #fff; color: var(--amrb-ink); font-weight: 700; }
.amrb-pagination a:hover { border-color: var(--amrb-navy); color: var(--amrb-navy); }
.amrb-pagination .active span.amrb-page { background: var(--amrb-navy); border-color: var(--amrb-navy); color: #fff; }
.amrb-pagination .disabled span.amrb-page { opacity: .4; }
.amrb-pagination-info { color: var(--amrb-muted); font-size: 14px; }

.amrb-cta { background: var(--amrb-navy); border-radius: 20px; padding: 36px 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; margin-top: 56px; position: relative; overflow: hidden; }
.amrb-cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(175, 234, 228, .12); }
.amrb-cta h2 { color: #fff; font-size: 26px; line-height: 1.3; font-weight: 800; margin: 0 0 6px; }
.amrb-cta p { color: #cde2e7; margin: 0; font-size: 16px; }
.amrb-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.amrb-cta .amrb-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.amrb-cta .amrb-btn-ghost:hover { background: #fff; color: var(--amrb-navy); border-color: #fff; }

/* ---------- Blog article page ---------- */
.amrb-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--amrb-mint); z-index: 1100; transition: width .1s linear; }

.amrb-article-hero { background: linear-gradient(180deg, var(--amrb-bg) 0%, #fff 100%); padding: 28px 0 8px; }
.amrb-narrow { max-width: 1140px; margin-left: auto; margin-right: auto; }
.amrb-article-head { max-width: 860px; }
.amrb-article-head h1 { font-size: 42px; line-height: 1.16; font-weight: 800; color: var(--amrb-navy); margin: 16px 0 14px; letter-spacing: -.01em; }
.amrb-lead { font-size: 19px; line-height: 1.6; color: var(--amrb-muted); margin: 0 0 20px; }
.amrb-article-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--amrb-line); border-bottom: 1px solid var(--amrb-line); }
.amrb-share { display: flex; align-items: center; gap: 8px; }
.amrb-share-label { font-size: 13px; font-weight: 700; color: var(--amrb-muted); margin-right: 2px; }
.amrb-share a, .amrb-share button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--amrb-line); background: #fff; color: var(--amrb-navy);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; transition: all .15s ease; }
.amrb-share a:hover, .amrb-share button:hover { background: var(--amrb-navy); border-color: var(--amrb-navy); color: #fff; }
.amrb-share button.copied { background: var(--amrb-mint); border-color: var(--amrb-mint); color: var(--amrb-navy); }

.amrb-cover { margin: 28px auto 0; border-radius: 20px; overflow: hidden; box-shadow: var(--amrb-shadow); background: var(--amrb-bg); aspect-ratio: 1316 / 800; }
.amrb-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.amrb-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 40px; padding-bottom: 24px; align-items: start; }

/* Article typography */
.amrb-content { font-size: 18px; line-height: 1.8; color: var(--amrb-ink); max-width: 760px; text-align: left; font-weight: 400; overflow-wrap: break-word; }
.amrb-content > *:first-child { margin-top: 0; }
.amrb-content p { margin: 0 0 22px; font-size: 18px; line-height: 1.8; color: var(--amrb-ink); }
.amrb-content h2 { font-size: 28px; line-height: 1.3; font-weight: 800; color: var(--amrb-navy); margin: 48px 0 16px; scroll-margin-top: 90px; letter-spacing: -.005em; }
.amrb-content h3 { font-size: 21px; line-height: 1.4; font-weight: 700; color: var(--amrb-navy); margin: 32px 0 10px; scroll-margin-top: 90px; }
.amrb-content h4 { font-size: 18px; font-weight: 700; color: var(--amrb-navy); margin: 24px 0 8px; }
.amrb-content ul, .amrb-content ol { margin: 0 0 24px; padding-left: 0; list-style: none; }
.amrb-content ul > li, .amrb-content ol > li { position: relative; padding-left: 30px; margin-bottom: 10px; font-size: 18px; line-height: 1.7; }
.amrb-content ul > li::before { content: ""; position: absolute; left: 8px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--amrb-blue); }
.amrb-content ol { counter-reset: amrb; }
.amrb-content ol > li { counter-increment: amrb; padding-left: 40px; }
.amrb-content ol > li::before { content: counter(amrb); position: absolute; left: 0; top: .2em; width: 26px; height: 26px; border-radius: 50%;
  background: var(--amrb-mint-soft); color: var(--amrb-navy); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.amrb-content strong { color: var(--amrb-navy); font-weight: 700; }
.amrb-content a { color: var(--amrb-blue); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(58, 108, 135, .35); text-underline-offset: 3px; }
.amrb-content a:hover { color: var(--amrb-navy); text-decoration-color: var(--amrb-navy); }
.amrb-content img { height: auto; border-radius: 12px; margin: 8px 0 24px; }
.amrb-content blockquote { margin: 28px 0; padding: 18px 24px; border-left: 4px solid var(--amrb-mint); background: var(--amrb-bg); border-radius: 0 12px 12px 0; font-size: 19px; color: var(--amrb-navy); }
.amrb-table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--amrb-line); border-radius: 12px; }
.amrb-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.amrb-content th, .amrb-content td { padding: 12px 14px; border-bottom: 1px solid var(--amrb-line); text-align: left; }
.amrb-content th { background: var(--amrb-bg); color: var(--amrb-navy); }

/* "Key Takeaways" box and FAQ, recognised by heading text (see blog.html script) */
.amrb-content .amrb-takeaways { background: linear-gradient(135deg, var(--amrb-mint-soft), #f3fbfa); border: 1px solid #cbeee9; border-radius: 16px; padding: 22px 26px 8px; margin: 8px 0 32px; }
.amrb-content .amrb-takeaways h2 { font-size: 18px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.amrb-content .amrb-takeaways h2::before { content: "\f0eb"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: var(--amrb-blue); }
.amrb-content .amrb-takeaways ul > li { font-size: 17px; }
.amrb-content .amrb-faq-q { background: #fff; border: 1px solid var(--amrb-line); border-radius: 12px; padding: 16px 20px; margin: 12px 0 0; font-size: 18px; cursor: pointer; position: relative; padding-right: 48px; }
.amrb-content .amrb-faq-q::after { content: "\f078"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--amrb-blue); transition: transform .2s ease; }
.amrb-content .amrb-faq-q.open { border-radius: 12px 12px 0 0; border-bottom-color: transparent; }
.amrb-content .amrb-faq-q.open::after { transform: translateY(-50%) rotate(180deg); }
.amrb-content .amrb-faq-a { border: 1px solid var(--amrb-line); border-top: 0; border-radius: 0 0 12px 12px; padding: 0 20px 16px; margin: 0; display: none; }
.amrb-content .amrb-faq-q.open + .amrb-faq-a { display: block; }

/* Article footer */
.amrb-article-end { max-width: 760px; margin-top: 36px; }
.amrb-author { display: flex; gap: 18px; align-items: center; background: var(--amrb-bg); border: 1px solid var(--amrb-line); border-radius: 16px; padding: 22px 24px; margin-top: 24px; }
.amrb-author-logo { width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 1px solid var(--amrb-line); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; overflow: hidden; }
.amrb-author-logo img { width: 48px; height: 48px; object-fit: contain; }
.amrb-author h3 { font-size: 17px; font-weight: 800; color: var(--amrb-navy); margin: 0 0 4px; }
.amrb-author p { margin: 0; font-size: 15px; color: var(--amrb-muted); line-height: 1.55; }

/* Sidebar */
.amrb-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.amrb-box { background: #fff; border: 1px solid var(--amrb-line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--amrb-shadow); }
.amrb-box-title { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--amrb-muted); margin: 0 0 12px; }
.amrb-toc ol { list-style: none; margin: 0; padding: 0; max-height: 52vh; overflow-y: auto; }
.amrb-toc li a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--amrb-line); color: var(--amrb-muted); font-size: 14px; line-height: 1.4; }
.amrb-toc li a:hover { color: var(--amrb-navy); }
.amrb-toc li a.active { border-left-color: var(--amrb-blue); color: var(--amrb-navy); font-weight: 700; }
.amrb-side-cta { background: linear-gradient(160deg, #023048, #0b4a68); color: #fff; border: 0; }
.amrb-side-cta h3 { color: #fff; font-size: 20px; line-height: 1.3; font-weight: 800; margin: 0 0 8px; }
.amrb-side-cta p { color: #cde2e7; font-size: 15px; line-height: 1.55; margin: 0 0 16px; }
.amrb-side-cta .amrb-btn { width: 100%; }
.amrb-aside .page-section { margin: 0 !important; }
.amrb-aside .related_tags h4 { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--amrb-muted); margin-bottom: 12px !important; }

.amrb-related { background: var(--amrb-bg); padding: 48px 0 56px; margin-top: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .amrb-article-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
}
@media (max-width: 991.98px) {
  .amrb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .amrb-featured { grid-template-columns: 1fr; }
  .amrb-featured-body { padding: 26px 26px 30px; }
  .amrb-article-layout { grid-template-columns: 1fr; gap: 32px; }
  .amrb-aside { position: static; }
  .amrb-toc-box { display: none; }
  .amrb-cta { flex-direction: column; align-items: flex-start; padding: 30px 28px; }
}
@media (max-width: 767.98px) {
  .amrb-list-hero { padding: 26px 0 26px; }
  .amrb-list-hero h1 { font-size: 32px; }
  .amrb-list-hero p { font-size: 16px; }
  .amrb-list-body { padding: 26px 0 40px; }
  .amrb-grid { grid-template-columns: 1fr; gap: 18px; }
  .amrb-featured-title { font-size: 23px; }
  .amrb-article-head h1 { font-size: 30px; }
  .amrb-lead { font-size: 17px; }
  .amrb-cover { border-radius: 14px; margin-top: 20px; }
  .amrb-content, .amrb-content p, .amrb-content ul > li, .amrb-content ol > li { font-size: 17px; }
  .amrb-content h2 { font-size: 24px; margin-top: 38px; }
  .amrb-content h3 { font-size: 19px; }
  .amrb-author { flex-direction: column; align-items: flex-start; }
  .amrb-cta h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .amr-blog *, .amr-blog *::before, .amr-blog *::after { transition: none !important; }
}
