/* Cybersecurity Program Journey (/grc-world-map). Loads after home.css. */
.grc-journey { --grc-governance: #16a34a; --grc-governance-soft: #dcfce7; --grc-risk: #2563eb; --grc-risk-soft: #dbeafe; --grc-compliance: #7c3aed; --grc-compliance-soft: #ede9fe; --grc-ink: #171440; --grc-panel-border: #e6e4f3; }
.grc-journey h1 { margin-bottom: 8px; font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -.8px; }
.grc-journey .collection-intro { margin: 0; max-width: 720px; }
.grc-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 22px; }
.grc-quote { margin: 4px 0 0; max-width: 360px; flex-shrink: 0; }
.grc-quote blockquote { margin: 0; }
.grc-quote p { margin: 0; color: var(--purple); font-style: italic; font-size: 15px; line-height: 1.55; }
.grc-quote figcaption { margin-top: 6px; color: var(--grc-ink); font-weight: 700; font-style: italic; font-size: 13px; }
.grc-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 17px; align-items: stretch; }
.grc-steps-panel { display: flex; flex-direction: column; min-height: 0; max-height: 860px; }
.grc-steps-panel .grc-steps { flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; }
.grc-panel { border: 1px solid var(--grc-panel-border); border-radius: 14px; background: #fff; padding: 22px; box-shadow: 0 6px 24px #2d185308; }
.grc-panel-head, .grc-group-head { display: flex; align-items: flex-start; gap: 14px; }
.grc-panel h2 { margin: 0; font-size: 21px; font-weight: 700; color: var(--grc-ink); line-height: 1.25; }
.grc-panel-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.grc-panel-badge { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; background: color-mix(in srgb, var(--type-color, #7138f5) 12%, #fff); color: var(--type-color, #7138f5); }
.grc-panel-badge-map { --type-color: #16a34a; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6l6-2 6 2 6-2v14l-6 2-6-2-6 2z'/><path d='M9 4v14'/><path d='M15 6v14'/></svg>"); background-size: 24px; background-position: center; background-repeat: no-repeat; }
.grc-badge-icon, .grc-marker-icon, .grc-slot-icon, .grc-marker-badge-icon, .grc-step-number-icon { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.grc-badge-icon { width: 24px; height: 24px; }

/* Map */
.grc-map { position: relative; width: 100%; max-width: 660px; aspect-ratio: 680 / 690; margin: 18px auto 6px; }
.grc-donut { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; font-family: inherit; }
.grc-orbit { fill: none; stroke: #ebe9f5; stroke-width: 1; stroke-dasharray: 3 6; }
.grc-sector { stroke: #fff; stroke-width: 5; stroke-linejoin: round; }
.grc-flow { fill: none; stroke-width: 2.4; stroke-linecap: round; opacity: .85; }
.grc-center { fill: #fff; stroke: #e6e4f3; stroke-width: 2; filter: drop-shadow(0 6px 14px #2d185314); }
.grc-center-title { text-anchor: middle; font-size: 20px; font-weight: 750; fill: var(--grc-ink); letter-spacing: -.4px; }
.grc-phase-label { text-anchor: middle; font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.grc-svg-icon path { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.grc-route { fill: none; stroke: #5b5f86; stroke-width: 2.2; stroke-linecap: round; }
.grc-route-optional { stroke-dasharray: 5 6; }
.grc-route-note { font-size: 11px; fill: #6f7395; }
.grc-map { container-type: inline-size; }
.grc-marker-layer { position: absolute; inset: 0; }
.grc-station { position: absolute; display: flex; align-items: center; gap: 1.4cqw; padding: 0 1.8cqw; white-space: nowrap; border: 1.5px solid #d9d6ea; border-radius: 9px; background: #fff; color: var(--grc-ink); font-size: 2.05cqw; font-weight: 650; cursor: pointer; box-shadow: 0 3px 8px #2d18530f; }
.grc-station-icon { width: 2.8cqw; height: 2.8cqw; flex-shrink: 0; color: #4a3fa3; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.grc-station:hover { border-color: #b9a9f3; background: #faf8ff; }
.grc-station:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.grc-station[aria-pressed='true'] { border-color: #6b4fe0; box-shadow: 0 0 0 3px #7138f52b; }
.grc-station-start { justify-content: center; background: #15803d; border-color: #15803d; color: #fff; font-size: 2.2cqw; }
.grc-station-start .grc-station-icon { color: #fff; fill: #fff; }
.grc-station-start:hover { background: #166534; border-color: #166534; }
.grc-station .grc-marker-badge { right: -7px; top: -7px; bottom: auto; }
.grc-marker { position: absolute; width: clamp(28px, 5.7cqw, 40px); height: clamp(28px, 5.7cqw, 40px); padding: 0; border: 0; background: transparent; transform: translate(-50%, -50%); border-radius: 50%; cursor: pointer; }
.grc-marker-face { display: grid; place-items: center; width: calc(100% - 4px); height: calc(100% - 4px); margin: 2px; border-radius: 50%; background: var(--type-color, #7138f5); color: #fff; border: 3px solid #fff; box-shadow: 0 3px 10px #2d18532b; transition: transform .16s ease, box-shadow .16s ease; }
.grc-marker-icon { width: 48%; height: 48%; stroke-width: 2; }
.grc-marker:hover .grc-marker-face, .grc-marker:focus-visible .grc-marker-face { transform: scale(1.08); box-shadow: 0 5px 14px #2d185340; }
.grc-marker:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Raise the hovered or focused marker so its tooltip paints above neighbouring markers and stations. */
.grc-marker:hover, .grc-marker:focus-visible, .grc-marker:focus-within { z-index: 20; }
.grc-marker[aria-pressed='true'] .grc-marker-face { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--type-color, #7138f5), 0 6px 16px #2d185340; }
.grc-marker-badge { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: clamp(13px, 2.8cqw, 18px); height: clamp(13px, 2.8cqw, 18px); border-radius: 50%; border: 2px solid #fff; background: #6f7395; color: #fff; }
.grc-marker-badge-icon { width: 55%; height: 55%; stroke-width: 3; }
.grc-marker[data-group-status='Completed'] .grc-marker-badge { background: #15803d; }
.grc-marker[data-group-status='Ready'] .grc-marker-badge, .grc-marker[data-group-status='InProgress'] .grc-marker-badge { background: #2563eb; }
.grc-marker[data-group-status='AwaitingReview'] .grc-marker-badge { background: #b45309; }
.grc-marker-label { position: absolute; white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: var(--grc-ink); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; opacity: 0; transition: opacity .12s ease; z-index: 2; }
.grc-marker-label::after { content: ''; position: absolute; border: 5px solid transparent; }
/* Fly-out direction follows the marker's position on the ring (data-side), always away from the other markers. */
.grc-marker[data-side='top'] .grc-marker-label { left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); }
.grc-marker[data-side='top'] .grc-marker-label::after { left: 50%; top: 100%; transform: translateX(-50%); border-top-color: var(--grc-ink); }
.grc-marker[data-side='bottom'] .grc-marker-label { left: 50%; top: calc(100% + 8px); transform: translateX(-50%); }
.grc-marker[data-side='bottom'] .grc-marker-label::after { left: 50%; bottom: 100%; transform: translateX(-50%); border-bottom-color: var(--grc-ink); }
.grc-marker[data-side='right'] .grc-marker-label { left: calc(100% + 8px); top: 50%; transform: translateY(-50%); }
.grc-marker[data-side='right'] .grc-marker-label::after { right: 100%; top: 50%; transform: translateY(-50%); border-right-color: var(--grc-ink); }
.grc-marker[data-side='left'] .grc-marker-label { right: calc(100% + 8px); top: 50%; transform: translateY(-50%); }
.grc-marker[data-side='left'] .grc-marker-label::after { left: 100%; top: 50%; transform: translateY(-50%); border-left-color: var(--grc-ink); }
.grc-marker:hover .grc-marker-label, .grc-marker:focus-visible .grc-marker-label { opacity: 1; }
.grc-map-status { min-height: 20px; margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.grc-map-status:empty { display: none; }
.grc-retry { margin-left: 6px; font-size: 12px; }
.grc-map-hint { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

/* Steps panel */
.grc-group-titles { min-width: 0; }
.grc-group-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.grc-group-meta:empty { display: none; }
.grc-chip { display: inline-block; padding: 4px 9px; border-radius: 20px; font-size: 11px; font-weight: 650; color: var(--grc-ink); background: #f1efff; }
.grc-chip[data-phase='Governance'] { background: var(--grc-governance-soft); color: #166534; }
.grc-chip[data-phase='Risk'] { background: var(--grc-risk-soft); color: #1e3a8a; }
.grc-chip[data-phase='Compliance'] { background: var(--grc-compliance-soft); color: #4c1d95; }
.grc-chip-neutral { background: #f3f2fa; color: #4f4d79; }
.grc-steps-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 4px; padding: 10px 12px; border-radius: 10px; background: #f8f7fd; }
.grc-steps-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--grc-ink); }
.grc-step-count { color: var(--muted); font-size: 12px; }
.grc-progress-note { color: #4f4d79; font-weight: 600; }
.grc-steps { list-style: none; margin: 0; padding: 0; }
.grc-step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 10px; border-radius: 10px; }
.grc-step + .grc-step::before { content: ''; position: absolute; left: 29px; top: -10px; width: 2px; height: 14px; background: #d9d6ea; }
.grc-step[data-current='true'] { background: #f0f5ff; box-shadow: inset 0 0 0 1px #c7d7fb; }
.grc-step-number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #cfcbe6; background: #fff; color: #4f4d79; font-size: 14px; font-weight: 700; }
.grc-step[data-status='completed'] .grc-step-number { background: #15803d; border-color: #15803d; color: #fff; }
.grc-step[data-status='ready'] .grc-step-number { border-color: #2563eb; color: #1e40af; }
.grc-step[data-status='notapplicable'] .grc-step-number { border-style: dashed; }
.grc-step-number-icon { width: 18px; height: 18px; stroke-width: 2.4; }
.grc-step-copy { display: grid; gap: 2px; min-width: 0; }
.grc-step-title { font-size: 14px; font-weight: 700; color: var(--grc-ink); }
.grc-step-summary { font-size: 12px; line-height: 1.55; color: var(--muted); }
.grc-step-status { margin-top: 3px; font-size: 11px; font-weight: 600; color: #6f7395; }
.grc-step-status[data-status='ready'] { color: #1d4ed8; }
.grc-step-status[data-status='completed'] { color: #15803d; }
.grc-step-slot { display: flex; align-items: center; justify-content: flex-end; width: 40px; }
.grc-slot-state { display: flex; align-items: center; color: #6f7395; }
.grc-slot-icon { width: 18px; height: 18px; flex-shrink: 0; }
.grc-slot-text { font-size: 11px; line-height: 1.4; color: #4f4d79; }
.grc-step[data-status='completed'] .grc-slot-state { color: #15803d; }
.grc-open { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #15803d; background: #fff; color: #15803d; cursor: pointer; }
.grc-open:hover, .grc-open:focus-visible { background: #15803d; color: #fff; }
.grc-open .grc-slot-icon { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; }
.grc-notice { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px 10px; align-items: start; margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: #f3f0ff; color: #3f3a70; font-size: 12px; line-height: 1.6; }
.grc-notice[data-tone='warn'] { background: #fff4e5; color: #7c3f00; }
.grc-notice[data-tone='member'] { background: #ecfdf3; color: #14532d; }
.grc-notice p { margin: 0; }
.grc-notice-icon { width: 22px; height: 22px; border-radius: 50%; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='9'/><path d='M12 11v5'/><path d='M12 8v.5'/></svg>") center / 20px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='9'/><path d='M12 11v5'/><path d='M12 8v.5'/></svg>") center / 20px no-repeat; }
.grc-notice-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.grc-notice-actions:empty { display: none; }
.grc-notice-button { font-size: 12px; }

/* Step workspace */
.grc-step-dialog { width: min(92vw, 560px); border: 0; border-radius: 16px; padding: 24px; }
.grc-step-context { margin: -8px 0 12px; color: var(--muted); font-size: 12px; }
.grc-step-dialog p { line-height: 1.7; }
.grc-step-workflow { font-weight: 600; color: var(--grc-ink); }
.grc-step-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.grc-step-actions .primary { flex: 0 1 auto; padding-inline: 16px; }

@media (max-width: 1150px) { .grc-workspace { grid-template-columns: minmax(0, 1fr) 360px; } .grc-heading { flex-direction: column; } .grc-quote { max-width: none; } }
@media (max-width: 900px) { .grc-workspace { grid-template-columns: 1fr; } .grc-map { max-width: 560px; } .grc-steps-panel { max-height: none; } .grc-steps-panel .grc-steps { max-height: 60vh; } }
@media (max-width: 650px) {
  .grc-panel { padding: 16px; }
  .grc-map { margin-top: 10px; }
  .grc-marker-face { border-width: 2px; }
  .grc-marker-label { font-size: 11px; }
  .grc-center-title { font-size: 24px; }
  .grc-phase-label { font-size: 19px; }
  .grc-step { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; padding: 10px 6px; }
  .grc-step + .grc-step::before { left: 22px; }
  .grc-step-number { width: 32px; height: 32px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .grc-marker-face, .grc-marker-label { transition: none !important; } .grc-marker:hover .grc-marker-face, .grc-marker:focus-visible .grc-marker-face { transform: none; } }
