/* ---- Type system: one family, three weights, one scale ---- */
:root {
  --pm-font: 'PM Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pm-ink: #000;
  --pm-text: #424242;      /* 10:1 on white */
  --pm-display: clamp(2.25rem, 1.55rem + 3vw, 3.5rem);
  --pm-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --pm-h3: clamp(1.375rem, 1.25rem + .55vw, 1.75rem);
  --pm-h4: 1.25rem;
  --pm-h5: 1.125rem;
  --pm-body: 1rem;
  --pm-small: .875rem;
  --font-family: var(--pm-font);
}
body, button, input, textarea, select, label,
h1, h2, h3, h4, h5, h6, .investor-page, .investor-page * { font-family: var(--pm-font); }
body { font-size: var(--pm-body); line-height: 1.7; color: var(--pm-text); -webkit-font-smoothing: antialiased; }

body :is(h1, h2, h3, h4, h5, h6) { font-weight: 600; text-wrap: balance; }
body h1 { font-size: var(--pm-display); line-height: 1.15; letter-spacing: -.015em; }
body h2 { font-size: var(--pm-h2); line-height: 1.2; letter-spacing: -.01em; }
body h3 { font-size: var(--pm-h3); line-height: 1.3; letter-spacing: -.005em; }
body h4 { font-size: var(--pm-h4); line-height: 1.4; }
body :is(h5, h6) { font-size: var(--pm-h5); line-height: 1.4; }
p { text-wrap: pretty; }

body .page-banner .sanbi_tm_news .title h1 { font-size: var(--pm-display); }
.section-heading p { max-width: 60ch; margin-inline: auto; }
/* Small line above section headings: quieter than the heading it introduces. */
body .section-heading .sub-heading, body .sub-heading { font-size: var(--pm-small); font-weight: 500; letter-spacing: .08em; color: #5c5c5c; }
body .section-heading.white .sub-heading, body .section-heading.white p { color: #e6e6e6; }

.site-navigation ul li a, .mobile-nav a { font-size: var(--pm-body); font-weight: 500; }
body :is(.button, .anchor-button, .site-button, .wpcf7 [type="submit"], .comment-form [type="submit"]) { font-family: var(--pm-font); font-size: var(--pm-body); font-weight: 500; line-height: 1.5; }
:is(input, textarea, select) { font-size: var(--pm-body); }  /* 16px: no zoom on iOS focus */
footer h5 { font-size: var(--pm-body); }
footer :is(p, li, a) { font-size: .9375rem; }
footer li a { display: inline-block; padding-block: 4px; }
footer li a:hover { color: var(--pm-ink); text-decoration: underline; text-underline-offset: 4px; }

/* Social links: 44px targets, even spacing. */
footer a:has(> i[class*="fa-"]) { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; font-size: 1rem; color: var(--pm-ink); }
footer a:has(> i[class*="fa-"]) i { font-size: 22px; }
footer a:has(> i[class*="fa-"]):hover { background: #f0f0f0; }
.back-to-top .icon-top i { font-size: 24px; }
:is(.mobile-nav-toggle, .hide-mobile-nav) i { font-size: 28px; color: #fff; }
.site-button i, .anchor-button i { margin-right: .35em; }

/* ---- Reading pages (legal, posts) ---- */
.blog_single_details { font-size: 1.0625rem; max-width: 70ch; }
body .blog_single_details h1 { font-size: var(--pm-h2); margin: 0 0 1rem; }
body .blog_single_details h2 { font-size: 1.5rem; margin: 2.5rem 0 .75rem; }
body .blog_single_details h3 { font-size: var(--pm-h5); margin: 1.75rem 0 .5rem; }
.blog_single_details :is(p, ul, ol) { margin-bottom: 1.1em; }
.blog_single_details a { color: var(--pm-ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
/* Pages are not blog posts: no date, comment count or empty tag list; centre the column. */
body.page .blog_single_details > .post-info, body.page .post-area-tags { display: none; }
body.page .bx-section .col-lg-8 { margin-inline: auto; }
body.page .bx-section .col-lg-4:has(.rightSidebar:empty) { display: none; }
body.page .bx-section .blog_single_details { margin-inline: auto; }

/* ---- 404 (theme hard-codes a blue unrelated to the brand) ---- */
body .error-page, body .error-page .news_inner { background-color: #000; }
body .error-page h5 { font-size: var(--pm-h5); font-weight: 400; margin-bottom: 1.5rem; }

/* ---- Investor page: full width, brand colours instead of its own purple theme ---- */
body.page-id-440 .bx-section { padding-bottom: 0; }
body.page-id-440 .bx-section .container { max-width: 100%; padding: 0; }
body.page-id-440 .bx-section .row { margin: 0; }
body.page-id-440 .bx-section [class*="col-"] { flex: 0 0 100%; max-width: 100%; padding: 0; }
body.page-id-440 .blog_single_details { max-width: none; font-size: var(--pm-body); }
body.page-id-440 .investor-page-wrapper { width: 100% !important; max-width: 100% !important; margin-inline: 0 !important; } /* overrides the page's own !important */
body.page-id-440 .investor-page-wrapper { --primary-color: #000; --secondary-color: #333; --accent-color: #fff; --dark: #111; --gradient: #000; --gradient-alt: #333; }
body.page-id-440 .investor-page :is(h1, h2, h3) { margin-top: 0; }
.investor-page .feature-icon i { font-size: 28px; color: #fff; }
/* Headings take their section's text colour (the theme forces black, unreadable on the dark sections). */
body.page-id-440 .investor-page :is(h1, h2, h3, h4) { color: inherit; }
body form.comment-form :is(button.site-button, [type="submit"]) { font-family: var(--pm-font); }
