/* Results Digital — blog: the Articles page, post pages, category / month / author / search pages.
   Designs: tools/design/articles.dc.html and article-detail.dc.html. Loaded by partials/head.php when the body
   class has "rd-blog". Markup: site/articles.php (cards, pager), site/theme.php (posts, archives, sidebar).
   Breakpoints as rd.css: tablet <= 1099px, phone <= 639px. */

.bl-wrap { max-width: 1280px; margin: 0 auto; }
.bl-arrow { font-family: 'Archivo', serif; }

/* ---- list pages: hero ---- */
.bl-hero { padding: clamp(52px,7cqw,88px) 24px clamp(40px,5cqw,64px); background: radial-gradient(1100px 620px at 78% -10%,rgba(47,155,245,0.28),transparent 60%),#0B2545; }
.bl-hero h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(34px,4.6cqw,58px); line-height: 1.05; letter-spacing: -0.02em; color: #FFFFFF; overflow-wrap: anywhere; }
.bl-hero-eyebrow { margin-bottom: 14px; font: 700 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.bl-crumbs { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 14px/1 var(--body); color: #9FB6CE; }
.bl-crumbs a { color: #9FB6CE; }
.bl-crumbs a:hover { color: var(--cyan); }
.bl-crumbs .current { color: #FFFFFF; }

/* ---- Articles page: latest-post spotlight ---- */
.bl-feat-sec { padding: clamp(40px,5cqw,60px) 24px 0; }
.bl-feat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,3cqw,44px); align-items: center; background: #0B2545; border-radius: 22px; overflow: hidden; }
.bl-feat-img { min-height: 360px; overflow: hidden; }
.bl-feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-feat-body { padding: clamp(28px,3.5cqw,48px); }
.bl-feat-eyebrow { font: 700 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.bl-feat-title { margin: 14px 0 0; font: 700 clamp(24px,2.8cqw,34px)/1.25 var(--display); color: #FFFFFF; }
.bl-feat-meta { margin-top: 12px; font: 500 14px/1 var(--body); color: var(--pale); }
.bl-feat-excerpt { margin: 16px 0 0; font: 400 16px/1.6 var(--body); color: var(--light); }
.bl-more { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font: 700 15px/1 var(--display); }
.bl-feat:hover .bl-more { color: var(--cyan-hi); }
.bl-noimg { background: radial-gradient(500px 300px at 80% 0%,rgba(47,155,245,0.35),transparent 70%),#123A6B; }

/* ---- category tabs / search box ---- */
.bl-tabs-sec { padding: clamp(32px,4cqw,44px) 24px 0; }
.bl-tabs { display: flex; gap: 10px; flex-wrap: wrap; scroll-margin-top: 100px; } /* paging scrolls here, below the sticky header */
.bl-tab { display: inline-block; padding: 9px 18px; border-radius: 999px; font: 600 13px/1 var(--body); border: 1px solid rgba(255,255,255,0.15); background: transparent; color: #9FB6CE; transition: border-color .2s ease, color .2s ease; }
.bl-tab:hover { border-color: var(--cyan); color: var(--cyan); }
.bl-tab.active { border-color: var(--cyan); background: var(--cyan); color: var(--deep); }
.bl-search { display: flex; gap: 10px; }
.bl-search input { flex: 1 1 auto; min-width: 0; padding: 13px 14px; border-radius: 8px; border: 1px solid var(--line2); background: #FFFFFF; font: 400 14px/1 var(--body); color: var(--navy); }
.bl-search button { flex: 0 0 auto; padding: 0 18px; border: none; border-radius: 8px; background: var(--line2); color: var(--text); font: 600 13px/1 var(--body); cursor: pointer; }
.bl-search button:hover { background: var(--cyan); color: var(--deep); }
.bl-tabs-sec .bl-search { max-width: 560px; }
.bl-tabs-sec .bl-search button { background: var(--cyan); color: var(--deep); }
.bl-count { margin-top: 14px; font: 500 14px/1 var(--body); color: var(--pale); }

/* ---- card grid + pager ---- */
.bl-list-sec { padding: clamp(28px,3.5cqw,40px) 24px clamp(56px,7cqw,90px); }
.bl-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; transition: opacity .2s ease; }
.bl-grid.is-loading { opacity: .4; }
.bl-card { display: flex; flex-direction: column; min-width: 0; background: #0B2545; border-radius: 16px; overflow: hidden; border: 1px solid rgba(31,217,238,0.12); transition: transform .3s ease, box-shadow .3s ease; }
.bl-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0,0,0,0.3); }
.bl-card-img { aspect-ratio: 16/10; overflow: hidden; }
.bl-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-card-body { padding: 22px; }
.bl-card-title { margin: 0; font: 700 19px/1.3 var(--display); color: #FFFFFF; }
.bl-card:hover .bl-card-title { color: var(--cyan-hi); }
.bl-card-date { margin-top: 10px; font: 500 13px/1 var(--body); color: var(--pale); }
.bl-card-excerpt { margin: 12px 0 0; font: 400 14px/1.55 var(--body); color: var(--light); }
.bl-empty { padding: 24px 0; font: 400 17px/1.6 var(--body); color: var(--light); }
.bl-pager { margin-top: 36px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.bl-pager:empty { display: none; }
.bl-pg-num, .bl-pg-arrow { width: 36px; height: 36px; border-radius: 50%; border: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font: 700 14px/1 var(--display); background: transparent; color: #9FB6CE; }
.bl-pg-arrow { font-family: 'Archivo', serif; font-size: 20px; }
.bl-pg-num:hover, .bl-pg-arrow:hover { color: var(--cyan); }
.bl-pg-num.active { background: var(--cyan); color: var(--deep); }

/* ---- post page: hero ---- */
.post-hero { position: relative; min-height: 460px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(1100px 620px at 78% -10%,rgba(47,155,245,0.28),transparent 60%),#0B2545; }
.post-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(6,23,46,0.35),rgba(6,23,46,0.88) 85%); }
.post-hero.no-img .post-hero-shade { display: none; }
.post-hero-in { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px 24px clamp(28px,4cqw,44px); }
.post-hero h1 { margin: 0; max-width: 900px; font-family: var(--display); font-weight: 800; font-size: clamp(28px,4cqw,50px); line-height: 1.12; letter-spacing: -0.02em; color: #FFFFFF; overflow-wrap: break-word; }
.post-meta { margin-top: 16px; font: 500 14px/1 var(--body); color: var(--light); }
.post-meta a { color: var(--light); }
.post-meta a:hover, .post-crumbs a:hover { color: var(--cyan); }
.post-crumbs { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 500 13px/1.4 var(--body); color: #9FB6CE; }
.post-crumbs a { color: #9FB6CE; }
.post-crumbs .current { color: #FFFFFF; }
.post-status { margin-bottom: 14px; display: inline-block; padding: 8px 14px; border-radius: 999px; background: #F7C948; font: 700 13px/1 var(--display); color: var(--deep); }

/* ---- post page: body + sidebar ---- */
.post-body-sec { padding: clamp(40px,5cqw,60px) 24px clamp(56px,7cqw,90px); background: var(--soft); }
.post-layout { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,2.2fr) minmax(0,1fr); gap: clamp(30px,4cqw,56px); align-items: start; }
.post-main { min-width: 0; }

/* the article body (WordPress content) */
.post-content { color: #334A63; overflow-wrap: break-word; }
.post-content a { color: var(--blue); }
.post-content a:hover { color: var(--cyan); }
.post-content strong, .post-content b { color: var(--navy); }
.post-content a strong, .post-content a b { color: inherit; }
.post-content p { margin: 0 0 20px; font: 400 17px/1.7 var(--body); color: #334A63; }
.post-content h2 { margin: 36px 0 16px; font: 700 26px/1.3 var(--display); color: var(--navy); }
.post-content h3 { margin: 30px 0 14px; font: 700 21px/1.35 var(--display); color: var(--navy); }
.post-content h4, .post-content h5, .post-content h6 { margin: 24px 0 10px; font: 700 18px/1.4 var(--display); color: var(--navy); }
.post-content > :first-child { margin-top: 0; }
.post-content ol, .post-content ul { margin: 0 0 20px; padding-left: 22px; }
.post-content li { font: 400 17px/1.65 var(--body); color: #334A63; margin-bottom: 8px; }
.post-content li > ul, .post-content li > ol { margin: 8px 0 0; }
.post-content li p { margin: 0; }
.post-content img, .post-content picture { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.post-content p > img, .post-content p > picture, .post-content p > a > img { margin: 8px auto; }
.post-content figure { margin: 0 0 24px; }
.post-content figure img { margin: 0 auto; }
.post-content figcaption { margin-top: 8px; font: 400 14px/1.5 var(--body); color: var(--muted); text-align: center; }
.post-content .aligncenter { margin-left: auto; margin-right: auto; }
.post-content blockquote { margin: 0 0 24px; padding: 20px 24px; background: #FFFFFF; border-left: 4px solid var(--cyan); border-radius: 0 12px 12px 0; }
.post-content blockquote > :last-child { margin-bottom: 0; }
.post-content blockquote p { font-size: 17px; }
.post-content cite { font-style: normal; }
.post-content hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line2); }
.post-content code { padding: 2px 6px; border-radius: 4px; background: var(--line); font: 400 .9em/1.4 ui-monospace, Menlo, Consolas, monospace; color: var(--navy); }
.post-content .wp-block-table { margin: 0 0 24px; overflow-x: auto; }
.post-content table { width: 100%; margin: 0 0 24px; border-collapse: collapse; background: #FFFFFF; border-radius: 12px; overflow: hidden; font: 400 15px/1.5 var(--body); color: #334A63; }
.post-content .wp-block-table table { margin: 0; }
.post-content th { padding: 12px 14px; background: var(--navy); font: 700 14px/1.35 var(--display); color: #FFFFFF; text-align: left; vertical-align: bottom; }
.post-content td { padding: 12px 14px; border-bottom: 1px solid var(--line2); vertical-align: top; }
.post-content tr:last-child td { border-bottom: 0; }
.post-content td p, .post-content th p { margin: 0; font: inherit; color: inherit; }
.post-content iframe { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16/9; border: 0; border-radius: 12px; }
.post-content div:has(> iframe), .post-content .wp-block-embed__wrapper { height: auto !important; margin: 0 0 24px; }
.post-content .wp-block-embed { margin: 0 0 24px; }
.post-content .rd-related-links { margin: 0 0 24px; padding: 20px 24px; background: #FFFFFF; border: 1px solid var(--line2); border-radius: 12px; }
.post-content .rd-related-links h3 { margin-top: 0; }
.post-content .rd-related-links ul { margin-bottom: 0; }

/* end-of-article call to action, prev/next, author */
.post-cta { margin-top: 30px; padding: 24px 26px; background: #FFFFFF; border: 1px solid var(--line2); border-radius: 16px; }
.post-cta p { margin: 0; font: 400 17px/1.7 var(--body); color: #334A63; }
.post-cta strong { color: var(--navy); }
.post-cta a { color: var(--blue); }
.post-cta a:hover { color: var(--cyan); }
.post-cta-link { margin-top: 16px; display: inline-block; font: 700 16px/1 var(--display); }
.post-nav { margin-top: 40px; display: flex; justify-content: space-between; gap: 20px; }
.post-nav a { font: 600 15px/1 var(--body); color: var(--blue); }
.post-nav a:hover { color: var(--cyan); }
.post-author { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line2); display: flex; flex-direction: column; align-items: center; text-align: center; }
.post-author-mark { width: 88px; height: 88px; border-radius: 50%; background: var(--line2); display: flex; align-items: center; justify-content: center; font: 700 28px/1 var(--display); color: var(--pale); }
.post-author-name { margin-top: 16px; font: 700 17px/1 var(--display); }
.post-author-name a { color: var(--navy); }
.post-author-name a:hover { color: var(--blue); }
.post-author-bio { margin-top: 10px; max-width: 560px; font: 400 15px/1.6 var(--body); color: #334A63; }

/* sidebar */
.post-aside { display: flex; flex-direction: column; gap: 36px; }
.side-h { font: 700 17px/1 var(--display); color: var(--navy); }
.side-list { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.side-list a { font: 400 15px/1.3 var(--body); color: var(--text); }
.side-list a:hover, .side-list a.current { color: var(--blue); }
.side-rule { border-top: 1px solid var(--line2); }

/* ---- tablet ---- */
@media (max-width: 1099px) {
  .bl-feat { grid-template-columns: 1fr; }
  .bl-feat-img { aspect-ratio: 16/10; min-height: auto; }
  .bl-grid { grid-template-columns: repeat(2,1fr); }
  .post-hero { min-height: 400px; }
  .post-layout { grid-template-columns: minmax(0,1fr); }
}

/* ---- phone ---- */
@media (max-width: 639px) {
  .bl-grid { grid-template-columns: 1fr; }
  .bl-tabs { scroll-margin-top: 140px; }
  .post-hero { min-height: 340px; }
  .post-meta { line-height: 1.4; }
  .post-aside { display: none; }
  .post-content table { display: block; overflow-x: auto; }
}
