/* ── Hero — split panel matching product-detail-a-pills ── */
.pd-hero { background: #041e41; color: #fff; font-family: "canada-type-gibson", "Gibson", sans-serif; }
.pd-hero__split { display: flex; width: 1200px; max-width: 100%; margin: 0 auto; }
.pd-hero__left { flex: 0 0 50%; max-width: 50%; display: flex; align-items: center; padding: 48px 0; }
.pd-hero__left-inner { max-width: 720px; width: 100%; padding-left: 24px; padding-right: 48px; }
/* Photo fills the right column with equal cropping top/bottom — keeps
 * faces / focal subjects visible regardless of column aspect ratio. */
.pd-hero__right { flex: 1; position: relative; overflow: hidden; background: #041e41; }
.pd-hero__photo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.pd-hero__focus-frame { position: absolute; top: 8%; left: 8%; width: 84%; height: 84%; pointer-events: none; z-index: 2; }
.pd-hero__corner { position: absolute; width: 88px; height: 88px; }
.pd-hero__corner--tl { top: 0; left: 0; }
.pd-hero__corner--tr { top: 0; right: 0; }
.pd-hero__corner--bl { bottom: 0; left: 0; }
.pd-hero__corner--br { bottom: 0; right: 0; }
.pd-hero__eyebrow { display: inline-block; font-size: 15px; font-weight: 600; letter-spacing: 1.5px; text-transform: capitalize; color: #28a7df; margin-bottom: 16px; }
.pd-hero__title { font-size: 48px; font-weight: 600; line-height: 1.2; margin: 0 0 12px; color: #fff; font-family: "canada-type-gibson", "Gibson", sans-serif; }
.pd-hero__rate { margin-bottom: 16px; }
.pd-hero__subtitle { font-size: 16px; font-weight: 400; line-height: 1.55; color: #fff; margin: 0 0 32px; }
.pd-hero__cta { display: inline-block; background: #28a7df; color: #fff; font-size: 16px; font-weight: 500; padding: 14px 32px; border-radius: 100px; text-decoration: none; font-family: "canada-type-gibson", "Gibson", sans-serif; transition: background 0.2s; }
.pd-hero__cta:hover { background: #f9b236; color: #041e41; }
/* Stack at 1100px so iPad portrait (768) AND landscape (1024) both get the
 * stacked layout. On stacked sizes the right column sizes itself to the
 * photo's natural aspect ratio (no forced height, no cropping) — we accept
 * a taller hero on these breakpoints in exchange for showing the whole
 * image. */
@media (max-width: 1100px) {
  .pd-hero__split { flex-direction: column; }
  .pd-hero__left { flex: none; max-width: 100%; padding: 40px 24px 36px; }
  .pd-hero__left-inner { padding-left: 0; padding-right: 0; }
  .pd-hero__right { min-height: 0; height: auto; }
  .pd-hero__photo { position: relative; width: 100%; height: auto; max-height: none; object-fit: contain; }
  /* Editor toggle: no photo on stacked sizes. */
  .pd-hero--hide-photo-mobile .pd-hero__right { display: none; }
  .pd-hero__title { font-size: 38px; }
}
@media (max-width: 720px) {
  .pd-hero__title { font-size: 30px; }
}

/* ── FSCS strip — matched to product-detail-a-pills ── */
.pd-fscs { background: linear-gradient(135deg, #041e41 0%, #0a3978 100%); padding: 56px 0; font-family: "canada-type-gibson", "Gibson", sans-serif; }
.pd-fscs__inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 36px; }
.pd-fscs__logo { flex-shrink: 0; }
.pd-fscs__logo img { width: 120px; height: auto; display: block; }
.pd-fscs__body { flex: 1; min-width: 0; }
.pd-fscs__title { font-size: 22px; font-weight: 600; color: #fff; margin: 0 0 8px; }
.pd-fscs__copy { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); margin: 0 0 12px; }
.pd-fscs__copy strong { color: #fff; font-weight: 600; }
.pd-fscs__link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #f9b236; text-decoration: none; }
.pd-fscs__link:hover { color: #ffc658; }
@media (max-width: 720px) {
  .pd-fscs__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .pd-fscs__logo img { width: 96px; }
}

/* ── Compact category header — title + subtitle baseline-aligned on top row, Learn more below ── */
.deel-category-header--compact {
  /* Learn-more flows inline after the subtitle (client: right-aligned was
   * too far for the eye; stacked it added ~37px before the table). */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0 0 16px;
  margin: 0 0 12px;
  /* Demo design: no divider between Learn more and the Account table header. */
}
.deel-category-header--compact .deel-category-header__text {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
  width: 100%;
}
.deel-category-header--compact .deel-category-name {
  font-size: 28px;
  font-weight: 600;
  color: #041e41;
  margin: 0;
  line-height: 1.2;
}
.deel-category-header--compact .deel-category-subtitle {
  font-size: 14px;
  color: #5a6a7a;
  margin: 0;
  line-height: 1.4;
}
.deel-category-header--compact .deel-category-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400; /* regular by default; per-section bold via toggle */
  color: #28a7df;
  text-decoration: none;
  white-space: nowrap;
}
.deel-category-header--compact .deel-category-learn-more--bold {
  font-weight: 600;
}
.deel-category-header--compact .deel-category-learn-more:hover {
  color: #1d8bbd;
}
/* Arrow icon slides slightly on hover. */
.deel-category-learn-more__arrow { transition: transform 0.18s ease; }
.deel-category-learn-more:hover .deel-category-learn-more__arrow { transform: translateX(2px); }
@media (max-width: 720px) {
  .deel-category-header--compact { padding-bottom: 12px; }
  .deel-category-header--compact .deel-category-name { font-size: 22px; }
}

/* ── Issue number on expand row name (de-emphasised) ── */
.deel-expand-row__issue {
  font-weight: 400;
  color: #5a6a7a;
  font-size: 0.9em;
  margin-left: 4px;  /* baseline, not the global-reset top — else the smaller issue text
     sits high vs the name (visible when the name wraps on mobile). */
  vertical-align: baseline;
}

/* ── FSCS block inside expand-row left panel ──
 * No background/border on this section — the logo + copy read as inline
 * reassurance content, not a call-out card. */
/* Both columns pin their last element to the panel's bottom edge so the
 * FSCS strip and the Apply button always sit level, whichever column is
 * taller (client: with Key features present the button sat lower). */
.deel-expand-row__detail-left,
.deel-expand-row__detail-right {
  display: flex;
  flex-direction: column;
}
.deel-expand-row__detail-right .deel-expand-row__cta-row {
  margin-top: auto;
  align-self: flex-end;
}
.deel-expand-row__detail-left .deel-expand-row__fscs {
  margin-top: auto;
  padding-top: 20px; /* keeps the old 20px minimum gap above */
}
.deel-expand-row__fscs {
  display: inline-flex;
  /* Bottom-aligned to the logo per client feedback (supersedes the earlier
   * optical-centring request) — sits level with the Apply now button. */
  align-items: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.deel-expand-row__fscs img {
  width: 38px;
  height: auto;
  flex-shrink: 0;
}
.deel-expand-row__fscs p {
  font-size: 12px;
  color: #041e41;
  line-height: 1.4;
  margin: 0;
  /* Kill the theme's global 15px paragraph padding-bottom — it pushed the
   * text 15px above the logo's bottom edge under align-items: flex-end. */
  padding: 0;
  font-weight: 500;
}
.deel-expand-row__fscs strong {
  color: #041e41;
  font-weight: 700;
}

.deel-expand-row__name-col {
  flex: 0 0 36%;
  display: block;
  text-align: left;
}
.deel-expand-row__name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.deel-expand-row__name-text {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deel-expand-row__name-col .deel-badge {
  flex: 0 0 auto;
  font-size: 10.5px;
  padding: 3px 9px;
  letter-spacing: 0;
}
.deel-expand-row__meta-col {
  flex: 1 1 0;
}
.deel-expand-row__chevron {
  flex: 0 0 4%;
}
.deel-expand-table-head .deel-expand-row__name-col,
.deel-expand-table-head .deel-expand-row__rate-col,
.deel-expand-table-head .deel-expand-row__meta-col {
  white-space: nowrap;
}

/* ── DeelQuote — refactored quote block, design-system aligned
   Pattern: pale-grey section bg + white inset card + mango accent line.
   Matches the visual rhythm of the author-bio block on /savings-hub-article and the FSCS card. ── */
.deel-quote-section {
  background: linear-gradient(135deg, #041e41 0%, #0a3978 100%);
  padding: 80px 0;
  font-family: "canada-type-gibson", "Gibson", sans-serif;
}
.deel-quote-section__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.deel-quote {
  background: #fff;
  border-radius: 16px;
  padding: 56px 64px 64px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  box-shadow: 0 2px 12px rgba(4, 30, 65, 0.05);
}
.deel-quote__logo {
  flex-shrink: 0;
  width: 220px;
}
.deel-quote__logo img {
  width: 100%;
  height: auto;
  display: block;
}
.deel-quote__body {
  position: relative;
  border-left: 4px solid #f9b236;
  padding: 8px 48px 8px 40px;
  min-width: 0;
}
.deel-quote__body::before {
  content: "\201C";
  position: absolute;
  left: 24px;
  top: -32px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 96px;
  line-height: 1;
  color: #f9b236;
  font-weight: 700;
}
/* Closing quote mark — sits in its own grid column on the right of the
 * body, vertically aligned to the bottom of the quote text. Attribution
 * spans the full width below in its own grid row. This way the mark
 * always anchors to the right edge of the body and the bottom of the
 * quote, no matter how the text wraps. */
.deel-quote__body {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
      "quote        mark"
      "attribution  attribution";
  column-gap: 24px;
}
.deel-quote__text        { grid-area: quote; }
.deel-quote__close-mark  { grid-area: mark; align-self: end; }
.deel-quote__attribution { grid-area: attribution; }
.deel-quote__close-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 96px;
  line-height: 0.7;
  color: #f9b236;
  font-weight: 700;
  transform: translateY(0.25em);
}
.deel-quote__text {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 500;
  color: #041e41;
  margin: 0 0 16px;
  padding-left: 56px;
  letter-spacing: -0.005em;
}
.deel-quote__attribution {
  font-size: 14px;
  color: #5a6a7a;
  margin: 0;
  padding-left: 56px;
  letter-spacing: 0.01em;
}
.deel-quote__attribution strong {
  color: #041e41;
  font-weight: 600;
}
@media (max-width: 720px) {
  .deel-quote-section {
    padding: 56px 0;
  }
  .deel-quote {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 28px;
    text-align: left;
  }
  .deel-quote__logo {
    /* client: 160px read too small on mobile — fill more of the card,
       centred, capped so it never touches the edges. */
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }
  .deel-quote__body {
    padding: 8px 24px 8px 28px;
  }
  .deel-quote__body::before {
    left: 12px;
    top: -24px;
    font-size: 72px;
  }
  .deel-quote__close-mark {
    font-size: 72px;
  }
  .deel-quote__text {
    font-size: 18px;
    padding-left: 32px;
  }
  .deel-quote__attribution {
    padding-left: 32px;
  }
}

/* ── You may also like — .deel-guide-card treatment matched to /savings-hub-v2f
   (uppercase grey type label, no overlay/grayscale on image, v2f title/meta padding) ── */
.deel-guides--compact {
  padding-top: 80px;
  padding-bottom: 80px;
}
.deel-guides--compact .deel-guides__header {
  margin-bottom: 36px;
}
.deel-guides--compact .deel-guide-card__title,
.deel-guides--compact .deel-guide-card__desc,
.deel-guides--compact .deel-guide-card__meta {
  padding-left: 24px;
  padding-right: 24px;
}
.deel-guides--compact .deel-guide-card__title {
  margin-top: 20px;
}
.deel-guides--compact .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;
}
.deel-guides--compact .deel-guide-card__meta-sep {
  margin: 0 6px;
  color: #c0c8d0;
}
.deel-guides--compact .deel-guide-card__meta {
  padding-bottom: 24px;
}
.deel-guides--compact .deel-guide-card__image::after { display: none; }
.deel-guides--compact .deel-guide-card__image img { filter: none; }
.deel-guides__footer {
  text-align: center;
  margin-top: 32px;
}

/* ── Filter pill count + disabled state ── */
.deel-filter-pill__count {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -1px; /* optically centre the count against the label */
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 100px;
  background: rgba(4, 30, 65, 0.08);
  color: #5a6a7a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: middle;
}
.deel-filter-pill.is-active .deel-filter-pill__count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.deel-filter-pill.is-disabled,
.deel-filter-pill:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.deel-filter-pill.is-disabled .deel-filter-pill__count {
  background: rgba(4, 30, 65, 0.04);
}

/* ── Page-level empty state (entire filter produces 0 results) ── */
.deel-page-empty {
  text-align: center;
  padding: 64px 32px;
  background: #f3f5f7;
  border: 1px solid #e1e6ec;
  border-radius: 16px;
  margin: 24px 0;
}
.deel-page-empty__title {
  font-family: canada-type-gibson, sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #041e41;
  margin: 0 0 12px;
  line-height: 1.3;
}
.deel-page-empty__copy {
  font-size: 15px;
  color: #5a6a7a;
  line-height: 1.6;
  margin: 0 auto 24px;
  max-width: 520px;
}
.deel-page-empty__copy strong {
  color: #041e41;
  font-weight: 600;
}

/* ── Reward Saver badge variant ── */
.deel-badge.deel-badge--reward {
  background: rgba(249, 178, 54, 0.18);
  color: #b27308;
  border: 1px solid rgba(249, 178, 54, 0.45);
}

/* ── Dual-rate listing column for reward-saver products ── */
.deel-expand-row__rate-prefix {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #5a6a7a;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.deel-expand-row__rate-col--reward .deel-expand-row__rate {
  /* keep the headline rate consistent with standard rows so the table still scans on the big number */
}
.deel-expand-row__rate-split {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #5a6a7a;
  white-space: nowrap;
}
.deel-expand-row__rate-split-sep {
  color: #041e41; /* navy — amber read poorly on small screens (client) */
  font-weight: 700;
}

/* ── Awards section — dark blue gradient, white text ── */
.deel-page .deel-stats.deel-stats--awards {
  background: linear-gradient(135deg, #041e41 0%, #0a3978 100%);
}
.deel-page .deel-stats.deel-stats--awards .deel-stats__title {
  color: #fff;
}
.deel-page .deel-stats.deel-stats--awards .deel-stats__label {
  color: rgba(255, 255, 255, 0.88);
}

/* ── Apply CTA — sole button, right-align within the features column for clean terminal action ── */
.deel-expand-row__cta-row {
  justify-content: flex-end;
}/* ── Feefo widget — centre the SINGLE_REVIEW carousel in its section
   (full-width override removed: widget uses Shadow DOM so host CSS can't pierce it,
    and the widget is configured as SINGLE_REVIEW server-side. To change that,
    update the widget config in the Feefo merchant dashboard.) ── */
#feefo-service-review-carousel-widgetId {
  display: block;
  margin: 0 auto;
  text-align: center;
}


/* ============================================================================
   New flex-layout additions (WP-stack)
   - .ps-directory:      personal_savings_directory flex layout
   - .deel-industry-quote: industry_quote flex layout
   - .deel-related-articles: related_hub_articles flex layout
   - .deel-kb:           deel_kb_strip flex layout (reusable, mirrors hub style)
   - .savings-hub-card:  card pattern used inside .deel-related-articles
   ========================================================================= */

:root {
  --ps-navy: #041e41;
  --ps-azure: #28a7df;
  --ps-mango: #f9b236;
  --ps-pale: #f3f5f7;
  --ps-ink: #1c2640;
  --ps-muted: #5b6a85;
  --ps-line: #e1e6ec;
  --ps-gradient: linear-gradient(135deg, #041e41 0%, #0a3978 100%);
  --ps-font: "canada-type-gibson", "Gibson", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* --------------------------------------------------- ps-directory (minimal) -- */
/* The Gatsby production page renders the rich filter + expandable rows UI.
   The WP-side render below is just a usable preview for editors. */

section.content.ps-directory {
  padding: 80px 0;
  background: #fff;
  margin: 0;
  font-family: var(--ps-font);
}
section.content.ps-directory .content-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.ps-directory h2 {
  font-size: 36px;
  color: var(--ps-navy);
  margin: 0 0 12px;
  font-weight: 600;
}
.ps-directory > .content-block > p {
  font-size: 17px;
  color: var(--ps-muted);
  margin: 0 0 40px;
  max-width: 720px;
}
.ps-directory__categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.ps-directory__category {
  background: var(--ps-pale);
  border-radius: 16px;
  padding: 28px 28px 24px;
}
.ps-directory__category h3 {
  font-size: 22px;
  color: var(--ps-navy);
  margin: 0 0 8px;
  font-weight: 600;
}
.ps-directory__category p {
  font-size: 14px;
  color: var(--ps-muted);
  margin: 0 0 16px;
}
.ps-directory__category a {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  color: var(--ps-azure);
  text-decoration: none;
  margin-bottom: 16px;
}
.ps-directory__category a:hover { color: #1e96cc; }
.ps-directory__category ul {
  list-style: disc;
  padding-left: 18px;
  margin: 0;
  color: var(--ps-ink);
  font-size: 14px;
  line-height: 1.7;
}

/* ------------------------------------------------------ industry_quote -- */

section.content.deel-industry-quote {
  padding: 80px 0;
  background: var(--ps-pale);
  margin: 0;
  font-family: var(--ps-font);
}
section.content.deel-industry-quote .content-block {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.deel-industry-quote__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.deel-industry-quote__logo img {
  width: 130px;
  height: auto;
  display: block;
}
.deel-industry-quote__body {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.deel-industry-quote__text {
  font-family: var(--ps-font);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ps-navy);
  font-weight: 500;
  margin: 0 0 16px;
  font-style: italic;
}
.deel-industry-quote__attr {
  font-size: 14px;
  color: var(--ps-muted);
}
.deel-industry-quote__name {
  font-weight: 600;
  color: var(--ps-navy);
  margin-right: 6px;
}
.deel-industry-quote__position::before { content: " · "; color: var(--ps-line); margin-right: 4px; }
@media (max-width: 720px) {
  .deel-industry-quote__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .deel-industry-quote__text { font-size: 19px; }
}

/* -------------------------------------------------- related_hub_articles -- */
/* Component CSS lives in dist/assets/css/related-articles.css
 * (mu-plugin: related-articles-styles) — shared with hub_article auto-pickup. */

/* -------------------------------------------------- deel_kb_strip (reusable) -- */
/* Same component CSS as the Savings Hub Find-Your-Perfect strip. */

section.content.deel-kb {
  padding: 80px 0;
  background: #fff;
  margin: 0;
  font-family: var(--ps-font);
}
section.content.deel-kb .content-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.deel-kb__title {
  font-family: var(--ps-font);
  font-weight: 600;
  font-size: 37px;
  line-height: 1.15;
  color: var(--ps-navy);
  margin: 0 0 48px;
  text-align: center;
}
.deel-kb__strip {
  display: flex;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 20px rgba(0, 0, 0, 0.03);
}
.deel-kb__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 36px 32px;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.deel-kb__item + .deel-kb__item::before {
  content: "";
  position: absolute;
  left: 0; top: 24px; bottom: 24px;
  width: 1px;
  background: rgba(4, 30, 65, 0.08);
}
.deel-kb__item--clickable {
  cursor: pointer;
  transition: background 0.2s ease;
}
.deel-kb__item--clickable:hover { background: rgba(40, 167, 223, 0.03); }
.deel-kb__icon {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--ps-gradient);
}
.deel-kb__icon svg { color: var(--ps-mango); }
.deel-kb__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.deel-kb__headline {
  font-family: var(--ps-font);
  font-weight: 600;
  font-size: 18px;
  color: var(--ps-navy);
  line-height: 1.3;
}
.deel-kb__desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ps-muted);
}
@media (max-width: 960px) {
  .deel-kb__strip { flex-wrap: wrap; }
  .deel-kb__item { flex: 1 1 50%; min-width: 50%; }
  .deel-kb__item + .deel-kb__item:nth-child(2n+1)::before { display: none; }
}
@media (max-width: 600px) {
  section.content.deel-kb { padding: 56px 0; }
  .deel-kb__title { font-size: 28px; margin-bottom: 32px; }
  .deel-kb__item { flex: 1 1 100%; min-width: 100%; }
  .deel-kb__item + .deel-kb__item::before {
    top: 0; bottom: auto; left: 24px; right: 24px;
    width: auto; height: 1px;
  }
}


/* ============================================================================
   Ported from _campaign-landing-deel.scss — base rules for the deel-* blocks
   referenced by the prototype but not present in its inline `v4Styles`.
   These were missing on first port and made the directory section look broken.
   ========================================================================= */

/* ── Products section + filter pills + category groups ────────────────────── */

section.content.deel-products,
.deel-products {
  /* 60px top (was 80): client asked for a tighter lead-in after the hero
   * where no eyebrow is used. 60 matches the v2-section-pad rhythm used by
   * the testimonials panel — the tight end of this page's existing range
   * (60–100) rather than below it. */
  padding: 60px 0 60px;
  background: #fff;
  margin: 0;
}

.deel-products .content-block,
section.content.deel-products .content-block {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.deel-products-header {
  text-align: center;
  margin-bottom: 48px;
}

.deel-products-title {
  font-family: "canada-type-gibson", "Gibson", sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: #041e41;
  margin: 0 0 12px;
  line-height: 1.15;
}

.deel-products-subtitle {
  font-size: 18px;
  color: rgba(4, 30, 65, 0.6);
  margin: 0 0 20px; /* client: pills closer to the copy above */
  line-height: 1.5;
}

.deel-products-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.deel-filter-pill {
  display: inline-block;
  font-family: "canada-type-gibson", "Gibson", sans-serif;
  font-size: 15px;
  font-weight: 400; /* client: pill labels read too heavy at 500 */
  padding: 7px 20px; /* client: pills slightly smaller, especially vertically */
  border-radius: 200px;
  border: 1px solid rgba(4, 30, 65, 0.15);
  background: #fff;
  color: #041e41;
  cursor: pointer;
  transition: all 0.2s ease;
}
.deel-filter-pill:hover:not(:disabled):not(.is-disabled) {
  border-color: #28a7df;
  color: #28a7df;
}
.deel-filter-pill.is-active {
  background: #28a7df;
  color: #fff;
  border-color: #28a7df;
}
.deel-filter-pill.is-disabled,
.deel-filter-pill:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.deel-category-group {
  margin-bottom: 56px;
}
.deel-category-group:last-child { margin-bottom: 0; }

.deel-category-header {
  margin-bottom: 28px;
}

.deel-category-name {
  font-family: "canada-type-gibson", "Gibson", sans-serif;
  font-weight: 600;
  font-size: 32px;
  color: #041e41;
  margin: 0 0 8px;
  line-height: 1.2;
}

.deel-category-subtitle {
  font-size: 18px;
  color: rgba(4, 30, 65, 0.55);
  margin: 0;
  line-height: 1.5;
}

.deel-category-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #28a7df;
  text-decoration: none;
  margin-top: 10px;
  transition: color 0.2s;
}
.deel-category-learn-more:hover { color: #1e96cc; }

/* ── Badges (Best Buy / Popular / Reward / Tracker) ────────────────────────── */

.deel-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 200px;
  letter-spacing: 0.02em;
  vertical-align: middle;
  white-space: nowrap;
  background: #28a7df;
  color: #fff;
}
/* Colour variants — editor picks via the Listing badge — Colour dropdown
   on each product (Product Figure Details). Empty = legacy auto-derived
   badge keeps the default light blue. */
.deel-badge.deel-badge--azure { background: #28a7df; color: #fff; }
.deel-badge.deel-badge--mango { background: #f9b236; color: #041e41; }
.deel-badge.deel-badge--navy  { background: #041e41; color: #fff; }
.deel-badge.deel-badge--ghost {
  background: transparent;
  color: rgba(4, 30, 65, 0.7);
  border: 1px solid rgba(4, 30, 65, 0.2);
}

/* ── Expandable row — collapsed summary is a flex row of columns ──────────── */

/* Table outline: side + bottom borders on each row, plus a top border on
 * the header row above, so the full stack reads as an outlined table
 * per category group. */
.deel-expand-row {
  border-bottom: 1px solid rgba(4, 30, 65, 0.06);
  border-left:   1px solid rgba(4, 30, 65, 0.06);
  border-right:  1px solid rgba(4, 30, 65, 0.06);
}
/* The header row sits outside the box, so the first product row opens it. */
.deel-expand-table-head + .deel-expand-row {
  border-top: 1px solid rgba(4, 30, 65, 0.06);
}

.deel-expand-row.is-open {
  background: rgba(40, 167, 223, 0.02);
}

.deel-expand-row__summary {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 18px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: "canada-type-gibson", "Gibson", sans-serif;
  text-align: left;
  transition: background 0.15s ease;
}
.deel-expand-row__summary:hover {
  background: rgba(40, 167, 223, 0.03);
}

/* Wider col-1 so longer account names (with their "(Issue X)" suffix) and
 * the inline badge fit on one line. */
.deel-expand-row__name-col {
  flex: 0 0 40% !important;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: left;
}

.deel-expand-row__name {
  font-weight: 600;
  font-size: 16px;
  color: #041e41;
}

.deel-expand-row__name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* The (Issue X) trailing tag rendered in muted grey per the demo. */
.deel-expand-row__issue {
  font-weight: 400;
  color: rgba(4, 30, 65, 0.5);
  font-size: 0.9em;
  margin-left: 2px;  /* baseline, not the global-reset top — else the smaller issue text
     sits high vs the name (visible when the name wraps on mobile). */
  vertical-align: baseline;
}

.deel-expand-row__rate-col {
  flex: 0 0 15%;
  text-align: center;
}

.deel-expand-row__rate {
  display: block;
  font-weight: 700;
  font-size: 22px;
  color: #28a7df;
  line-height: 1;
}

.deel-expand-row__rate-type {
  display: block;
  font-size: 12px;
  color: rgba(4, 30, 65, 0.45);
  margin-top: 3px;
}

.deel-expand-row__meta-col {
  flex: 0 0 14% !important;
  text-align: center;
  font-size: 15px;
  color: #041e41;
}

.deel-expand-row__chevron {
  flex: 0 0 5% !important;
  text-align: center;
  color: rgba(4, 30, 65, 0.3);
  transition: color 0.15s ease;
}
.deel-expand-row.is-open .deel-expand-row__chevron { color: #28a7df; }
/* Chevron flips when the row is open (closed = points down, open = up). */
.deel-expand-row__chevron svg { transition: transform 0.2s ease; }
.deel-expand-row.is-open .deel-expand-row__chevron svg { transform: rotate(180deg); }

/* Expanded detail panel — hidden by default, shown only when parent has
   .is-open. (Earlier the unscoped `display: grid` rule beat the UA
   `[hidden] { display: none }` rule, so panels rendered regardless of state.) */
.deel-expand-row__detail { display: none; }
/* The clicked summary row shares the expanded panel's pale-blue tint so
 * the two visibly read as one connected unit (client request). */
.deel-expand-row.is-open .deel-expand-row__summary {
  background: rgba(40, 167, 223, 0.02);
}
.deel-expand-row.is-open .deel-expand-row__detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 32px 40px 36px;
  border-top: 1px solid rgba(4, 30, 65, 0.06);
  background: rgba(40, 167, 223, 0.02);
}

.deel-expand-row__detail-left,
.deel-expand-row__detail-right {
  max-width: 420px;
}

.deel-expand-row__info-list {
  display: flex;
  flex-direction: column;
}

.deel-expand-row__info-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(4, 30, 65, 0.06);
  font-size: 14px;
  color: rgba(4, 30, 65, 0.55);
}
.deel-expand-row__info-item:last-child { border-bottom: none; }
.deel-expand-row__info-item strong {
  color: #041e41;
  font-weight: 600;
}

.deel-expand-row__cta-row {
  display: flex;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(4, 30, 65, 0.06);
}

/* Color modifiers for .deel-btn in the expand-row detail.
   Base size/typography lives in deel-btn.css (mu-plugin: deel-btn-styles). */
.deel-products .deel-btn--accent {
  background: #28a7df;
  color: #fff;
}
.deel-products .deel-btn--accent:hover { background: #1d8bbd;  }
.deel-products .deel-btn__arrow { display: inline-block; flex-shrink: 0; }

/* ----------------------------------------------------------------------------
   Mobile: each product row becomes a stacked card.

   The desktop table header row (.deel-expand-table-head) is hidden because
   each cell carries its column label inline via the data-label attribute
   we render in the partial. Layout is unchanged on desktop (≥721px).
   ---------------------------------------------------------------------------- */
@media (max-width: 720px) {
  /* Full product titles on mobile (client request) — the desktop
   * single-line ellipsis clipped names in the narrow cards; let them
   * wrap instead. */
  .deel-expand-row__name-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .deel-expand-row__name {
    flex-wrap: wrap;
  }

  /* Source order: the base `display: flex` rule lives later in this file
   * so it wins by default. !important keeps the header hidden on mobile. */
  .deel-expand-table-head { display: none !important; }

  /* The summary becomes a vertical stack: name row, then a 2-column grid
   * of (label, value) pairs, then chevron in the top-right. */
  .deel-expand-row__summary {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name     chevron"
      "rate     rate"
      "term     balances"
      "access   access";
    align-items: start;
    gap: 12px 16px;
    padding: 16px;
  }

  .deel-expand-row__name-col {
    grid-area: name;
    flex: none !important;
    margin: 0 !important;
    min-width: 0;
  }
  .deel-expand-row__chevron {
    grid-area: chevron;
    flex: none !important;
    align-self: center;
  }
  .deel-expand-row__rate-col      { grid-area: rate; }
  /* Explicit modifiers — the old nth-of-type mapping counted ALL div
   * siblings, so it was off-by-one and Access never got an area,
   * auto-placing differently per card. */
  .deel-expand-row__meta-col--term     { grid-area: term; }
  .deel-expand-row__meta-col--balances { grid-area: balances; }
  .deel-expand-row__meta-col--access   { grid-area: access; }

  /* Inline column labels — pulled from each cell's data-label attribute,
   * which mirrors the desktop column header text (CMS-editable). */
  .deel-expand-row__rate-col[data-label]::before,
  .deel-expand-row__meta-col[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(4, 30, 65, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
  }
  /* Both rate-col and meta-col are flex-reset and left-aligned on mobile. */
  .deel-expand-row__rate-col,
  .deel-expand-row__meta-col {
    flex: none !important;
    text-align: left !important;
    min-width: 0;
  }
  .deel-expand-row__rate { font-size: 22px; }

  /* Expanded detail panel stacks single-column. Matches the
   * `.deel-expand-row.is-open` selector to win specificity against the
   * desktop two-column rule. */
  .deel-expand-row.is-open .deel-expand-row__detail {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 16px 24px;
  }
  .deel-expand-row__detail-left,
  .deel-expand-row__detail-right { max-width: 100%; min-width: 0; }
  /* Apply now full-width on mobile so it never overflows the card. */
  .deel-products .deel-btn--accent { width: 100%; justify-content: center; }
  /* Info list values can be long; let them wrap rather than push width. */
  .deel-expand-row__info-item { flex-wrap: wrap; row-gap: 2px; }
}


/* ============================================================================
   .deel-stats — ported from _campaign-landing-deel.scss (prototype's main SCSS)
   Used by the new `deel_stats` flex layout. Two variants: icons + awards.
   ========================================================================= */

.deel-stats {
  padding: 100px 0;
  background: #f3f5f7;
  margin: 0;
  font-family: "canada-type-gibson", "Gibson", sans-serif;
}
/* Compact override per the demo — applies to the icons variant used on
 * PSL / product detail / account type pages. Chained selector so it beats
 * the base `.deel-stats` rule above. */
.deel-stats.deel-stats--icons { padding: 40px 0; }
.deel-stats.deel-stats--icons .deel-stats__title { margin-bottom: 24px; }
.deel-stats .content-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.deel-stats__eyebrow {
  display: block;
  font-family: "canada-type-gibson", "Gibson", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #28a7df;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 12px;
}

.deel-stats__title {
  font-family: "canada-type-gibson", "Gibson", sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: #041e41;
  text-align: center;
  margin: 0 0 64px;
  line-height: 1.15;
}

.deel-stats__intro {
  font-family: "canada-type-gibson", "Gibson", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(4, 30, 65, 0.45);
  text-align: center;
  max-width: 720px;
  margin: 54px auto -40px;
}

.deel-stats__icon {
  display: block;
  max-height: 48px;
  max-width: 120px;
  margin: 0 auto 16px;
  object-fit: contain;
  opacity: 0.85;
}

.deel-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.deel-stats__value {
  display: block;
  font-family: "canada-type-gibson", "Gibson", sans-serif;
  font-weight: 600;
  font-size: 72px;
  color: #041e41;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.deel-stats__label {
  font-size: 18px;
  font-weight: 600;
  color: rgba(4, 30, 65, 0.65);
  line-height: 1.4;
}

/* Icons variant — small SVG glyphs */
.deel-stats--icons .deel-stats__grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.deel-stats--icons .deel-stats__icon {
  max-height: none;
  max-width: none;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  filter: none;
  opacity: 1;
}
.deel-stats--icons .deel-stats__label {
  font-size: 17px;
  font-weight: 600;
  color: #041e41;
  line-height: 1.35;
}

/* Awards variant — larger logos. Flex-based so 1–3 items stay centered
 * within the section instead of left-aligning. */
.deel-stats--awards .deel-stats__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px 32px;
  text-align: center;
}
/* Same width per item as the original 4-column grid (25% minus gap). */
.deel-stats--awards .deel-stats__item {
  flex: 0 0 calc(25% - 24px);
  max-width: calc(25% - 24px);
}
.deel-stats--awards .deel-stats__icon {
  display: block;
  width: 50%;
  max-width: none;
  max-height: none;
  height: auto;
  margin: 0 auto 14px;
  filter: none;
  opacity: 1;
  object-fit: contain;
}
.deel-stats--awards .deel-stats__label {
  font-size: 17px;
  font-weight: 600;
  color: #041e41;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .deel-stats { padding: 56px 0; }
  .deel-stats__title { font-size: 28px; margin-bottom: 36px; }
  .deel-stats__grid,
  .deel-stats--icons .deel-stats__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  /* Awards is flex on desktop; on mobile bump each item to ~50% so the row
   * wraps to a 2×2 grid instead of cramming 4 logos at quarter size. */
  .deel-stats--awards .deel-stats__grid { gap: 32px 24px; }
  .deel-stats--awards .deel-stats__item {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}

/* Related articles CTA footer rules moved to dist/assets/css/related-articles.css */


/* ============================================================================
   .v2-testimonials / .v2-section-pad
   Ported from _campaign-landing-v2.scss — used by the feefo_widget partial
   (and any other testimonials block stacked on this page).
   ========================================================================= */

.v2-section-pad {
  padding: 60px 0;
}

.v2-testimonials.v2-section-pad {
  padding: 60px 0;
}

.v2-testimonials {
  background: #fff;
  font-family: "canada-type-gibson", "Gibson", sans-serif;
}
.v2-testimonials .content-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.v2-testimonials .v2-test-heading {
  text-align: center;
  font-family: "canada-type-gibson", "Gibson", sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: #041e41;
  line-height: 1.1;
  margin: 0 0 12px;
}
.v2-testimonials .v2-test-subtitle {
  text-align: center;
  font-size: 20px;
  color: #1c2640;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 0;
}
.v2-testimonials .v2-reviews-cta {
  text-align: center;
  margin-top: 56px;
}
.v2-testimonials .v2-reviews-cta a {
  display: inline-block;
  padding: 8px 30px;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  background-color: #28a7df;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.v2-testimonials .v2-reviews-cta a:hover {
  background-color: #041e41;
}

@media (max-width: 720px) {
  .v2-testimonials .v2-test-heading { font-size: 28px; }
  .v2-testimonials .v2-test-subtitle { font-size: 16px; }
}


/* ============================================================================
   Directory — column header row + expanded "Key features" list
   ========================================================================= */

.deel-expand-table-head {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 20px 10px;
  /* Per the Figma, the column labels sit OUTSIDE the outlined table —
   * no borders here; the first row carries the box's top border. */
  font-family: "canada-type-gibson", "Gibson", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(4, 30, 65, 0.5);
}
.deel-expand-table-head .deel-expand-row__name-col { flex: 0 0 28%; text-align: left; }
.deel-expand-table-head .deel-expand-row__rate-col { flex: 0 0 15%; text-align: center; }
.deel-expand-table-head .deel-expand-row__meta-col { flex: 0 0 14%; text-align: center; }
.deel-expand-table-head .deel-expand-row__chevron  { flex: 0 0 5%; }

/* Override the row-scoped meta-col font-size / color inside the header
 * row so every header cell (Term / Balances / Access / etc.) matches
 * the Account + Rate cells (11px grey uppercase). Sort buttons inside
 * meta-cols inherit through `font: inherit` on .deel-sort-btn already
 * — this cell-level override is enough. */
.deel-expand-table-head .deel-expand-row__meta-col,
.deel-expand-table-head .deel-expand-row__rate-col {
  font-size: 11px;
  font-weight: 600;
  color: rgba(4, 30, 65, 0.5);
}

.deel-expand-row__detail-heading {
  font-family: "canada-type-gibson", "Gibson", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #041e41;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #28a7df;
}

.deel-expand-row__features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
.deel-expand-row__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(4, 30, 65, 0.75);
}
.deel-expand-row__features li svg {
  flex-shrink: 0;
  color: #28a7df;
  margin-top: 2px;
}

/* ============================================================================
   Awards stats — navy gradient override (matches the prototype's
   `.deel-page .deel-stats.deel-stats--awards` rule).
   ========================================================================= */

.deel-stats.deel-stats--awards {
  background: linear-gradient(135deg, #041e41 0%, #0a3978 100%);
}
.deel-stats.deel-stats--awards .deel-stats__title {
  color: #fff;
}
.deel-stats.deel-stats--awards .deel-stats__eyebrow {
  color: #28a7df;
}
.deel-stats.deel-stats--awards .deel-stats__label {
  color: rgba(255, 255, 255, 0.88);
}
/* Light-background variant — CMS-controlled via the "Background" select on
 * the at_awards layout. Eyebrow stays cyan; title/label flip to navy. */
.deel-stats.deel-stats--awards.deel-stats--bg-light {
  background: #fff;
}
.deel-stats.deel-stats--awards.deel-stats--bg-light .deel-stats__title { color: #041e41; }
.deel-stats.deel-stats--awards.deel-stats--bg-light .deel-stats__label { color: rgba(4, 30, 65, 0.7); }


/* ============================================================================
   Expand-row left panel additions: synopsis paragraph + bonus breakdown card
   (FSCS pill rules are already in the earlier block).
   ========================================================================= */

.deel-expand-row__synopsis {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(4, 30, 65, 0.7);
  margin: 0 0 24px;
}

.deel-bonus-breakdown {
  margin-top: 8px;
  padding: 12px 14px;
  background: rgba(4, 30, 65, 0.03);
  border: 1px solid rgba(4, 30, 65, 0.08);
  border-radius: 8px;
  min-width: 200px;
}
.deel-bonus-breakdown__row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 3px 0;
  color: rgba(4, 30, 65, 0.6);
}
.deel-bonus-breakdown__row strong {
  color: #041e41;
  font-weight: 600;
}
.deel-bonus-breakdown__note {
  font-size: 11px;
  color: rgba(4, 30, 65, 0.45);
  margin: 8px 0 0;
  line-height: 1.4;
  border-top: 1px solid rgba(4, 30, 65, 0.06);
  padding-top: 8px;
}

.v2-testimonials.deel-feefo { background: #f3f5f7; }

/* ── deel-faq (verbatim port from campaign-landing-deel) ── */
.deel-faq .centered-title-holder + .eighty-spacer { display: none !important; }
.deel-faq button.info-sub-heading { background: transparent; border: 0; padding: 0; margin: 0; text-align: left; font-family: inherit; width: 100%; cursor: pointer; }
.deel-faq .centered-title-holder { margin-bottom: 32px; }
.deel-faq .info-text-link-container[data-state="open"],
.deel-faq .info-accordion-container.is-open + .info-text-link-container { padding: 16px 0 0; }
.deel-faq .info-text { padding: 0 0 12px; }
.deel-faq .deel-faq-icon { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: #fff; }
.deel-faq .deel-faq-icon svg { transition: transform 0.25s ease-out; }
.deel-faq .info-sub-heading .white-mango-status-icon { display: none; }
.deel-faq [data-state="open"] .deel-faq-icon svg,
.deel-faq .info-accordion-container.is-open .deel-faq-icon svg { transform: rotate(180deg); }
.deel-faq [data-state="open"] .deel-faq-icon,
.deel-faq .info-accordion-container.is-open .deel-faq-icon { color: #f9b236; }
.deel-faq--light .centered-title-holder h3 { color: #041e41; }
.deel-faq--light .info-sub-heading { color: #041e41; }
.deel-faq--light .info-text { color: rgba(4, 30, 65, 0.7); }
.deel-faq--light .deel-faq-icon { color: #041e41; }
.deel-faq--light [data-state="open"] .deel-faq-icon,
.deel-faq--light .info-accordion-container.is-open .deel-faq-icon { color: #f9b236; }

/* Modern Faqs spacing + button tweaks */
.faq-list-container > .deel-faq { margin-top: 32px; }
.faq-list-container .all-faqs-link { text-align: center; margin-top: 32px; }
.faq-list-container .all-faqs-link a { display: inline-block; width: auto; padding: 14px 32px; margin: 0; font-size: 16px; font-weight: 500; border-radius: 100px; }


/* ============================================================================
   pd-hero footer extras — used by the hero_enhanced shim (charity-clubs and
   similar) for accreditation logos + the Feefo review badge.
   ========================================================================= */
.pd-hero__footer {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}
.pd-hero__accreditation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
/* Force a concrete size — SVGs without intrinsic dimensions (e.g. the
 * FSCS logo with width="100%" height="100%") render at 0×0 if both
 * width and height are `auto`. */
.pd-hero__accreditation img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    display: block;
}
.pd-hero__review img {
    width: auto;
    height: 75px;
    max-width: 160px;
    object-fit: contain;
    display: block;
}
.pd-hero__embed {
    width: 100%;
    aspect-ratio: 4 / 3;
}
.pd-hero__embed iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 720px) {
    .pd-hero__footer { gap: 16px; padding-top: 20px; margin-top: 20px; }
}

/* pd-hero light-background overrides moved to
 * mu-plugins/section-bg-variant.php so hero_enhanced pages (charity-clubs
 * etc.) get the same treatment. Every page with .pd-hero benefits. */

/* Sortable column header buttons (Rate / Term on the products directory).
   Headers look like plain labels until hovered, with a small arrow indicator
   that shows the current sort direction. */
.deel-expand-table-head .deel-sort-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: inherit;
  text-transform: inherit;
}
.deel-expand-table-head .deel-sort-btn:hover { color: #041e41; }
.deel-expand-table-head .deel-sort-btn:focus-visible {
  outline: 2px solid #28a7df;
  outline-offset: 2px;
  border-radius: 4px;
}
.deel-sort-btn__arrow {
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.25;
  transform: rotate(45deg);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.deel-sort-btn[aria-sort="ascending"] .deel-sort-btn__arrow {
  opacity: 0.9;
  transform: rotate(-135deg);
}
.deel-sort-btn[aria-sort="descending"] .deel-sort-btn__arrow {
  opacity: 0.9;
  transform: rotate(45deg);
}

/* ── Classic-variant FAQ header on new-design pages ──
   Pages using the background-variant system (htb-bg-*) get the modern
   section-header pattern (36/600 title, 10px gap, 17px subtitle) — the
   legacy 35/700 flush-subtitle header read inconsistently (client).
   Legacy pages neither carry htb-bg-* nor load this sheet. */
section.very-light-blue-background[class*="htb-bg-"] .centered-title-holder h3 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 10px;
  color: #041e41;
}
section.very-light-blue-background[class*="htb-bg-"] .faqs-subtitle {
  font-size: 17px;
  line-height: 1.5;
  color: #5a6a7a;
  margin: 0;
}

/* ── Quote block on small screens ──
   The desktop 56px text indent and full-size closing mark survived into
   the stacked layout, squeezing the quote to ~164px (2-3 words per line,
   very tall card — client). Let the text use the card's full width. */
@media (max-width: 720px) {
  .deel-quote__text,
  .deel-quote__attribution {
    padding-left: 0;
  }
  .deel-quote__text {
    font-size: 18px;
    /* Drop the first line clear of the opening mark — it sat too close on
       mobile (the mark is absolute, so nudge the text, not the mark). */
    margin-top: 18px;
  }
  /* Collapse the grid: text takes the full card width; the closing mark
     floats over the bottom-right corner instead of owning a column. */
  .deel-quote__body {
    display: block;
    position: relative;
  }
  .deel-quote__close-mark {
    position: absolute;
    right: 0;
    bottom: 34px;
    /* Match the opening mark's size (72px) — was 48px, so the marks read
       mismatched on mobile only (client). */
    font-size: 72px;
    transform: none;
  }
}

/* ── Quote component: tablet + mobile ──
   Hide the award badge and let the quote fill the card width from tablet
   down (client). Desktop (>1024) keeps the badge + side-by-side layout. */
@media (max-width: 1024px) {
  .deel-quote {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .deel-quote__logo {
    display: none;
  }
}
