/* IA Process candidate: page layer over the production guide system
   (home-parity, site-nav-dropdown, guides, guides-rich, hubs). Tokens only:
   #303030 ink, #3d3d3d body, #56514f / #6d6d6d muted, #643995 accent, #e3dedd rule,
   #f2eeec / #faf8f6 panels, #faf8fd / #ece6f4 band, step pastels (--gd-step-1..3),
   #BBDAFF sky, #FFFFBB yellow, --gd-ink #185FA5 for captions. */

.iap .gd-content > p, .iap .gd-content li { font-size: 15px; line-height: 1.6; }
.iap .gd-lead { font-size: 17px; }
.iap .pr-stages-inline { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 18px; }
.iap .pr-stages-inline li { counter-increment: s; margin: 0; font-size: 15px; font-weight: 700; color: #303030; }
.iap .pr-stages-inline li::before { content: counter(s); display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--gd-step-1); font-size: 13px; font-weight: 800; }
.iap .pr-stages-inline li:nth-child(3n+2)::before { background: var(--gd-step-2); }
.iap .pr-stages-inline li:nth-child(3n)::before { background: var(--gd-step-3); }

/* ---------- the journey (figure) ---------- */
.pj { margin: 26px 0 8px; padding: 20px 22px 22px; background: #fff; border: 2px solid #303030; border-radius: 10px; box-shadow: 8px 8px 0 #E0BBF5; }
.pj__entries { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 22px; padding: 12px 14px; background: #f6f2fb; border: 1.5px solid #e3d6f1; border-radius: 10px; }
.pj__entries-label { font-size: 13px; font-weight: 700; color: #56514f; margin-right: 4px; }
/* starting-point choice: a radio-style control, visibly separate from the diagram (2026-10-11) */
.pj__entry { position: relative; font: inherit; font-size: 13.5px; font-weight: 700; padding: 8px 15px 8px 34px; border: 1.5px solid #303030; border-radius: 999px; background: #fff; color: #303030; cursor: pointer; }
.pj__entry::before { content: ""; position: absolute; left: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border: 1.5px solid #303030; border-radius: 50%; background: #fff; box-sizing: border-box; }
.pj__entry:hover { box-shadow: 2px 2px 0 #E0BBF5; border-color: #643995; }
.pj__entry[aria-pressed="true"] { background: #643995; border-color: #643995; color: #fff; }
.pj__entry[aria-pressed="true"]::before { border: 4px solid #fff; background: #643995; }
.pj__entry:disabled { cursor: default; }
.pj__entry:focus-visible, .pj__stop:focus-visible { outline: 2px solid #643995; outline-offset: 3px; }
/* Keyboard focus scrolls the control into view with room for its 5px outline, clear of the sticky header. */
.iap .pj__entry, .iap .pj__stop { scroll-margin: calc(var(--sticky) + 8px) 0 8px; }

.pj__track { position: relative; padding: 34px 0 30px; }
.pj__line { position: absolute; left: 4%; right: 4%; top: 55px; height: 3px; background: #303030; border-radius: 2px; }
.pj__loops { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.pj__loops path { fill: none; stroke: #643995; stroke-width: 2; stroke-dasharray: 5 5; }
.pj__loops text { font-size: 12px; font-weight: 700; fill: #643995; }
.pj__stops { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.pj__stops > li { margin: 0; }
.pj__stop { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none; color: #303030; border-radius: 8px; padding: 0 4px 6px; }
.gd-article a.pj__stop { text-decoration: none; color: #303030; }
.pj__num { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; background: var(--gd-step-1); border: 3px solid #fff; box-shadow: 0 0 0 2px #303030; position: relative; z-index: 1; }
.pj__stops > li:nth-child(3n+2) .pj__num { background: var(--gd-step-2); }
.pj__stops > li:nth-child(3n) .pj__num { background: var(--gd-step-3); }
.pj__name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.pj__note { font-size: 12.5px; line-height: 1.4; color: #56514f; min-height: 2.8em; }
.pj__stop:hover .pj__name, .pj__stop.is-current .pj__name { color: #643995; text-decoration: underline; }
.pj__stop.is-current .pj__num { box-shadow: 0 0 0 2px #303030, 0 0 0 6px #F90473; }

.pj__panel { margin-top: 6px; padding: 16px 18px 16px; border-top: 1px solid #e3dedd; min-height: 9em; }
.pj__panel-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; }
.pj__panel-no { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gd-step-1); font-size: 13px; font-weight: 800; flex: none; }
.pj__panel-title { margin: 0; font-size: 18.2px; font-weight: 700; color: #303030; }
.pj__panel dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 14px; margin: 8px 0 10px; }
.pj__panel dt { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #643995; padding-top: 2px; }
.pj__panel dd { margin: 0; font-size: 14.5px; line-height: 1.55; color: #3d3d3d; }
.pj__panel .pj__go { font-weight: 700; }
.pj__fallback { font-size: 13px; color: #6d6d6d; margin: 10px 0 0; }

/* ---------- stage sections ---------- */
.pr-stage { margin-top: 40px; }
.pr-stage > h2 { display: flex; align-items: center; gap: 12px; }
.pr-stage__num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gd-step-1); font-size: 16px; font-weight: 800; flex: none; }
.pr-stage:nth-of-type(3n+2) .pr-stage__num { background: var(--gd-step-2); }
.pr-stage:nth-of-type(3n) .pr-stage__num { background: var(--gd-step-3); }
.pr-summary { margin: 14px 0 18px; padding: 14px 18px; background: #faf8fd; border: 1px solid #ece6f4; border-radius: 10px; }
.pr-summary__q { margin: 0 0 8px !important; font-size: 16.5px !important; font-weight: 700; color: #303030; }
.pr-summary dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.pr-summary dt { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #643995; padding-top: 2px; }
.pr-summary dd { margin: 0; font-size: 14.5px; line-height: 1.55; }
.iap .gd-content h3 { font-size: 18.2px; margin: 24px 0 8px; }

.pr-methods { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 14.5px; }
.pr-methods th, .pr-methods td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid #e3dedd; line-height: 1.5; }
.pr-methods thead th { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #643995; border-bottom: 2px solid #303030; white-space: nowrap; }
.pr-methods tbody th { font-weight: 700; color: #303030; width: 26%; }

.pr-moves { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 6px; }
.pr-moves > div { padding: 12px 16px; border: 1px solid #e3dedd; border-radius: 8px; background: #fff; }
.pr-moves h4 { margin: 0 0 6px; font-size: 14px; color: #303030; }
.pr-moves ul { margin: 0; padding-left: 1.1em; }
.pr-moves li { font-size: 14.5px; margin: 4px 0; }

/* the running example: gd-rich example frame */
.pr-example { margin: 18px 0 6px; padding: 14px 18px 16px; border: 2px solid #303030; border-radius: 8px; background: #fff; box-shadow: 6px 6px 0 #FFD1BB; }
.pr-example__label { margin: 0 0 6px !important; font-size: 12px !important; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #643995; }
.pr-example p { font-size: 14.5px !important; }
.pr-example code, .pr-id { font-family: inherit; font-size: 12.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: #f2eeec; color: #303030; white-space: nowrap; }
.pr-task { margin: 10px 0; padding: 10px 14px; border-left: 3px solid #643995; background: #faf8f6; font-style: italic; }

.iap { --sticky: 64px; }
.iap [id] { scroll-margin-top: calc(var(--sticky) + 16px); }
.pr-table-wrap { overflow-x: auto; }
.pr-small { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 12px 0; }
.pr-small th, .pr-small td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid #e3dedd; line-height: 1.5; }
.pr-small thead th { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #643995; border-bottom: 2px solid #303030; }

.pr-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.pr-next li { margin: 0; }
.pr-next a { display: block; height: 100%; padding: 14px 40px 14px 16px; border: 1px solid #e3dedd; border-radius: 8px; background: #fff; text-decoration: none; color: #303030; position: relative; }
.gd-article .pr-next a { text-decoration: none; color: #303030; }
.pr-next a::after { content: "\2192"; position: absolute; right: 14px; top: 14px; color: #643995; font-weight: 700; }
.pr-next a:hover, .pr-next a:focus-visible { border-color: #643995; }
.pr-next b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.pr-next span { display: block; font-size: 14px; line-height: 1.5; color: #56514f; }

.pr-sources { font-size: 13.5px; }
.pr-sources li { font-size: 13.5px !important; }

@media (max-width: 760px) {
  .iap .pr-stages-inline { grid-template-columns: 1fr 1fr; }
  .pj { padding: 16px 14px; }
  .pj__track { padding: 4px 0 0; }
  .pj__line, .pj__loops { display: none; }
  .pj__stops { grid-template-columns: 1fr; gap: 0; border-left: 3px solid #303030; margin-left: 18px; }
  .pj__stops > li { position: relative; }
  .pj__stop { flex-direction: row; align-items: flex-start; text-align: left; gap: 12px; padding: 8px 0 8px 0; margin-left: -21px; }
  .pj__name { font-size: 15px; }
  .pj__note { min-height: 0; }
  .pj__panel { display: none; }
  .pj__mobile-loops { display: block !important; margin: 12px 0 0; font-size: 13.5px; color: #3d3d3d; }
  .pr-summary dl, .pj__panel dl { grid-template-columns: 1fr; gap: 2px; }
  .pr-summary dt { margin-top: 6px; }
  .pr-moves { grid-template-columns: 1fr; }
  .pr-next { grid-template-columns: 1fr; }
  .pr-methods thead, .pr-small thead { display: none; }
  .pr-methods, .pr-methods tbody, .pr-methods tr, .pr-methods th, .pr-methods td,
  .pr-small, .pr-small tbody, .pr-small tr, .pr-small th, .pr-small td { display: block; width: 100%; }
  .pr-methods tr, .pr-small tr { padding: 10px 0; border-bottom: 1px solid #e3dedd; }
  .pr-methods th, .pr-methods td, .pr-small th, .pr-small td { border: 0; padding: 2px 0; }
  .pr-methods td::before, .pr-small td::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #643995; margin-top: 4px; }
}
.pj__mobile-loops { display: none; }
@media (prefers-reduced-motion: reduce) { .pj * { transition: none !important; } }
.pj__loopkey { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.pj__loopkey li { margin: 0; font-size: 13.5px; line-height: 1.5; color: #3d3d3d; padding-left: 26px; position: relative; }
.pj__loopkey li::before { content: ""; position: absolute; left: 0; top: 8px; width: 18px; border-top: 2px dashed #643995; }
.pj__loopkey b { color: #643995; }
.pr-cta { margin-top: 32px; }
@media (max-width: 760px) { .pj__loopkey { grid-template-columns: 1fr; margin-top: 12px; } }

/* G-1 presentation corrections */
.pj__hint-mobile { display: none; }
.pj__panel-no[data-stage="2"], .pj__panel-no[data-stage="5"] { background: var(--gd-step-2); }
.pj__panel-no[data-stage="3"], .pj__panel-no[data-stage="6"] { background: var(--gd-step-3); }
.pr-cta h2 { font-size: 22px; }
.pr-cta p { font-size: 15px; color: #3d3d3d; }
@media (max-width: 760px) {
  .pj__hint-desktop { display: none; }
  .pj__hint-mobile { display: inline; }
  /* the outline pill row scrolls sideways: fade its right edge so the overflow is visible */
  .gd-rich .gd-outline { position: relative; }
  .gd-rich .gd-outline::after { content: ""; position: absolute; right: 0; bottom: 8px; width: 40px; height: 34px; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,0), #fff); }
  .gd-rich .gd-outline__title::after { content: " · scroll for more"; font-weight: 400; text-transform: none; letter-spacing: 0; color: #6d6d6d; }
}
