/* ==========================================================
   Resume Guide Page
   Page-scoped stylesheet for /resume-guides/<slug>-resume pages.
   Class prefix: .rg-
   Quality bar reference: /css/resume-review.css
   Spec: ./Resume Guide Page.md
   ========================================================== */

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

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


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

body.rg-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(--rg-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. */
.rg-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.
---------------------------------------------------------- */

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

.rg-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;
}

.rg-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 */
.rg-page .blog-hero h1 {
  text-align: left;
  margin: 0;
  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;
}

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

.rg-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;
}
.rg-page .blog-hero .breadcrumbs a {
  color: #93c5fd;
  border-bottom: none;
  text-decoration: none;
  font-weight: 500;
}
.rg-page .blog-hero .breadcrumbs a:hover {
  color: #bfdbfe;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rg-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;
}

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

.rg-page .blog-hero .article-dates {
  margin: 0;
}
.rg-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 */
.rg-hero__cta {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.rg-hero__cta .review-upload-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0;
}
.rg-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. */
.rg-page .blog-hero .fr-card .fr-headline { color: #0f172a; }
.rg-page .blog-hero .fr-card .fr-sub,
.rg-page .blog-hero .fr-card .fr-note { color: #6b7280; }
.rg-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. */
.rg-page .blog-hero .fr-deeplink {
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}
.rg-page .blog-hero .fr-deeplink a { color: #93c5fd; }
.rg-page .blog-hero .fr-deeplink a:hover { color: #bfdbfe; }

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

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


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

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

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


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

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

.rg-section__head {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}
.rg-section__head--left {
  text-align: left;
  margin-left: 0;
}
.rg-section__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  color: var(--rg-primary);
  margin: 0 0 12px;
  padding: 4px 12px;
  background: var(--rg-primary-50);
  border-radius: 999px;
}
.rg-h2 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
  color: var(--rg-ink);
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.rg-h3 {
  font-size: 18px;
  line-height: 1.35;
  color: var(--rg-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;
}
.rg-lead {
  font-size: 17px;
  color: var(--rg-mute);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 640px;
}
.rg-lead a {
  color: var(--rg-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.rg-lead a:hover { color: var(--rg-primary-deep); }
.rg-section__head--left .rg-lead {
  margin-left: 0;
}

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

.rg-author-note {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}
.rg-author-note__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.rg-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);
}
.rg-author-note__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.rg-author-note__byline {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.rg-author-note__eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--rg-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  line-height: 1.2;
}
.rg-author-note__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--rg-ink);
  margin: 2px 0 0;
  line-height: 1.3;
}
.rg-author-note__title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  color: var(--rg-ink);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 24px;
  text-align: left;
}
.rg-author-note .rg-prose {
  max-width: none;
  margin: 0;
  text-align: left;
}
.rg-author-note__closer {
  margin-top: 28px;
  text-align: center;
  font-size: 17px;
  color: var(--rg-ink);
}
.rg-author-note .rg-prose p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--rg-ink-mid);
}
.rg-author-note .rg-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.
---------------------------------------------------------- */

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

.rg-pass__icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--rg-pass-tint, var(--rg-primary-50));
  color: var(--rg-pass-color, var(--rg-primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.rg-pass__icon svg { width: 22px; height: 22px; }
.rg-pass__icon-num {
  position: absolute;
  top: -6px; right: -6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--rg-pass-color, var(--rg-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);
}

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

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

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


/* ----------------------------------------------------------
   §3b LEGACY PREVIEW STRIP (kept for reference; not used)
---------------------------------------------------------- */

.rg-preview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.rg-preview__card {
  background: #ffffff;
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--rg-ink);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.rg-preview__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rg-primary-light), var(--rg-primary));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.rg-preview__card:hover {
  border-color: var(--rg-primary);
  box-shadow: var(--rg-elev-2);
  transform: translateY(-3px);
  color: var(--rg-ink);
}
.rg-preview__card:hover::before { opacity: 1; }
.rg-preview__num {
  font-size: 12px;
  font-weight: 700;
  color: var(--rg-primary);
  letter-spacing: 0.05em;
}
.rg-preview__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--rg-primary-50);
  color: var(--rg-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rg-preview__icon svg { width: 20px; height: 20px; }
.rg-preview__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--rg-ink);
  margin: 4px 0 0;
}
.rg-preview__desc {
  font-size: 13.5px;
  color: var(--rg-mute);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .rg-preview { grid-template-columns: repeat(3, 1fr); }
  .rg-preview__card:nth-child(4),
  .rg-preview__card:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 640px) {
  .rg-preview { grid-template-columns: repeat(2, 1fr); }
  .rg-preview__card:nth-child(5) { grid-column: 1 / -1; }
}


/* ----------------------------------------------------------
   §4 FORMAT PILLARS (3 cards under H2 Format)
---------------------------------------------------------- */

.rg-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 36px auto 0;
  max-width: 1100px;
}
.rg-pillar {
  background: #ffffff;
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-lg);
  padding: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.rg-pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--rg-elev-2);
  border-color: var(--rg-pillar-color, var(--rg-primary-200));
}
.rg-pillar[data-color="blue"]   { --rg-pillar-color: #2563eb; --rg-pillar-tint: #eff6ff; }
.rg-pillar[data-color="green"]  { --rg-pillar-color: #14b8a6; --rg-pillar-tint: #ecfdf5; }
.rg-pillar[data-color="violet"] { --rg-pillar-color: #7c3aed; --rg-pillar-tint: #f5f3ff; }
.rg-pillar[data-color="amber"]  { --rg-pillar-color: #d97706; --rg-pillar-tint: #fffbeb; }

.rg-pillar__num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 11px;
  font-weight: 700;
  color: var(--rg-mute-softer);
  letter-spacing: 0.08em;
  z-index: 2;
}
.rg-pillar__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--rg-ink);
  margin: 0;
  padding: 0 26px;
  line-height: 1.3;
}
.rg-pillar__desc {
  font-size: 14.5px;
  color: var(--rg-mute);
  line-height: 1.6;
  margin: 0;
  padding: 0 26px;
}

/* Illustration container — tinted background, centered illustration */
.rg-pillar__viz {
  position: relative;
  background: linear-gradient(180deg, var(--rg-pillar-tint, #eff6ff) 0%, #ffffff 100%);
  height: 180px;
  border-bottom: 1px solid var(--rg-border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Subtle dotted-grid backdrop on illustration */
.rg-pillar__viz::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, .05) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.6;
  pointer-events: none;
}

/* Mini resume document (used by viz 1 + 2) */
.rg-mini-doc {
  position: relative;
  width: 168px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, .04),
    0 8px 18px rgba(15, 23, 42, .08);
  z-index: 1;
}
.rg-mini-doc__name {
  height: 7px; width: 60%;
  border-radius: 2px;
  background: linear-gradient(90deg, #1e293b 0%, #475569 100%);
  margin: 0 auto 2px;
}
.rg-mini-doc__sub {
  height: 4px; width: 40%;
  border-radius: 2px;
  background: #cbd5e1;
  margin: 0 auto 6px;
}
.rg-mini-doc__rule {
  height: 1px;
  background: #f1f5f9;
  margin: 2px 0 4px;
}
.rg-mini-doc__h {
  height: 5px; width: 30%;
  border-radius: 2px;
  background: var(--rg-pillar-color, var(--rg-primary));
  margin-bottom: 3px;
}
.rg-mini-doc__line {
  height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
}
.rg-mini-doc__line--w95 { width: 95%; }
.rg-mini-doc__line--w85 { width: 85%; }
.rg-mini-doc__line--w75 { width: 75%; }
.rg-mini-doc__line--w65 { width: 65%; }
.rg-mini-doc__line--w50 { width: 50%; }

/* Section-label illustration (viz 2) uses visible mini text */
.rg-mini-doc__label {
  font-size: 7.5px;
  font-weight: 800;
  color: var(--rg-pillar-color, var(--rg-primary));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 2px 0 4px;
  line-height: 1;
}
.rg-mini-doc__label + .rg-mini-doc__line { margin-top: 0; }

/* Floating "approval" check chip on viz 1 */
.rg-viz__check {
  position: absolute;
  top: 28px;
  right: 38px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--rg-pillar-color, var(--rg-primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 2px 6px rgba(15, 23, 42, .08),
    0 8px 20px rgba(15, 23, 42, .12);
  z-index: 2;
}
.rg-viz__check svg { width: 16px; height: 16px; }

/* Crossed-out two-column page (viz 1, behind the good single-column) */
.rg-viz__bad {
  position: absolute;
  left: 30px;
  top: 28px;
  width: 96px; height: 110px;
  background: #ffffff;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  transform: rotate(-8deg);
  z-index: 0;
  opacity: 0.85;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
}
.rg-viz__bad::before,
.rg-viz__bad::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: repeating-linear-gradient(0deg, #f1f5f9, #f1f5f9 3px, transparent 3px, transparent 7px);
  pointer-events: none;
}
.rg-viz__bad::after {
  inset: auto;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  background: none;
  width: 80px; height: 2px;
  background: #ef4444;
  border-radius: 2px;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, .15);
}

/* PDF-file illustration (viz 3) */
.rg-viz__pdf {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.rg-viz__file {
  position: relative;
  width: 100px;
  height: 130px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, .04),
    0 8px 18px rgba(15, 23, 42, .08);
}
.rg-viz__file::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, transparent 50%, #f1f5f9 50%);
  border-top-right-radius: 6px;
}
.rg-viz__file-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--rg-pillar-color, var(--rg-primary));
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .15);
}
.rg-viz__file .rg-mini-doc__line { height: 3.5px; background: #e2e8f0; }
.rg-viz__font-row {
  display: flex;
  gap: 6px;
  align-items: baseline;
  z-index: 1;
  position: relative;
}
.rg-viz__font {
  font-size: 9px;
  font-weight: 600;
  color: var(--rg-mute);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 3px 8px;
  box-shadow: 0 2px 4px rgba(15, 23, 42, .04);
}

@media (max-width: 880px) {
  .rg-pillars { grid-template-columns: 1fr; }
}


/* ----------------------------------------------------------
   §5 PROFILE-SUMMARY BULLET STACK
   5 numbered cards explaining each bullet type, then a snippet.
---------------------------------------------------------- */

.rg-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 32px auto 28px;
  max-width: 720px;
}
.rg-bullet {
  background: #ffffff;
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius);
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.rg-bullet:hover {
  border-color: var(--rg-bullet-color, var(--rg-primary));
  box-shadow: var(--rg-elev-1);
  transform: translateY(-1px);
}
.rg-bullet__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.rg-bullet__num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--rg-bullet-color, var(--rg-primary));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0;
  flex-shrink: 0;
}
.rg-bullet__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--rg-ink);
  margin: 0;
  line-height: 1.3;
}
.rg-bullet__desc {
  font-size: 14px;
  color: var(--rg-mute);
  line-height: 1.55;
  margin: 0;
}
.rg-bullet__desc em {
  font-style: italic;
  color: var(--rg-ink);
}
.rg-bullet__chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.rg-bullet__chip {
  padding: 9px 14px 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--rg-ink-mid);
  font-weight: 400;
  line-height: 1.55;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.rg-bullet__chip-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  padding-top: 4px;
  white-space: nowrap;
}
.rg-bullet__chip-text { padding-top: 1px; }

/* Pills inside chips — one per concept (Info) or piece of example (Example) */
.rg-bullet__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.rg-bullet__pill {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--rg-ink-soft);
  background: #ffffff;
  border: 1px solid var(--rg-border);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.3;
}

/* Example pills: filled with the card's accent color (solid badges) so
   they read as concrete deliverables vs the white outlined Info pills */
.rg-bullet__chip--example .rg-bullet__pill {
  background: var(--rg-bullet-color, var(--rg-primary));
  border-color: transparent;
  color: #ffffff;
  font-weight: 600;
}
.rg-bullet__chip--info {
  background: var(--rg-surface-2);
}
.rg-bullet__chip--info .rg-bullet__chip-label {
  color: var(--rg-mute);
}
.rg-bullet__chip--example {
  background: var(--rg-bullet-tint, var(--rg-primary-50));
}
.rg-bullet__chip--example .rg-bullet__chip-label {
  color: var(--rg-bullet-color, var(--rg-primary));
}

.rg-bullet[data-color="blue"]   { --rg-bullet-color: #2563eb; --rg-bullet-tint: #eff6ff; }
.rg-bullet[data-color="red"]    { --rg-bullet-color: #EA4335; --rg-bullet-tint: #fce8e6; }
.rg-bullet[data-color="yellow"] { --rg-bullet-color: #F9AB00; --rg-bullet-tint: #fef7e0; }
.rg-bullet[data-color="green"]  { --rg-bullet-color: #34A853; --rg-bullet-tint: #e6f4ea; }
.rg-bullet[data-color="purple"] { --rg-bullet-color: #7C3AED; --rg-bullet-tint: #f3e8ff; }

/* ----------------------------------------------------------
   §5.5 RESUME-MOCK
   Clean paper-style worked-example component. Lives below the
   5 bullet cards. Inline color tags match the color of the
   bullet type they correspond to above (bullet 1 = blue tags,
   bullet 2 = red tags, etc.) so the eye connects the rule to
   its realization on the resume.
---------------------------------------------------------- */

.rg-resume-mock-wrap {
  max-width: 720px;
  margin: 32px auto 0;
}
.rg-resume-mock-wrap__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  padding: 0 4px;
}
.rg-resume-mock-wrap__caption-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rg-mute);
  margin: 0;
}
.rg-resume-mock-wrap__caption-meta {
  font-size: 11.5px;
  color: var(--rg-mute-softer);
  margin: 0;
}

.rg-resume-mock {
  position: relative;
  background-color: #fcfcfc;
  border: 1px solid #e2e8f0;
  border-radius: 8px 8px 0 0;
  padding: 32px 36px 36px;
  margin: 0;
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}
/* Torn paper bottom edge with scalloped cut-outs */
.rg-resume-mock::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 14px;
  background:
    radial-gradient(circle at 10px 0, transparent 10px, #fcfcfc 11px),
    radial-gradient(circle at 30px 0, transparent 10px, #fcfcfc 11px),
    radial-gradient(circle at 50px 0, transparent 10px, #fcfcfc 11px),
    radial-gradient(circle at 70px 0, transparent 10px, #fcfcfc 11px);
  background-repeat: repeat-x;
  background-size: 40px 14px;
  filter: drop-shadow(0 6px 6px rgba(15, 23, 42, 0.05));
  z-index: 1;
}
.rg-resume-mock__section-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid #1a1a1a;
}
.rg-resume-mock__bullets {
  list-style: disc outside;
  padding-left: 22px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.rg-resume-mock__bullets li {
  font-size: 14.5px;
  line-height: 1.7;
  color: #1a1a1a;
}
.rg-resume-mock__bullets li::marker {
  color: #1a1a1a;
}

/* Inline color tags — same palette as the Example pills above */
.rg-tag {
  display: inline;
  background: var(--rg-tag-color, var(--rg-primary));
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: -0.005em;
  vertical-align: 1px;
}
.rg-tag[data-color="blue"]   { --rg-tag-color: #2563eb; }
.rg-tag[data-color="red"]    { --rg-tag-color: #EA4335; }
.rg-tag[data-color="yellow"] { --rg-tag-color: #F9AB00; }
.rg-tag[data-color="green"]  { --rg-tag-color: #34A853; }
.rg-tag[data-color="purple"] { --rg-tag-color: #7C3AED; }

@media (max-width: 560px) {
  .rg-resume-mock__body { padding: 18px 20px 22px; }
  .rg-resume-mock__bullets li { font-size: 14px; }
}


/* ----------------------------------------------------------
   §6 ROLE PROFILE STACK
   Beautiful 2-tier (P1, P2) competency grid for Work Experience.
---------------------------------------------------------- */

.rg-stack {
  margin: 36px auto 28px;
  max-width: 720px;
}
.rg-stack__tier { margin-top: 36px; }
.rg-stack__tier:first-child { margin-top: 0; }
.rg-stack__tier-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.rg-stack__tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
}
.rg-stack__tier--p1 .rg-stack__tier-pill {
  background: linear-gradient(120deg, var(--rg-primary), var(--rg-primary-deep));
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
}
.rg-stack__tier--p2 .rg-stack__tier-pill {
  background: var(--rg-surface-3);
  color: var(--rg-mute);
}
.rg-stack__tier-sub {
  font-size: 14px;
  color: var(--rg-mute);
  margin: 0;
}
/* The two tiers each render as a single stacked list (one card per tier). */
.rg-stack__list {
  background: #ffffff;
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-lg);
  overflow: hidden;
}
.rg-stack__tier--p1 .rg-stack__list {
  box-shadow: var(--rg-elev-1);
}
.rg-stack__tier--p2 .rg-stack__list {
  background: var(--rg-surface-2);
}

.rg-comp {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
}
.rg-comp + .rg-comp {
  border-top: 1px solid var(--rg-border-soft);
}
.rg-stack__tier--p2 .rg-comp + .rg-comp {
  border-top-color: rgba(15, 23, 42, .06);
}
.rg-comp__num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--rg-comp-color, var(--rg-primary));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11.5px;
  flex-shrink: 0;
}
.rg-comp__body {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
}
.rg-comp__name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--rg-ink);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.rg-comp__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}
.rg-comp__pill {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--rg-comp-color, var(--rg-primary));
  background: var(--rg-comp-tint, var(--rg-primary-50));
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .rg-comp__body {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .rg-comp__pills { justify-content: flex-start; }
}

/* Per-competency palette (Google brand-style across the page) */
.rg-comp[data-color="blue"]   { --rg-comp-color: #2563eb; --rg-comp-tint: #eff6ff; }
.rg-comp[data-color="violet"] { --rg-comp-color: #7c3aed; --rg-comp-tint: #f5f3ff; }
.rg-comp[data-color="cyan"]   { --rg-comp-color: #0891b2; --rg-comp-tint: #ecfeff; }
.rg-comp[data-color="green"]  { --rg-comp-color: #14b8a6; --rg-comp-tint: #ecfdf5; }
.rg-comp[data-color="amber"]  { --rg-comp-color: #d97706; --rg-comp-tint: #fffbeb; }
.rg-comp[data-color="rose"]   { --rg-comp-color: #e11d48; --rg-comp-tint: #fff1f2; }
.rg-comp[data-color="indigo"] { --rg-comp-color: #4f46e5; --rg-comp-tint: #eef2ff; }
.rg-comp[data-color="slate"]  { --rg-comp-color: #475569; --rg-comp-tint: #f1f5f9; }

@media (max-width: 760px) {
  .rg-stack__tier-head { flex-wrap: wrap; }
}

/* Callout box (recency paragraph after the role stack) */
.rg-callout {
  background: linear-gradient(135deg, #f0f7ff, #eef4ff);
  border: 1px solid var(--rg-primary-100);
  border-left: 4px solid var(--rg-primary);
  border-radius: var(--rg-radius-lg);
  padding: 22px 26px;
  margin: 36px auto 0;
  max-width: 820px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.rg-callout__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--rg-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rg-callout__icon svg { width: 20px; height: 20px; }
.rg-callout__body p {
  margin: 0;
  font-size: 15.5px;
  color: var(--rg-ink-mid);
  line-height: 1.65;
}
.rg-callout__body p + p { margin-top: 8px; }
.rg-callout__body strong { color: var(--rg-ink); font-weight: 600; }
.rg-callout__body a {
  color: var(--rg-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ----------------------------------------------------------
   §7 BULLET-POINTS visualisation
   A compact 5-item checklist (quick reference) + a 5-step
   builder that grows the same bullet level by level, with the
   newly-added phrase highlighted in that level's accent color.
---------------------------------------------------------- */

.rg-bullet-demo {
  max-width: 720px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* §7.1 Levels checklist (quick reference) */
.rg-levels-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #ffffff;
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-lg);
  overflow: hidden;
  box-shadow: var(--rg-elev-1);
}
.rg-levels-list__item {
  display: grid;
  grid-template-columns: 28px 110px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
}
.rg-levels-list__item + .rg-levels-list__item {
  border-top: 1px solid var(--rg-border-soft);
}
.rg-levels-list__num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--rg-level-color, var(--rg-primary));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}
.rg-levels-list__name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--rg-ink);
  letter-spacing: -0.005em;
}
.rg-levels-list__hint {
  font-size: 13px;
  color: var(--rg-mute);
}

/* §7.2 Build steps — explanatory prose on the background, with the
   evolving bullet card slotting in between each paragraph. */
.rg-build-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.rg-build-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rg-build-intro {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--rg-ink-mid);
  margin: 0;
}
.rg-build-step {
  background: #ffffff;
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-lg);
  padding: 16px 20px;
  position: relative;
}
.rg-build-step__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.rg-build-step__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--rg-level-color, var(--rg-primary));
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rg-build-step__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--rg-ink);
  margin: 0;
}
.rg-build-step__bullet {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--rg-mute);
  margin: 0;
}
.rg-build-step__bullet::before {
  content: "\2022";
  color: var(--rg-mute-softer);
  margin-right: 8px;
}

/* Newly-added phrase at each step — colored in the step's accent */
.rg-build-add {
  background: var(--rg-level-tint, var(--rg-primary-50));
  color: var(--rg-level-color, var(--rg-primary));
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Per-level palette (cool → warm to suggest growing intensity) */
.rg-build-step[data-level="1"],
.rg-levels-list__item[data-level="1"] { --rg-level-color: #64748b; --rg-level-tint: #f1f5f9; }
.rg-build-step[data-level="2"],
.rg-levels-list__item[data-level="2"] { --rg-level-color: #2563eb; --rg-level-tint: #eff6ff; }
.rg-build-step[data-level="3"],
.rg-levels-list__item[data-level="3"] { --rg-level-color: #0891b2; --rg-level-tint: #ecfeff; }
.rg-build-step[data-level="4"],
.rg-levels-list__item[data-level="4"] { --rg-level-color: #7c3aed; --rg-level-tint: #f5f3ff; }
.rg-build-step[data-level="5"],
.rg-levels-list__item[data-level="5"] { --rg-level-color: #d97706; --rg-level-tint: #fffbeb; }

/* On the final step the full bullet has "promoted" to ink — emphasis */
.rg-build-step[data-level="5"] .rg-build-step__bullet { color: var(--rg-ink-mid); }

@media (max-width: 560px) {
  .rg-levels-list__item { grid-template-columns: 24px 1fr; }
  .rg-levels-list__hint { display: none; }
  .rg-build-step__hint { display: none; }
}


/* ----------------------------------------------------------
   §8 TECHNICAL SKILLS: new bespoke 5-card grid
   Vertical layout, large icon at top, chips below, copy-paste
   row at the bottom. Polished Google/Apple feel.
---------------------------------------------------------- */

.rg-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 36px auto 0;
}
.rg-skill {
  background: #ffffff;
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-lg);
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.rg-skill::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--rg-skill-color, var(--rg-primary));
  opacity: 0.9;
}
.rg-skill:hover {
  transform: translateY(-3px);
  box-shadow: var(--rg-elev-2);
  border-color: var(--rg-skill-color, var(--rg-primary));
}
.rg-skill__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rg-skill__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--rg-skill-tint, var(--rg-primary-50));
  color: var(--rg-skill-color, var(--rg-primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rg-skill__icon svg { width: 22px; height: 22px; }
.rg-skill__title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--rg-ink);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.rg-skill__desc {
  font-size: 14px;
  color: var(--rg-mute);
  line-height: 1.55;
  margin: 0;
}
.rg-skill__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rg-skill__chip {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--rg-ink-mid);
  background: var(--rg-surface-3);
  border: 1px solid var(--rg-border);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'SFMono-Regular', Menlo, Monaco, 'Courier New', monospace;
  letter-spacing: -0.005em;
}
.rg-skill__chip--star {
  background: var(--rg-skill-tint, var(--rg-primary-50));
  border-color: var(--rg-skill-color, var(--rg-primary));
  color: var(--rg-skill-color, var(--rg-primary));
  font-weight: 600;
}
.rg-skill__phrase {
  font-size: 13px;
  color: var(--rg-mute);
  margin: auto 0 0;
  padding: 12px 14px;
  background: var(--rg-surface-2);
  border-left: 3px solid var(--rg-skill-color, var(--rg-primary));
  border-radius: 0 8px 8px 0;
  line-height: 1.5;
  font-family: 'SFMono-Regular', Menlo, Monaco, 'Courier New', monospace;
}

.rg-skill[data-color="blue"]   { --rg-skill-color: #2563eb; --rg-skill-tint: #eff6ff; }
.rg-skill[data-color="violet"] { --rg-skill-color: #7c3aed; --rg-skill-tint: #f5f3ff; }
.rg-skill[data-color="green"]  { --rg-skill-color: #14b8a6; --rg-skill-tint: #ecfdf5; }
.rg-skill[data-color="amber"]  { --rg-skill-color: #d97706; --rg-skill-tint: #fffbeb; }
.rg-skill[data-color="rose"]   { --rg-skill-color: #e11d48; --rg-skill-tint: #fff1f2; }
.rg-skill[data-color="cyan"]   { --rg-skill-color: #0891b2; --rg-skill-tint: #ecfeff; }

@media (max-width: 980px) {
  .rg-skills { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .rg-skills { grid-template-columns: 1fr; }
}


/* 3-point concepts list above the skills grid */
.rg-key-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
}
.rg-key-points li {
  background: var(--rg-surface-2);
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius);
  padding: 18px 20px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--rg-ink-mid);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: flex-start;
}
.rg-key-points li::before {
  content: counter(rg-kp);
  counter-increment: rg-kp;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--rg-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rg-key-points {
  counter-reset: rg-kp;
}

@media (max-width: 780px) {
  .rg-key-points { grid-template-columns: 1fr; }
}


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

.rg-resources {
  background: linear-gradient(180deg, var(--rg-surface-2) 0%, #ffffff 100%);
  padding: 80px 24px;
}
.rg-resources__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.rg-resources__head {
  text-align: center;
  margin-bottom: 44px;
}
.rg-resources__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.rg-resource {
  background: #ffffff;
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-lg);
  padding: 28px 30px 28px 28px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: center;
  text-decoration: none;
  color: var(--rg-ink);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 140px;
}
.rg-resource:hover {
  border-color: var(--rg-primary);
  box-shadow: var(--rg-elev-2);
  transform: translateY(-3px);
  color: var(--rg-ink);
}
.rg-resource:hover .rg-resource__arrow {
  transform: translateX(6px);
  color: var(--rg-primary);
}
.rg-resource__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--rg-res-tint, var(--rg-primary-50));
  color: var(--rg-res-color, var(--rg-primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rg-resource__icon svg { width: 26px; height: 26px; }
.rg-resource__body { min-width: 0; }
.rg-resource__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rg-res-color, var(--rg-primary));
  margin: 0 0 4px;
}
.rg-resource__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.3;
  color: var(--rg-ink);
}
.rg-resource__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--rg-mute);
  margin: 0;
}
.rg-resource__arrow {
  font-size: 22px;
  color: var(--rg-mute-softer);
  transition: transform 0.25s ease, color 0.2s ease;
}
.rg-resource[data-color="blue"]   { --rg-res-color: #2563eb; --rg-res-tint: #eff6ff; }
.rg-resource[data-color="violet"] { --rg-res-color: #7c3aed; --rg-res-tint: #f5f3ff; }
.rg-resource[data-color="green"]  { --rg-res-color: #14b8a6; --rg-res-tint: #ecfdf5; }
.rg-resource[data-color="amber"]  { --rg-res-color: #d97706; --rg-res-tint: #fffbeb; }

@media (max-width: 720px) {
  .rg-resources { padding: 56px 20px; }
  .rg-resources__grid { grid-template-columns: 1fr; }
  .rg-resource {
    grid-template-columns: 48px 1fr auto;
    padding: 22px 22px;
    gap: 16px;
    min-height: 0;
  }
}


/* ----------------------------------------------------------
   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.
---------------------------------------------------------- */

.rg-page .tcv-free-review-split {
  margin: 0;
}

/* Scroll-margin so anchor jumps land below the sticky header */
.rg-page main > section,
.rg-page main [id] { scroll-margin-top: 80px; }

/* FAQ answer link styling (main.css only handles .text-blue) */
#faq .tcv-faq__a a,
#faq .tcv-faq__a p a {
  color: var(--rg-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
#faq .tcv-faq__a a:hover { color: var(--rg-primary-deep); }


/* ----------------------------------------------------------
   §10 EEAT (About the Author)
   Self-contained styles since /css/job-search-toolkit/index.css
   is not loaded on the guide page.
---------------------------------------------------------- */

.rg-page .about-author {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 28px 32px;
  background: #ffffff;
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-xl);
  box-shadow: var(--rg-elev-1);
}
.rg-page .about-author .author-photo {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  overflow: hidden;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .25);
}
.rg-page .about-author .author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.rg-page .about-author .author-details {
  flex: 1;
  min-width: 0;
}
.rg-page .about-author .author-details h3 {
  font-size: 13px;
  margin: 0 0 8px;
  color: var(--rg-primary);
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.rg-page .about-author .author-details p {
  color: var(--rg-ink-mid);
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  margin: 0 0 12px;
}
.rg-page .about-author .author-details .author-name {
  font-weight: 700;
  color: var(--rg-ink);
}
.rg-page .about-author .author-details a {
  color: var(--rg-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rg-page .about-author .author-cta {
  display: inline-block;
  color: var(--rg-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 14.5px;
  transition: color 0.2s ease-in-out;
}
.rg-page .about-author .author-cta:hover { color: var(--rg-primary-deep); }

@media (max-width: 640px) {
  .rg-page .about-author {
    flex-direction: column;
    text-align: center;
    padding: 24px 22px;
    gap: 18px;
  }
  .rg-page .about-author .author-photo {
    width: 84px; height: 84px;
  }
  .rg-page .about-author .author-details h3,
  .rg-page .about-author .author-details p {
    text-align: center;
  }
}
