/* ── Page wrapper ── */
.article-page {
  font-family: "canada-type-gibson", "Gibson", sans-serif;
  background: #fff;
  color: #041e41;
}

/* ── Reading progress bar ── */
.article-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #28a7df;
  z-index: 200;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* ── Article header (white page-top, replaces the navy hero) ── */
.article-head {
  background: #fff;
  padding: 36px 0 0;
  border-bottom: 0;
}
.article-head__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-head__breadcrumb {
  font-size: 13px;
  color: #5a6a7a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.article-head__breadcrumb a {
  color: #28a7df;
  text-decoration: none;
  font-weight: 500;
}
.article-head__breadcrumb a:hover {
  text-decoration: underline;
}
.article-head__breadcrumb-sep {
  color: #c0c8d0;
}
.article-head__title {
  font-size: 44px;
  font-weight: 600;
  color: #041e41;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  max-width: 880px;
}
.article-head__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #5a6a7a;
  margin: 0 0 32px;
}
.article-head__meta-author {
  color: #041e41;
  font-weight: 600;
}
.article-head__meta-sep {
  color: #c0c8d0;
}
.article-head__meta-updated {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  background: rgba(40, 167, 223, 0.12);
  color: #1d8bbd;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.article-head__media {
  margin: 0 0 32px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(4, 30, 65, 0.10);
}
.article-head__media img,
.article-head__media video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}
.article-head__media--video video {
  background: #041e41;
}

/* Legacy navy hero — retained for backward-compat / redirect targets, hidden on this page */
.article-hero {
  display: none;
  background: linear-gradient(135deg, #041e41 0%, #0a3978 100%);
  color: #fff;
  padding: 32px 0 36px;
}
.article-hero__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-hero__breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.article-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.article-hero__breadcrumb a:hover {
  color: #28a7df;
}
.article-hero__breadcrumb-sep {
  color: rgba(255, 255, 255, 0.35);
}
.article-hero__title {
  font-size: 40px;
  font-weight: 600;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.article-hero__standfirst {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 18px;
  max-width: 720px;
}
.article-hero__byline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}
.article-hero__byline-author {
  color: #fff;
  font-weight: 600;
}
.article-hero__byline-sep {
  color: rgba(255, 255, 255, 0.35);
}
.article-hero__byline-updated {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  background: rgba(40, 167, 223, 0.18);
  color: #8cd2f0;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Two-column layout: sticky sidebar + article body ── */
.article-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 64px;
  align-items: start;
}
.article-layout > .article-sidebar { order: 2; }
.article-layout > .article-body { order: 1; }

/* ── Sidebar (sticky, right-aligned) ── */
.article-sidebar {
  position: sticky;
  top: 100px;
}

/* Sidebar CTA card — small-scale navy gradient (matches inline product CTA + FSCS strip) */
.article-sidebar-cta {
  margin: 0 0 32px;
  padding: 22px 20px;
  background: linear-gradient(135deg, #041e41 0%, #0a3978 100%);
  border-radius: 12px;
  color: #fff;
}
.article-sidebar-cta__title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
}
.article-sidebar-cta__copy {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 16px;
}
/* Full-width pill so long button text ("View our savings accounts") doesn't overflow the 260px sidebar */
.article-sidebar-cta .deel-btn {
  display: flex;
  width: 100%;
  justify-content: center;
  padding-left: 18px;
  padding-right: 18px;
}
.article-toc {
  margin-bottom: 32px;
}
.article-toc__title,
.article-share__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #5a6a7a;
  margin: 0 0 14px;
}
.article-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid #e1e6ec;
}
.article-toc__list li {
  margin: 0;
}
.article-toc__list a {
  display: block;
  padding: 8px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #5a6a7a;
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.article-toc__list a:hover {
  color: #041e41;
}
.article-toc__list a.is-active {
  color: #041e41;
  font-weight: 600;
  border-left-color: #28a7df;
}

/* ── Share ── */
.article-share__buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.article-share__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e1e6ec;
  background: #fff;
  color: #5a6a7a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  position: relative;
}
.article-share__btn:hover {
  border-color: #28a7df;
  color: #28a7df;
  background: #f6fbfd;
}
.article-share__btn-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #041e41;
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.article-share__btn--copied .article-share__btn-tip {
  opacity: 1;
}

/* ── Article body ── */
.article-body {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
  color: #2a3a4d;
}
.article-body__lead {
  font-size: 19px;
  line-height: 1.6;
  font-weight: 600;
  color: #041e41;
  margin: 0 0 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e1e6ec;
  text-align: left;
}
.article-body h2 {
  font-size: 28px;
  font-weight: 600;
  color: #041e41;
  line-height: 1.25;
  margin: 48px 0 16px;
  letter-spacing: -0.005em;
  scroll-margin-top: 100px;
}
.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: #041e41;
  margin: 36px 0 12px;
  scroll-margin-top: 100px;
}
.article-body p {
  margin: 0 0 20px;
}
.article-body p > a,
.article-body li > a {
  color: #28a7df;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article-body p > a:hover,
.article-body li > a:hover {
  color: #1d8bbd;
}
.article-body strong {
  color: #041e41;
  font-weight: 600;
}

/* Lists */
.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 0;
  list-style: none;
}
.article-body ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28a7df;
}
.article-body ol {
  counter-reset: ol-counter;
}
.article-body ol li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
  counter-increment: ol-counter;
}
.article-body ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(40, 167, 223, 0.12);
  color: #28a7df;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pull quote */
.article-pullquote {
  position: relative;
  margin: 48px 0 72px;
  padding: 24px 56px 0 32px;
  border-left: 4px solid #f9b236;
}
.article-pullquote::before {
  content: "\201C";
  position: absolute;
  left: 24px;
  top: -8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 96px;
  line-height: 1;
  color: #f9b236;
  font-weight: 700;
}
.article-pullquote::after {
  content: "\201D";
  position: absolute;
  right: 0;
  bottom: -56px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 96px;
  line-height: 1;
  color: #f9b236;
  font-weight: 700;
}
.article-pullquote p {
  font-size: 26px;
  line-height: 1.4;
  font-weight: 500;
  color: #041e41;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
  padding-left: 56px;
}
.article-pullquote cite {
  display: block;
  font-size: 13px;
  font-style: normal;
  color: #5a6a7a;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding-left: 56px;
}

/* Inline image */
.article-inline-image {
  margin: 36px 0;
}
.article-inline-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.article-inline-image figcaption {
  font-size: 13px;
  color: #5a6a7a;
  margin-top: 10px;
  font-style: italic;
  line-height: 1.5;
}

/* Video embed */
.article-video {
  margin: 36px 0;
}
.article-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #041e41;
  cursor: pointer;
}
.article-video__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.article-video__frame:hover img {
  opacity: 1;
  transform: scale(1.02);
}
.article-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}
.article-video__frame:hover .article-video__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #28a7df;
}
.article-video__frame:hover .article-video__play svg {
  stroke: #fff;
  fill: #fff;
}
.article-video__play svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
  fill: #041e41;
  stroke: #041e41;
  transition: fill 0.2s ease, stroke 0.2s ease;
}
.article-video__duration {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(4, 30, 65, 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}
.article-video figcaption {
  font-size: 13px;
  color: #5a6a7a;
  margin-top: 10px;
  font-style: italic;
}

/* Callout / highlighted box */
.article-callout {
  margin: 36px 0;
  padding: 24px 28px;
  background: #f0f9fd;
  border-left: 4px solid #28a7df;
  border-radius: 4px 12px 12px 4px;
  display: flex;
  gap: 18px;
}
.article-callout--mango {
  background: #fef7e8;
  border-left-color: #f9b236;
}
.article-callout__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #28a7df;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-callout--mango .article-callout__icon {
  color: #f9b236;
}
.article-callout__body {
  flex: 1;
  min-width: 0;
}
/* Callout title — bold heading by default; toggle off with .article-callout--no-title or
   strip per-instance by leaving the JSX out. Case follows the source string (no auto-uppercase). */
.article-callout__title {
  font-size: 15px;
  font-weight: 700;
  color: #041e41;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 6px;
}
.article-callout--no-title .article-callout__title {
  display: none;
}
.article-callout__body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #2a3a4d;
}

/* Table */
.article-table {
  margin: 32px 0;
  overflow-x: auto;
  border: 1px solid #e1e6ec;
  border-radius: 12px;
}
.article-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.article-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a6a7a;
  background: #f3f5f7;
  padding: 14px 18px;
  border-bottom: 1px solid #e1e6ec;
}
.article-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f0f3f6;
  color: #041e41;
  vertical-align: top;
}
.article-table tbody tr:last-child td {
  border-bottom: none;
}
.article-table tbody tr:hover td {
  background: #fafbfc;
}
.article-table__caption {
  font-size: 13px;
  color: #5a6a7a;
  margin-top: 10px;
  font-style: italic;
}

/* Tags row + body share footer */
.article-body__footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #e1e6ec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-tags li {
  margin: 0;
  padding: 0;
}
.article-tags li::before {
  display: none;
}
.article-tags a {
  display: inline-block;
  padding: 6px 14px;
  background: #f3f5f7;
  color: #041e41;
  font-size: 13px;
  font-weight: 500;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.article-tags a:hover {
  background: #28a7df;
  color: #fff;
}

/* ── Author bio block ── */
.article-author-block {
  background: #f3f5f7;
  padding: 56px 0;
}
.article-author-card {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 36px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.article-author-card__avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #28a7df 0%, #0a3978 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  overflow: hidden;
}
.article-author-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-author-card__body {
  flex: 1;
  min-width: 0;
}
.article-author-card__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #5a6a7a;
  margin: 0 0 6px;
}
.article-author-card__name {
  font-size: 22px;
  font-weight: 600;
  color: #041e41;
  margin: 0 0 4px;
}
.article-author-card__role {
  font-size: 14px;
  color: #28a7df;
  font-weight: 600;
  margin: 0 0 14px;
}
.article-author-card__bio {
  font-size: 15px;
  line-height: 1.65;
  color: #3a4a5a;
  margin: 0;
}

/* ── Related articles — matches the .deel-guide-card treatment used on signed-off /savings-hub-v2f
   (uppercase grey type label, no overlay/grayscale on image, v2f title/meta padding) ── */
.deel-guides--compact {
  padding-top: 64px;
  padding-bottom: 80px;
  background: #fff;
}
.deel-guides--compact .deel-guides__header {
  margin-bottom: 36px;
}
.article-related .deel-guide-card__title,
.article-related .deel-guide-card__desc,
.article-related .deel-guide-card__meta {
  padding-left: 24px;
  padding-right: 24px;
}
.article-related .deel-guide-card__title {
  margin-top: 20px;
}
.article-related .deel-guide-card__type {
  display: inline;
  font-size: 12px;
  font-weight: 600;
  color: #5a6a7a;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
  white-space: nowrap;
}
.article-related .deel-guide-card__meta-sep {
  margin: 0 6px;
  color: #c0c8d0;
}
.article-related .deel-guide-card__meta {
  padding-bottom: 24px;
}
.article-related .deel-guide-card__image::after { display: none; }
.article-related .deel-guide-card__image img { filter: none; }

/* ── FSCS strip (matched to product-detail-a pattern) ── */
.article-fscs {
  background: linear-gradient(135deg, #041e41 0%, #0a3978 100%);
  padding: 56px 0;
}
.article-fscs__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.article-fscs__logo {
  flex-shrink: 0;
}
.article-fscs__logo img {
  width: 120px;
  height: auto;
  display: block;
}
.article-fscs__body {
  flex: 1;
  min-width: 0;
}
.article-fscs__title {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}
.article-fscs__copy {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}
.article-fscs__copy strong {
  color: #fff;
  font-weight: 600;
}

/* ── Inline product CTA (mid-article) ──
   Navy gradient card with clear product hierarchy: rate panel left, body + CTAs right.
   Pairs visually with the FSCS strip and product-detail-a hero treatment. */
.article-product-cta {
  position: relative;
  margin: 48px 0;
  padding: 32px 36px;
  background: linear-gradient(135deg, #041e41 0%, #0a3978 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 32px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(4, 30, 65, 0.12);
}
.article-product-cta__rate {
  flex-shrink: 0;
  text-align: center;
  padding-right: 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}
.article-product-cta__rate-value {
  font-size: 40px;
  font-weight: 700;
  color: #28a7df;
  line-height: 1;
  letter-spacing: -0.01em;
}
.article-product-cta__rate-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}
.article-product-cta__body {
  flex: 1;
  min-width: 0;
}
.article-product-cta__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #28a7df;
  margin: 0 0 6px;
}
.article-body h3.article-product-cta__title {
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
}
.article-product-cta__desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 16px;
}
.article-product-cta__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* Ghost variant for .deel-btn used on navy bg (no design-system equivalent) */
.article-product-cta__btn-ghost {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}
.article-product-cta__btn-ghost:hover {
  border-color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

/* ── End-of-article CTA card ──
   Navy gradient panel — matches the inline product CTA mid-article and the FSCS strip,
   so both product-prompt moments on the page share one surface treatment. */
.article-end-cta {
  margin: 56px 0 28px;
  padding: 32px 36px;
  background: linear-gradient(135deg, #041e41 0%, #0a3978 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  color: #fff;
  box-shadow: 0 8px 24px rgba(4, 30, 65, 0.12);
}
.article-end-cta__body {
  flex: 1;
  min-width: 240px;
}
.article-body h3.article-end-cta__title,
.article-end-cta__title {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
}
.article-end-cta__copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  line-height: 1.55;
}
.article-end-cta__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
/* Ghost-on-navy override for the secondary outline button on the dark CTA card */
.article-end-cta .deel-btn--outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}
.article-end-cta .deel-btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ── Disclaimer ── */
.article-disclaimer {
  margin: 0 0 32px;
  padding: 20px 24px;
  background: #fafbfc;
  border-left: 3px solid #c0c8d0;
  font-size: 13px;
  line-height: 1.6;
  color: #5a6a7a;
  font-style: italic;
}

/* ── Article FAQ — uses .deel-faq--light from design system; constrain width + chevron icon ── */
.article-faq-section {
  padding: 64px 0 24px;
}
.article-faq-section .info-accordion-holder {
  max-width: 880px;
  margin: 0 auto;
}
.deel-page .deel-faq--light .deel-faq-icon {
  color: #f9b236;
  width: 24px;
  height: 24px;
}
.deel-page .deel-faq--light .deel-faq-icon svg {
  width: 24px;
  height: 24px;
  transition: transform 0.25s ease-out;
}
.deel-page .deel-faq--light [data-state="open"] .deel-faq-icon svg {
  transform: rotate(180deg);
}
.deel-page .deel-faq--light [data-state="open"] .deel-faq-icon {
  color: #28a7df;
}

/* ── Newsletter signup ── */
.article-newsletter {
  background: #fff;
  padding: 64px 0;
  border-top: 1px solid #e1e6ec;
}
.article-newsletter__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.article-newsletter__body {
  min-width: 0;
}
.article-newsletter__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f9b236;
  margin: 0 0 8px;
}
.article-newsletter__title {
  font-size: 28px;
  font-weight: 600;
  color: #041e41;
  margin: 0 0 12px;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.article-newsletter__copy {
  font-size: 15px;
  line-height: 1.6;
  color: #3a4a5a;
  margin: 0;
}
.article-newsletter__form {
  min-width: 0;
}
.article-newsletter__field {
  display: flex;
  background: #fff;
  border: 1px solid #e1e6ec;
  border-radius: 100px;
  padding: 6px;
  align-items: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.article-newsletter__field:focus-within {
  border-color: #28a7df;
  box-shadow: 0 0 0 4px rgba(40, 167, 223, 0.12);
}
.article-newsletter__form[aria-invalid="true"] .article-newsletter__field,
.article-newsletter__field input[aria-invalid="true"]:not(:focus) ~ * {
  border-color: #d04949;
}
.article-newsletter__field input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: #041e41;
  padding: 12px 18px;
  min-width: 0;
}
.article-newsletter__field input::placeholder {
  color: #94a0ac;
}
.article-newsletter__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #28a7df;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.article-newsletter__btn:hover {
  background: #f9b236;
  color: #041e41;
  transform: translateY(-1px);
}
.article-newsletter__error {
  margin: 12px 0 0;
  font-size: 13px;
  color: #d04949;
  font-weight: 500;
}
.article-newsletter__privacy {
  margin: 14px 0 0;
  font-size: 12px;
  color: #5a6a7a;
  line-height: 1.5;
}
.article-newsletter__privacy a {
  color: #28a7df;
  text-decoration: underline;
}
.article-newsletter__success {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #c9e8d4;
  border-radius: 100px;
  padding: 14px 22px;
  color: #1f7a3f;
  font-size: 15px;
  font-weight: 500;
}
.article-newsletter__success svg {
  flex-shrink: 0;
  color: #1f7a3f;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .article-sidebar {
    position: relative;
    top: 0;
    order: -1;
    padding: 20px;
    background: #f3f5f7;
    border-radius: 12px;
  }
  .article-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 860px) {
  .article-newsletter__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 720px) {
  .article-head {
    padding-top: 24px;
  }
  .article-head__title {
    font-size: 30px;
  }
  .article-head__meta {
    margin-bottom: 24px;
  }
  .article-head__media img,
  .article-head__media video {
    aspect-ratio: 4 / 3;
  }
  .article-newsletter {
    padding: 48px 0;
  }
  .article-newsletter__title {
    font-size: 24px;
  }
  .article-newsletter__field {
    flex-direction: column;
    border-radius: 16px;
    padding: 8px;
    gap: 8px;
    align-items: stretch;
  }
  .article-newsletter__field input {
    padding: 14px 18px;
  }
  .article-newsletter__btn {
    border-radius: 100px;
    padding: 14px 22px;
    justify-content: center;
  }
  .article-hero__title {
    font-size: 30px;
  }
  .article-hero__standfirst {
    font-size: 16px;
  }
  .article-product-cta {
    flex-direction: column;
    text-align: center;
    padding: 24px;
    gap: 20px;
  }
  .article-product-cta__rate {
    padding-right: 0;
    padding-bottom: 18px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    width: 100%;
  }
  .article-product-cta__actions {
    justify-content: center;
  }
  .article-end-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 24px;
  }
  .article-end-cta__actions {
    justify-content: center;
  }
  .article-body {
    font-size: 16px;
  }
  .article-body__lead {
    font-size: 18px;
  }
  .article-body h2 {
    font-size: 24px;
  }
  .article-pullquote p {
    font-size: 21px;
  }
  .article-related__grid {
    grid-template-columns: 1fr;
  }
  .article-author-card {
    flex-direction: column;
    padding: 24px;
  }
  .article-fscs__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .article-callout {
    padding: 20px;
    flex-direction: column;
    gap: 12px;
  }
  .article-body__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ───────────────────────────────────────────────────────────
   Hub article — extras
   FAQ accordion, final CTA, utilities, and section wrappers
   that the static prototype reused from the Deel design system.
   These were not part of the inline <style> on the static page,
   so we redefine them here for both the WP and Gatsby renders.
─────────────────────────────────────────────────────────── */

/* Utility */
.pale-grey-background { background: #f3f5f7; }
.navy-background      { background: #041e41; color: #fff; }
.azure-background     { background: #28a7df; color: #fff; }

/* Section wrappers used by the WP article template */
.article-faqs {
  background: #f3f5f7;
  padding: 64px 0;
}
.article-faqs .centered-title-holder {
  text-align: center;
  margin-bottom: 32px;
}
.article-faqs .centered-title-holder h3 {
  font-family: "canada-type-gibson", "Gibson", sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #041e41;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ── FAQ accordion (light variant) — for our <details>-based HTML ── */
.deel-faq--light {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(4, 30, 65, 0.04);
  border: 1px solid #e1e6ec;
  overflow: hidden;
  font-family: "canada-type-gibson", "Gibson", sans-serif;
}
.deel-faq--light .deel-faq__item {
  border-bottom: 1px solid #e1e6ec;
}
.deel-faq--light .deel-faq__item:last-child {
  border-bottom: 0;
}
.deel-faq--light .deel-faq__item[open] {
  background: #fafbfc;
}
.deel-faq--light .deel-faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 17px;
  color: #041e41;
  transition: background 0.15s ease;
}
.deel-faq--light .deel-faq__summary::-webkit-details-marker { display: none; }
.deel-faq--light .deel-faq__summary:hover {
  background: rgba(40, 167, 223, 0.04);
}
.deel-faq--light .deel-faq__q {
  flex: 1 1 auto;
}
.deel-faq--light .deel-faq__chevron {
  flex: 0 0 24px;
  color: #28a7df;
  transition: transform 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.deel-faq--light .deel-faq__item[open] .deel-faq__chevron {
  transform: rotate(180deg);
}
.deel-faq--light .deel-faq__body {
  padding: 0 24px 24px;
  font-size: 16px;
  line-height: 1.6;
  color: #41506a;
}
.deel-faq--light .deel-faq__body p:first-child { margin-top: 0; }
.deel-faq--light .deel-faq__body p:last-child  { margin-bottom: 0; }

/* ── Final CTA panel — pale-grey backdrop, centred content ──
   Targets both .v2-final-cta (gatsby class) and .final-cta-v2 (our PHP class). */
.v2-final-cta,
.final-cta-v2 {
  padding: 64px 0;
  text-align: center;
  font-family: "canada-type-gibson", "Gibson", sans-serif;
}
.v2-final-cta .content-block,
.final-cta-v2 .content-block {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.v2-final-cta__heading,
.final-cta-v2__heading,
.v2-cta-heading h3,
.v2-cta-heading {
  font-size: 32px;
  font-weight: 600;
  color: #041e41;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.v2-final-cta__subtitle,
.final-cta-v2__subtitle,
.v2-cta-subtitle {
  font-size: 17px;
  line-height: 1.55;
  color: #41506a;
  margin: 0 0 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.v2-final-cta__cta,
.final-cta-v2__cta,
.v2-cta-button {
  margin: 0 0 24px;
}
.v2-final-cta__cta a,
.final-cta-v2__cta a,
.v2-cta-button a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #28a7df;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.v2-final-cta__cta a:hover,
.final-cta-v2__cta a:hover,
.v2-cta-button a:hover {
  background: #1d8bbd;
  transform: translateY(-1px);
}
.v2-final-cta__disclaimer,
.final-cta-v2__disclaimer,
.v2-cta-disclaimer {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(4, 30, 65, 0.55);
  max-width: 640px;
  margin: 16px auto 0;
}

@media (max-width: 720px) {
  .article-faqs { padding: 48px 0; }
  .article-faqs .centered-title-holder h3 { font-size: 24px; }
  .v2-final-cta,
  .final-cta-v2 { padding: 48px 0; }
  .v2-final-cta__heading,
  .final-cta-v2__heading,
  .v2-cta-heading { font-size: 24px; }
  .deel-faq--light .deel-faq__summary { padding: 16px 18px; font-size: 16px; }
  .deel-faq--light .deel-faq__body { padding: 0 18px 18px; }
}

/* Stronger specificity to override legacy .content padding-zero rules */
.hub-article-page .v2-final-cta,
.hub-article-page .final-cta-v2,
section.content.final-cta-v2,
section.content.v2-final-cta {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}
@media (max-width: 720px) {
  .hub-article-page .v2-final-cta,
  .hub-article-page .final-cta-v2,
  section.content.final-cta-v2,
  section.content.v2-final-cta {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────
   Related articles — matches the flex `related_hub_articles` layout used
   on personal-savings-landing / savings-hub. Mirrors the rules in
   src/assets/css/pages/_personal-savings-landing.scss
   ────────────────────────────────────────────────────────────────── */

.hub-article-page {
  --ps-navy: #041e41;
  --ps-pale: #f3f5f7;
  --ps-muted: #5b6a85;
  --ps-line: #e1e6ec;
  --ps-font: "canada-type-gibson", "Gibson", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

section.content.deel-related-articles {
  padding: 80px 0;
  background: #fff;
  margin: 0;
  font-family: var(--ps-font);
}
section.content.deel-related-articles .content-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.deel-related-articles__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.deel-related-articles__title {
  font-size: 36px;
  font-weight: 600;
  color: var(--ps-navy);
  margin: 0 0 10px;
  line-height: 1.15;
}
.deel-related-articles__subtitle {
  font-size: 17px;
  color: var(--ps-muted);
  margin: 0;
  line-height: 1.5;
}
.deel-related-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .deel-related-articles__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .deel-related-articles__grid { grid-template-columns: 1fr; }
}
.deel-related-articles .savings-hub-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(4, 30, 65, 0.06);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  font-family: var(--ps-font);
}
.deel-related-articles .savings-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-color: rgba(4, 30, 65, 0.12);
}
.deel-related-articles .savings-hub-card__image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--ps-pale);
}
.deel-related-articles .savings-hub-card__image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.deel-related-articles .savings-hub-card__title {
  font-size: 19px;
  font-weight: 600;
  color: var(--ps-navy);
  margin: 18px 24px 8px;
  line-height: 1.25;
}
.deel-related-articles .savings-hub-card__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ps-muted);
  margin: 0 24px 14px;
}
.deel-related-articles .savings-hub-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--ps-muted);
  margin: 0 24px 22px;
}
.deel-related-articles .savings-hub-card__type {
  background: var(--ps-pale);
  color: var(--ps-navy);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}
.deel-related-articles .savings-hub-card__meta-sep { color: var(--ps-line); }
