/*
 * UAE section type `calculators` (S4, 2026-11-07): live `.section_calculators`. Linked on UAE pages
 * only (JURISDICTION_SETTINGS.ae.stylesheets); every rule is scoped to the slot.
 *
 * Measured on live 2026-11-07 (deriv.com/ae/trading-calculators, EN + AR, 1440/1024/768/390;
 * tmp/uae-batches/s4/measure/live-trading-calculators-*.json):
 * - Band: padding 0 top / 112 bottom at every width (the band above pays the top gap).
 * - Container 1328 max with 24px gutters (16px at <=767), so 1280 content at 1440.
 * - Header: one centred block, max 846, 16px title->intro, 48px header->grid. Title 56/64
 *   (768-991: 48/56, <=767: 40/48) weight 800, -0.48px; intro 16/24 fills the 846 block.
 *   <=767 the header hugs its copy, is centred in the container, and its text aligns to the
 *   start side (left in EN, right in AR).
 * - Grid: 16px gaps; 3 equal columns from 992, 2 at 768-991 (third card alone in column 1),
 *   1 at <=767. Cards stretch to the row height.
 * - Card (`.terms_item`): #f6f7f8, radius 24, padding 32 at every width, column with the link
 *   pinned to the bottom (32px clear above). Title 32/40 (<=991: 24/32) weight 800, -0.24px;
 *   24px title block -> copy; copy 16/24; link 16/24 weight 600 coral, arrow 8px after the
 *   label in EN, no arrow in AR.
 * - Tags (live `.thumbnail-cards_topic-block`, only when content carries `tags`, which renders
 *   TaggedTextCards): 8px under the title, 12px apart, pill padding 6/16, radius 36,
 *   rgba(0,0,0,.04); text 14/20 (<=479: 12/20) rgba(24,28,37,.72); Arabic tags draw in
 *   "Inter, Arial" (used font Arial), everything else in the card uses frame.css's font.
 */
[data-raven-slot$=":calculators"].raven-section-pad {
  --raven-pad-top: 0px;
  --raven-pad-bottom: 112px;
}
[data-raven-slot$=":calculators"] .fci-container {
  max-width: 1328px;
  gap: 48px;
}
[data-raven-slot$=":calculators"] .fci-header {
  width: fit-content;
  max-width: min(846px, 100%);
  align-self: center;
  gap: 16px;
}
[data-raven-slot$=":calculators"] .fci-sectionTitle {
  letter-spacing: -0.48px;
}
[data-raven-slot$=":calculators"] .fci-sectionDescription {
  max-width: none;
}

/* Grid: shared by the DS card grid and the tagged-card grid. */
[data-raven-slot$=":calculators"] .fci-grid,
[data-raven-slot$=":calculators"] .raven-tagged-cards__grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
/* globals' 6-track `.fci-grid--3` spans; live keeps plain columns. */
[data-raven-slot$=":calculators"] .fci-grid.fci-grid > :nth-child(n) {
  grid-column: auto;
}

/* Card shell (DS secondary card today; tagged card once content carries tags). */
/* globals paints `.fci-section .card-secondary` white at (0,4,0); beat it. */
[data-raven-slot$=":calculators"] .fci-section .card-secondary.card-secondary.card-secondary,
[data-raven-slot$=":calculators"] .raven-tagged-card {
  background-color: #f6f7f8;
}
[data-raven-slot$=":calculators"] .card-secondary,
[data-raven-slot$=":calculators"] .raven-tagged-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  height: 100%;
  padding: 32px;
  border-radius: 24px;
}
[data-raven-slot$=":calculators"] .card-secondary .cs-title,
[data-raven-slot$=":calculators"] .raven-tagged-card__title {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
  letter-spacing: -0.24px;
  color: rgb(24, 28, 37);
}
[data-raven-slot$=":calculators"] .card-secondary .cs-title {
  margin-bottom: 24px;
}
[data-raven-slot$=":calculators"] .card-secondary .cs-description,
[data-raven-slot$=":calculators"] .raven-tagged-card__description {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: rgb(24, 28, 37);
}
[data-raven-slot$=":calculators"] .card-secondary .cs-description {
  margin-bottom: 32px;
}
/* Link pinned to the card bottom; 16/24 like live (DS label line box is 16px). */
[data-raven-slot$=":calculators"] .card-secondary > a.link,
[data-raven-slot$=":calculators"] .raven-tagged-card > a.link {
  margin: auto 0 0;
  padding: 0;
  align-items: center;
  line-height: 24px;
}
[data-raven-slot$=":calculators"] .card-secondary > a.link .label,
[data-raven-slot$=":calculators"] .raven-tagged-card > a.link .label {
  line-height: 24px;
}
[data-raven-slot$=":calculators"] .card-secondary > a.link .chevron,
[data-raven-slot$=":calculators"] .raven-tagged-card > a.link .chevron {
  align-self: center;
}
/* Live AR draws no arrow after the card link. */
[dir="rtl"] [data-raven-slot$=":calculators"] a.link .chevron {
  display: none;
}

/* Tagged-card internals (live `.calculator-card_header`). */
[data-raven-slot$=":calculators"] .raven-tagged-card__header {
  gap: 24px;
  margin-bottom: 32px;
}
[data-raven-slot$=":calculators"] .raven-tagged-card__heading {
  gap: 8px;
}
[data-raven-slot$=":calculators"] .raven-tagged-card__tags {
  gap: 12px;
}
[data-raven-slot$=":calculators"] .raven-tagged-card__tag {
  height: auto;
  padding: 6px 16px;
  border-radius: 36px;
  font-size: 14px;
  line-height: 20px;
}
[dir="rtl"] [data-raven-slot$=":calculators"] .raven-tagged-card__tag {
  font-family: Inter, Arial, sans-serif;
}

@media (max-width: 767px) {
  [data-raven-slot$=":calculators"] .fci-header,
  [data-raven-slot$=":calculators"] .fci-sectionTitle,
  [data-raven-slot$=":calculators"] .fci-sectionDescription {
    text-align: start;
  }
}
@media (max-width: 479px) {
  [data-raven-slot$=":calculators"] .raven-tagged-card {
    padding: 32px;
  }
  [data-raven-slot$=":calculators"] .raven-tagged-card__tag {
    font-size: 12px;
  }
}
@media (min-width: 768px) {
  [data-raven-slot$=":calculators"] .fci-container {
    padding-inline: 24px;
  }
  [data-raven-slot$=":calculators"] .fci-grid,
  [data-raven-slot$=":calculators"] .raven-tagged-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  [data-raven-slot$=":calculators"] .fci-grid,
  [data-raven-slot$=":calculators"] .raven-tagged-cards__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  [data-raven-slot$=":calculators"] .card-secondary .cs-title,
  [data-raven-slot$=":calculators"] .raven-tagged-card__title {
    font-size: 32px;
    line-height: 40px;
  }
}
