/* ==========================================================================
   funding-pages.css
   /funding (Account Funding) and /withdrawals. Ported from
   update/stage6/Trading/{Account Funding,Withdrawals}.html.

   LOAD css/about.css FIRST — it carries the --ab-* tokens and the shared
   editorial kit (page shell, section shell, tab strip, hero, heads, eyebrows,
   buttons, closing band, .ab-note callout). This file adds only what that kit
   has no equivalent of.

   /funding ALSO loads css/funding.css, because the methods grid on that page
   is the shared partials/funding-section.html — the same section the homepage
   mounts (NFR-07). The stage6 source re-drew that grid with seven inline
   marks; it is not ported. The live grid carries ten methods and licensed
   brand artwork, and a second copy of it would let the two pages disagree
   about which methods exist. Nothing in this file styles a payment tile.

   ONE RULE RUNS THROUGH EVERY BLOCK: nothing here states a fee, a limit, a
   processing time or a list of methods available to a given client. Every such
   value lives in the Client Portal and varies by jurisdiction, account and
   provider — the copy says exactly that, and the components are built to carry
   the qualifier rather than to display a figure. If a future edit wants a
   number in one of these cells, that number needs Compliance sign-off first.

   Grid rules use the border-matrix technique documented in css/about.css:
   container draws border-top + border-left, cells draw border-right +
   border-bottom, so a short last row is absent rather than filled.
   ========================================================================== */

/* Both heroes are .ab-hero straight from the kit — headline, .ab-hero__sub
   positioning line, .ab-hero__lead body, one .ab-btn. Nothing is added here. */

/* --------------------------------------------------------------------------
   1. Numbered process steps
   Three steps on both pages, ruled into one strip. The number is the anchor,
   so it sits above the heading rather than beside it.
   -------------------------------------------------------------------------- */
.tf-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ab-line);
  border-left: 1px solid var(--ab-line);
}

.tf-step {
  padding: 40px 32px;
  border-right: 1px solid var(--ab-line);
  border-bottom: 1px solid var(--ab-line);
}

.tf-step .num {
  display: block;
  margin-bottom: 18px;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--ab-gold);
  font-variant-numeric: tabular-nums;
}

.tf-step h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ab-ink);
}

.tf-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ab-ink-muted);
}

.tf-steps-cta {
  margin-top: 40px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   2. Definition list — Important Funding Information
   A term/description pair per row, term in gold small caps. Six rows on
   /funding, none of which carries a figure by design.
   -------------------------------------------------------------------------- */
.tf-info {
  margin: 0;
  border-top: 1px solid var(--ab-line);
}

.tf-info-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--ab-line);
}

.tf-info-row dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ab-gold);
}

.rtl .tf-info-row dt,
.rtl .tf-step .num,
.rtl .tf-method h3,
.rtl .tf-principle .k {
  letter-spacing: normal;
}

.tf-info-row dd {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ab-ink-muted);
}

/* --------------------------------------------------------------------------
   3. Withdrawal method cards
   Four routes, each named with an outline icon at one weight. These are the
   ROUTES Royce supports, not the routes available to a given client — the note
   below the grid draws that distinction and is part of the component.
   -------------------------------------------------------------------------- */
.tf-methods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ab-line);
  border-left: 1px solid var(--ab-line);
}

.tf-method {
  padding: 32px 26px;
  border-right: 1px solid var(--ab-line);
  border-bottom: 1px solid var(--ab-line);
}

.tf-method h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ab-ink);
}

.tf-method h3 svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--ab-gold);
}

.tf-method p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ab-ink-muted);
}

/* Centred, and never optional: it is what stops the grid above reading as an
   entitlement. */
.tf-note {
  max-width: 780px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ab-ink-muted);
}

/* --------------------------------------------------------------------------
   4. Withdrawal principles
   -------------------------------------------------------------------------- */
.tf-principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ab-line);
  border-left: 1px solid var(--ab-line);
}

.tf-principle {
  padding: 30px 26px;
  border-right: 1px solid var(--ab-line);
  border-bottom: 1px solid var(--ab-line);
}

.tf-principle .k {
  display: block;
  margin-bottom: 12px;
  padding-bottom: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ab-gold);
  border-bottom: 1px solid var(--ab-line);
}

.tf-principle p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ab-ink-muted);
}

/* Right-hand rules become left-hand rules; the container's opening rule moves
   with them. */
.rtl .tf-step,
.rtl .tf-method,
.rtl .tf-principle {
  border-right: 0;
  border-left: 1px solid var(--ab-line);
}

.rtl .tf-steps,
.rtl .tf-methods,
.rtl .tf-principles {
  border-left: 0;
  border-right: 1px solid var(--ab-line);
}

/* --------------------------------------------------------------------------
   5. Pre-withdrawal checklist and the irreversibility warning
   -------------------------------------------------------------------------- */
.tf-check {
  max-width: 820px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ab-line);
}

.tf-check li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 2px;
  font-size: 0.94rem;
  color: var(--ab-ink-muted);
  border-bottom: 1px solid var(--ab-line);
}

.tf-check li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--ab-gold);
}

/* Extends .ab-note. Digital-asset transfers cannot be reversed, so this one
   carries an icon and sits on the same measure as the checklist it closes. */
.tf-warn {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 820px;
  margin: 32px 0 0;
}

.tf-warn svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  color: var(--ab-gold);
}

.tf-warn p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   6. FAQ
   Bootstrap's accordion, re-tokenised — same treatment as .pm-faq, so the page
   ships no accordion JS of its own.
   -------------------------------------------------------------------------- */
.tf-faq {
  max-width: 860px;
  margin: 0 auto;
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: var(--ab-line);
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-color: var(--ab-ink);
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-color: var(--ab-gold);
  --bs-accordion-active-bg: transparent;
  --bs-accordion-body-color: var(--ab-ink-muted);
  --bs-accordion-btn-padding-y: 1.2rem;
  --bs-accordion-body-padding-y: 0.25rem;
}

.tf-faq .accordion-button {
  font-size: 1.05rem;
  color: var(--ab-ink);
}

.tf-faq .accordion-button:not(.collapsed) {
  color: var(--ab-gold);
  box-shadow: none;
}

.tf-faq .accordion-button:focus-visible {
  outline: 2px solid var(--ab-gold);
  outline-offset: -2px;
}

.tf-faq .accordion-body {
  font-size: 0.92rem;
  color: var(--ab-ink-muted);
}

/* --------------------------------------------------------------------------
   7. The shared funding section, mounted inside an .ab-section
   partials/funding-section.html is built to stand alone on the homepage, so it
   brings its own padding, its own background, its own head and its own "Open
   an Account" button. Inside a section that already supplies a head and a
   band, three of those four are duplicates.

   They are suppressed HERE rather than by forking the partial or adding a
   variant flag to js/funding.js: the tile inventory and the disclosure — the
   two things that must not drift from the homepage — are exactly what stays
   visible. Nothing below hides a payment method or a disclosure line.
   -------------------------------------------------------------------------- */
.tf-fund-mount .rz-fund {
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
}

.tf-fund-mount .rz-fund__head,
.tf-fund-mount .rz-fund__cta {
  display: none;
}

/* The engraved rosette is tuned to a full-height homepage band and reads as
   noise behind a grid this short. */
.tf-fund-mount .rz-fund__engraving {
  display: none;
}

/* The partial centres its own 1240px container with 40px gutters. Nested inside
   this page's .container-xl that would inset the tile grid relative to the
   section head above it, so the inner container is released and the outer one
   governs the measure. */
.tf-fund-mount .rz-fund__container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* --------------------------------------------------------------------------
   8. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .tf-methods,
  .tf-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .tf-steps {
    grid-template-columns: 1fr;
  }

  .tf-info-row {
    grid-template-columns: 200px 1fr;
    gap: 24px;
  }
}

@media (max-width: 767.98px) {
  .tf-methods,
  .tf-principles {
    grid-template-columns: 1fr;
  }

  .tf-info-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }

  .tf-warn {
    gap: 12px;
  }

  .ab-hero__cta .ab-btn,
  .tf-steps-cta .ab-btn,
  .ab-closing__actions .ab-btn {
    width: 100%;
  }
}
