/* Aureon Point Group: visual refresh (modern sans display, monospace labels,
   soft rounded surfaces). Loaded after mobile.css on every page.
   Navy, gold and every page structure stay; the gold italic serif is kept as
   the accent inside headings.
   The page runtime re-serialises inline styles ("font-size: 44px"), so
   attribute selectors use that form and !important to beat inline values. */

:root {
  --ap-sans: 'Geist', Arial, sans-serif;
  --ap-mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --ap-serif: 'Cormorant Garamond', Georgia, serif;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ============================================================ Display type
   Headings move from the serif to a large, tightly tracked sans. */
h1.serif, h2.serif, h3.serif, p.serif {
  font-family: var(--ap-sans) !important;
  font-weight: 500 !important;
  letter-spacing: -.045em !important;
}
h3.serif, p.serif { letter-spacing: -.03em !important; }

/* Gold / grey italic words inside headings stay in the serif: the brand accent */
.serif [style*="font-style: italic"], .serif [style*="font-style:italic"] {
  font-family: var(--ap-serif) !important;
  font-weight: 500 !important;
  letter-spacing: -.01em !important;
  font-size: 1.08em;
}

/* Sans runs larger than the serif at the same size: rebalance (tablet and up) */
@media (min-width: 641px) {
  h1.serif[style*="font-size: 62px"], h1.serif[style*="font-size: 66px"],
  h1.serif[style*="font-size: 72px"], h1.serif[style*="font-size: 76px"],
  h1.serif[style*="font-size: 84px"] { font-size: clamp(48px, 6vw, 80px) !important; line-height: 1 !important; }

  h2.serif[style*="font-size: 84px"], h2.serif[style*="font-size: 88px"] { font-size: clamp(48px, 6.4vw, 92px) !important; line-height: .98 !important; }
  h2.serif[style*="font-size: 52px"], h2.serif[style*="font-size: 56px"],
  h2.serif[style*="font-size: 60px"] { font-size: clamp(38px, 4.4vw, 60px) !important; line-height: 1.02 !important; }
  h2.serif[style*="font-size: 46px"], h2.serif[style*="font-size: 48px"] { font-size: clamp(36px, 4vw, 54px) !important; line-height: 1.04 !important; }
  h2.serif[style*="font-size: 40px"], h2.serif[style*="font-size: 42px"],
  h2.serif[style*="font-size: 44px"] { font-size: clamp(34px, 3.6vw, 48px) !important; line-height: 1.06 !important; }
  h2.serif[style*="font-size: 32px"], h2.serif[style*="font-size: 38px"] { font-size: 30px !important; line-height: 1.15 !important; }

  h3.serif[style*="font-size: 36px"], h3.serif[style*="font-size: 38px"] { font-size: 30px !important; }
  h3.serif[style*="font-size: 32px"], h3.serif[style*="font-size: 34px"] { font-size: 27px !important; }
  h3.serif[style*="font-size: 28px"], h3.serif[style*="font-size: 26px"] { font-size: 23px !important; }
  h3.serif[style*="font-size: 25px"], h3.serif[style*="font-size: 24px"] { font-size: 21px !important; }

  p.serif[style*="font-size: 36px"], p.serif[style*="font-size: 34px"] { font-size: 30px !important; line-height: 1.22 !important; }
  p.serif[style*="font-size: 32px"] { font-size: 27px !important; line-height: 1.25 !important; }

  /* Home hero shares its row with the map: keep it compact */
  .hm-hero h1.serif[style] { font-size: clamp(44px, 4.8vw, 66px) !important; line-height: 1.02 !important; max-width: 640px !important; }
}

/* Phones: mobile.css scales the serif sizes; the sans needs a touch less */
@media (max-width: 640px) {
  h1.serif[style] { font-size: 40px !important; line-height: 1.04 !important; }
  h2.serif[style] { font-size: 31px !important; line-height: 1.08 !important; }
  h2.serif[style*="font-size: 84px"], h2.serif[style*="font-size: 88px"] { font-size: 42px !important; }
  h3.serif[style] { font-size: 22px !important; }
  p.serif[style] { font-size: 24px !important; line-height: 1.25 !important; }
}

/* ============================================================ Labels: monospace, sentence case */
.eyebrow, .eyebrow-d {
  font-family: var(--ap-mono) !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  letter-spacing: .04em !important;
  text-transform: none !important;
}
/* Status tags: one neutral chip, no dot. .tag-d on dark sections. */
.tag {
  display: inline-flex !important;
  align-items: center;
  padding: 5px 11px !important;
  border-radius: 8px !important;
  border: 1px solid #E2E6ED;
  background: #F4F6F9 !important;
  color: #0F1E3D !important;
  font-family: var(--ap-mono) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: .02em !important;
  line-height: 1.3;
}
.tag.tag-d { background: rgba(255, 255, 255, .08) !important; color: #E3E8F0 !important; border-color: rgba(255, 255, 255, .2); }

/* ============================================================ Buttons: soft rounded rectangles */
.btn {
  border-radius: 16px !important;
  min-height: 56px !important;
  padding: 0 28px !important;
  font-weight: 500 !important;
  letter-spacing: -.01em;
}
.btn-gold { box-shadow: inset 0 -2px 0 rgba(15, 30, 61, .12); }
.btn-gold:hover { transform: translateY(-1px); }
.btn-line { border-radius: 16px !important; }
.link { font-weight: 500 !important; }

/* Header dropdown panels */
.bp-drop { border-radius: 18px !important; border-top-width: 1px !important; margin-top: 4px; }

/* Platform sub-navigation: segmented control */
.sub { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 6px !important; gap: 4px !important; width: max-content; max-width: 100%; }
.sub a { border: 0 !important; border-radius: 13px !important; min-height: 42px !important; }
.sub a:not(.on):hover { background: rgba(255, 255, 255, .08); }

/* ============================================================ Surfaces: bigger, softer */
.card, .pcard, .pillar { border-radius: 32px !important; }
[style*="border-radius: 20px"] { border-radius: 32px !important; }
[style*="border-radius: 24px"], [style*="border-radius: 28px;"] { border-radius: 36px !important; }
/* Stacked home panels keep square bottoms */
.panel[style*="border-radius"] { border-radius: 36px 36px 0 0 !important; }
.card, .pcard { border-color: rgba(15, 30, 61, .07) !important; box-shadow: 0 1px 2px rgba(15, 30, 61, .04); }
.card:hover, .pcard:hover { box-shadow: 0 24px 60px rgba(15, 30, 61, .12) !important; }

/* Body copy: a little larger, calmer grey */
p[style*="font-size: 15px"] { font-size: 16px !important; }
@media (min-width: 641px) { p[style*="font-size: 17px"], p[style*="font-size: 18px"] { font-size: 19px !important; } }
p[style*="color: rgb(74, 85, 104)"], p[style*="color:#4A5568"] { color: #5B6474 !important; }

/* ============================================================ Section rhythm: one tight scale
   Section paddings were set page by page (72 to 140px). They map to one
   compact scale per breakpoint so no section sits in a sea of white. */
@media (min-width: 1021px) {
  .wrap { max-width: 1320px !important; padding-left: 48px !important; padding-right: 48px !important; }
  [style*="padding-top: 140px"] { padding-top: 88px !important; }
  [style*="padding-bottom: 140px"] { padding-bottom: 88px !important; }
  [style*="padding-top: 120px"], [style*="padding-top: 104px"], [style*="padding-top: 96px"] { padding-top: 80px !important; }
  [style*="padding-bottom: 120px"], [style*="padding-bottom: 104px"], [style*="padding-bottom: 96px"] { padding-bottom: 80px !important; }
  [style*="padding-top: 88px"], [style*="padding-top: 80px"] { padding-top: 64px !important; }
  [style*="padding-bottom: 88px"], [style*="padding-bottom: 80px"] { padding-bottom: 64px !important; }
  [style*="padding-top: 72px"] { padding-top: 56px !important; }
  [style*="padding-bottom: 72px"] { padding-bottom: 56px !important; }
}
@media (min-width: 641px) and (max-width: 1020px) {
  [style*="padding-top: 140px"] { padding-top: 72px !important; }
  [style*="padding-bottom: 140px"] { padding-bottom: 72px !important; }
  [style*="padding-top: 120px"], [style*="padding-top: 104px"], [style*="padding-top: 96px"] { padding-top: 64px !important; }
  [style*="padding-bottom: 120px"], [style*="padding-bottom: 104px"], [style*="padding-bottom: 96px"] { padding-bottom: 64px !important; }
  [style*="padding-top: 88px"], [style*="padding-top: 80px"] { padding-top: 56px !important; }
  [style*="padding-bottom: 88px"], [style*="padding-bottom: 80px"] { padding-bottom: 56px !important; }
  [style*="padding-top: 72px"] { padding-top: 48px !important; }
  [style*="padding-bottom: 72px"] { padding-bottom: 48px !important; }
}
@media (max-width: 640px) {
  [style*="padding-top: 140px"], [style*="padding-top: 120px"], [style*="padding-top: 104px"], [style*="padding-top: 96px"], [style*="padding-top: 88px"] { padding-top: 56px !important; }
  [style*="padding-bottom: 140px"], [style*="padding-bottom: 120px"], [style*="padding-bottom: 104px"], [style*="padding-bottom: 96px"], [style*="padding-bottom: 88px"] { padding-bottom: 56px !important; }
  [style*="padding-top: 80px"], [style*="padding-top: 72px"] { padding-top: 48px !important; }
  [style*="padding-bottom: 80px"], [style*="padding-bottom: 72px"] { padding-bottom: 48px !important; }
}

/* Fixed-height media and panels: trimmed */
.banner { height: 420px !important; }
.lagos { height: 400px !important; }
.band { height: 340px !important; }
.pillar { height: 380px !important; }
@media (min-width: 901px) { .panel { min-height: 0 !important; } }
@media (max-width: 640px) { .banner, .lagos, .band { height: 300px !important; } .pillar { height: 320px !important; } }

/* ============================================================ Remaining serif text */
/* Mobile menu links and the footer mailing-list title follow the sans display */
.ap-ov [style*="Cormorant"], footer [style*="Cormorant"] {
  font-family: var(--ap-sans) !important;
  font-weight: 500 !important;
  letter-spacing: -.04em !important;
}
/* Small step numerals (01, 02, 03) become monospace labels */
span.serif[style*="font-size: 18px"], span.serif[style*="font-size: 20px"],
span.serif[style*="font-size: 22px"], span.serif[style*="font-size: 24px"] {
  font-family: var(--ap-mono) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: .06em !important;
}

/* Cards with a thick coloured top edge: on large radii the edge bends into a
   curved cap. Keep a hairline top and show the colour as a short tab instead. */
[style*="border-top: 4px solid"], [style*="border-top: 5px solid"], [style*="border-top:4px solid"], [style*="border-top:5px solid"], [style*="border-width: 4px 1px 1px"], [style*="border-width: 5px 1px 1px"] { border-top-width: 1px !important; position: relative; }
[style*="border-top: 4px solid"]::before, [style*="border-top: 5px solid"]::before, [style*="border-top:4px solid"]::before, [style*="border-top:5px solid"]::before, [style*="border-width: 4px 1px 1px"]::before, [style*="border-width: 5px 1px 1px"]::before {
  content: ""; position: absolute; top: -1px; left: 28px; width: 44px; height: 0;
  border-top: 4px solid; border-top-color: inherit; border-radius: 0 0 4px 4px;
}
.card[style*="border-top"]::before { z-index: 2; }

/* ============================================================ Phones: polish
   Checked at 390px wide against every page. */
@media (max-width: 640px) {
  /* Readable body copy: the desktop sizes are too large in a narrow column */
  p[style*="font-size: 21px"], p[style*="font-size: 20px"], p[style*="font-size: 19px"] { font-size: 17px !important; line-height: 1.6 !important; }
  p[style*="font-size: 18px"], p[style*="font-size: 17px"] { font-size: 16px !important; line-height: 1.65 !important; }

  /* Platform sub-menu: one swipeable row, current page first */
  .sub { flex-wrap: nowrap !important; overflow-x: auto; width: auto !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: x proximity; }
  .sub::-webkit-scrollbar { display: none; }
  .sub a { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; min-height: 38px !important; padding: 0 14px !important; font-size: 13.5px !important; }
  .sub a.on { order: -1; }

  /* Home panel steps: one line */
  .steps { flex-wrap: nowrap !important; gap: 6px !important; }
  .steps span { flex: 0 0 auto; white-space: nowrap; font-size: 12px !important; padding: 0 11px !important; min-height: 32px !important; }

  /* Call-to-action buttons: full width, centred */
  .btn { width: 100%; justify-content: center; }
  footer .btn { width: auto; }


  /* Footer: link columns side by side, platforms full width */
  .ft-cols { display: grid !important; grid-template-columns: 1fr 1fr; gap: 32px 20px !important; }
  .ft-cols > :nth-child(1) { grid-column: 1 / -1; }
  .ft-cols > :nth-child(3) { grid-column: 1 / -1; order: 4; }
}
