/* Portal article and archive styling. No changes to post content or slugs. */
body.cb-portal-editorial {
  --cb-portal-ink: #17252b;
  --cb-portal-muted: #66777c;
  --cb-portal-accent: #087a9d;
  --cb-portal-line: #e4ecec;
  background: #f8faf9;
  color: var(--cb-portal-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.cb-portal-editorial .cb-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(249,251,250,.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid #e3ebeb;
}
body.admin-bar.cb-portal-editorial .cb-header { top: 32px; }
body.cb-portal-editorial .cb-header__bar { min-height: 78px; }
body.cb-portal-editorial .cb-brand__name { font-size: 21px; font-weight: 780; letter-spacing: -.05em; color: #122e37; }
body.cb-portal-editorial .cb-brand__sub { display: none !important; }
body.cb-portal-editorial .cb-nav__list a { color: #43565e; font-weight: 550; font-size: 13px; line-height: 1.45; white-space: nowrap; transition: color .2s ease; }
body.cb-portal-editorial .cb-nav__list a:hover,
body.cb-portal-editorial .cb-nav__list a:focus-visible { color: var(--cb-portal-accent); }
body.cb-portal-editorial .cb-article__head,
body.cb-portal-editorial .cb-archive__head { padding-top: 56px; padding-bottom: 32px; text-align: center; }
body.cb-portal-editorial .cb-crumbs { font-size: 12px; color: #74858b; }
body.cb-portal-editorial .cb-crumbs ol { justify-content: center; }
body.cb-portal-editorial .cb-article__head .cb-eyebrow { color: var(--cb-portal-accent); font-weight: 750; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; }
body.cb-portal-editorial .cb-article__head h1,
body.cb-portal-editorial .cb-archive__head h1 {
  font-size: clamp(2.5rem, 4.15vw, 3.85rem);
  line-height: 1.12;
  letter-spacing: -.047em;
  font-weight: 720;
  color: #17252b;
  max-width: 960px;
  margin: 22px auto 0;
  text-wrap: balance;
}
body.cb-portal-editorial .cb-byline { display: none !important; }
body.cb-portal-editorial .cb-article__media { max-width: 1280px; }
body.cb-portal-editorial .cb-article__media > img,
body.cb-portal-editorial .cb-article__media > a > img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 26px 70px rgba(25,57,69,.13);
}
body.cb-portal-editorial .cb-article__body { padding-top: clamp(40px, 4.5vw, 72px); }
body.cb-portal-editorial .cb-prose { max-width: 780px; color: #2b3c42; font-size: clamp(17px, 1.22vw, 18px); line-height: 1.68; }
body.cb-portal-editorial .cb-prose p { margin-bottom: 1.2em; }
body.cb-portal-editorial .cb-prose h2 { font-size: clamp(1.85rem, 2.5vw, 2.65rem); color: #17252b; letter-spacing: -.038em; line-height: 1.2; margin-top: 1.75em; text-wrap: balance; scroll-margin-top: 148px; }
body.cb-portal-editorial .cb-prose h3 { font-size: clamp(1.35rem, 1.8vw, 1.7rem); line-height: 1.28; margin-top: 1.5em; scroll-margin-top: 148px; }
body.cb-portal-editorial .cb-prose a:not(.cb-toc a) { text-underline-offset: .17em; text-decoration-thickness: 1px; color: #067a9c; }
body.cb-portal-editorial .cb-prose :is(figure, .wp-caption) { max-width: 100%; margin-block: 38px; }
body.cb-portal-editorial .cb-prose :is(figure, .wp-caption) img { max-width: 100%; height: auto; border-radius: 17px; }
body.cb-portal-editorial .cb-prose figcaption,
body.cb-portal-editorial .cb-prose .wp-caption-text { font-size: 13px; line-height: 1.5; color: #687b81; padding: 8px 3px; }
body.cb-portal-editorial .cb-prose blockquote { border-left: 3px solid #2b92ad; padding: 12px 0 12px 26px; font-size: 1.22em; color: #415962; }
body.cb-portal-editorial .cb-toc {
  padding: clamp(24px, 3.8vw, 42px);
  margin: 0 0 58px;
  background: #edf5f5;
  border: 1px solid #dfebeb;
  border-radius: 24px;
  box-shadow: none;
}
body.cb-portal-editorial .cb-toc .cb-eyebrow { color: #087d9c; font-size: 13px; letter-spacing: .11em; margin: 0 0 12px; }
body.cb-portal-editorial .cb-toc ol { max-height: 350px; overflow-y: auto; padding-right: 10px; }
body.cb-portal-editorial .cb-toc a { font-size: 15px; line-height: 1.55; font-weight: 540; color: #304951; text-decoration: none; }
body.cb-portal-editorial .cb-toc a:hover { color: #087a9d; }
body.cb-portal-editorial .cb-grid { gap: clamp(18px, 2.8vw, 34px); }
body.cb-portal-editorial .cb-card { border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid #e7eeec; box-shadow: 0 10px 35px rgba(27,63,72,.055); transition: transform .35s ease, box-shadow .35s ease; }
body.cb-portal-editorial .cb-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(27,63,72,.105); }
body.cb-portal-editorial .cb-card__media img { width: 100%; object-fit: cover; }
body.cb-portal-editorial .cb-card__title { font-size: clamp(1.3rem, 2vw, 1.68rem); line-height: 1.22; letter-spacing: -.045em; }
body.cb-portal-editorial .cb-card__body { padding: 28px; }
body.cb-portal-editorial .cb-card__excerpt { font-size: 15px; line-height: 1.65; color: #5d7077; }
body.cb-portal-editorial .cb-footer { background: #edf4f4; border-top: 1px solid #dce8e8; }
body.cb-portal-editorial .cb-footer__brand { font-size: 21px; letter-spacing: -.045em; font-weight: 760; }
/* At laptop/desktop widths the category navigation gets its own calm row. */
@media (min-width: 981px) and (max-width: 1600px) {
  body.cb-portal-editorial .cb-header__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 24px; row-gap: 0; padding-top: 15px; padding-bottom: 10px; }
  body.cb-portal-editorial .cb-brand { order: 1; }
  body.cb-portal-editorial .cb-tools { order: 2; margin-left: auto; }
  body.cb-portal-editorial .cb-nav { order: 3; width: 100%; flex-basis: 100%; margin-top: 5px; }
  body.cb-portal-editorial .cb-nav__list { justify-content: center; gap: 7px 24px; }
  body.cb-portal-editorial .cb-header__bar { min-height: 112px; }
}
@media(max-width: 782px) { body.admin-bar.cb-portal-editorial .cb-header { top: 46px; } }
@media(max-width: 700px) {
  body.cb-portal-editorial .cb-header__bar { min-height: 66px; }
  body.cb-portal-editorial .cb-article__head,
  body.cb-portal-editorial .cb-archive__head { padding-top: 45px; padding-bottom: 25px; }
  body.cb-portal-editorial .cb-article__head h1,
  body.cb-portal-editorial .cb-archive__head h1 { font-size: clamp(2.05rem, 8vw, 3rem); line-height: 1.14; letter-spacing: -.042em; }
  body.cb-portal-editorial .cb-article__media > img,
  body.cb-portal-editorial .cb-article__media > a > img { border-radius: 18px; box-shadow: none; }
  body.cb-portal-editorial .cb-article__body { padding-top: 38px; }
  body.cb-portal-editorial .cb-prose { font-size: 17px; line-height: 1.65; }
  body.cb-portal-editorial .cb-prose h2 { margin-top: 1.6em; }
  body.cb-portal-editorial .cb-toc { border-radius: 18px; padding: 22px; }
  body.cb-portal-editorial .cb-card__body { padding: 21px; }
}
@media(prefers-reduced-motion: reduce) { body.cb-portal-editorial .cb-card { transition: none; } }
