/* Blog v2: archive and article. Scoped to .psb. */
.psb {
  --psb-navy: #131e25;
  --psb-ink: #1f2933;
  --psb-text: #3d4852;
  --psb-muted: #6b7682;
  --psb-blue: #4685e1;
  --psb-blue-dark: #2f6bc4;
  --psb-blue-soft: #eaf1fc;
  --psb-line: #e3e8ee;
  --psb-bg: #f5f7fa;
  --psb-radius: 0;
  --psb-shadow: 0 1px 2px rgba(19, 30, 37, .06), 0 8px 24px rgba(19, 30, 37, .06);
  color: var(--psb-text);
}
.psb a { text-decoration: none; }
.psb img { max-width: 100%; height: auto; }

/* Shared bits */
.psb-eyebrow { margin: 0 0 6px; color: var(--psb-blue); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.psb-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.psb-section-title { margin: 0; color: var(--psb-ink); font-family: "Oswald", sans-serif; font-size: 34px; font-weight: 600; text-transform: uppercase; line-height: 1.1; }
.psb-link { color: var(--psb-blue); font-weight: 700; white-space: nowrap; }
.psb-link:hover { color: var(--psb-blue-dark); }
.psb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--psb-muted); font-size: 14px; }
.psb-chip { display: inline-block; padding: 4px 10px; border-radius: 0; background: var(--psb-blue-soft); color: var(--psb-blue-dark); font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1.4; }
a.psb-chip:hover { background: var(--psb-blue); color: #fff; }
.psb-chip--solid { background: var(--psb-navy); color: #fff; }
.psb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 2px solid var(--psb-blue); border-radius: 0; background: var(--psb-blue); color: #fff; font-weight: 700; line-height: 1.2; transition: background .2s, border-color .2s, color .2s; }
.psb-btn:hover { background: var(--psb-blue-dark); border-color: var(--psb-blue-dark); color: #fff; }
.psb-btn--ghost { background: transparent; color: var(--psb-blue); }
.psb-btn--ghost:hover { background: var(--psb-blue-soft); color: var(--psb-blue-dark); border-color: var(--psb-blue); }
.psb-btn--light { background: #fff; border-color: #fff; color: var(--psb-navy); }
.psb-btn--light:hover { background: var(--psb-blue-soft); border-color: var(--psb-blue-soft); color: var(--psb-navy); }
.psb-btn--outline { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.psb-btn--outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.psb-btn--block { display: flex; width: 100%; }
.psb-btn--block + .psb-btn--block { margin-top: 10px; }

/* Hero (uses the site's inner banner background) */
.psb-hero { padding: 0; }
.psb-hero .container { padding-top: 70px; padding-bottom: 64px; }
.psb-hero h1 { max-width: 920px; font-size: 54px; line-height: 1.05; }
.psb-crumbs { margin: 0 0 16px !important; font-size: 14px; opacity: .9; }
.psb-crumbs span { margin: 0 6px; opacity: .6; }
.psb-crumbs a:hover { text-decoration: underline !important; }
.psb-hero__intro { max-width: 640px; margin: 18px 0 0; color: rgba(255, 255, 255, .85); font-size: 18px; line-height: 1.6; }
.psb-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: rgba(255, 255, 255, .85); font-size: 15px; }
.psb-hero__meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 18px 3px -12px; border-radius: 50%; background: var(--psb-blue); }
.psb-hero--article h1 { font-size: 48px; text-transform: none; letter-spacing: 0; }

/* Guides strip */
.psb-guides { padding: 64px 0 8px; }
.psb-guides__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.psb-guide { position: relative; display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 18px 44px 18px 18px; border: 1px solid var(--psb-line); border-radius: 0; background: #fff; color: var(--psb-ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.psb-guide:hover { border-color: var(--psb-blue); box-shadow: var(--psb-shadow); transform: translateY(-2px); color: var(--psb-ink); }
.psb-guide__num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 0; background: var(--psb-blue-soft); color: var(--psb-blue-dark); font-family: "Oswald", sans-serif; font-weight: 600; }
.psb-guide__title { font-weight: 700; line-height: 1.3; }
.psb-guide__arrow { position: absolute; right: 18px; color: var(--psb-blue); transition: transform .2s; }
.psb-guide:hover .psb-guide__arrow { transform: translateX(3px); }

/* List */
.psb-list { padding: 56px 0 80px; }
.psb-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--psb-line); }
.psb-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.psb-filter { padding: 8px 14px; border: 1px solid var(--psb-line); border-radius: 0; background: #fff; color: var(--psb-text); font-size: 14px; font-weight: 600; transition: all .2s; }
.psb-filter:hover { border-color: var(--psb-blue); color: var(--psb-blue); }
.psb-filter.is-active { border-color: var(--psb-navy); background: var(--psb-navy); color: #fff; }
.psb-search { position: relative; flex: 0 0 260px; }
.psb-search input[type="search"] { width: 100%; height: 44px; padding: 0 46px 0 16px; border: 1px solid var(--psb-line); border-radius: 0; background: var(--psb-bg); color: var(--psb-ink); font-size: 15px; outline: none; }
.psb-search input[type="search"]:focus { border-color: var(--psb-blue); background: #fff; box-shadow: 0 0 0 3px var(--psb-blue-soft); }
.psb-search button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 0; background: var(--psb-blue); color: #fff; }

/* Featured */
.psb-featured { display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; margin-bottom: 40px; border: 1px solid var(--psb-line); border-radius: 0; background: #fff; box-shadow: var(--psb-shadow); }
.psb-featured__media { position: relative; display: block; min-height: 380px; border-right: 1px solid var(--psb-line); background: #fff; }
.psb-featured__media img { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
.psb-featured__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 44px 48px; }
.psb-featured__title { margin: 16px 0 14px; font-family: "Oswald", sans-serif; font-size: 34px; font-weight: 600; line-height: 1.15; }
.psb-featured__title a { color: var(--psb-ink); }
.psb-featured__title a:hover { color: var(--psb-blue); }
.psb-featured__excerpt { margin-bottom: 26px; font-size: 17px; line-height: 1.65; }

/* Cards */
.psb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.psb-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--psb-line); border-radius: 0; background: #fff; transition: box-shadow .25s, transform .25s, border-color .25s; }
.psb-card:hover { border-color: transparent; box-shadow: var(--psb-shadow); transform: translateY(-3px); }
.psb-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-bottom: 1px solid var(--psb-line); background: #fff; }
.psb-card__media img { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .35s; }
.psb-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.psb-card:hover .psb-card__media img { transform: scale(1.03); }
.psb-card__placeholder { color: var(--psb-muted); font-family: "Oswald", sans-serif; text-transform: uppercase; }
.psb-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px 22px 24px; }
.psb-card__title { margin: 14px 0 10px; font-family: "Oswald", sans-serif; font-size: 22px; font-weight: 500; line-height: 1.25; }
.psb-card__title a { color: var(--psb-ink); }
.psb-card__title a:hover { color: var(--psb-blue); }
.psb-card__excerpt { display: -webkit-box; overflow: hidden; margin-bottom: 18px; font-size: 15px; line-height: 1.6; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.psb-card__more { margin-top: auto; color: var(--psb-blue); font-size: 15px; font-weight: 700; }
.psb-card__more:hover { color: var(--psb-blue-dark); }
.psb-empty { padding: 40px 0; text-align: center; }

/* Pagination */
.psb-pagination { margin-top: 48px; }
.psb-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.psb-pagination a, .psb-pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--psb-line); border-radius: 0; background: #fff; color: var(--psb-ink); font-weight: 700; }
.psb-pagination a:hover { border-color: var(--psb-blue); color: var(--psb-blue); }
.psb-pagination .current { border-color: var(--psb-navy); background: var(--psb-navy); color: #fff; }
.psb-pagination .dots { border: 0; background: none; }

/* CTA band */
.psb-cta { padding: 0 0 90px; }
.psb-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px 56px; border-radius: 0; background: linear-gradient(120deg, var(--psb-navy) 0%, #1c3550 60%, var(--psb-blue-dark) 100%); color: #fff; }
.psb-cta .psb-eyebrow { color: #9cc2f5; }
.psb-cta__title { margin: 0 0 10px; color: #fff; font-family: "Oswald", sans-serif; font-size: 36px; font-weight: 600; text-transform: uppercase; }
.psb-cta__text { max-width: 560px; margin: 0; color: rgba(255, 255, 255, .85); font-size: 17px; line-height: 1.6; }
.psb-cta__actions { display: flex; flex: none; flex-wrap: wrap; gap: 12px; }

/* Article layout */
.psb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; padding: 56px 0 72px; }
.psb-article { min-width: 0; max-width: 780px; }
.psb-article__media { overflow: hidden; margin: 0 0 36px; padding: 0; border-radius: 0; background: var(--psb-bg); }
.psb-article__media img { display: block; width: 100%; height: 440px !important; object-fit: cover; }

/* Article typography */
.psb-content { color: var(--psb-text); font-size: 18px; line-height: 1.8; }
.psb-content > * { margin-top: 0; }
.psb-content p, .psb-content div.ql-block { margin-bottom: 1.25em; }
.psb-content h2 { margin: 1.9em 0 .6em; scroll-margin-top: 110px; color: var(--psb-ink); font-family: "Oswald", sans-serif; font-size: 32px; font-weight: 600; line-height: 1.2; }
.psb-content h3 { margin: 1.6em 0 .5em; color: var(--psb-ink); font-family: "Oswald", sans-serif; font-size: 23px; font-weight: 500; line-height: 1.3; }
.psb-content h4 { margin: 1.4em 0 .5em; color: var(--psb-ink); font-size: 19px; font-weight: 700; }
.psb-content h2 strong, .psb-content h3 strong { font-weight: inherit; }
.psb-content a { color: var(--psb-blue-dark); text-decoration: underline; text-decoration-color: rgba(70, 133, 225, .4); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.psb-content a:hover { text-decoration-color: currentColor; }
.psb-content strong { color: var(--psb-ink); }
.psb-content ul, .psb-content ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.psb-content li { margin-bottom: .5em; padding-left: .2em; }
.psb-content ul li::marker { color: var(--psb-blue); }
.psb-content ol li::marker { color: var(--psb-blue); font-weight: 700; }
.psb-content blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--psb-blue); border-radius: 0; background: var(--psb-blue-soft); color: var(--psb-ink); }
.psb-content img { height: auto; border-radius: 0; }
.psb-content .table-responsive { overflow-x: auto; margin: 1.6em 0 2em; border: 1px solid var(--psb-line); border-radius: 0; }
.psb-content table { width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.psb-content .table-responsive table { border: 0; }
.psb-content table th { padding: 14px 16px; border: 0; background: var(--psb-navy); color: #fff; font-weight: 700; text-align: left; vertical-align: bottom; }
.psb-content table td { padding: 13px 16px; border: 0; border-top: 1px solid var(--psb-line); vertical-align: top; }
.psb-content table tbody tr:nth-child(even) td { background: var(--psb-bg); }
.psb-content > :last-child { margin-bottom: 0; }

/* Author */
.psb-article__footer { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--psb-line); }
.psb-author { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: 0; background: var(--psb-bg); }
.psb-author__badge { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 0; background: var(--psb-navy); color: #fff; font-family: "Oswald", sans-serif; font-size: 20px; font-weight: 600; }
.psb-author__name { margin: 0 0 4px; color: var(--psb-ink); font-weight: 700; }
.psb-author__bio { margin: 0; font-size: 15px; line-height: 1.6; }

/* Sidebar */
.psb-aside { display: flex; flex-direction: column; gap: 20px; }
.psb-aside__sticky { position: sticky; top: 24px; }
.psb-aside__title { margin: 0 0 12px; color: var(--psb-ink); font-family: "Oswald", sans-serif; font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.psb-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.psb-toc li { counter-increment: toc; }
.psb-toc a { display: flex; gap: 10px; padding: 7px 0; color: var(--psb-text); font-size: 14px; line-height: 1.45; }
.psb-toc a::before { content: counter(toc, decimal-leading-zero); flex: none; color: var(--psb-muted); font-size: 12px; font-weight: 700; line-height: 1.7; }
.psb-toc a:hover, .psb-toc a.is-active { color: var(--psb-blue); }
.psb-toc--desktop { max-height: calc(100vh - 48px); overflow-y: auto; padding: 22px; border: 1px solid var(--psb-line); border-radius: 0; background: #fff; }
.psb-toc--mobile { display: none; }
.psb-guide-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 0; background: var(--psb-blue-soft); color: var(--psb-ink); transition: box-shadow .2s, transform .2s; }
.psb-guide-card:hover { box-shadow: var(--psb-shadow); transform: translateY(-2px); color: var(--psb-ink); }
.psb-guide-card .psb-eyebrow { margin: 0; }
.psb-guide-card__title { font-family: "Oswald", sans-serif; font-size: 19px; font-weight: 500; line-height: 1.3; }
.psb-help { padding: 22px; border-radius: 0; background: var(--psb-navy); color: rgba(255, 255, 255, .85); font-size: 15px; line-height: 1.6; }
.psb-help .psb-aside__title { color: #fff; }
.psb-help .psb-btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.psb-help .psb-btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }

/* Related */
.psb-related { padding: 72px 0 80px; background: var(--psb-bg); }
.psb-related + .psb-cta { padding-top: 0; background: var(--psb-bg); }

/* Override the older site-wide "article h2/h3" colour rule inside the blog */
.psb .psb-content h2, .psb .psb-content h3, .psb .psb-content h2 span, .psb .psb-content h3 span { color: var(--psb-ink) !important; }
.psb .psb-card__title a, .psb .psb-featured__title a { color: var(--psb-ink) !important; }
.psb .psb-card__title a:hover, .psb .psb-featured__title a:hover { color: var(--psb-blue) !important; }

/* Responsive */
@media (max-width: 1199px) {
  .psb-guides__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .psb-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
}
@media (max-width: 991px) {
  .psb-hero h1 { font-size: 42px; }
  .psb-hero--article h1 { font-size: 36px; }
  .psb-guides__grid, .psb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .psb-toolbar { flex-direction: column; align-items: stretch; }
  .psb-search { flex-basis: auto; }
  .psb-featured { grid-template-columns: 1fr; }
  .psb-featured__media { min-height: 260px; }
  .psb-article__media img { height: 300px !important; }
  .psb-featured__body { padding: 32px; }
  .psb-layout { grid-template-columns: 1fr; padding-top: 40px; }
  .psb-article { max-width: none; }
  .psb-aside__sticky { position: static; }
  .psb-toc--desktop { display: none; }
  .psb-toc--mobile { display: block; margin: 0 0 32px; padding: 0; border: 1px solid var(--psb-line); border-radius: 0; }
  .psb-toc--mobile summary { padding: 16px 20px; color: var(--psb-ink); font-family: "Oswald", sans-serif; font-size: 18px; font-weight: 600; text-transform: uppercase; cursor: pointer; }
  .psb-toc--mobile ol { padding: 0 20px 14px; }
  .psb-cta__inner { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
}
@media (max-width: 767px) {
  .psb-hero .container { padding-top: 48px; padding-bottom: 44px; }
  .psb-hero h1 { font-size: 34px; }
  .psb-hero--article h1 { font-size: 30px; }
  .psb-hero__intro { font-size: 16px; }
  .psb-section-head { flex-direction: column; align-items: flex-start; }
  .psb-section-title { font-size: 28px; }
  .psb-guides { padding-top: 44px; }
  .psb-guides__grid, .psb-grid { grid-template-columns: 1fr; gap: 18px; }
  .psb-guides__grid { gap: 10px; }
  .psb-guide { min-height: 0; padding: 12px 40px 12px 12px; }
  .psb-guide__num { width: 34px; height: 34px; }
  .psb-hero__meta span + span::before { display: none; }
  .psb-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; }
  .psb-filters::-webkit-scrollbar { display: none; }
  .psb-filter { flex: none; }
  .psb-featured__title { font-size: 26px; }
  .psb-featured__body { padding: 24px; }
  .psb-content { font-size: 17px; }
  .psb-content h2 { font-size: 26px; }
  .psb-content h3 { font-size: 21px; }
  .psb-cta__title { font-size: 28px; }
  .psb-cta__actions, .psb-cta__actions .psb-btn { width: 100%; }
}

/* The theme sets overflow-x: hidden on html/body, which breaks position: sticky. clip keeps sideways scroll hidden without creating a scroll container. */
html:has(.psb-single), body.single-post:has(.psb-single) { overflow-x: clip !important; overflow-y: visible !important; }

/* Homepage "Latest Blogs" section */
.psb-home { margin-bottom: 0; padding-bottom: 36px; }
.psb-home .psb-card__title { text-transform: none; }
.ps-blog-section .psb-home + #link_text-137-9262 { position: static; display: table; margin: 0 auto; transform: none; }
