/* Right Revenue – site styles. Work Sans is requested here and allowed in src/index.ts (fonts.custom CSP). */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --accent: #38B8A0;
  --accent-dark: #1E8C79;
  --ink: #0E2A33;
  --ink-soft: #46606A;
  --bg: #F5FAF9;
  --panel: #E4F4F1;
  --line: #D3E6E2;
  --dark-card: #163C48;
  --on-dark: #D6EEE9;
  --on-dark-soft: #A9D4CB;
  --font: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
html, body { margin: 0; background: #fff; }
body { color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.6; }
body, html, * { font-family: var(--font); }
.rr a { color: var(--accent-dark); }
.rr a:focus-visible, .rr button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.rr h1, .rr h2, .rr h3 { font-weight: 700; margin: 0; line-height: 1.15; letter-spacing: -.01em; }
.rr p { margin: 0 0 1em; }
.rr img { max-width: 100%; height: auto; display: block; }

.rr-wrap { max-width: 1160px; margin: 0 auto; box-sizing: border-box; padding: 72px 28px; }
.rr-narrow { max-width: 860px; }
.rr-section { background: #fff; }
.rr-section.rr-alt { background: var(--bg); }
.rr-head { max-width: 760px; margin-bottom: 40px; display: flex; flex-direction: column; gap: 14px; }
.rr h2 { font-size: clamp(28px, 4vw, 40px); }
.rr h3 { font-size: 24px; }
.rr-eyebrow { margin: 0 0 8px; font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); }
.rr-lead { font-size: 21px; color: var(--ink-soft); }
.rr-big { font-size: clamp(26px, 4vw, 38px); font-weight: 700; color: var(--accent-dark); line-height: 1.2; }
.rr-icon { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.rr-header { background: var(--ink); }
.rr-header-top { max-width: 1280px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; }
.rr-brand { display: flex; align-items: center; }
.rr-logo { width: 150px; height: auto; }
.rr-desktop-nav { display: none; align-items: center; gap: 6px; }
.rr-navgroup { position: relative; }
.rr-navlabel, .rr-desktop-nav a.rr-navlink { color: #fff; font-weight: 600; font-size: 16px; padding: 14px 14px; display: inline-block; cursor: pointer; text-decoration: none; }
.rr-navgroup:hover .rr-navlabel, .rr-navgroup:focus-within .rr-navlabel, .rr-desktop-nav a.rr-navlink:hover { color: var(--accent); }
.rr-navdrop { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-radius: 12px; box-shadow: 0 14px 40px rgba(14,42,51,.25); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 9999; }
.rr-navgroup:hover .rr-navdrop, .rr-navgroup:focus-within .rr-navdrop { opacity: 1; visibility: visible; transform: none; }
.rr-navdrop a { display: block; padding: 10px 20px; color: var(--ink); font-weight: 500; text-decoration: none; font-size: 16px; }
.rr-navdrop a:hover { background: var(--panel); color: var(--accent-dark); }
.rr-desktop-nav a.rr-nav-cta { background: var(--accent); color: var(--ink); font-weight: 700; padding: 11px 22px; border-radius: 999px; text-decoration: none; margin-left: 8px; font-size: 16px; }
.rr-desktop-nav a.rr-nav-cta:hover { background: #fff; }
.rr-mobile-nav { display: flex; }
@media (min-width: 1024px) { .rr-desktop-nav { display: flex; } .rr-mobile-nav { display: none; } }
.dc .hamburger-menu span { background: #fff !important; }
.dc .hamburger-menu { border-color: #fff !important; }

/* Hero */
.rr-hero { background: var(--ink); color: #fff; }
.rr-hero .rr-wrap { padding-top: 72px; padding-bottom: 72px; }
.rr-hero h1 { font-size: clamp(34px, 5.2vw, 56px); color: #fff; max-width: 18ch; }
.rr-hero-split h1 { max-width: none; }
.rr-hero .rr-lead { color: var(--on-dark); margin-top: 20px; max-width: 62ch; }
.rr-hero .rr-eyebrow { color: var(--accent); }
.rr-hero-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .rr-hero-split { grid-template-columns: 1.1fr .9fr; } }
.rr-shot { border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }

.rr-section.rr-panel { background: var(--accent); }

/* Buttons */
.rr-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.rr .rr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; box-sizing: border-box; font-weight: 700; font-size: 17px; text-decoration: none; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.rr .rr-btn-fill { background: var(--accent); color: var(--ink); }
.rr .rr-btn-fill:hover { background: var(--accent-dark); color: #fff; }
.rr .rr-btn-line { border-color: currentColor; color: var(--accent-dark); background: transparent; }
.rr .rr-btn-line:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.rr-hero .rr-btn-line { color: #fff; }
.rr-hero .rr-btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.rr .rr-link { font-weight: 600; text-decoration: none; }
.rr .rr-link:hover { text-decoration: underline; }

/* Cards */
.rr-cards { display: grid; gap: 24px; }
@media (min-width: 700px) { .rr-cards-2 { grid-template-columns: repeat(2, 1fr); } .rr-cards-3 { grid-template-columns: repeat(3, 1fr); } }
.rr-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.rr-alt .rr-card { background: #fff; }
.rr-card p { margin: 0; color: var(--ink-soft); }
.rr-badge { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rr-quote { margin: 0; padding: 28px; background: #fff; border-left: 5px solid var(--accent); border-radius: 12px; font-size: 20px; font-weight: 500; display: flex; flex-direction: column; gap: 14px; }

/* Feature rows */
.rr-feature { display: grid; gap: 32px; align-items: center; padding: 28px 0; }
@media (min-width: 900px) { .rr-feature { grid-template-columns: 1fr 1fr; gap: 64px; } .rr-flip .rr-feature-media { order: -1; } }
.rr-feature-text p { color: var(--ink-soft); }
.rr-feature-text h3 { margin-bottom: 16px; font-size: clamp(24px, 3vw, 32px); }
.rr-feature-media img { border-radius: 16px; width: 100%; box-shadow: 0 10px 34px rgba(14,42,51,.12); }
.rr-media-wide img { border-radius: 16px; margin-top: 32px; width: 100%; }

/* CTA band */
.rr-cta-band { background: var(--panel); border-radius: 24px; padding: 44px; display: flex; flex-direction: column; gap: 12px; }
.rr-cta-band p { color: var(--ink-soft); margin: 0; }

/* Team */
.rr-team { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.rr-person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: var(--panel); }
.rr-person h3 { font-size: 20px; margin-top: 14px; }
.rr-person p { margin: 2px 0 0; color: var(--ink-soft); font-size: 16px; }

/* Partners */
.rr-logos { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.rr-partner { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; text-align: center; color: var(--ink); font-weight: 400; background: #fff; }
.rr-partner:hover { border-color: var(--accent); }
.rr-partner-img { height: 90px; display: flex; align-items: center; justify-content: center; }
.rr-partner-img img { max-height: 90px; width: auto; object-fit: contain; }

/* Lists */
.rr-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rr-ticks li { padding-left: 32px; position: relative; color: var(--ink-soft); }
.rr-ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E2A33' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Contact / forms */
.rr-contact { display: grid; gap: 48px; padding: 72px 28px; max-width: 1160px; margin: 0 auto; box-sizing: border-box; }
@media (min-width: 900px) { .rr-contact { grid-template-columns: 1.3fr .7fr; } }
.rr-contact-info h3 { font-size: 20px; margin: 0 0 8px; }
.rr-contact-info p { color: var(--ink-soft); margin-bottom: 28px; }
.rr form label { font-weight: 600; font-size: 15px; display: block; margin-bottom: 6px; }
.rr form input, .rr form textarea, .rr form select { width: 100%; box-sizing: border-box; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.rr form input:focus, .rr form textarea:focus { outline: 3px solid var(--accent); border-color: var(--accent); }
.rr form textarea { min-height: 140px; }

/* Footer */
.rr-footer { background: var(--ink); color: var(--on-dark); }
.rr-footer-inner { max-width: 1160px; margin: 0 auto; padding: 64px 28px 32px; display: grid; gap: 36px; box-sizing: border-box; }
@media (min-width: 800px) { .rr-footer-inner { grid-template-columns: 1.4fr 1fr 1fr .7fr; } }
.rr-footer h3 { color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.rr-footer a { color: var(--accent); text-decoration: none; }
.rr-footer a:hover { text-decoration: underline; }
.rr-footer-tag { margin-top: 14px; }
.rr-legal { max-width: 1160px; margin: 0 auto; padding: 20px 28px 36px; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; box-sizing: border-box; }
.rr-latest-head { padding-bottom: 0; padding-top: 56px; }

/* Reused from the shared PrimeCRM blog / cookie / hamburger styling */
/* Hamburger (behaviour from core's main.js) */
.dc .hamburger-menu { cursor: pointer; position: relative; padding: 8px; display: flex; flex-direction: column; justify-content: space-around; width: 44px; height: 44px; box-sizing: border-box; background: transparent; border: 3px solid var(--ink); border-radius: 999px; }
.dc .hamburger-menu span { width: 20px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; transition: all .3s ease; }
.dc .hamburger-dropdown { position: absolute; top: 100%; right: 0; margin-top: .5rem; min-width: 14rem; background: #fff; border: 2px solid var(--line); border-radius: 20px; box-shadow: 0 12px 40px rgba(18, 48, 63, .2); z-index: 9999; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; overflow: hidden; }
.dc .hamburger-dropdown.open { opacity: 1; visibility: visible; pointer-events: auto; }
.dc .hamburger-dropdown a { display: block; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; text-decoration: none; }
.dc .hamburger-dropdown a.md\:hidden { display: block; }
@media (min-width: 768px) { .dc .hamburger-dropdown a.md\:hidden { display: none; } }
.dc .hamburger-dropdown button { display: block; width: 100%; text-align: left; padding: 14px 20px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font: inherit; font-size: 18px; font-weight: 700; color: var(--ink); cursor: pointer; }
.dc .hamburger-dropdown button:hover { background: var(--bg); }
.dc .hamburger-dropdown a:last-child { border-bottom: 0; }
.dc .hamburger-dropdown a:hover { background: var(--bg); }
@media (max-width: 767px) { .dc .hamburger-dropdown { position: fixed; top: 4.5rem; left: 1rem; right: 1rem; } }

/* Floating back-to-top button */
.rr .rr-to-top { color: var(--ink); position: fixed; right: 24px; bottom: 24px; z-index: 9000; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(18, 48, 63, .3); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.rr .rr-to-top:hover { border-color: #fff; background: var(--accent-dark); transform: translateY(-2px); text-decoration: none; }
.rr .rr-to-top:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rr .rr-to-top { transition: none; } }

/* Cookie banner (markup generated by core's main.js) */
#cookie-consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
  max-width: 1200px; margin: 0 auto; box-sizing: border-box;
  background: var(--ink); color: #fff;
  border: 3px solid #fff; border-radius: 28px; box-shadow: 0 12px 40px rgba(18, 48, 63, .35);
  font-family: var(--font-body); font-size: 18px; line-height: 1.5;
}
.cookie-banner-inner { padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }
.cookie-banner-text { margin: 0; max-width: 760px; color: var(--on-dark); }
.cookie-banner-link { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }
.cookie-banner-link:hover { color: #fff; }
.cookie-banner-link:focus-visible, .cookie-banner-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cookie-banner-buttons { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.cookie-banner-button {
  appearance: none; cursor: pointer; white-space: nowrap;
  min-height: 52px; padding: 0 28px; box-sizing: border-box;
  border: 3px solid #fff; border-radius: 999px; background: transparent; color: #fff;
  font-family: var(--font-body); font-size: 18px; font-weight: 700; line-height: 1;
  transition: background-color .15s ease, color .15s ease;
}
.cookie-banner-button:hover { background: rgba(255, 255, 255, .12); }
.cookie-banner-button-primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.cookie-banner-button-primary:hover { background: #fff; border-color: #fff; color: var(--ink); }
@media (min-width: 900px) {
  .cookie-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
}
@media (max-width: 480px) {
  .cookie-banner-button { flex: 1 1 100%; }
}

/* Blog post hero: black overlay over the photo (class comes from core's post template) */
.bg-hero-overlay { position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.6); z-index: 0; }
:has(> .bg-hero-overlay) { position: relative; }

/* Latest blog posts widget (footer). Core's widget uses Tailwind utilities that this site doesn't compile, so lay it out here. */
.rr-latest { background: var(--accent); color: var(--ink); padding: 64px 28px; box-sizing: border-box; }
.rr-latest h2, .rr-latest .text-3xl { color: var(--ink); }
.rr-latest > div > div { max-width: 1136px; margin: 0 auto; }
.rr-latest .text-3xl { font-family: var(--font); font-weight: 700; font-size: 36px; line-height: 1.15; text-align: left; color: var(--ink); margin: 0 0 36px; }
.rr-latest .grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px) { .rr-latest .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .rr-latest .grid { grid-template-columns: repeat(3, 1fr); } }
.rr-latest .grid > div { border-radius: 20px; box-shadow: none; background: #fff; border: 1px solid var(--line); }
.rr-latest .grid img { border-radius: 20px 20px 0 0; }
.rr-latest .text-center { display: flex; justify-content: center; margin-top: 44px; }
.dc .rr-latest .rr-btn-line:hover { color: #fff; }

/* Blog card meta row (category left, read time right) - used by the footer widget and the blog list */
:has(> .blog-card-category-link) { display: flex; align-items: center; gap: 12px; }
.blog-card-category-link ~ .ml-auto { margin-left: auto; }

/* Blog post body (core renders it inside #blogpost-content) */
#blogpost-content { padding-top: 56px; padding-bottom: 24px; }
#blogpost-content p { margin: 0 0 1.4em; line-height: 1.75; }
#blogpost-content h2 { font-family: var(--font); font-weight: 800; font-size: 32px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); margin: 2.2em 0 .7em; }
#blogpost-content blockquote { margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--accent); }
#blogpost-content blockquote p { margin: 0; font-size: 22px; font-style: italic; }

/* Blog post images */
#blogpost-content figure { margin: 2em auto; max-width: 460px; }
#blogpost-content img { display: block; width: 100%; height: auto; border-radius: 20px; }
#blogpost-content .blog-fig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 2em 0; }
#blogpost-content .blog-fig-row figure { margin: 0; max-width: none; }
#blogpost-content .blog-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1.5em 0 2em; }
#blogpost-content .blog-gallery figure { margin: 0; max-width: none; }
#blogpost-content .blog-gallery img { aspect-ratio: 3 / 4; object-fit: cover; }
#blogpost-content .blog-gallery-land img, #blogpost-content .blog-fig-row-land img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 700px) {
  #blogpost-content .blog-fig-row { grid-template-columns: 1fr; }
  #blogpost-content .blog-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Blog post meta strip (date / read time / category) under the post hero */
.blogstrip { background-color: var(--ink); color: #fff; padding: 16px 0; }
.blogstrip .blog-post-meta-strip-inner { background: transparent; }
.blogstrip, .blogstrip * { color: #fff; }
.blogstrip .blog-post-meta-strip-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 56px; max-width: none; padding: 0 24px; }

/* Blog post lightbox (public/blog-lightbox.js) */
#blogpost-content figure.blog-fig-wide { max-width: none; }
#blogpost-content img { cursor: zoom-in; }
#blogpost-content a img { cursor: pointer; }
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; background: rgba(16, 42, 76, .94); color: #fff; }
.lb[hidden] { display: none; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 56px 72px 8px; }
.lb-main { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 8px 40px rgba(0, 0, 0, .4); }
.lb-caption { text-align: center; font-size: 15px; padding: 6px 72px; min-height: 1.5em; color: var(--on-dark, #D3E5EE); }
.lb-counter { position: absolute; top: 18px; left: 20px; font-size: 15px; color: var(--on-dark-soft, #BCD6E3); }
.lb-btn { position: absolute; z-index: 2; background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 32px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover, .lb-btn:focus-visible { background: var(--accent, #8FB56B); color: var(--ink, #102A4C); outline: 2px solid #fff; outline-offset: 2px; }
.lb-btn[hidden] { display: none; }
.lb-close { top: 12px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-strip { display: flex; gap: 10px; justify-content: center; overflow-x: auto; padding: 10px 16px 18px; }
.lb-strip[hidden] { display: none; }
.lb-thumb { flex: 0 0 auto; width: 84px; height: 64px; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .6; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.lb-thumb:hover, .lb-thumb:focus-visible { opacity: 1; }
.lb-thumb.is-active { opacity: 1; border-color: var(--accent, #8FB56B); }
@media (max-width: 700px) {
  .lb-stage { padding: 56px 12px 8px; }
  .lb-caption { padding: 6px 16px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .lb-thumb { width: 64px; height: 50px; }
}


/* Embedded scheduler */
.rr-embed { display: block; width: 100%; min-height: 720px; margin: 32px 0 48px; border: 0; background: transparent; color-scheme: normal; }

/* Hero without an image is centred; with an image (rr-hero-split) it stays left-aligned beside it */
.rr-hero-inner:not(.rr-hero-split) { text-align: center; }
.rr-hero-inner:not(.rr-hero-split) h1 { margin-left: auto; margin-right: auto; max-width: 22ch; }
.rr-hero-inner:not(.rr-hero-split) .rr-lead { margin-left: auto; margin-right: auto; }
.rr-hero-inner:not(.rr-hero-split) .rr-btns { justify-content: center; }

/* Calculate Hub tool pages */
.rr-split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .rr-split { grid-template-columns: 1.3fr .7fr; gap: 64px; } }
.rr-mt { margin-top: 36px; }

/* Blog / category hero (core-style panel without .rr-hero-inner): centre the heading and intro */
.rr-hero .text-center { text-align: center; margin-left: auto; margin-right: auto; }
.rr-hero h1.text-center { max-width: 22ch; }
.rr-hero p.text-center, .rr-hero .text-center.text-lg { max-width: 62ch; }
.rr-hero .text-white { color: #fff; }

/* Imported blog post blocks */
.blog-video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 28px 0; border-radius: 14px; overflow: hidden; background: #000; }
.blog-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blog-table { overflow-x: auto; margin: 28px 0; }
.blog-table table { border-collapse: collapse; width: 100%; font-size: 16px; }
.blog-table th, .blog-table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.blog-table th { background: var(--panel); }
#blogpost-content .blog-btn { margin: 28px 0; }
#blogpost-content .blog-btn a { color: var(--ink); text-decoration: none; }
#blogpost-content hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

/* Blog cards (listing, category pages and latest-posts widget): fixed 380px image, cover-cropped around the centre */
.rr img[class*="aspect-"][class*="object-cover"] { display: block; width: 100%; height: 380px; aspect-ratio: auto; object-fit: cover; object-position: center; }

/* Latest posts panel sits on the bright green */
.rr .rr-latest .rr-btn-line { color: var(--ink); border-color: var(--ink); }
.rr .rr-latest .rr-btn-line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Blog card title + extract: fixed-height area that scrolls when the text is longer */
.rr .blog-card-scroll { overflow-y: auto !important; overflow-x: hidden; padding-right: 8px; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; overscroll-behavior: contain; }
.rr .blog-card-scroll::-webkit-scrollbar { width: 6px; }
.rr .blog-card-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* Icon circles on a green panel: dark so they stand out from the background */
.rr-section.rr-panel .rr-badge { background: var(--ink); }

/* Green cards on a white section (Calculate Hub) */
.rr-cards-green .rr-card { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.rr-cards-green .rr-card h3, .rr-cards-green .rr-card p { color: var(--ink); }
.rr .rr-cards-green .rr-link { color: var(--ink); }
.rr-cards-green .rr-badge { background: var(--ink); }

/* Hero with a background photo (dark overlay keeps the title readable) */
.rr-hero-bg { background-size: cover; background-position: center; }
.rr-hero-bg .rr-wrap { padding-top: 130px; padding-bottom: 130px; }
.rr-hero-culture { background-image: linear-gradient(rgba(14,42,51,.72), rgba(14,42,51,.72)), url("/public/images/culture/01-revenue-culture.webp"); }

/* Long-form page copy */
.rr-prose h2 { font-size: clamp(24px, 3vw, 30px); margin: 56px 0 14px; }
.rr-prose h2:first-child { margin-top: 0; }
.rr-prose p { color: var(--ink-soft); }
.rr-prose img { width: 100%; border-radius: 16px; margin: 32px 0 0; }
.rr-prose hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0 0; }

/* "Would you like to learn more?" panel */
.rr-section.rr-mint { background: #8dd9bf; }
.rr-mint .rr-prose p, .rr-mint p { color: var(--ink); }

/* Photo heroes: dark overlay + cover. Minimum height, never taller than 75% of the screen */
.rr-hero-bg { min-height: 52vh; max-height: 75vh; display: flex; align-items: center; overflow: hidden; background-size: cover; background-position: center; }
.rr-hero-bg .rr-wrap { width: 100%; padding-top: 80px; padding-bottom: 80px; }
.rr-hero-company { background-image: linear-gradient(rgba(14,42,51,.7), rgba(14,42,51,.7)), url("/public/images/company/01-screenshot-2022-09-08-at-11-58-01.webp"); }
.rr-hero-product { background-image: linear-gradient(rgba(14,42,51,.7), rgba(14,42,51,.7)), url("/public/images/product/01-screenshot-2022-09-08-at-12-35-02.webp"); }
.rr-hero-partners { background-image: linear-gradient(rgba(14,42,51,.7), rgba(14,42,51,.7)), url("/public/images/partners/01-pexels-jonathan-borba-3316922.webp"); }
.rr-hero-forecasting { background-image: linear-gradient(rgba(14,42,51,.7), rgba(14,42,51,.7)), url("/public/images/forecasting/01-unsplash-image-pem-slmjt-w.webp"); }
.rr-hero-strategy { background-image: linear-gradient(rgba(14,42,51,.7), rgba(14,42,51,.7)), url("/public/images/strategy/01-unsplash-image-napasgkzaxg.webp"); }
.rr-hero-pricing { background-image: linear-gradient(rgba(14,42,51,.7), rgba(14,42,51,.7)), url("/public/images/pricing/01-pexels-jonathan-borba-3316922.webp"); }
.rr-hero-calculate { background-image: linear-gradient(rgba(14,42,51,.7), rgba(14,42,51,.7)), url("/public/images/calculate/01-screenshot-2022-09-08-at-12-35-02.webp"); }
.rr-hero-careers { background-image: linear-gradient(rgba(14,42,51,.7), rgba(14,42,51,.7)), url("/public/images/careers/01-charlesdeluvio-lks7vei-eag-unsplash.webp"); }
.rr-hero-culture { background-image: linear-gradient(rgba(14,42,51,.7), rgba(14,42,51,.7)), url("/public/images/culture/01-revenue-culture.webp"); }

/* HubSpot contact form block (padding comes from the section, not the old form grid) */
.rr-contact-flush { padding: 0; }
.rr-contact-form { min-width: 0; }

/* Mobile / tablet menu: full-width dark panel under the header, grouped like the desktop menu */
@media (max-width: 1023px) {
  .rr-header { position: relative; }
  .rr-header-top { position: static; }
  .rr-mobile-nav, .rr-mobile-nav .relative { position: static; }
  .rr .rr-mobile-nav .hamburger-dropdown { position: absolute; top: 100%; left: 0; right: 0; width: auto; min-width: 0; margin: 0; max-height: calc(100vh - 84px); overflow-y: auto; overscroll-behavior: contain; background: var(--ink); border: 0; border-top: 1px solid rgba(255,255,255,.12); border-radius: 0; box-shadow: 0 24px 40px rgba(0,0,0,.35); padding: 8px 0 24px; z-index: 9999; }
  .rr .rr-mobile-nav .hamburger-dropdown a:not(.rr-mob-cta) { display: block; padding: 13px 28px; border: 0; border-bottom: 1px solid rgba(255,255,255,.07); color: #fff; font-size: 17px; font-weight: 400; text-decoration: none; }
  .rr .rr-mobile-nav .hamburger-dropdown a:not(.rr-mob-cta):hover, .rr .rr-mobile-nav .hamburger-dropdown a:not(.rr-mob-cta):focus-visible { background: rgba(255,255,255,.06); color: var(--accent); }
  .rr-mob-label { display: block; padding: 22px 28px 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid rgba(255,255,255,.12); }
  .rr .rr-mobile-nav .hamburger-dropdown a.rr-mob-cta { display: block; box-sizing: border-box; margin: 14px 28px 0; padding: 14px 20px; text-align: center; font-size: 17px; font-weight: 700; border: 2px solid transparent; border-radius: 999px; text-decoration: none; }
  .rr .rr-mobile-nav .hamburger-dropdown a.rr-mob-cta-fill { background: var(--accent); color: var(--ink); }
  .rr .rr-mobile-nav .hamburger-dropdown a.rr-mob-cta-fill:hover { background: #fff; }
  .rr .rr-mobile-nav .hamburger-dropdown a.rr-mob-cta-line { border-color: #fff; color: #fff; }
  .rr .rr-mobile-nav .hamburger-dropdown a.rr-mob-cta-line:hover { background: #fff; color: var(--ink); }
}

/* Foot-of-post navigation: < Previous | ^ Back | Next > (markup from core) */
.rr .blog-post-nav { border-top: 1px solid var(--line); padding-top: 28px; }
.rr .blog-post-nav-link { display: block; color: var(--ink); font-weight: 600; font-size: 17px; line-height: 1.3; text-decoration: none; }
.rr .blog-post-nav-link:hover { color: var(--accent-dark); text-decoration: underline; }
.rr .blog-post-nav-back a { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); text-decoration: none; white-space: nowrap; }
.rr .blog-post-nav-back a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .rr .blog-post-nav { grid-template-columns: 1fr !important; }
  .rr .blog-post-nav > * { text-align: left !important; }
  .rr .blog-post-nav-back { order: 3; }
}

/* Blog sub menu: flyout to the right of the Resource Hub dropdown (desktop), indented links (mobile) */
.rr-navsub { position: relative; }
.rr-navsub-parent { position: relative; }
.rr-navdrop a.rr-navsub-parent::after { content: "\203A"; position: absolute; right: 18px; top: 50%; transform: translateY(-52%); font-size: 20px; color: var(--ink-soft); }
.rr-navsubdrop { position: absolute; top: -8px; left: 100%; min-width: 250px; max-height: 70vh; overflow-y: auto; background: #fff; border-radius: 12px; box-shadow: 0 14px 40px rgba(14,42,51,.25); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateX(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 10000; }
.rr-navsub:hover > .rr-navsubdrop, .rr-navsub:focus-within > .rr-navsubdrop { opacity: 1; visibility: visible; transform: none; }
.rr-navsub:hover > .rr-navsub-parent, .rr-navsub:focus-within > .rr-navsub-parent { background: var(--panel); color: var(--accent-dark); }
@media (max-width: 1023px) {
  .rr .rr-mobile-nav .hamburger-dropdown a.rr-mob-sub { padding: 10px 28px 10px 48px; font-size: 15px; color: var(--on-dark); }
}
