/* ==========================================================
   Resume Metrics Page
   Self-contained page-scoped stylesheet for /resume-metrics/<slug>.
   Class prefix: .rm-
   Chrome (shell, hero, trust, sections, prose, author-note, passes,
   resources, eeat) copied from resume-guide.css and renamed rg- -> rm-.
   New components (metric tables, category headings, guide viz) at bottom.
   Spec: ./Resume Metrics Page.md
   ========================================================== */

:root {
  --rm-primary: #2563eb;
  --rm-primary-light: #3B82F6;
  --rm-primary-deep: #1d4ed8;
  --rm-primary-50: #eff6ff;
  --rm-primary-100: #dbeafe;
  --rm-primary-200: #bfdbfe;
  --rm-primary-700: #1d4ed8;
  --rm-ink: #0f172a;
  --rm-ink-soft: #1e293b;
  --rm-ink-mid: #334155;
  --rm-mute: #475569;
  --rm-mute-soft: #64748b;
  --rm-mute-softer: #94a3b8;
  --rm-surface: #ffffff;
  --rm-surface-2: #f8fafc;
  --rm-surface-3: #f1f5f9;
  --rm-border: #e2e8f0;
  --rm-border-soft: #f1f5f9;
  --rm-radius: 12px;
  --rm-radius-lg: 16px;
  --rm-radius-xl: 24px;

  --rm-elev-1: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 6px rgba(15, 23, 42, .06);
  --rm-elev-2: 0 2px 4px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .08);
  --rm-elev-3: 0 4px 8px rgba(15, 23, 42, .04), 0 18px 40px rgba(15, 23, 42, .10);
}


/* ----------------------------------------------------------
   Page shell
---------------------------------------------------------- */

body.rm-page {
  background:
    radial-gradient(1100px 600px at 50% 0%, rgba(37, 99, 235, .06), transparent 70%),
    radial-gradient(900px 500px at 100% 30%, rgba(16, 185, 129, .04), transparent 65%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 480px);
  background-attachment: fixed;
  overflow-x: hidden;
  color: var(--rm-ink);
}

/* main.css sets `section { display:flex; align-items:center; margin:2rem auto }`
   globally, which injects a 32px gap above every <section> on the guide
   page (including the trust strip flush under the hero) and forces every
   section into a centered flex column. Reset to plain block layout here. */
.rm-page section {
  display: block;
  margin: 0;
  height: auto;
  align-items: stretch;
}


/* ----------------------------------------------------------
   §1 HERO
   Overrides the shared .blog-hero pattern to land a two-column
   layout: article chrome on the left, white .fr-card on the
   right. At <960px stacks back to a single column.
---------------------------------------------------------- */

.rm-page .blog-hero {
  padding: 56px 24px 36px;
  background: linear-gradient(135deg, #0b1736 0%, #1E3A8A 55%, #2563EB 130%);
  position: relative;
  overflow: hidden;
}

/* Decorative glow blobs in the hero background */
.rm-page .blog-hero::before,
.rm-page .blog-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.rm-page .blog-hero::before {
  width: 560px; height: 560px;
  top: -240px; right: -160px;
  background: linear-gradient(135deg, #60a5fa, #2563EB);
  opacity: .22;
}
.rm-page .blog-hero::after {
  width: 380px; height: 380px;
  bottom: -180px; left: -120px;
  background: linear-gradient(135deg, #23ce6b, #00a6fb);
  opacity: .10;
}

.rm-page .blog-hero .blog-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 64px;
  align-items: center;
  flex-direction: row;
}

.rm-hero__main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

/* Left-align all the hero text on the guide page */
.rm-page .blog-hero h1 {
  text-align: left;
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 700;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Hero tagline: one-line sub-headline under the H1, smaller than the H1 */
.rm-page .blog-hero .rm-hero__tagline {
  text-align: left;
  margin: 6px 0 0;
  color: #ffffff;
  font-size: clamp(18px, 2.1vw, 27px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.rm-page .blog-hero h1 .rm-hl {
  background: linear-gradient(120deg, #60a5fa 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rm-page .blog-hero .breadcrumbs {
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.rm-page .blog-hero .breadcrumbs a {
  color: #93c5fd;
  border-bottom: none;
  text-decoration: none;
  font-weight: 500;
}
.rm-page .blog-hero .breadcrumbs a:hover {
  color: #bfdbfe;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rm-page .blog-hero .hero-subtitle {
  text-align: left;
  max-width: 580px;
  margin: 4px 0 0;
  font-size: clamp(15px, 1.2vw, 17.5px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 400;
}

.rm-page .blog-hero .author-box {
  justify-content: flex-start;
  margin-top: 8px;
  gap: 14px;
}
.rm-page .blog-hero .author-box .author-img-container {
  height: 56px; width: 56px;
}
.rm-page .blog-hero .author-box .author-img-container img {
  height: 56px; width: 56px;
}
.rm-page .blog-hero .author-box .author-info p {
  font-size: 13px;
  margin: 0;
  line-height: 1.35;
  color: rgba(255, 255, 255, .8);
}
.rm-page .blog-hero .author-box .author-info p.author-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 14.5px;
}
.rm-page .blog-hero .author-box .author-info p.author-position {
  color: #93c5fd;
  font-size: 12.5px;
}

.rm-page .blog-hero .article-dates {
  margin: 0;
}
.rm-page .blog-hero .article-dates p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .65);
  margin: 0;
}

/* The hero CTA wrapper: holds the white .fr-card in the right column */
.rm-hero__cta {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.rm-hero__cta .review-upload-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0;
}
.rm-hero__cta .fr-card {
  width: 100%;
  max-width: 420px;
  padding: 26px 24px 28px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, .25),
    0 4px 12px rgba(37, 99, 235, .15);
}

/* resume-template.css ships `.blog-hero p { color: #fff }`, which whites
   out everything inside the white .fr-card. Restore the homepage card's
   own colors here. */
.rm-page .blog-hero .fr-card .fr-headline { color: #0f172a; }
.rm-page .blog-hero .fr-card .fr-sub,
.rm-page .blog-hero .fr-card .fr-note { color: #6b7280; }
.rm-page .blog-hero .fr-card .fr-sub .text-underline {
  color: #23ce6b;
  text-decoration-color: #23ce6b;
}

/* Deeplink sits BELOW the .fr-card on the dark hero background;
   default .fr-deeplink color is grey (designed for light bg), so switch
   to light text + light-blue link on the dark hero. */
.rm-page .blog-hero .fr-deeplink {
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}
.rm-page .blog-hero .fr-deeplink a { color: #93c5fd; }
.rm-page .blog-hero .fr-deeplink a:hover { color: #bfdbfe; }

/* Mobile: stack the hero */
@media (max-width: 960px) {
  .rm-page .blog-hero {
    padding: 40px 20px 40px;
  }
  .rm-page .blog-hero .blog-hero-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    width: 100%;
    text-align: center;
  }
  .rm-hero__main {
    align-items: center;
    text-align: center;
    width: 100%;
    min-width: 0;
  }
  .rm-page .blog-hero h1,
  .rm-page .blog-hero .hero-subtitle {
    text-align: center;
  }
  .rm-page .blog-hero .author-box {
    justify-content: center;
  }
  .rm-hero__cta {
    width: 100%;
  }
  .rm-hero__cta .review-upload-wrap,
  .rm-hero__cta .fr-card {
    max-width: 440px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .rm-page .blog-hero h1 {
    font-size: 26px;
    line-height: 1.18;
  }
  .rm-page .blog-hero .hero-subtitle {
    font-size: 15px;
  }
  /* allow the tagline to wrap on narrow screens so it never overflows */
  .rm-page .blog-hero .rm-hero__tagline {
    white-space: normal;
    font-size: 19px;
  }
  /* main.css ships .fr-card with width:500px which overflows narrow
     viewports; force fluid on mobile so it stays inside the hero. */
  .rm-page .fr-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .rm-page .review-upload-wrap {
    width: 100%;
    max-width: 100%;
  }
}


/* ----------------------------------------------------------
   §2 TRUST STRIP
   Sits right under the hero on white. 5 stat tiles.
---------------------------------------------------------- */

.rm-trust {
  background: #ffffff;
  border-bottom: 1px solid var(--rm-border);
  padding: 22px 24px;
}
.rm-trust__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: center;
}
.rm-trust__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}
.rm-trust__num {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 700;
  color: var(--rm-ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.rm-trust__num .rm-trust__star { color: #f59e0b; margin-right: 2px; }
.rm-trust__caption {
  font-size: 12px;
  color: var(--rm-mute);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rm-trust__num--google {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
}
.rm-trust__num--google .g-b { color: #4285F4; }
.rm-trust__num--google .g-r { color: #EA4335; }
.rm-trust__num--google .g-y { color: #FBBC05; }
.rm-trust__num--google .g-g { color: #34A853; }
.rm-trust__num--google .g-pre { color: var(--rm-ink); margin-right: 4px; }

@media (max-width: 720px) {
  .rm-trust__inner {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 24px;
  }
  .rm-trust__stat:nth-child(4),
  .rm-trust__stat:nth-child(5) {
    grid-column: span 1;
  }
}
@media (max-width: 480px) {
  .rm-trust__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ----------------------------------------------------------
   Generic section + typography helpers
---------------------------------------------------------- */

.rm-section {
  padding: 72px 24px;
}
.rm-section--narrow .rm-section__inner,
.rm-section--narrow.rm-section > .rm-prose,
.rm-section--narrow.rm-section > .rm-section__head {
  max-width: 760px;
}
.rm-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.rm-section--tinted { background: var(--rm-surface-2); }
.rm-section--white { background: #ffffff; }

.rm-section__head {
  max-width: 1000px;
  margin: 0 auto 36px;
  text-align: center;
}
.rm-section__head--left {
  text-align: left;
  margin-left: 0;
}
.rm-section__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  color: var(--rm-primary);
  margin: 0 0 12px;
  padding: 4px 12px;
  background: var(--rm-primary-50);
  border-radius: 999px;
}
.rm-h2 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
  color: var(--rm-ink);
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.rm-h3 {
  font-size: 18px;
  line-height: 1.35;
  color: var(--rm-ink);
  margin: 0 0 10px;
  font-weight: 700;
  text-align: left;
  letter-spacing: -0.005em;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.rm-lead {
  font-size: 17px;
  color: var(--rm-mute);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 640px;
}
.rm-lead a {
  color: var(--rm-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.rm-lead a:hover { color: var(--rm-primary-deep); }
.rm-section__head--left .rm-lead {
  margin-left: 0;
}

/* Multi-column intro under centered eyebrow + H2. Same layout pattern
   as the .erw-blk__intro block on /engineering-resume-writer, ported
   to the Resume Guide tokens (rm-prose typography) and bumped to 3
   columns with hairline dividers between each pair. */
.rm-intro-cols {
  max-width: 1200px;
  margin: 34px auto 0;
  padding: 0 1.5%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 56px;
  align-items: start;
  font-size: 16.5px;
  line-height: 1.75;
  text-align: left;
  box-sizing: border-box;
}
.rm-intro-cols--2 { grid-template-columns: 1fr 1fr; }
/* Text-block contrast rule: lighter mute over white sections, stronger
   ink over grey/tinted. Target <p> directly to beat the global
   `p { color: var(--main-font-color); }` rule in main.css. */
.rm-intro-cols p {
  margin: 0 0 14px;
  text-align: left;
  color: var(--rm-mute);
}
.rm-section--tinted .rm-intro-cols p { color: var(--main-font-color); }
.rm-intro-cols p:last-child { margin-bottom: 0; }
.rm-intro-cols strong { color: var(--rm-ink); font-weight: 600; }
.rm-intro-cols a {
  color: var(--rm-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.rm-intro-cols a:hover { color: var(--rm-primary-deep); }

/* Hairline divider sitting in each inter-column gap. */
.rm-intro-cols > .rm-intro-cols__col:not(:last-child) {
  position: relative;
  padding-right: 28px;
}
.rm-intro-cols > .rm-intro-cols__col:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -28px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, transparent, #cbd5e1 20%, #cbd5e1 80%, transparent);
}

@media (max-width: 980px) {
  .rm-intro-cols {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 720px;
  }
  .rm-intro-cols > .rm-intro-cols__col:not(:last-child) {
    padding-right: 0;
    padding-bottom: 18px;
  }
  .rm-intro-cols > .rm-intro-cols__col:not(:last-child)::after {
    right: 0;
    left: 0;
    top: auto;
    bottom: 0;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1 20%, #cbd5e1 80%, transparent);
  }
}

.rm-prose {
  max-width: 720px;
  margin: 0 auto;
}
.rm-prose > * + * { margin-top: 18px; }
.rm-prose p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--rm-ink-mid);
  margin: 0;
}
.rm-prose p strong { color: var(--rm-ink); font-weight: 600; }
.rm-prose a {
  color: var(--rm-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.rm-prose a:hover { color: var(--rm-primary-deep); }
.rm-prose ol,
.rm-prose ul {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--rm-ink-mid);
  padding-left: 24px;
  margin: 0;
}
.rm-prose li + li { margin-top: 8px; }


/* ----------------------------------------------------------
   §2.5 AUTHOR NOTE
   "From the author" card that sits right under the trust strip
   and replaces the plain prose intro. Photo + byline header, H2
   carrying the main keyword, then the two intro paragraphs.
---------------------------------------------------------- */

.rm-author-note {
  max-width: 1180px;
  margin: 0 auto;
  text-align: left;
}
.rm-author-note__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.rm-author-note__photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  padding: 2px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .25);
}
.rm-author-note__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.rm-author-note__byline {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.rm-author-note__eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--rm-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  line-height: 1.2;
}
.rm-author-note__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--rm-ink);
  margin: 2px 0 0;
  line-height: 1.3;
}
.rm-author-note__title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  color: var(--rm-ink);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 24px;
  text-align: left;
}
.rm-author-note .rm-prose {
  max-width: none;
  margin: 0;
  text-align: left;
}
.rm-author-note__closer {
  margin-top: 28px;
  text-align: left;
  font-size: 17px;
  color: var(--rm-ink);
}
.rm-author-note .rm-prose p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--rm-ink-mid);
}
.rm-author-note .rm-prose > * + * {
  margin-top: 24px;
}



/* ----------------------------------------------------------
   §3 PASSES MENU
   Vertical stack of horizontal menu-row items (one per pass).
   Google-style colored icon tile, title + description, arrow.
---------------------------------------------------------- */

.rm-passes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
  margin: 32px auto 0;
}
.rm-pass {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--rm-border);
  border-radius: var(--rm-radius);
  text-decoration: none;
  color: var(--rm-ink);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.rm-pass:hover {
  transform: translateY(-2px);
  box-shadow: var(--rm-elev-2);
  border-color: var(--rm-pass-color, var(--rm-primary));
  color: var(--rm-ink);
}
.rm-pass:hover .rm-pass__arrow {
  transform: translateX(4px);
  color: var(--rm-pass-color, var(--rm-primary));
}

.rm-pass__icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--rm-pass-tint, var(--rm-primary-50));
  color: var(--rm-pass-color, var(--rm-primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.rm-pass__icon svg { width: 22px; height: 22px; }
.rm-pass__icon-num {
  position: absolute;
  top: -6px; right: -6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--rm-pass-color, var(--rm-primary));
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.rm-pass__body { min-width: 0; }
.rm-pass__title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--rm-ink);
  margin: 0 0 2px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.rm-pass__desc {
  font-size: 13.5px;
  color: var(--rm-mute);
  margin: 0;
  line-height: 1.45;
}
.rm-pass__arrow {
  color: var(--rm-mute-softer);
  font-size: 17px;
  transition: transform 0.25s ease, color 0.2s ease;
  justify-self: end;
}

/* Google-like color palette per item */
.rm-pass[data-color="blue"]   { --rm-pass-color: #4285F4; --rm-pass-tint: #e8f0fe; }
.rm-pass[data-color="red"]    { --rm-pass-color: #EA4335; --rm-pass-tint: #fce8e6; }
.rm-pass[data-color="yellow"] { --rm-pass-color: #F9AB00; --rm-pass-tint: #fef7e0; }
.rm-pass[data-color="green"]  { --rm-pass-color: #34A853; --rm-pass-tint: #e6f4ea; }
.rm-pass[data-color="purple"] { --rm-pass-color: #7C3AED; --rm-pass-tint: #f3e8ff; }

@media (max-width: 560px) {
  .rm-pass {
    grid-template-columns: 48px 1fr 18px;
    gap: 16px;
    padding: 18px 18px;
  }
  .rm-pass__icon { width: 48px; height: 48px; border-radius: 12px; }
  .rm-pass__icon svg { width: 22px; height: 22px; }
  .rm-pass__title { font-size: 16px; }
  .rm-pass__desc { font-size: 14px; }
}


/* ----------------------------------------------------------
   §9 RESOURCES GRID: 4 cards 2x2 at section bottom
---------------------------------------------------------- */

.rm-resources {
  background: linear-gradient(180deg, var(--rm-surface-2) 0%, #ffffff 100%);
  padding: 80px 24px;
}
/* Resources grid is the one exception to the page's 720px column
   width. It lays out all four cards in a single row at desktop, and
   wraps to fewer columns as the viewport shrinks (auto-fit). */
.rm-resources__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.rm-resources__head {
  text-align: center;
  margin-bottom: 44px;
}
.rm-resources__grid {
  display: grid;
  /* Cap card width at ~290px so the layout stays consistent whether
     1, 2, 3, or 4 cards render. Same rule on .rt/.rs/.rg grids. */
  grid-template-columns: repeat(auto-fit, minmax(240px, 290px));
  justify-content: center;
  gap: 16px;
}
.rm-resource {
  background: #ffffff;
  border: 1px solid var(--rm-border);
  border-radius: var(--rm-radius-lg);
  padding: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  color: var(--rm-ink);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.rm-resource:hover {
  border-color: var(--rm-res-color, var(--rm-primary));
  box-shadow: var(--rm-elev-2);
  transform: translateY(-3px);
  color: var(--rm-ink);
}

/* Illustration zone — square-ish proportions, scaled to card width */
.rm-resource__viz {
  position: relative;
  background: linear-gradient(180deg, var(--rm-res-tint, #eff6ff) 0%, #ffffff 100%);
  aspect-ratio: 1.4 / 1;
  border-bottom: 1px solid var(--rm-border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rm-resource__viz::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, .05) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.55;
  pointer-events: none;
}

.rm-resource__eyebrow {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rm-res-color, var(--rm-primary));
  margin: 18px 0 8px;
  padding: 0 20px;
  text-align: left;
  line-height: 1;
}
.rm-resource__title {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--rm-ink);
  padding: 0 20px;
  text-align: left;
}
.rm-resource__desc {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--rm-mute);
  margin: 0;
  padding: 0 20px;
  text-align: left;
  letter-spacing: 0;
}
.rm-resource[data-color="yellow"] { --rm-res-color: #ca8a04; --rm-res-tint: #fefce8; }
.rm-resource[data-color="blue"]   { --rm-res-color: #2563eb; --rm-res-tint: #eff6ff; }
.rm-resource[data-color="green"]  { --rm-res-color: #16a34a; --rm-res-tint: #f0fdf4; }
.rm-resource[data-color="purple"] { --rm-res-color: #9333ea; --rm-res-tint: #faf5ff; }
.rm-resource[data-color="orange"] { --rm-res-color: #ea580c; --rm-res-tint: #fff7ed; }

/* ===== Resource viz variants =====
   Each illustration uses visible (small) text where possible so each
   card clearly telegraphs the destination. The 'rm-mock-' prefix is
   shared mockup typography. */

.rm-mock-font {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
}

/* === 1. Template viz === */
/* Shows a real-looking resume sheet with a visible name, role, section
   header, two bullets, and a small floating "draft" pill */
.rm-viz-tmpl {
  position: relative;
  z-index: 1;
  width: 148px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, .04),
    0 8px 18px rgba(15, 23, 42, .08);
}
.rm-viz-tmpl__name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
  margin: 0;
}
.rm-viz-tmpl__role {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 8.5px;
  color: var(--rm-res-color, var(--rm-primary));
  font-weight: 600;
  margin: -2px 0 4px;
}
.rm-viz-tmpl__rule {
  height: 1px;
  background: #e2e8f0;
}
.rm-viz-tmpl__section {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 7.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0f172a;
  margin: 2px 0 0;
}
.rm-viz-tmpl__line {
  height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
}
.rm-viz-tmpl__line--w95 { width: 95%; }
.rm-viz-tmpl__line--w80 { width: 80%; }
.rm-viz-tmpl__line--input {
  height: 8px;
  border-radius: 3px;
  border: 1.5px dashed var(--rm-res-color, var(--rm-primary));
  background: var(--rm-res-tint, var(--rm-primary-50));
  width: 85%;
  position: relative;
}
.rm-viz-tmpl__line--input::after {
  content: "";
  position: absolute;
  right: -2px; top: -3px;
  width: 2px; height: 14px;
  background: var(--rm-res-color, var(--rm-primary));
  animation: rgBlink 1s steps(2) infinite;
}
@keyframes rgBlink { 50% { opacity: 0; } }
.rm-viz-tmpl__tag {
  position: absolute;
  top: 22px; right: 24px;
  background: var(--rm-res-color, var(--rm-primary));
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .18);
  z-index: 2;
}

/* === 2. Skills viz === */
/* A single "Frameworks" category card with real text chips */
.rm-viz-skills {
  position: relative;
  z-index: 1;
  width: 188px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 11px 13px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, .04),
    0 8px 18px rgba(15, 23, 42, .08);
}
.rm-viz-skills__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.rm-viz-skills__icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--rm-res-tint, var(--rm-primary-50));
  color: var(--rm-res-color, var(--rm-primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'SFMono-Regular', Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.rm-viz-skills__title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}
.rm-viz-skills__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.rm-viz-skills__chip {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--rm-res-color, var(--rm-primary));
  background: var(--rm-res-tint, var(--rm-primary-50));
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.rm-viz-skills__chip--star {
  background: var(--rm-res-color, var(--rm-primary));
  color: #ffffff;
}

/* === 3. ATS Checker viz === */
/* Dashboard-style result card with score and 3 check rows */
.rm-viz-ats {
  position: relative;
  z-index: 1;
  width: 188px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 11px 13px 11px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, .04),
    0 8px 18px rgba(15, 23, 42, .08);
}
.rm-viz-ats__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.rm-viz-ats__label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rm-mute);
}
.rm-viz-ats__score {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--rm-res-color, var(--rm-primary));
  letter-spacing: -0.02em;
  line-height: 1;
}
.rm-viz-ats__score sub {
  font-size: 10px;
  color: var(--rm-mute);
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: baseline;
}
.rm-viz-ats__bar {
  height: 4px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.rm-viz-ats__bar-fill {
  height: 100%;
  width: 87%;
  background: var(--rm-res-color, var(--rm-primary));
  border-radius: 999px;
}
.rm-viz-ats__rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rm-viz-ats__row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9.5px;
  color: var(--rm-ink-mid);
}
.rm-viz-ats__check {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--rm-res-color, var(--rm-primary));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  flex-shrink: 0;
}

/* === 4. Service viz === */
/* Trust signals: stars, big rating, "Ex-Google recruiter" badge */
.rm-viz-service {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, .04),
    0 8px 18px rgba(15, 23, 42, .08);
  min-width: 156px;
}
.rm-viz-service__rating { font-size: 24px; }
.rm-viz-service__stars { font-size: 13px; }
.rm-viz-service__stars {
  display: inline-flex;
  gap: 3px;
  font-size: 14px;
  color: #f59e0b;
  letter-spacing: 1px;
  line-height: 1;
}
.rm-viz-service__rating {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--rm-ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 4px 0 2px;
}
.rm-viz-service__meta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-mute);
}
.rm-viz-service__badge {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: var(--rm-res-color, var(--rm-primary));
  background: var(--rm-res-tint, var(--rm-primary-50));
  padding: 3px 9px;
  border-radius: 999px;
}
.rm-viz-service__badge .g-b { color: #4285F4; }
.rm-viz-service__badge .g-r { color: #EA4335; }
.rm-viz-service__badge .g-y { color: #FBBC05; }
.rm-viz-service__badge .g-g { color: #34A853; }

@media (max-width: 720px) {
  .rm-resources { padding: 56px 20px; }
  /* auto-fit handles column count; just relax the illustration height
     on narrow screens so cards don't get too tall. */
  .rm-resource__viz { aspect-ratio: 1.5 / 1; }
}


/* ----------------------------------------------------------
   Shared blue CTA on the guide page
   STANDARD: full-width edge-to-edge gradient (no --box variant).
   This matches the resume-template pages and is the canonical CTA
   for guide pages. See Resume Guide Page.md §12.6.
---------------------------------------------------------- */

.rm-page .tcv-free-review-split {
  margin: 0;
  /* Restore flex centering that main.css applies to <section> but that
     `.rm-page section { display: block; align-items: stretch }` resets.
     Without this, `.fr-inner` stretches to its 1250px max-width and the
     body copy edges flush left instead of sitting in a centered column
     like on the resume-templates page. */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Scroll-margin so anchor jumps land below the sticky header */
.rm-page main > section,
.rm-page main [id] { scroll-margin-top: 80px; }
/* ----------------------------------------------------------
   §10 EEAT (About the Author)
   Self-contained styles since /css/job-search-toolkit/index.css
   is not loaded on the guide page.
---------------------------------------------------------- */

.rm-page .rm-eeat {
  max-width: 600px;
  margin: 8px auto 0;
  text-align: center;
}
.rm-page .rm-eeat__photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 18px;
}
.rm-page .rm-eeat__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--rm-ink);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.rm-page .rm-eeat__role {
  font-size: 13.5px;
  color: var(--rm-mute);
  margin: 0 0 20px;
  letter-spacing: 0.005em;
}
.rm-page .rm-eeat__bio {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--rm-ink-mid);
  margin: 0 0 18px;
}
.rm-page .rm-eeat__bio a {
  color: var(--rm-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.rm-page .rm-eeat__bio a:hover {
  color: var(--rm-primary-deep);
}
.rm-page .rm-eeat__link {
  display: inline-block;
  color: var(--rm-primary);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.rm-page .rm-eeat__link:hover {
  color: var(--rm-primary-deep);
}


/* ==========================================================
   NEW METRICS-PAGE COMPONENTS (not in resume-guide.css)
   ========================================================== */

/* ----------------------------------------------------------
   Metric category block (one per metric type, H3 + table)
   Each category is themed in its own color (matching the mosaic
   tiles) via --cat-* vars assigned by source order. Applies to
   the §3 metric tables and the §4 qualitative tables alike.
---------------------------------------------------------- */
.rm-section__inner > .rm-cat                { --cat-color:#1a73e8; --cat-mid:#aecbfa; --cat-container:#e8f0fe; --cat-on:#174ea6; }
.rm-section__inner > .rm-cat:nth-of-type(2) { --cat-color:#ea4335; --cat-mid:#f6aea9; --cat-container:#fce8e6; --cat-on:#b3261e; }
.rm-section__inner > .rm-cat:nth-of-type(3) { --cat-color:#f9ab00; --cat-mid:#fde293; --cat-container:#fef7e0; --cat-on:#8a5a00; }
.rm-section__inner > .rm-cat:nth-of-type(4) { --cat-color:#1e8e3e; --cat-mid:#a8dab5; --cat-container:#e6f4ea; --cat-on:#0d652d; }
.rm-section__inner > .rm-cat:nth-of-type(5) { --cat-color:#9334e6; --cat-mid:#d7aefb; --cat-container:#f3e8fd; --cat-on:#6c1bb3; }
.rm-section__inner > .rm-cat:nth-of-type(6) { --cat-color:#00a6af; --cat-mid:#9fe1e6; --cat-container:#ddf4f6; --cat-on:#00677e; }
.rm-section__inner > .rm-cat:nth-of-type(7) { --cat-color:#d81b60; --cat-mid:#f7a8c4; --cat-container:#fde7ef; --cat-on:#ad1457; }

.rm-cat {
  margin: 44px 0 0;
  scroll-margin-top: 80px;
  --cat-color: #1a73e8;
  --cat-mid: #aecbfa;
  --cat-container: #e8f0fe;
  --cat-on: #174ea6;
}
.rm-cat:first-of-type { margin-top: 8px; }
.rm-cat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
}
.rm-cat__rank {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: var(--cat-color);
  box-shadow: 0 4px 10px -2px var(--cat-color);
}
.rm-cat__h3 {
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 800;
  color: var(--rm-ink);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.25;
}
.rm-cat__intro {
  color: var(--rm-mute);
  max-width: 780px;
  margin: 0 0 18px;
  line-height: 1.6;
  font-size: 15px;
}
.rm-cat__intro strong { color: var(--rm-ink); font-weight: 600; }

/* ----------------------------------------------------------
   Metric list (Material 3 list, themed per category)
   Airy rows in a soft rounded card, hairline dividers, no top
   accent. Fully responsive (no horizontal scroll).
---------------------------------------------------------- */
.rm-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--rm-surface);
  border: 1px solid var(--rm-border-soft);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--md-elevation-1, var(--rm-elev-1));
}
.rm-metric {
  display: flex;
  gap: 18px;
  padding: 20px 24px;
}
.rm-metric:not(:last-child) { border-bottom: 1px solid var(--rm-border-soft); }
.rm-metric__rank {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cat-container);
  color: var(--cat-on);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  margin-top: 1px;
}
.rm-metric__dot {
  flex: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cat-color);
  margin: 8px 9px 0 0;
}
.rm-metric__body { flex: 1; min-width: 0; }
.rm-metric__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
}
.rm-metric__name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--rm-ink);
  line-height: 1.3;
}
.rm-metric--qual .rm-metric__name { color: var(--cat-on); }
.rm-metric__tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.rm-metric__unit {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--rm-mute-soft);
  border: 1px solid var(--rm-border);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.rm-metric__bench {
  font-size: 12px;
  font-weight: 700;
  color: var(--cat-on);
  background: var(--cat-container);
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.rm-metric__meta {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--rm-mute-soft);
}
.rm-metric__ex {
  margin: 9px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  font-style: italic;
  color: var(--rm-mute);
}
@media (max-width: 560px) {
  .rm-metric { padding: 16px 18px; gap: 13px; }
}

/* ----------------------------------------------------------
   Inline callout (metrics to avoid / honesty note)
---------------------------------------------------------- */
.rm-note {
  margin: 26px auto 0;
  max-width: 900px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--rm-radius);
  padding: 18px 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--rm-ink-mid);
}
.rm-note strong { color: #c2410c; }

/* ----------------------------------------------------------
   Mobile
---------------------------------------------------------- */
@media (max-width: 760px) {
  .rm-cat__intro { font-size: 14.5px; }
  .rm-table { font-size: 13.5px; }
}


/* ----------------------------------------------------------
   Author-box base styles (copied from resume-template.css, which the
   metrics page does not load). The .rm-page .blog-hero overrides above
   win on size/color; these supply the circular crop and flex layout.
---------------------------------------------------------- */
.rm-page .blog-hero .author-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
}
.rm-page .blog-hero .author-box .author-img-container {
  border-radius: 100%;
  background: linear-gradient(90deg, #3B82F6 0%, #2563EB 100%);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(37, 99, 235, .20);
}
.rm-page .blog-hero .author-box .author-img-container img {
  position: relative;
  object-fit: cover;
}
.rm-page .blog-hero .author-box .author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}


/* ----------------------------------------------------------
   Importance scale (the metrics-impact breakdown)
   One bar split into cumulative chunks (60 / 30 / 10), annotated
   underneath. Shows that an "impressive number" is only the last
   tiny sliver of the value.
---------------------------------------------------------- */
.rm-impact-lead {
  text-align: center;
  max-width: 620px;
  margin: 56px auto 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--main-font-color);
}
.rm-impact {
  position: relative;
  max-width: 720px;
  margin: 22px auto 10px;
  padding-bottom: 92px; /* room for the dropped third-chunk callout */
}
.rm-impact__bar {
  display: flex;
  gap: 4px;
  height: 26px;
}
.rm-impact__seg {
  display: block;
  border-radius: 6px;
  transform-origin: left center;
  animation: rm-seg-in .7s cubic-bezier(.22,1,.36,1) both;
}
.rm-impact__seg--a { flex: 60; background: linear-gradient(90deg, #3b82f6, #38a3e6); animation-delay: .05s; }
.rm-impact__seg--b { flex: 30; background: linear-gradient(90deg, #18b0cf, #15c0a4); animation-delay: .5s; }
.rm-impact__seg--c { flex: 10; background: linear-gradient(90deg, #22c55e, #16a34a); animation-delay: .9s; }
@keyframes rm-seg-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.rm-impact__axis {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.rm-impact__col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rm-impact__col--a { flex: 60; color: #2563eb; }
.rm-impact__col--b { flex: 30; color: #0e7490; }
.rm-impact__col--c { flex: 10; color: #15803d; position: relative; }
.rm-impact__brace {
  width: 100%;
  height: 8px;
  border: 2px solid currentColor;
  border-top: none;
  border-radius: 0 0 7px 7px;
  opacity: .45;
}
.rm-impact__range {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  color: currentColor;
  white-space: nowrap;
}
.rm-impact__cap {
  margin-top: 2px;
  font-size: 13px;
  color: var(--rm-mute);
  line-height: 1.3;
  text-align: center;
}
/* Third chunk is tiny: drop its label below-right with a connector so it
   stays readable instead of crushing into a 10%-wide column. */
.rm-impact__col--c::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 2px;
  height: 50px;
  background: currentColor;
  opacity: .45;
  transform: translateX(-50%);
}
.rm-impact__col--c .rm-impact__range,
.rm-impact__col--c .rm-impact__cap {
  position: absolute;
  right: 0;
  text-align: right;
  white-space: nowrap;
}
.rm-impact__col--c .rm-impact__range { top: 60px; margin-top: 0; }
.rm-impact__col--c .rm-impact__cap { top: 78px; }

@media (prefers-reduced-motion: reduce) {
  .rm-impact__seg { animation: none; }
}
@media (max-width: 560px) {
  .rm-impact__cap { font-size: 12px; }
  .rm-impact__range { font-size: 11px; }
}


/* ----------------------------------------------------------
   Two-column intro with hairline divider (ported from the guide's
   .rg-intro-cols). Breaks up chunky prose blocks.
---------------------------------------------------------- */
.rm-intro-cols {
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 0 1.5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  align-items: start;
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
  box-sizing: border-box;
}
.rm-intro-cols--2 { grid-template-columns: 1fr 1fr; }
.rm-intro-cols--3 { grid-template-columns: 1fr 1fr 1fr; gap: 0 48px; }
.rm-intro-cols p {
  margin: 0 0 14px;
  text-align: left;
  color: var(--rm-mute);
}
.rm-section--tinted .rm-intro-cols p { color: var(--main-font-color); }
.rm-intro-cols p:last-child { margin-bottom: 0; }
.rm-intro-cols em { font-style: italic; }
.rm-intro-cols strong { color: var(--rm-ink); font-weight: 600; }
.rm-intro-cols a {
  color: var(--rm-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.rm-intro-cols a:hover { color: var(--rm-primary-deep); }

/* Hairline divider sitting in the inter-column gap. */
.rm-intro-cols > .rm-intro-cols__col:not(:last-child) {
  position: relative;
  padding-right: 28px;
}
.rm-intro-cols > .rm-intro-cols__col:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -28px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, transparent, #cbd5e1 20%, #cbd5e1 80%, transparent);
}

@media (max-width: 860px) {
  .rm-intro-cols {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 640px;
  }
  .rm-intro-cols > .rm-intro-cols__col:not(:last-child) {
    padding-right: 0;
    padding-bottom: 16px;
  }
  .rm-intro-cols > .rm-intro-cols__col:not(:last-child)::after {
    right: 0; left: 0; top: auto; bottom: 0;
    width: auto; height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1 20%, #cbd5e1 80%, transparent);
  }
}


/* ----------------------------------------------------------
   Metric-types mosaic (Material You / expressive tonal tiles)
   Full pastel tonal cards with a bold colored icon. Uses the
   global --md-* tokens from main.css plus per-type palettes.
---------------------------------------------------------- */
.rm-mosaic {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  max-width: 1100px;
  margin: 38px auto 0;
}
.rm-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  flex: 1 1 300px;
  max-width: 344px;
  min-height: 184px;
  background: var(--tile-container, #e8f0fe);
  border: none;
  border-radius: 26px;
  padding: 26px 24px 22px;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, border-radius .28s cubic-bezier(.2,.8,.2,1);
}
/* Playful oversized decorative blob in the corner */
.rm-tile::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--tile-color, #1a73e8);
  opacity: .08;
  z-index: -1;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
}
.rm-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--md-elevation-2);
  border-radius: 30px;
}
.rm-tile:hover::after { transform: scale(1.35); opacity: .14; }
.rm-tile:focus-visible { outline: 3px solid var(--tile-color, #1a73e8); outline-offset: 2px; }

.rm-tile__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--tile-color, #1a73e8);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 4px 12px -2px var(--tile-color, #1a73e8);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.rm-tile:hover .rm-tile__icon { transform: scale(1.08) rotate(-4deg); }
.rm-tile__icon svg { width: 27px; height: 27px; }
.rm-tile__num {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 14px;
  font-weight: 800;
  color: var(--tile-on, #174ea6);
  opacity: .38;
}
.rm-tile__title {
  margin: 3px 0 0;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--tile-on, #174ea6);
  font-family: var(--md-font);
}
.rm-tile__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #3c4043;
}
.rm-tile__arrow {
  margin-top: auto;
  align-self: flex-end;
  color: var(--tile-on, #174ea6);
  font-size: 20px;
  line-height: 1;
  opacity: .35;
  transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.rm-tile:hover .rm-tile__arrow { opacity: 1; transform: translateX(0); }

/* Per-type Material You tonal palettes (container + strong + on-container) */
.rm-tile[data-color="blue"]   { --tile-color: #1a73e8; --tile-container: #e8f0fe; --tile-on: #174ea6; }
.rm-tile[data-color="red"]    { --tile-color: #ea4335; --tile-container: #fce8e6; --tile-on: #b3261e; }
.rm-tile[data-color="amber"]  { --tile-color: #f9ab00; --tile-container: #fef7e0; --tile-on: #976500; }
.rm-tile[data-color="green"]  { --tile-color: #1e8e3e; --tile-container: #e6f4ea; --tile-on: #0d652d; }
.rm-tile[data-color="purple"] { --tile-color: #9334e6; --tile-container: #f3e8fd; --tile-on: #6c1bb3; }
.rm-tile[data-color="teal"]   { --tile-color: #00a6af; --tile-container: #ddf4f6; --tile-on: #00677e; }
.rm-tile[data-color="pink"]   { --tile-color: #d81b60; --tile-container: #fde7ef; --tile-on: #ad1457; }

@media (prefers-reduced-motion: reduce) {
  .rm-tile, .rm-tile__icon, .rm-tile::after { transition: none; }
  .rm-tile:hover { transform: none; }
  .rm-tile:hover .rm-tile__icon { transform: none; }
}
@media (max-width: 560px) { .rm-tile { max-width: 100%; } }


/* ----------------------------------------------------------
   Metric benchmark cards (educational, themed per category)
   Teaches the measurement: name + what it is + an average/good/
   great benchmark scale + how to measure + an example sentence.
   No fictional value, no positional bar.
---------------------------------------------------------- */
.rm-mcards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.rm-mcard {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 300px;
  max-width: 380px;
  background: var(--rm-surface);
  border: 1px solid var(--rm-border-soft);
  border-radius: 22px;
  padding: 22px 22px 20px;
  box-shadow: var(--md-elevation-1, var(--rm-elev-1));
  transition: box-shadow .22s cubic-bezier(.2,.8,.2,1), transform .22s cubic-bezier(.2,.8,.2,1), border-radius .28s cubic-bezier(.2,.8,.2,1);
}
.rm-mcard:hover {
  box-shadow: var(--md-elevation-2, var(--rm-elev-2));
  transform: translateY(-3px);
  border-radius: 26px;
}
.rm-mcard__rank {
  position: absolute;
  top: 20px; right: 22px;
  font-size: 12px; font-weight: 800;
  color: var(--cat-on); opacity: .3;
}
.rm-mcard__name {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--rm-ink);
  margin: 0 34px 0 0;
  line-height: 1.3;
}
.rm-mcard__what {
  font-size: 13px;
  color: var(--rm-mute-soft);
  margin: 7px 0 16px;
  line-height: 1.5;
}
.rm-mcard__bench-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rm-mute-softer);
  margin: 0 0 8px;
}
/* average / good / great scale */
.rm-tiers {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
}
.rm-tier {
  flex: 1;
  padding: 9px 8px 10px;
  text-align: center;
}
.rm-tier__q {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: .85;
}
.rm-tier__v {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.rm-tier--1 { background: var(--cat-container); color: var(--cat-on); }
.rm-tier--2 { background: var(--cat-mid); color: var(--cat-on); }
.rm-tier--3 { background: var(--cat-color); color: #fff; }
/* single target */
.rm-target {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  background: var(--cat-container);
  border-radius: 12px;
  padding: 11px 15px;
}
.rm-target__q { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--cat-on); opacity: .85; }
.rm-target__v { font-size: 18px; font-weight: 800; color: var(--cat-on); font-variant-numeric: tabular-nums; }
/* context (no fixed benchmark) */
.rm-ctx {
  font-size: 12.5px;
  color: var(--rm-mute);
  background: var(--rm-surface-2);
  border: 1px dashed var(--rm-border);
  border-radius: 12px;
  padding: 10px 14px;
  line-height: 1.5;
}
.rm-ctx b { color: var(--cat-on); font-weight: 700; }
/* footer */
.rm-mcard__foot { margin-top: 16px; }
.rm-mcard__how { font-size: 12px; color: var(--rm-mute-soft); margin: 0; line-height: 1.45; }
.rm-mcard__how b { color: var(--rm-ink-mid); font-weight: 600; }
.rm-mcard__ex-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rm-mute-softer);
  margin: 15px 0 7px;
}
.rm-mcard__ex {
  position: relative;
  margin: 0;
  background: var(--rm-surface-2);
  border: 1px solid var(--rm-border-soft);
  border-radius: 12px;
  padding: 11px 24px 14px 24px;
  font-size: 12.5px;
  font-style: italic;
  color: var(--rm-mute);
  line-height: 1.55;
}
.rm-mcard__ex::before,
.rm-mcard__ex::after {
  position: absolute;
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  color: var(--rm-mute-softer);
}
.rm-mcard__ex::before { content: "\201C"; left: 11px; top: 12px; }
.rm-mcard__ex::after { content: "\201D"; right: 11px; bottom: 9px; }
.rm-mcard__ex b {
  font-style: normal;
  font-weight: 800;
  color: var(--cat-on);
}
@media (max-width: 560px) { .rm-mcard { max-width: 100%; } }

/* "Measure with" as Material assist chips: each tool = logo + name. */
.rm-mcard__measure-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rm-mute-softer);
  margin: 0 0 8px;
}
.rm-toolchips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.rm-toolchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rm-surface);
  border: 1px solid var(--rm-border);
  border-radius: 999px;
  padding: 5px 11px 5px 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rm-ink-mid);
  line-height: 1;
  transition: border-color .15s ease, background .15s ease;
}
.rm-toolchip:hover { border-color: var(--cat-mid); background: var(--rm-surface-2); }
.rm-toolchip img { width: 15px; height: 15px; object-fit: contain; display: block; }
.rm-toolchip--nologo { padding-left: 11px; color: var(--rm-mute); }


/* §4 qualitative cards: reuse the .rm-mcard shell, add an angle icon */
.rm-mcard__qhead {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 2px;
}
.rm-mcard__qicon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--cat-container);
  color: var(--cat-on);
  display: grid;
  place-items: center;
}
.rm-mcard__qicon svg { width: 19px; height: 19px; }
.rm-mcard--qual .rm-mcard__name { margin: 0; }
.rm-mcard--qual .rm-mcard__what { margin: 12px 0 0; }
.rm-mcard--qual .rm-mcard__what b { color: var(--rm-ink-mid); font-weight: 600; }
.rm-viz-guide {
  position: relative;
  z-index: 1;
  width: 188px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px 11px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 18px rgba(15, 23, 42, .08);
}
.rm-viz-guide__title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rm-res-color, #2563eb);
  margin: 0 0 7px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}
.rm-viz-guide__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rm-viz-guide__step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  color: #94a3b8;
}
.rm-viz-guide__num {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 7.5px;
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
}
.rm-viz-guide__step.is-done { color: #334155; }
.rm-viz-guide__step.is-done .rm-viz-guide__num {
  background: var(--rm-res-color, #2563eb);
  border-color: var(--rm-res-color, #2563eb);
  color: transparent;
  position: relative;
}
.rm-viz-guide__step.is-done .rm-viz-guide__num::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid #ffffff;
  border-bottom: 1.5px solid #ffffff;
  transform: translate(-50%, -75%) rotate(-45deg);
}
.rm-viz-guide__step.is-active {
  color: #0f172a;
  font-weight: 700;
}
.rm-viz-guide__step.is-active .rm-viz-guide__num {
  background: var(--rm-res-tint, #fff1f2);
  border-color: var(--rm-res-color, #e11d48);
  color: var(--rm-res-color, #e11d48);
  box-shadow: 0 0 0 3px var(--rm-res-tint, #fff1f2);
}
.rm-viz-guide__label {
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .rs-resource__viz { aspect-ratio: 1.5 / 1; }
}
/* ============================================================
   /Other Resources
============================================================ */


/* FAQ answer links render blue + underlined like normal links */
.rm-page #faq .tcv-faq__a a {
  color: var(--rm-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.rm-page #faq .tcv-faq__a a:hover { color: var(--rm-primary-deep); }
