/* =========================================================================
   Resume Templates — shared chrome for the interactive [position] resume
   template generators.

   Class prefix: rt-  (resume template)
   Used by every page under /resume-templates/<role-slug>. Per-page
   stylesheets only override colors or add role-specific accents.
   ========================================================================= */


/* ---------- Blog hero (matches /job-search-toolkit) ----------
   Mirrors the .blog-hero used by every blog post and the toolkit hub:
   navy gradient, white type, green breadcrumbs, blue author box.
   Copied from public/css/job-search-toolkit/guide-summary.css so the
   resume-template pages don't have to pull in the full blog stylesheet. */

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

/* Author Box */
.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%;
  }
}


/* ---------- Tool section + shell ---------- */

.rt-section {
  background: #f5f6f8;
  padding: 36px 24px 64px;
}

.rt-shell {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 22px;
}

@media (max-width: 1024px) {
  .rt-shell { grid-template-columns: minmax(0, 1fr); }
}


/* ============================================================
   Left rail — modern, accessible, mobile-friendly.
   Sections are <details>/<summary> for native collapse + keyboard
   nav. The rail card itself is sticky on desktop and inline on
   mobile (≤ 1024px). All transitions respect prefers-reduced-motion.
   ============================================================ */

.rt-rail {
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
  border-radius: 18px;
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 8px 24px -14px rgba(15,23,42,0.20),
    0 28px 60px -28px rgba(15,23,42,0.18);
  padding: 4px 0 0;
  align-self: start;
  position: sticky;
  top: 22px;
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  scrollbar-gutter: stable;
}

@media (max-width: 1024px) {
  .rt-rail {
    position: static;
    max-height: none;
    border-radius: 14px;
  }
}

.rt-rail::-webkit-scrollbar { width: 8px; }
.rt-rail::-webkit-scrollbar-thumb { background: #d4d8df; border-radius: 8px; }
.rt-rail::-webkit-scrollbar-thumb:hover { background: #b6bcc7; }


/* Intro card at top of rail */

.rt-rail-intro {
  padding: 18px 22px 14px;
  border-bottom: 1px solid #ecedf1;
  background: linear-gradient(135deg, #f0f6ff 0%, #fff 100%);
  border-radius: 18px 18px 0 0;
}

.rt-rail-intro__title {
  font-size: 14px;
  font-weight: 700;
  color: #0b3a82;
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}

.rt-rail-intro__desc {
  font-size: 12.5px;
  color: #4d5562;
  margin: 0;
  line-height: 1.5;
}


/* Section <details> */

.rt-rail-section {
  border-bottom: 1px solid #ecedf1;
}

.rt-rail-section:last-of-type { border-bottom: none; }


/* Section <summary> = clickable header */

.rt-rail-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  position: relative;
  transition: background 140ms ease, color 140ms ease;
  border-radius: 0;
}

.rt-rail-summary::-webkit-details-marker { display: none; }

.rt-rail-summary:hover {
  background: #f5f8fd;
}

.rt-rail-summary:focus-visible {
  outline: none;
  box-shadow: inset 3px 0 0 #1a73e8, 0 0 0 3px rgba(26,115,232,0.18);
}

.rt-rail-summary__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #eef3fb 0%, #e0ecff 100%);
  color: #1a73e8;
  flex-shrink: 0;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.rt-rail-summary__icon svg { width: 16px; height: 16px; }

.rt-rail-summary:hover .rt-rail-summary__icon {
  background: linear-gradient(135deg, #1a73e8 0%, #2b86f4 100%);
  color: #fff;
  transform: scale(1.04);
}

.rt-rail-summary__label {
  flex: 1;
  letter-spacing: -0.005em;
}

.rt-rail-summary__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #8a92a0;
  flex-shrink: 0;
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.rt-rail-summary__chevron svg { width: 14px; height: 14px; }

.rt-rail-section[open] > .rt-rail-summary .rt-rail-summary__chevron {
  transform: rotate(180deg);
  color: #1a73e8;
}


/* Section body (everything inside details after the summary) */

.rt-rail-section > *:not(summary) {
  padding-left: 22px;
  padding-right: 22px;
}

.rt-rail-section > *:last-child {
  padding-bottom: 18px;
}

.rt-rail-subtitle {
  font-size: 12px;
  color: #666c78;
  margin: 0 0 14px;
  line-height: 1.5;
}


/* Field anatomy */

.rt-field {
  margin-bottom: 14px;
}

.rt-field:last-of-type { margin-bottom: 0; }

.rt-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #25303f;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}

.rt-field-hint {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #8a92a0;
  margin-top: 4px;
  line-height: 1.4;
}

.rt-input,
.rt-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  font: inherit;
  font-size: 13.5px;
  color: #1c2330;
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
  box-sizing: border-box;
}

.rt-input::placeholder,
.rt-textarea::placeholder { color: #aab1be; }

.rt-input:hover,
.rt-textarea:hover {
  border-color: #aab1be;
  background: #fcfdff;
}

.rt-input:focus,
.rt-input:focus-visible,
.rt-textarea:focus,
.rt-textarea:focus-visible {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26,115,232,0.22);
  background: #fff;
}

.rt-textarea {
  resize: vertical;
  min-height: 64px;
  line-height: 1.5;
}

.rt-input-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}


/* Suggestion chips */

.rt-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.rt-suggestion {
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 11px;
  background: #eef3fb;
  color: #1a4f9c;
  border: 1px solid #d4e1f4;
  border-radius: 999px;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.rt-suggestion:hover {
  background: linear-gradient(135deg, #1a73e8 0%, #2b86f4 100%);
  color: #fff;
  border-color: #1a73e8;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -4px rgba(26,115,232,0.45);
}

.rt-suggestion:active {
  transform: translateY(0);
  box-shadow: none;
}

.rt-suggestion:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,115,232,0.30);
}


/* Reset button — bottom of rail. Compact, secondary action. */

.rt-rail-reset-wrap {
  padding: 12px 22px 16px;
  border-top: 1px solid #ecedf1;
  background: #fafbfd;
  border-radius: 0 0 18px 18px;
  display: flex;
  justify-content: center;
}

@media (max-width: 1024px) {
  .rt-rail-reset-wrap { border-radius: 0 0 14px 14px; }
}

.rt-rail-reset {
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  background: transparent;
  color: #8a92a0;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.rt-rail-reset svg { width: 12px; height: 12px; }

.rt-rail-reset:hover {
  color: #b25b00;
  background: #fff7e6;
  border-color: #f0c476;
}

.rt-rail-reset:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(240,196,118,0.40);
}


/* Mobile sizing — generous touch targets, more breathing room */

@media (max-width: 720px) {
  .rt-rail-intro { padding: 16px 18px 12px; }
  .rt-rail-intro__title { font-size: 15px; }
  .rt-rail-intro__desc { font-size: 13px; }

  .rt-rail-summary { padding: 14px 18px; font-size: 14px; }
  .rt-rail-summary__icon { width: 32px; height: 32px; }
  .rt-rail-summary__icon svg { width: 17px; height: 17px; }

  .rt-rail-section > *:not(summary) {
    padding-left: 18px;
    padding-right: 18px;
  }

  .rt-input,
  .rt-textarea {
    font-size: 16px;          /* prevents iOS zoom on focus */
    padding: 11px 13px;
  }

  .rt-suggestion {
    font-size: 12px;
    padding: 7px 13px;
  }

  .rt-rail-reset-wrap { padding: 10px 18px 14px; }
  .rt-rail-reset { padding: 6px 14px; font-size: 12.5px; }
}


/* Honor reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
  .rt-rail-summary,
  .rt-rail-summary__icon,
  .rt-rail-summary__chevron,
  .rt-input,
  .rt-textarea,
  .rt-suggestion,
  .rt-rail-reset {
    transition: none !important;
  }
}


/* ---------- Preview area ---------- */

.rt-preview-area {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}


/* Toolbar */

.rt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 4px;
}

.rt-toolbar__hint {
  font-size: 13px;
  color: #4d5562;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rt-toolbar__hint svg { width: 14px; height: 14px; color: #1a73e8; }

.rt-toolbar__actions {
  display: inline-flex;
  gap: 8px;
}

.rt-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  background: #fff;
  color: #25303f;
  border: 1px solid #d4d8df;
  border-radius: 10px;
  cursor: pointer;
  transition: all 120ms ease;
}

.rt-icon-btn svg { width: 14px; height: 14px; }

.rt-icon-btn:hover { border-color: #1a73e8; color: #1a73e8; }

.rt-icon-btn.is-active {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
  box-shadow: 0 4px 12px -4px rgba(26,115,232,0.5);
}

.rt-icon-btn--primary {
  background: #111418;
  color: #fff;
  border-color: #111418;
}

.rt-icon-btn--primary:hover {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
}


/* Edit banner (slides in when contenteditable is on) */

.rt-edit-banner {
  background: #fff8db;
  border: 1px solid #f1d97a;
  color: #6e5400;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 10px;
  display: none;
  align-items: center;
  gap: 8px;
}

.rt-edit-banner.is-visible { display: flex; }

.rt-edit-banner svg { width: 16px; height: 16px; flex-shrink: 0; }


/* Paper */

.rt-paper-stage {
  display: flex;
  justify-content: center;
}

.rt-paper {
  background: #fff;
  width: 100%;
  max-width: 816px;            /* US Letter at ~96dpi feel */
  min-height: 1056px;
  padding: 56px 64px;
  border-radius: 6px;
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 18px 38px -16px rgba(15,23,42,0.22);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  line-height: 1.45;
  color: #1c2330;
  box-sizing: border-box;
  position: relative;
  transition: outline 120ms ease;
  outline: 0 dashed transparent;
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .rt-paper {
    padding: 28px 24px;
    min-height: 0;
    font-size: 11px;
  }
}

.rt-paper.is-editable {
  outline: 4px dashed #1a73e8;
}


/* Resume document structure */

.rt-resume-header {
  border-bottom: 1.5px solid #1c2330;
  padding-bottom: 10px;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rt-resume-header__name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.rt-resume-header__title {
  font-size: 14px;
  font-weight: 600;
  color: #1a73e8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rt-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}

.rt-resume-header__contact {
  font-size: 11px;
  color: #4d5562;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}

.rt-resume-header__contact .rt-sep { color: #aab1be; }


.rt-resume-section {
  margin-bottom: 14px;
}

.rt-resume-section__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1c2330;
  border-bottom: 1px solid #c5cad3;
  padding-bottom: 2px;
  margin: 0 0 8px;
}

.rt-resume-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rt-resume-bullets li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 4px;
}

.rt-resume-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #1c2330;
}

.rt-resume-skills {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  column-gap: 10px;
  row-gap: 4px;
  font-size: 11px;
}

.rt-resume-skills dt { font-weight: 700; }

.rt-resume-skills dd { margin: 0; }


.rt-resume-edu,
.rt-resume-job {
  margin-bottom: 10px;
}

.rt-resume-job:last-child { margin-bottom: 0; }

.rt-resume-edu__head,
.rt-resume-job__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.rt-resume-edu__org,
.rt-resume-job__org {
  font-weight: 700;
  font-size: 12px;
}

.rt-resume-edu__degree,
.rt-resume-job__title {
  font-weight: 600;
  color: #1a73e8;
  margin-left: 6px;
}

.rt-resume-job__meta,
.rt-resume-edu__meta {
  font-size: 11px;
  color: #4d5562;
}


/* Variables — every dynamic substring is wrapped in <span class="rt-var"> */

.rt-var {
  background: linear-gradient(180deg, rgba(26,115,232,0.06) 0%, rgba(26,115,232,0.14) 100%);
  border-radius: 3px;
  padding: 0 2px;
  transition: background 120ms ease;
}

.rt-paper.is-editable .rt-var {
  background: rgba(26,115,232,0.22);
  outline: 1px dashed rgba(26,115,232,0.45);
}

.rt-var.is-empty {
  color: #aab1be;
  font-style: italic;
}

.rt-var.is-bold { font-weight: 700; }


/* ---------- Export bar ---------- */

.rt-export {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ecedf1;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}

.rt-export__copy {
  font-size: 13px;
  color: #4d5562;
  margin: 0;
  flex: 1 1 240px;
}

.rt-export__copy strong { color: #1c2330; }

.rt-export__actions {
  display: inline-flex;
  gap: 8px;
}


/* ---------- Content sections (How it works, FAQ, Related, etc.) ---------- */

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

.rt-content--alt { background: #f5f6f8; max-width: none; }

.rt-content--alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

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

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

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

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


/* ---------- Intro section — editorial two-column ---------- */

.rt-intro {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px 56px;
}

.rt-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}

@media (max-width: 820px) {
  .rt-intro { padding: 48px 24px 32px; }
  .rt-intro__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.rt-intro__head { position: relative; }

@media (min-width: 1024px) {
  .rt-intro__head {
    position: sticky;
    top: 24px;
  }
}

.rt-intro__eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1a73e8;
  margin: 0 0 16px;
}

.rt-intro__title {
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: #111418;
  margin: 0;
}

.rt-intro__body {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #3a3f4a;
}

.rt-intro__body p {
  margin: 0 0 18px;
}

.rt-intro__body p:last-child { margin-bottom: 0; }

.rt-intro__body a {
  color: #1a73e8;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(26,115,232,0.35);
  transition: border-color 120ms ease, color 120ms ease;
}

.rt-intro__body a:hover {
  color: #0b3a82;
  border-bottom-color: #0b3a82;
}


/* Prose (How-it-works lead paragraphs) */

.rt-prose {
  max-width: 760px;
  margin: 0 auto 32px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

.rt-prose p {
  margin: 0 0 1rem;
}

.rt-prose p:last-child { margin-bottom: 0; }

.rt-prose a { color: #1a73e8; }


/* ---------- 5-Level System visual (mirrors role-landing pages) ----------
   Same component used on /<role>-resume-writing-service pages so candidates
   see the same color progression on free template pages and paid-service
   pages. CSS literal values used (no shared CSS variables) so the template
   pages don't depend on role-landing.css.
   ------------------------------------------------------------------- */

.rt-levels {
  list-style: none;
  margin: 0 auto 36px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 1040px;
  position: relative;
}

.rt-level {
  position: relative;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rt-level:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15,23,42,0.08);
}

.rt-level__num {
  font-family: 'SFMono-Regular', Menlo, Monaco, 'Courier New', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: #64748b;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.rt-level__name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.rt-level__desc {
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
}

.rt-level--1 { border-color: #CBD5E1; background: #F8FAFC; }
.rt-level--1 .rt-level__num { background: #64748B; }

.rt-level--2 { border-color: #BAE6FD; background: #F0F9FF; }
.rt-level--2 .rt-level__num { background: #0EA5E9; }

.rt-level--3 { border-color: #A5F3FC; background: #ECFEFF; }
.rt-level--3 .rt-level__num { background: #06B6D4; }

.rt-level--4 { border-color: #99F6E4; background: #F0FDFA; }
.rt-level--4 .rt-level__num { background: #14B8A6; }

.rt-level--5 {
  border-color: #6EE7B7;
  background: #ECFDF5;
  box-shadow: 0 4px 14px rgba(16,185,129,0.14);
}
.rt-level--5 .rt-level__num { background: #10B981; }
.rt-level--5 .rt-level__name { color: #065F46; }

@media (max-width: 720px) {
  .rt-levels {
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 480px;
  }
  .rt-level {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }
  .rt-level__num { margin-bottom: 0; flex-shrink: 0; }
  .rt-level__name { font-size: 15px; flex-shrink: 0; }
  .rt-level__desc { font-size: 13px; margin-left: auto; text-align: right; }
}


/* ---------- How-it-works steps — bold numbered cards with color progression ----------
   Three cards in a row, each card carries:
   - a top accent bar in the step's color (sky → teal → emerald, matching .rt-levels)
   - a big background watermark step number (top-right corner)
   - a circular icon badge in the step's color
   - a title + descriptive line
   On mobile, stacks to single column. */

.rt-steps {
  list-style: none;
  padding: 0;
  margin: 36px auto 0;
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 800px) {
  .rt-steps { grid-template-columns: 1fr; }
}

.rt-step {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ecedf1;
  border-radius: 16px;
  padding: 28px 26px 26px;
  font-family: "Inter", sans-serif;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.rt-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--rt-step-color, #1a73e8);
}

.rt-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -16px rgba(15,23,42,0.18);
  border-color: var(--rt-step-color, #1a73e8);
}

/* Big watermark step number, decorative */
.rt-step__num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: 'SFMono-Regular', Menlo, Monaco, 'Courier New', monospace;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--rt-step-color, #1a73e8);
  opacity: 0.14;
  user-select: none;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

.rt-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--rt-step-color, #1a73e8);
  color: #fff;
  box-shadow: 0 6px 18px -6px var(--rt-step-shadow, rgba(26,115,232,0.6));
  margin-bottom: 18px;
}

.rt-step__icon svg { width: 24px; height: 24px; }

.rt-step__title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.rt-step__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #4d5562;
  margin: 0;
  max-width: 32ch;
}

/* Per-step color (sky / teal / emerald — matches the rt-levels progression
   so the page reads as one coherent journey from "5 levels" to "3 steps") */
.rt-step--1 {
  --rt-step-color: #0EA5E9;
  --rt-step-shadow: rgba(14,165,233,0.55);
}

.rt-step--2 {
  --rt-step-color: #14B8A6;
  --rt-step-shadow: rgba(20,184,166,0.55);
}

.rt-step--3 {
  --rt-step-color: #10B981;
  --rt-step-shadow: rgba(16,185,129,0.55);
}


/* FAQ — uses the homepage's #faq.tcv-faq pattern (defined in main.css).
   Inner container's vertical margin is reset since .rt-content--alt
   already supplies section padding around it. */

.rt-content--alt #faq.tcv-faq {
  margin-top: 0;
  margin-bottom: 0;
}


/* ---------- Related templates (doc-card grid) ----------
   Each card is shaped like a document with a folded top-right corner and
   a role-colored icon badge. Per-role accent color is set via the inline
   `--rt-doc-color` CSS custom property on each card. */

.rt-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

@media (max-width: 720px) {
  .rt-related {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }
}

.rt-doc-card {
  --rt-doc-color: #1a73e8;
  --rt-doc-tint: rgba(26,115,232,0.10);
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  padding: 22px 20px 20px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ecedf1;
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 8px 22px -14px rgba(15,23,42,0.18);
  overflow: hidden;
  transition: transform 240ms cubic-bezier(0.4,0,0.2,1), box-shadow 240ms ease, border-color 240ms ease;
  min-height: 220px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.rt-doc-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 8px rgba(15,23,42,0.06),
    0 24px 44px -18px rgba(15,23,42,0.32);
  border-color: var(--rt-doc-color);
}

.rt-doc-card:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--rt-doc-tint),
    0 1px 2px rgba(15,23,42,0.04),
    0 8px 22px -14px rgba(15,23,42,0.18);
  border-color: var(--rt-doc-color);
}

/* Folded top-right corner — paper-fold visual */
.rt-doc-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(225deg, #f0f3f9 50%, transparent 50.1%);
  z-index: 1;
}

.rt-doc-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(
    225deg,
    transparent calc(50% - 0.6px),
    rgba(15,23,42,0.10) 50%,
    transparent calc(50% + 0.6px)
  );
  z-index: 2;
  pointer-events: none;
}

/* Icon badge (role-colored) */
.rt-doc-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--rt-doc-tint);
  color: var(--rt-doc-color);
  margin-bottom: 14px;
  flex-shrink: 0;
  transition: background 240ms ease, transform 240ms ease;
}

.rt-doc-card__icon svg { width: 22px; height: 22px; }

.rt-doc-card:hover .rt-doc-card__icon {
  background: var(--rt-doc-color);
  color: #fff;
  transform: scale(1.04);
}

/* Faux document text lines (subtle, paper-like) */
.rt-doc-card__lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  pointer-events: none;
}

.rt-doc-card__lines span {
  height: 4px;
  background: linear-gradient(90deg, var(--rt-doc-color) 0%, transparent 100%);
  opacity: 0.18;
  border-radius: 3px;
}

.rt-doc-card__lines span:nth-child(1) { width: 78%; }
.rt-doc-card__lines span:nth-child(2) { width: 60%; }
.rt-doc-card__lines span:nth-child(3) { width: 70%; }

.rt-doc-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.rt-doc-card__desc {
  font-size: 12.5px;
  color: #4d5562;
  line-height: 1.5;
  margin: 0 0 14px;
  flex: 1;
}

.rt-doc-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.rt-doc-card__cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--rt-doc-color);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rt-doc-card__cta svg {
  width: 12px;
  height: 12px;
  transition: transform 220ms ease;
}

.rt-doc-card:hover .rt-doc-card__cta svg {
  transform: translateX(3px);
}

.rt-doc-card__soon {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #eef0f4;
  color: #6b7280;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Coming-soon state */
.rt-doc-card.is-soon {
  cursor: not-allowed;
}

.rt-doc-card.is-soon:hover {
  transform: none;
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 8px 22px -14px rgba(15,23,42,0.18);
  border-color: #ecedf1;
}

.rt-doc-card.is-soon:hover .rt-doc-card__icon {
  background: var(--rt-doc-tint);
  color: var(--rt-doc-color);
  transform: none;
}

.rt-doc-card.is-soon:hover .rt-doc-card__cta svg {
  transform: none;
}

.rt-doc-card.is-soon .rt-doc-card__cta {
  color: #94a3b8;
}

/* "See all templates" variant — subtler card with dashed border */
.rt-doc-card--all {
  --rt-doc-color: #1a73e8;
  --rt-doc-tint: rgba(26,115,232,0.10);
  background: linear-gradient(135deg, #f4f7fc 0%, #fff 100%);
  border-style: dashed;
  border-color: #b8d4fa;
}

.rt-doc-card--all:hover {
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .rt-doc-card,
  .rt-doc-card__icon,
  .rt-doc-card__cta svg {
    transition: none !important;
  }
  .rt-doc-card:hover { transform: none; }
}


/* ---------- EEAT block (page-specific "Why trust this template") ---------- */

.rt-eeat {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 32px;
}

.rt-eeat__card {
  background: #fff;
  border: 1px solid #ecedf1;
  border-radius: 18px;
  padding: 36px 32px 32px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 8px 24px -16px rgba(15,23,42,0.18);
  text-align: center;
}

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

.rt-eeat__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.rt-eeat__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(90deg, #3B82F6 0%, #2563EB 100%);
  box-shadow: 0 6px 20px rgba(37,99,235,0.20);
  flex-shrink: 0;
}

.rt-eeat__photo img { width: 100%; height: 100%; object-fit: cover; }

.rt-eeat__author-info {
  text-align: left;
  font-size: 13px;
  color: #4d5562;
  line-height: 1.4;
}

.rt-eeat__author-name {
  font-size: 16px;
  font-weight: 700;
  color: #1c2330;
  margin: 0 0 2px;
}

.rt-eeat__author-role { margin: 0; }

.rt-eeat__lede {
  font-size: 15px;
  line-height: 1.6;
  color: #25303f;
  max-width: 640px;
  margin: 0 auto 22px;
}

.rt-eeat__pillars {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  text-align: left;
}

@media (min-width: 720px) {
  .rt-eeat__pillars { grid-template-columns: repeat(3, 1fr); }
}

.rt-eeat__pillar {
  background: #f5f8fd;
  border: 1px solid #d4e1f4;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #25303f;
}

.rt-eeat__pillar-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a73e8;
  margin-bottom: 6px;
}

.rt-eeat__pillar strong { color: #1c2330; }

.rt-eeat__cta {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  color: #1a73e8;
  text-decoration: underline;
  text-underline-offset: 5px;
  transition: color 120ms ease;
}

.rt-eeat__cta:hover { color: #23ce6b; }


/* ---------- Role Profile Bar ----------
   Fixed at the bottom of the viewport, hidden by default.
   Slides up when the user hovers a bullet on the most recent role; the
   matching .rt-profile-area chip lights up. Bullets in the most recent
   role get .is-highlighted while their corresponding chip is active.
   ------------------------------------------------------------------- */

.rt-profile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid #d4dbe6;
  box-shadow: 0 -10px 32px -14px rgba(15,23,42,0.22);
  padding: 14px 24px;
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 240ms ease;
  font-family: "Inter", sans-serif;
}

.rt-profile-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.rt-profile-bar__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.rt-profile-bar__eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1a73e8;
  margin: 0 0 4px;
}

.rt-profile-bar__title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.rt-profile-bar__areas {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rt-profile-area {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 11px;
  background: #f5f8fd;
  border: 1px solid #d4e1f4;
  border-radius: 999px;
  color: #4d5562;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.rt-profile-area.is-active {
  background: linear-gradient(135deg, #0EA5E9 0%, #1a73e8 100%);
  color: #fff;
  border-color: #1a73e8;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -4px rgba(26,115,232,0.55);
}

@media (max-width: 1024px) {
  .rt-profile-bar { padding: 12px 16px; }
  .rt-profile-bar__inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .rt-profile-bar__title { font-size: 13px; }
  .rt-profile-area { font-size: 11px; padding: 5px 9px; }
}


/* Bullet hover highlight — only the most recent role's bullets carry
   data-profile-area; the .is-highlighted class is added by JS while the
   user is hovering over (or has just hovered) the bullet. */

.rt-resume-bullets > li[data-profile-area] {
  transition: background 180ms ease, padding 180ms ease;
  padding-right: 4px;
  border-radius: 4px;
}

.rt-resume-bullets > li[data-profile-area].is-highlighted {
  background: linear-gradient(90deg, rgba(26,115,232,0.10) 0%, rgba(26,115,232,0.02) 80%, transparent 100%);
}


/* Disclaimer */

.rt-disclaimer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  font-size: 12px;
  color: #8a92a0;
  text-align: center;
  line-height: 1.5;
}


/* ---------- Print: hide chrome, only print the paper ---------- */

@media print {
  body { background: #fff !important; }

  #header,
  .blog-hero,
  .rt-rail,
  .rt-toolbar,
  .rt-edit-banner,
  .rt-export,
  .rt-intro,
  .rt-content,
  .rt-eeat,
  .rt-profile-bar,
  .rt-disclaimer,
  .tcv-footer,
  .cookies-banner,
  .cookie-banner {
    display: none !important;
  }

  .rt-section { background: #fff !important; padding: 0 !important; }

  .rt-shell { display: block !important; }

  .rt-preview-area { gap: 0 !important; }

  .rt-paper {
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 18mm 16mm !important;
    min-height: 0 !important;
    max-width: none !important;
    outline: none !important;
  }

  .rt-var {
    background: transparent !important;
    outline: none !important;
    padding: 0 !important;
  }

  .rt-var.is-empty { color: #1c2330 !important; font-style: normal !important; }
}
