/* =========================================================================
   Resume Guides — HUB page only (/resume-guides)

   Class prefix: rgh-  (resume-guides-hub)
   This stylesheet is a focused copy of /css/resume-templates/resume-template.css
   limited to the parts needed for the hub page (blog hero + content section +
   family tree). Renamed from .rt-* to .rgh-* so it doesn't collide with
   resume-template.css or resume-guide.css (which serves individual guide
   pages). Styling is intentionally identical to /resume-templates so the two
   hubs look and feel the same.
   ========================================================================= */


/* ---------- Blog hero ----------
   Navy gradient + white type + green breadcrumbs + blue author box.
   Same as the .blog-hero used on /resume-templates and /job-search-toolkit. */

.blog-hero {
  display: block;
  background: linear-gradient(90deg, #172554 0%, #1E3A8A 100%);
  color: #fff;
  font-size: 18px;
  padding-top: 3rem;
  padding-bottom: 3rem;
  position: relative;
  width: 100%;
}

.blog-hero h1 {
  color: #fff;
  text-align: center;
  margin: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.blog-hero p,
.blog-hero li {
  color: #fff;
}

.blog-hero .hero-subtitle {
  text-align: center;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  max-width: 640px;
  margin: -1rem auto 0;
  color: rgba(255,255,255,0.88);
  font-weight: 400;
}

.blog-hero .blog-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 50%;
  margin: auto;
}

.blog-hero .breadcrumbs {
  color: #23ce6b;
  padding: 10px 20px;
  margin: 0;
  border-radius: 8px;
  font-size: 14px;
}

.blog-hero .breadcrumbs a {
  color: #23ce6b;
  text-decoration: none;
  border-bottom: 1px solid rgba(35,206,107,0.4);
}

.blog-hero .breadcrumbs a:hover { border-bottom-color: #23ce6b; }

.blog-hero .author-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
}

.blog-hero .author-box .author-img-container {
  border-radius: 100%;
  background: linear-gradient(90deg, #3B82F6 0%, #2563EB 100%);
  overflow: hidden;
  height: 70px;
  width: 70px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, .20);
}

.blog-hero .author-box .author-img-container img {
  height: 70px;
  width: 70px;
  position: relative;
}

.blog-hero .author-box .author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.blog-hero .author-box .author-info p {
  color: #fff;
  font-size: 13px;
  margin-bottom: 0;
}

.blog-hero .author-box .author-info p.author-name {
  font-weight: 700;
  color: #3B82F6;
}

.blog-hero .article-dates p {
  font-size: 12px;
  margin: 0;
}

@media (max-width: 768px) {
  .blog-hero .blog-hero-content { width: 90%; }
}


/* ---------- Hero with side CTA (.rt-hero--with-cta) ----------
   Two-column hero variant: article chrome on the left in .rt-hero__main,
   white .fr-card free-resume-review card on the right in .rt-hero__cta.
   Stacks back to a single column at <960px.

   Opt-in via the `.rt-hero--with-cta` marker class on .blog-hero. Pages
   without the marker fall back to the centered single-column .blog-hero
   rules above.

   This is the resume-guides-hub copy of the same hero-CTA block used on
   the resume-template and resume-skills pages (each page type owns its
   hero rules in its own stylesheet). */

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

.blog-hero.rt-hero--with-cta .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;
}

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

.blog-hero.rt-hero--with-cta 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;
}

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

.blog-hero.rt-hero--with-cta .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;
}

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

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

/* CTA wrapper: holds the white .fr-card in the right column */
.rt-hero__cta {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.rt-hero__cta .review-upload-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0;
}
.rt-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);
}

/* `.blog-hero p { color:#fff }` (above) would white out the text inside
   the .fr-card. Restore the card's own colors. */
.blog-hero.rt-hero--with-cta .fr-card .fr-headline { color: #0f172a; }
.blog-hero.rt-hero--with-cta .fr-card .fr-sub,
.blog-hero.rt-hero--with-cta .fr-card .fr-note { color: #6b7280; }
.blog-hero.rt-hero--with-cta .fr-card .fr-sub .text-underline {
  color: #23ce6b;
  text-decoration-color: #23ce6b;
}

/* Deeplink sits below the .fr-card on the dark hero background */
.blog-hero.rt-hero--with-cta .fr-deeplink {
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}
.blog-hero.rt-hero--with-cta .fr-deeplink a { color: #93c5fd; }
.blog-hero.rt-hero--with-cta .fr-deeplink a:hover { color: #bfdbfe; }

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

@media (max-width: 560px) {
  .blog-hero.rt-hero--with-cta h1 {
    font-size: 26px;
    line-height: 1.18;
  }
  .blog-hero.rt-hero--with-cta .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. */
  .blog-hero.rt-hero--with-cta .fr-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .blog-hero.rt-hero--with-cta .review-upload-wrap {
    width: 100%;
    max-width: 100%;
  }
}


/* ---------- Content section wrapping the family tree ---------- */

.rgh-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;
}

.rgh-content__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.rgh-content__eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1a73e8;
  margin: 0 0 8px;
}

.rgh-content__head h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.rgh-content__head p {
  font-size: 15px;
  color: #4d5562;
  line-height: 1.55;
  margin: 0;
}


/* ---------- Family tree (.rgh-fams) ---------- */

.rgh-fams {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  margin-top: 16px;
}

.rgh-fam {
  display: flex;
  flex-direction: column;
  border: 0;
  background: transparent;
  padding: 0;
}

.rgh-fam[data-color="blue"]    { --rf: #2563EB; --rf-card: rgba(37,99,235,0.05);  --rf-link: rgba(37,99,235,0.10);  --rf-link-hover: rgba(37,99,235,0.18); }
.rgh-fam[data-color="green"]   { --rf: #16A34A; --rf-card: rgba(22,163,74,0.05);  --rf-link: rgba(22,163,74,0.10);  --rf-link-hover: rgba(22,163,74,0.18); }
.rgh-fam[data-color="yellow"]  { --rf: #CA8A04; --rf-card: rgba(202,138,4,0.05);  --rf-link: rgba(202,138,4,0.10);  --rf-link-hover: rgba(202,138,4,0.18); }
.rgh-fam[data-color="purple"]  { --rf: #8B5CF6; --rf-card: rgba(139,92,246,0.05); --rf-link: rgba(139,92,246,0.10); --rf-link-hover: rgba(139,92,246,0.18); }
.rgh-fam[data-color="orange"]  { --rf: #EA580C; --rf-card: rgba(234,88,12,0.05);  --rf-link: rgba(234,88,12,0.10);  --rf-link-hover: rgba(234,88,12,0.18); }
.rgh-fam[data-color="red"]     { --rf: #DC2626; --rf-card: rgba(220,38,38,0.05);  --rf-link: rgba(220,38,38,0.10);  --rf-link-hover: rgba(220,38,38,0.18); }
.rgh-fam[data-color="teal"]    { --rf: #0D9488; --rf-card: rgba(13,148,136,0.05); --rf-link: rgba(13,148,136,0.10); --rf-link-hover: rgba(13,148,136,0.18); }
.rgh-fam[data-color="slate"]   { --rf: #475569; --rf-card: rgba(71,85,105,0.05);  --rf-link: rgba(71,85,105,0.10);  --rf-link-hover: rgba(71,85,105,0.18); }
.rgh-fam[data-color="stone"]   { --rf: #78716C; --rf-card: rgba(120,113,108,0.05);--rf-link: rgba(120,113,108,0.10);--rf-link-hover: rgba(120,113,108,0.18); }
.rgh-fam[data-color="emerald"] { --rf: #059669; --rf-card: rgba(5,150,105,0.05);  --rf-link: rgba(5,150,105,0.10);  --rf-link-hover: rgba(5,150,105,0.18); }
.rgh-fam[data-color="indigo"]  { --rf: #4F46E5; --rf-card: rgba(79,70,229,0.05);  --rf-link: rgba(79,70,229,0.10);  --rf-link-hover: rgba(79,70,229,0.18); }
.rgh-fam[data-color="amber"]   { --rf: #D97706; --rf-card: rgba(217,119,6,0.05);  --rf-link: rgba(217,119,6,0.10);  --rf-link-hover: rgba(217,119,6,0.18); }
.rgh-fam[data-color="rose"]    { --rf: #E11D48; --rf-card: rgba(225,29,72,0.05);  --rf-link: rgba(225,29,72,0.10);  --rf-link-hover: rgba(225,29,72,0.18); }
.rgh-fam[data-color="pink"]    { --rf: #DB2777; --rf-card: rgba(219,39,119,0.05); --rf-link: rgba(219,39,119,0.10); --rf-link-hover: rgba(219,39,119,0.18); }

.rgh-fam__head {
  list-style: none;
  cursor: default;
  padding: 0;
  display: block;
  user-select: none;
}
.rgh-fam__head::-webkit-details-marker { display: none; }

.rgh-fam__name {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--rf, #1a73e8);
}

.rgh-fam__name::after {
  content: '';
  display: block;
  width: 28px;
  height: 2.5px;
  background: var(--rf, #1a73e8);
  border-radius: 2px;
  margin-top: 6px;
}

.rgh-fam__count {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.01em;
}

.rgh-fam__chev {
  width: 12px;
  height: 12px;
  color: var(--rf, #6b7280);
  display: none;
  transition: transform 0.18s ease;
}

.rgh-fam[open] .rgh-fam__chev { transform: rotate(180deg); }

.rgh-fam__body {
  padding: 0;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rgh-fam-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  background: var(--rf-link, rgba(37,99,235,0.10));
  color: #1c2330;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
}

.rgh-fam-card:hover {
  background: var(--rf-link-hover, rgba(37,99,235,0.18));
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.rgh-fam-card__icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--rf, #1a73e8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rgh-fam-card__icon svg { width: 15px; height: 15px; }

.rgh-fam-card__title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Coming-soon: lighter tint, muted text, italic "Soon" badge on the right */
.rgh-fam-card.is-soon {
  background: var(--rf-card, rgba(37,99,235,0.05));
  color: #6b7280;
  pointer-events: none;
}

.rgh-fam-card.is-soon .rgh-fam-card__icon {
  color: var(--rf, #9ca3af);
  opacity: 0.55;
}

.rgh-fam-card.is-soon::after {
  content: 'Soon';
  font-size: 10px;
  font-weight: 500;
  font-style: italic;
  color: #9ca3af;
  margin-left: auto;
  padding-left: 6px;
  letter-spacing: 0.02em;
}

/* Current-page (full-tone, used on individual guide pages, not this hub) */
.rgh-fam-card.is-current {
  background: var(--rf, #1a73e8);
  color: #fff;
  cursor: default;
  pointer-events: none;
}

.rgh-fam-card.is-current .rgh-fam-card__icon { color: #fff; }

.rgh-fam-card.is-current::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  margin-left: auto;
  flex-shrink: 0;
}

/* Tablet: 3 columns */
@media (max-width: 1023px) {
  .rgh-fams { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* Mobile: 1 column, summary becomes clickable */
@media (max-width: 720px) {
  .rgh-fams { grid-template-columns: 1fr; gap: 18px; }
  .rgh-fam__head {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .rgh-fam__name { flex: 1; }
  .rgh-fam__name::after { display: none; }
  .rgh-fam__count { margin-top: 0; }
  .rgh-fam__chev { display: inline-block; flex-shrink: 0; }
  .rgh-fam__body { margin-top: 10px; }
}

/* Desktop force-open: <details> body always shown regardless of state */
@media (min-width: 721px) {
  .rgh-fam .rgh-fam__body { display: flex !important; }
}
