.role-page .role-hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  padding-block: var(--section-space);
}

.role-page .role-hero h1 {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: var(--public-heading-1-size);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: .98;
}

.role-page .role-hero-copy {
  max-width: 780px;
  margin: 20px 0 0;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.58;
}

/* The two conversations use a surface change instead of a horizontal divider. */
.role-page .role-conversation-section { --bubble: var(--raised); background: var(--sunken); }
.role-page .role-conversation-alt { --bubble: var(--sunken); background: var(--page); }
.role-page .role-conversation-wrap { display: block; padding-block: var(--section-space); }
.role-page .role-conversation-intro { max-width: 680px; margin-bottom: 24px; }
.role-page .role-conversation-intro h2,
.role-page .role-related h2,
.role-page .role-section-heading h2 { margin: 0; color: var(--ink); font-size: var(--public-heading-2-size); font-weight: 700; letter-spacing: -.04em; line-height: 1.04; }
.role-page .role-conversation-intro p,
.role-page .role-related > p { max-width: 450px; margin: 16px 0 0; color: var(--body); font-size: 1rem; line-height: 1.62; }
.role-page .role-conversation-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.role-page .role-conversation-points li { padding: 9px 12px; border-radius: 999px; background: color-mix(in srgb, var(--raised) 72%, transparent); font-size: 14px; line-height: 1.4; }
.role-page .role-conversation { display: grid; gap: 12px; align-self: start; }
.role-page .role-message { width: min(92%, 650px); margin: 0; padding: 16px 20px 20px; border-radius: 18px; font-size: 16px; font-weight: 500; line-height: 1.5; }
.role-page .role-message strong { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 750; letter-spacing: -.01em; }
.role-page .role-message-request { justify-self: end; border: 1px solid var(--line); background: var(--bubble); color: var(--ink); }
.role-page .role-message-request strong { color: var(--action); }
.role-page .role-message-response { justify-self: start; border: 1px solid color-mix(in srgb, var(--highlight) 58%, transparent); border-radius: 18px; background: var(--band); color: var(--on-band); }
.role-page .role-message-response strong { color: var(--highlight); }

/* A prompt to copy is not a chat bubble: the closing section keeps its element and reads as a
   left-ruled starter block. */
.role-page .role-conversation-section[aria-labelledby$="-first-request"] .role-message-request { width: min(100%, 780px); justify-self: start; border: 1px solid color-mix(in srgb, var(--highlight) 68%, var(--line)); border-radius: 18px; background: var(--sunken); }

/* --action is 2.26:1 on this band. #adc0ff clears 3:1 on it in both themes, per WCAG 2.2
   SC 1.4.11 and 2.4.11. The hex is written out because the ring check in
   scripts/test/website-content.test.mjs recomputes both ratios from this literal value. */
.role-page .role-message-response,
.role-page .role-related { --focus-ring: #adc0ff; }
.role-page .role-related { padding-block: var(--section-space); background: var(--band); color: var(--on-band); }
.role-page .role-related h2 { color: var(--on-band); }
.role-page .role-related > p { color: var(--on-band-muted); }
.role-page .role-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.role-page .role-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border-radius: 999px; background: var(--on-band-line); color: var(--on-band); font-size: 15px; font-weight: 700; text-decoration: none; }
.role-page .role-links a span { color: var(--highlight); font-size: 18px; font-weight: 650; line-height: 1; }
.role-page .role-links a:hover { color: var(--highlight); }

.role-page .role-week,
.role-page .role-faq { padding-block: var(--section-space); }
.role-page .role-section-heading { display: block; }
.role-page .role-section-heading > p { max-width: 720px; margin: 16px 0 0; color: var(--body); font-size: 1rem; line-height: 1.62; }
.role-page .role-process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 36px 0 0; padding: 0; list-style: none; }
.role-page .role-process li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); box-shadow: var(--shadow-card); }
.role-page .role-process strong { color: var(--action); font-size: 14px; font-weight: 750; letter-spacing: -.01em; }
.role-page .role-process p { max-width: 420px; margin: 0; color: var(--ink); font-size: 17px; font-weight: 650; letter-spacing: -.02em; line-height: 1.48; }
.role-page .role-task-section { padding-block: var(--section-space); background: var(--sunken); }
.role-page .role-task-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin: 36px 0 0; }
.role-page .role-task-groups h3 { margin: 0; color: var(--ink); font-size: var(--public-heading-3-size); font-weight: 700; letter-spacing: -.035em; line-height: 1.16; }
.role-page .role-task-list { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.role-page .role-task-list li { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--raised); }
.role-page .role-task-list h4 { margin: 0; color: var(--ink); font-size: var(--public-heading-4-size); font-weight: 750; letter-spacing: -.032em; line-height: 1.22; }
.role-page .role-task-list p { max-width: 470px; margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.58; }
.role-page .role-task-list small { display: block; max-width: 470px; margin-top: 12px; color: var(--ink); font-size: 13px; font-weight: 650; line-height: 1.48; }
.role-page .role-task-list small span { color: var(--action); font-weight: 750; }
.role-page .role-faq-list { display: grid; gap: 12px; margin: 36px 0 0; }
.role-page .role-faq details { padding-inline: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--raised); }
.role-page .role-faq details p { max-width: 780px; margin: -2px 0 24px; color: var(--body); font-size: 1rem; line-height: 1.62; }

@media (max-width: 1240px) {
  .role-page .role-hero-copy,
  .role-page .role-conversation-intro,
  .role-page .role-conversation-intro p,
  .role-page .role-related > p,
  .role-page .role-section-heading > p,
  .role-page .role-faq details p { max-width: none; }
}

@media (max-width: 920px) {
  .role-page .role-hero,
  .role-page .role-conversation-wrap,
  .role-page .role-section-heading,
  .role-page .role-process,
  .role-page .role-task-groups { grid-template-columns: 1fr; gap: 28px; }
  .role-page .role-conversation-intro { margin-bottom: 0; }
  .role-page .role-process p,
  .role-page .role-task-list p,
  .role-page .role-task-list small,
  .role-page .role-faq details p { max-width: none; }
  .role-page .role-conversation-points { margin-top: 16px; }
  .role-page .role-process { gap: 12px; }
  .role-page .role-section-heading > p { margin: 0; }
  .role-page .role-message { font-size: 17px; }
}

@media (max-width: 600px) {
  .role-page .role-hero .hero-actions { display: flex; width: auto; }
  .role-page .role-hero .hero-actions .button { width: auto; }
  .role-page .role-conversation-wrap { gap: 24px; }
  .role-page .role-faq-list,
  .role-page .role-task-groups { margin-top: 28px; }
  .role-page .role-conversation { gap: 8px; }
  .role-page .role-message { width: 96%; padding: 12px 16px; font-size: 15px; line-height: 1.42; }
  .role-page .role-message strong { margin-bottom: 8px; font-size: 12px; }
  .role-page .role-message-request { justify-self: end; }
  .role-page .role-message-response { width: 90%; justify-self: start; }
  .role-page .role-process li { grid-template-columns: 1fr; gap: 8px; }
  .role-page .role-links { display: grid; }
}

@media (prefers-color-scheme: dark) {
  .role-page .role-message-response { background: #4d6696; }
}
