/*
 * Type scale and components, concept B "Bolder editorial" (RKS, 30 Nov 2026).
 * Site-owned. Loads last (src/layouts/Base.astro), after site.css, spacing.css, layout.css and motion.css.
 *
 * Ben, 30 Nov 2026, on the live site: "i think smallest text size is too small" (sitewide); "'Our Mission & Vision'
 * heading randomly in the middle"; "'/ Our Mission /' why not styled like a proper heading?"; "'Key Capabilities' not
 * styled as a proper button - why?"; "TINY - this text class is weirdly inset and too small"; "on mobile not enough
 * spacing between text and headings"; "also 'key findings' text is randomly different margin..."; "that text is just
 * hanging on the right - why? desktop". He picked "B: Bolder editorial".
 *
 * The scale: body 18px; nothing under 16px; section H2 44px; Mission and Vision 56px heading with 36px teal bold labels
 * under a hairline rule; hero intro a 24px lead on the title's left edge; buttons a solid white pill with 16px text;
 * article headings 64px above and 20px below; teal dash bullets aligned to the text.
 * Specificity: element selectors under `body` beat Webflow's bare element rules and lose to the component classes, so
 * the component classes that were small are listed by name below.
 */
:root {
  --rk-teal: #165e6d;
  --rk-body: 18px;
  --rk-min: 16px;
}

/* ---------- 1. Body text: 18px, nothing under 16px ---------- */
body { font-size: var(--rk-body); line-height: 1.65; }
body p, body li, body td, body th { font-size: var(--rk-body); line-height: 1.65; }

/* Small classes: Webflow's 12 to 15px. Everything lifts to 16px. */
body .text-size-small,
body .caption-text,
body figcaption,
body .projects_label,
body .blog-category-link,
body .blog_post-date,
body .footer_copyright,
body .footer_copyright-link,
body .rks-test-notice,
body .button-text,
body .button_text-wrapper,
body .button-arrow-icon,
body .button-arrow,
body .primary-button-white,
body .button-secondary-white,
body .button-secondary,
body .secondary-button,
body .secondary-button-white,
body .button-primary-blue,
body .navbar_dropdown-link,
body .footer_link,
body strong.button-text {
  font-size: var(--rk-min);
  line-height: 1.4;
}
body .projects_label.is-featured { font-size: var(--rk-min); }
/* Webflow's .rich-text rules (14px list items, 12px captions, 14px emphasis) outrank the bare element rules above. */
body .rich-text li, body .legal-rich-text li { font-size: var(--rk-body); line-height: 1.65; }
body .rich-text figcaption, body .legal-rich-text figcaption { font-size: var(--rk-min); line-height: 1.5; }
body .rich-text em { font-size: inherit; line-height: inherit; }
/* Contact form submit: its own one-class rule set 14px. */
body .contacts-submit-button { font-size: var(--rk-min); }
body table th, body table td { font-size: var(--rk-min); line-height: 1.5; }
body .text-size-small, body figcaption, body .caption-text { line-height: 1.5; }

/* ---------- 2. Section headings ---------- */
body h2,
body .heading-style-h2 { font-size: 44px; line-height: 1.15; letter-spacing: -0.01em; }
@media screen and (max-width: 991px) { body h2, body .heading-style-h2 { font-size: 38px; } }
@media screen and (max-width: 600px) { body h2, body .heading-style-h2 { font-size: 32px; } }

/* ---------- 3. About: Our Mission and Vision ---------- */
/* The main heading sits on the left edge with the columns below, not centred, and is the biggest heading in its block. */
body .mission_component .heading-style-h2 {
  text-align: left;
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 40px;
}
@media screen and (max-width: 991px) { body .mission_component .heading-style-h2 { font-size: 46px; } }
@media screen and (max-width: 600px) { body .mission_component .heading-style-h2 { font-size: 38px; margin-bottom: 32px; } }
/* The labels are real h3 headings (Mission.astro): teal, bold, under a hairline rule. The "/" marks are decoration. */
body .mission_description .subheading-wrapper {
  display: block;
  border-top: 1px solid var(--rk-teal);
  padding-top: 18px;
  margin-bottom: 14px;
}
body .mission_description .subheading-wrapper .rk-slash { display: none; }
body .mission_description .mission_label {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--rk-teal);
  letter-spacing: 0;
}
@media screen and (max-width: 600px) { body .mission_description .mission_label { font-size: 28px; } }

/* ---------- 4. Page heroes: intro as a lead under the title, same left edge ---------- */
body .hero_content-wrapper.align-right {
  justify-content: flex-start;
  margin-left: 0;
  margin-right: auto;
  padding-left: 0;
  text-align: left;
  grid-column: 1 / -1;
  width: 100%;
}
body .hero_content-wrapper.align-right { max-width: 100%; align-items: flex-start; }
body .hero_content-wrapper .max-width-690px { margin-left: 0; max-width: 820px; }
/* About hero: the description sat on the right at 60% (live: margin-left auto). Now under the title on its left edge. */
body .about_description-wrapper { margin-left: 0; margin-right: auto; max-width: 820px; margin-top: 32px; text-align: left; }
body .hero_content-wrapper p { font-size: 24px; line-height: 1.5; }
@media screen and (max-width: 600px) { body .hero_content-wrapper p { font-size: 20px; } }
body .description-large { font-size: 24px; line-height: 1.5; }
@media screen and (max-width: 600px) { body .description-large { font-size: 20px; } }
/* Product page heroes: lead and text on the title's left edge, no inset. */
body .eor_description-wrapper { margin-left: 0; padding-left: 0; max-width: 860px; width: 100%; }

/* Eyebrow labels ("/ The Team /") stay small kickers above their heading, but not under 18px. */
body .subheading, body .sub, body .subheading-white, body .subheading-primary, body .subheading-light-blue { font-size: 18px; line-height: 1.3; }

/* ---------- 5. Hero buttons: solid white pill, like CONTACT US ---------- */
body .hero_content-wrapper .button-secondary-white,
body .link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  background: #fff;
  color: var(--rk-teal);
  border: 1px solid #fff;
  border-radius: 999px;
  font-size: var(--rk-min);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}
body .link-with-icon { margin-top: 8px; }
/* The old hover (site.css: light blue text, meant for a dark hero) washed the label out on the white pill (1.45:1).
   Hover and keyboard focus keep the teal text on a light grey fill. */
body .link-with-icon:hover,
body .link-with-icon:focus-visible { color: var(--rk-teal); background: #e8eef0; border-color: #e8eef0; }
body .link-with-icon .button-arrow-icon { font-size: var(--rk-min); }

/* ---------- 6. Lists: teal dash bullets aligned to the text ---------- */
body .rk-richtext ul,
body .works_card-content ul {
  list-style: none;
  margin: 0 0 24px;
  padding-left: 0;
  overflow: visible;
  /* Webflow's bare ul paints its text through background-clip:text with a transparent fill. A positioned li (needed for
     the dash) is painted outside that clip, so its text vanished. Plain colour instead. */
  background: none;
  -webkit-text-fill-color: currentcolor;
  background-clip: border-box;
  -webkit-background-clip: border-box;
}
body .rk-richtext li,
body .works_card-content li {
  display: list-item;
  position: relative;
  margin: 0 0 8px;
  padding: 0 0 0 1.4em;
  color: inherit;
  font-weight: 400;
}
body .rk-richtext ul > li::before,
body .works_card-content ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.5em;
  height: 2px;
  background: var(--rk-teal);
}
body .rk-richtext ol { margin: 0 0 24px; padding-left: 1.6em; }
body .rk-richtext ol > li { padding-left: 0.3em; margin-bottom: 8px; }
/* Sticky card stacks (Solving, on /unconventional-reservoirs and /eor). Ben, 4 Dec 2026: the block that overlapped as you
   scroll was "now super tall on mobile and desktop". Cards stay compact: text and lists at 16px, tight list rhythm, and the
   dash is light on the dark card. */
body .benfit_sticky-card p,
body .benfit_sticky-card li { font-size: var(--rk-min); line-height: 1.5; }
body .benfit_sticky-card .rk-richtext li { margin-bottom: 4px; }
body .benfit_sticky-card .rk-richtext ul,
body .benfit_sticky-card .rk-richtext ol { margin-bottom: 12px; }
body .benfit_sticky-card .rk-richtext ul > li::before { background: currentColor; }
/* Text right under each card's heading: with Webflow's space-between, card 02's text sat at the bottom of its card, where
   card 03 slides over it, so it could never be read on desktop. */
body .benfit_sticky-card { justify-content: flex-start; }
/* Live review, 4 Dec 2026: with the text at the top, the old Webflow minimum heights (29rem on card 02, 25rem on the rest)
   left a band of empty teal under the text (221px on card 02, 131px on card 04 at 1440). On desktop each card is now as
   tall as its text; below 992px they were already auto. */
@media screen and (min-width: 992px) {
  body .benfit_sticky-card, body .benfit_sticky-card.is-2nd-sticky-card { min-height: 0; }
}
/* Accordion content: flush with the card's text, same size as the page, no extra inset. */
body .works_card-content .rk-richtext { padding: 8px 24px 0; }
@media screen and (max-width: 600px) { body .works_card-content .rk-richtext { padding: 4px 8px 0; } }
body .works_card-content .work_grid-cell,
body .works_card-content .works_grid { padding-left: 0; margin-left: 0; }
body .works_card-content p { margin: 0 0 18px; }

/* ---------- 7. Articles: room around headings ---------- */
body .blog-rich-text h2 { font-size: 44px; line-height: 1.15; margin: 64px 0 20px; letter-spacing: -0.01em; }
body .blog-rich-text h3 { font-size: 28px; line-height: 1.2; margin: 40px 0 14px; }
body .blog-rich-text > :first-child { margin-top: 0; }
body .blog-rich-text p { margin: 0 0 24px; }
body .blog-rich-text ul, body .blog-rich-text ol { margin: 0 0 24px; }
@media screen and (max-width: 600px) {
  body .blog-rich-text h2 { font-size: 32px; margin: 48px 0 16px; }
  body .blog-rich-text h3 { font-size: 24px; margin: 32px 0 12px; }
  body .blog-rich-text p { margin-bottom: 20px; }
}
