/* A scoped F3 extension. Each tool has one colour; text stays in brand ink. */
.records-web {
  --rw-quality: #c0533a; --rw-projects: #4a62c2; --rw-documents: #24808b; --rw-esign: #2e8655; --rw-learning: #8456be; --rw-hr: #9a5d0c; --rw-reports: #a23d6b; --rw-hub: #2d3577;
  --rw-thread: #9aa6c4; --rw-line: #5d6b8c;
  background: var(--f3-atmosphere), var(--f3-paper, #faf9f6); color: var(--f3-ink, #1a273d); padding: clamp(56px, 7vw, 104px) 24px;
}
.records-web [hidden] { display: none !important; }
.records-web [data-tool="quality"] { --rw-c: var(--rw-quality); }
.records-web [data-tool="projects"] { --rw-c: var(--rw-projects); }
.records-web [data-tool="documents"] { --rw-c: var(--rw-documents); }
.records-web [data-tool="esign"] { --rw-c: var(--rw-esign); }
.records-web [data-tool="learning"] { --rw-c: var(--rw-learning); }
.records-web [data-tool="hr"] { --rw-c: var(--rw-hr); }
.records-web [data-tool="reports"] { --rw-c: var(--rw-reports); }
.records-web [data-tool="hub"] { --rw-c: var(--rw-hub); }
.rw-wrap { max-width: 1180px; margin-inline: auto; }
.records-web--booth .rw-wrap { max-width: 1360px; }
.rw-heading { display: flex; justify-content: space-between; gap: 32px; align-items: flex-end; margin-bottom: 28px; }
.rw-kicker { margin: 0 0 14px; font-size: .78rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rw-quality) !important; }
.records-web .rw-heading h2 { color: var(--f3-ink); font-size: clamp(2.25rem, 4vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 18px; }
.rw-heading p { color: var(--f3-muted); font-size: 1.05rem; line-height: 1.75; margin: 0; max-width: 700px; }
/* The tool chips in the introduction double as the colour key for the whole web. */
.rw-chip { display: inline-block; padding: 0 9px; border-radius: 999px; font-size: .9em; font-weight: 650; line-height: 1.6; color: color-mix(in srgb, var(--rw-c) 88%, #1a273d); background: color-mix(in srgb, var(--rw-c) 11%, #fff); border: 1px solid color-mix(in srgb, var(--rw-c) 30%, #fff); white-space: nowrap; }
.rw-switch { flex-shrink: 0; display: flex; gap: 4px; padding: 5px; border: 1px solid #d4daeb; border-radius: 999px; background: var(--f3-pill, #fff); box-shadow: var(--f3-pill-shadow); }
.records-web button { font: inherit; cursor: pointer; touch-action: manipulation; }
.records-web button:focus-visible { outline: 3px solid var(--f3-accent, #384aaf); outline-offset: 4px; }
.rw-switch button { padding: 10px 20px; border: 0; border-radius: 999px; color: var(--f3-muted); background: transparent; font-size: .95rem; font-weight: 600; min-height: 44px; }
.rw-switch button[aria-pressed="true"] { background: var(--f3-accent, #384aaf); color: white; box-shadow: 0 3px 9px #384aaf30; }
/* The story chooser sits on the canvas edge like tabs: the same web, a different story. */
.rw-stories { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.rw-stories-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--f3-muted); margin-right: 4px; }
.rw-stories button { min-height: 44px; padding: 8px 18px; border: 1px solid #d4daeb; border-radius: 999px; background: #fff; color: var(--f3-ink); font-size: .95rem; font-weight: 600; }
.rw-stories button:hover { border-color: var(--f3-accent, #384aaf); }
.rw-stories button[aria-pressed="true"] { border-color: var(--f3-ink, #1a273d); background: var(--f3-ink, #1a273d); color: #fff; }
.rw-canvas { border: 1px solid #e3e7f0; border-radius: var(--f3-radius-card, 22px); background: var(--f3-glass, #fff); box-shadow: var(--f3-glass-shadow, 0 30px 60px -40px #1f2a5a55); backdrop-filter: var(--f3-glass-blur); overflow: clip; }

/* The story bar: a headline to read from a few steps away, then the exact detail. */
.rw-story-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 28px 32px 0; }
.rw-story-text { min-width: 0; flex: 1; border-left: 4px solid var(--rw-c, var(--rw-quality)); padding-left: 20px; transition: border-color 300ms ease; }
.records-web[data-rw-tool] .rw-story-text { --rw-c: var(--rw-quality); }
.records-web[data-rw-tool="projects"] .rw-story-text { --rw-c: var(--rw-projects); }
.records-web[data-rw-tool="documents"] .rw-story-text { --rw-c: var(--rw-documents); }
.records-web[data-rw-tool="esign"] .rw-story-text { --rw-c: var(--rw-esign); }
.records-web[data-rw-tool="learning"] .rw-story-text { --rw-c: var(--rw-learning); }
.records-web[data-rw-tool="hr"] .rw-story-text { --rw-c: var(--rw-hr); }
.records-web[data-rw-tool="reports"] .rw-story-text { --rw-c: var(--rw-reports); }
.records-web[data-rw-tool="hub"] .rw-story-text { --rw-c: var(--rw-hub); }
.rw-step-label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 10px; }
.rw-counter, .rw-tool, .rw-soon-chip { white-space: nowrap; }
.rw-counter { font-size: .86rem; font-weight: 700; color: var(--f3-ink); font-variant-numeric: tabular-nums; }
/* Records that depend on unreleased work say so, on the card and beside the step. */
.rw-soon-chip, .rw-soon { display: inline-block; border: 1px dashed #c99a2e; border-radius: 999px; background: #fff8e6; color: #6e4b00; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.rw-soon-chip { font-size: .72rem; padding: 2px 9px; }
.rw-soon { font-size: .58rem; padding: 0 6px; margin-left: 4px; vertical-align: 1px; }
.rw-node[data-soon] { border-style: dashed; }
.rw-tool { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--rw-c); border-radius: 999px; padding: 3px 10px; transition: background-color 300ms ease; }
.rw-beat { margin: 0 0 8px; font-family: var(--font-display, inherit); font-size: clamp(1.45rem, 2.4vw, 2.1rem); font-weight: 650; line-height: 1.15; letter-spacing: -.02em; color: var(--f3-ink); }
.records-web--booth .rw-beat { font-size: clamp(1.6rem, 2.6vw, 2.45rem); }
.rw-caption { min-height: 4.8em; max-width: 800px; margin: 0; font-size: clamp(.96rem, 1.2vw, 1.06rem); line-height: 1.6; color: color-mix(in srgb, var(--f3-ink, #1a273d) 78%, #fff); }
.rw-compare { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 8px 18px; border: 1px solid color-mix(in srgb, var(--f3-accent, #384aaf) 40%, #fff); border-radius: 999px; background: #fff; color: var(--f3-accent, #384aaf); font-size: .92rem; font-weight: 650; }
.rw-compare:hover { background: var(--f3-accent-tint, #eef0fb); }
.rw-stepper { display: flex; gap: 8px; flex-shrink: 0; }
.rw-stepper button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #cbd4e6; border-radius: 10px; background: white; color: var(--f3-ink); padding: 8px 15px; font-size: .92rem; font-weight: 600; }
.rw-stepper button:hover:not(:disabled) { border-color: var(--f3-accent); background: var(--f3-accent-tint, #eef0fb); }
.rw-stepper button:disabled { opacity: .45; cursor: default; }
.rw-stepper .rw-play { background: var(--f3-accent, #384aaf); border-color: var(--f3-accent, #384aaf); color: #fff; padding-inline: 18px; }
.rw-stepper .rw-play:hover:not(:disabled) { background: #2c3c99; color: #fff; }
.records-web .rw-play svg { stroke: none; width: 14px; height: 14px; fill: currentColor; }
.rw-play .rw-icon-pause, .records-web.is-playing .rw-play .rw-icon-play { display: none; }
.records-web.is-playing .rw-play .rw-icon-pause { display: inline; }

/* Ten progress beads, one per record, in the colour of its tool. */
.rw-progress { list-style: none; display: flex; gap: 6px; margin: 20px 32px 0; padding: 0; }
.rw-progress li { flex: 1; }
.rw-progress button { display: block; width: 100%; height: 24px; border: 0; padding: 10px 0; background: transparent; }
.rw-progress button::before { content: ""; display: block; height: 4px; border-radius: 4px; background: #e2e6ef; transition: background-color 300ms ease; }
.rw-progress button.is-done::before, .rw-progress button[aria-current="step"]::before { background: var(--rw-c); }
.rw-progress button[aria-current="step"]::before { height: 6px; margin-top: -1px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--rw-c) 22%, transparent); }

/* The web. */
.rw-graph { position: relative; isolation: isolate; aspect-ratio: 1200 / 720; margin: 4px 8px 0; container-type: inline-size; }
.records-web .rw-links { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; pointer-events: none; z-index: 0; }
.rw-backdrop { fill: none; stroke: var(--rw-thread); stroke-width: 1; stroke-dasharray: 2 7; opacity: .55; transition: opacity 600ms ease; }
.rw-seeds circle { fill: #fff; stroke: var(--rw-thread); stroke-width: 1.5; stroke-dasharray: 3 3; opacity: .9; }
.rw-seeds circle.is-reached { opacity: 0; }
.rw-links path[data-rw-edge] { fill: none; stroke-width: 2.2; stroke-linecap: round; opacity: .8; transition: opacity 260ms ease, stroke-width 200ms ease; }
.rw-links path[data-rw-edge]:not(.is-manager) { stroke: color-mix(in srgb, var(--rw-c, var(--rw-line)) 75%, #3a4566); }
/* Spokes keep their beam gradient (the stroke attribute): faint at the record, strong at the hub. */
.rw-links path[data-rw-edge].is-manager { stroke-width: 3.6; opacity: 1; }
.rw-links path[data-rw-edge].is-new { stroke-width: 3.8; opacity: 1; stroke-dasharray: var(--len, 2000) var(--len, 2000); stroke-dashoffset: var(--len, 2000); animation: rw-draw 1.1s cubic-bezier(.3, .7, .3, 1) forwards; }
.rw-links path[data-rw-edge].is-manager.is-new { stroke-width: 3.6; }
.records-web:not(.is-complete) .rw-links path[data-rw-edge]:not(.is-new):not(.is-selected):not(.is-dimmed) { opacity: .42; }
.rw-links path[data-rw-edge].is-selected { opacity: 1; stroke-width: 3.6; stroke: var(--f3-accent, #384aaf); }
.rw-links path[data-rw-edge].is-dimmed { opacity: .08; }
.rw-speck { fill: var(--rw-quality); filter: drop-shadow(0 0 6px #c0533aaa); }
.records-web.is-complete .rw-backdrop { opacity: .9; stroke: #b2a6d6; }

.rw-nodes { position: absolute; inset: 0; z-index: 1; }
.rw-node { --rw-c: var(--rw-quality); position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: clamp(168px, 18.6%, 236px); display: flex; gap: 10px; align-items: center; text-align: left; border: 1px solid color-mix(in srgb, var(--rw-c) 30%, #dfe3ec); border-radius: 14px; background: #fff; box-shadow: 0 12px 26px -18px #1f2a5a80; padding: 11px 12px; color: var(--f3-ink); transition: opacity 300ms ease, box-shadow 220ms ease, border-color 220ms ease, transform 300ms ease; }
.rw-node::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, transparent 50%, color-mix(in srgb, var(--rw-c) 9%, transparent)); pointer-events: none; }
.rw-node:hover { box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--rw-c) 60%, transparent); }
.records-web .rw-node-icon { width: 30px; height: 30px; flex-shrink: 0; padding: 6px; box-sizing: border-box; border-radius: 10px; background: color-mix(in srgb, var(--rw-c) 13%, #fff); fill: none; stroke: var(--rw-c); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rw-node-copy { display: grid; gap: 2px; min-width: 0; }
/* Record text grows with the web on large booth screens; the first value is the fallback. */
.rw-node-tool { font-size: .64rem; font-size: clamp(.62rem, .86cqw, .74rem); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--rw-c); }
.rw-node-copy strong { font-size: .9rem; font-size: clamp(.86rem, 1.3cqw, 1.1rem); line-height: 1.25; font-weight: 650; }
.rw-node-copy > span:last-child { font-size: .74rem; font-size: clamp(.72rem, 1cqw, .88rem); line-height: 1.35; color: var(--f3-muted); }
.rw-node-number { position: absolute; top: -9px; right: 10px; font-size: .64rem; font-weight: 700; color: var(--rw-c); background: #fff; border: 1px solid color-mix(in srgb, var(--rw-c) 35%, #fff); border-radius: 999px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
/* While the web grows, earlier records step back so the eye lands on the newest one. */
/* Cards stay solid so no link shows through them; only their contents fade. */
.rw-node > * { transition: opacity 300ms ease; }
.records-web:not(.is-complete):not(.has-selection) .rw-node.is-past { box-shadow: none; border-color: #e1e5ee; }
.records-web:not(.is-complete):not(.has-selection) .rw-node.is-past > * { opacity: .5; }
.records-web:not(.is-complete):not(.has-selection) .rw-node.is-past:hover > * { opacity: 1; }
.rw-node.is-current { z-index: 2; border-color: var(--rw-c); transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rw-c) 18%, transparent), 0 16px 30px -16px color-mix(in srgb, var(--rw-c) 70%, transparent); animation: rw-arrive 600ms cubic-bezier(.2, .9, .3, 1.2) both; }
.rw-node[aria-pressed="true"] { outline: 3px solid var(--f3-accent, #384aaf); outline-offset: 3px; }
.rw-node.is-dimmed { box-shadow: none; border-color: #e1e5ee; }
.rw-node.is-dimmed > * { opacity: .3; }
.rw-node[data-tool="hub"] { width: clamp(176px, 19.5%, 256px); padding: 16px 16px; border-radius: 18px; background: linear-gradient(140deg, #fff, #f0effb); border-color: #c9c4ea; }
.records-web .rw-node[data-tool="hub"] .rw-node-icon { width: 42px; height: 42px; padding: 8px; background: var(--rw-hub); stroke: #fff; }
.rw-node[data-tool="hub"] .rw-node-copy strong { font-size: 1.02rem; font-size: clamp(.98rem, 1.5cqw, 1.28rem); }
.rw-node[data-tool="hub"].is-current { animation: rw-arrive 700ms cubic-bezier(.2, .9, .3, 1.2) both, rw-glow 2.6s ease-in-out 700ms 2; }
.records-web.is-complete .rw-node[data-tool="hub"] { border-color: #8f86cf; box-shadow: 0 0 0 6px #2d357714, 0 20px 44px -20px #2d3577b0; }

.rw-graph-footer { border-top: 1px solid #e2e8ee; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 24px; padding: 16px 32px; }
.rw-tally { display: flex; gap: 22px; margin: 0; }
.rw-tally div { display: flex; align-items: baseline; gap: 7px; }
.rw-tally dt { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--f3-muted); }
.rw-tally dd { margin: 0; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--f3-ink); }
.records-web.is-complete .rw-tally dd { color: var(--rw-hub); }
.rw-selection { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--f3-muted); max-width: 560px; margin-left: auto; text-align: right; }
.rw-fiction { color: var(--f3-muted-2, #6b7488); font-size: .78rem; margin: 18px 0 0; }

/* The usual way: the same records, scattered and copied by hand. */
.rw-usual { padding: 36px 32px 32px; min-height: 640px; background: repeating-linear-gradient(135deg, #fafafa 0 14px, #f5f5f6 14px 28px); }
.rw-usual-caption { max-width: 700px; font-family: var(--font-display, inherit); font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 600; line-height: 1.35; letter-spacing: -.015em; margin: 0 0 52px; }
.rw-silos { display: grid; grid-template-columns: 1fr 64px 1fr 64px 1fr; align-items: start; gap: 10px; }
.rw-silo { min-width: 0; background: #fff; border: 1px solid #d5dbe2; border-radius: 12px; padding: 24px 18px; box-shadow: 0 10px 24px -20px #1f2a5a; }
.rw-silo:nth-of-type(1) { transform: rotate(-1.2deg); }
.rw-silo:nth-of-type(3) { transform: rotate(1deg); }
.records-web .rw-silo > svg { width: 32px; height: 32px; fill: none; stroke: #6c788c; stroke-width: 1.7; }
.rw-silo h3 { font-size: 1rem; margin: 14px 0 20px; color: var(--f3-ink); }
.rw-silo ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rw-silo li { font-size: .8rem; line-height: 1.5; background: #f6f7f9; padding: 10px 9px; border: 1px dashed #cfd5de; border-radius: 6px; overflow-wrap: anywhere; }
.records-web .rw-copy-arrow { align-self: center; width: 100%; fill: none; stroke: #bc7044; stroke-width: 2; stroke-dasharray: 4 4; animation: rw-link-flow 1.5s linear infinite; }
.rw-copy-note { text-align: center; margin: 44px 0 0; font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; color: #9a5a37; }
.rw-usual-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 36px; padding-top: 18px; border-top: 1px dashed #dccbbd; }
.records-web .rw-usual .rw-tally--usual dd { color: #9a5a37; }
.rw-nojs { line-height: 1.6; }

@keyframes rw-draw { to { stroke-dashoffset: 0; } }
@keyframes rw-arrive { from { opacity: 0; transform: translate(-50%, -50%) scale(.82); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes rw-glow { 50% { box-shadow: 0 0 0 10px #2d357722, 0 0 50px 6px #8456be44; } }
@keyframes rw-link-flow { to { stroke-dashoffset: -26; } }

@media (max-width: 1020px) and (min-width: 760px) {
  .rw-node { gap: 7px; padding: 9px 9px; }
  .records-web .rw-node-icon { display: none; }
  .records-web .rw-node[data-tool="hub"] .rw-node-icon { display: block; }
  .rw-node-copy > span:last-child { display: none; }
  .rw-story-bar { flex-direction: column; }
  .rw-heading { align-items: flex-start; }
}
@media (max-width: 759px) {
  .records-web { padding: 56px 20px; }
  .rw-heading { display: block; margin-bottom: 24px; }
  .records-web .rw-heading h2 { font-size: 2.35rem; }
  .rw-heading p { font-size: 1rem; }
  .rw-desktop-break { display: none; }
  .rw-switch { display: inline-flex; margin-top: 24px; }
  .rw-canvas { background: var(--f3-glass-solid, #fff); backdrop-filter: none; border-radius: var(--f3-radius-card-phone, 16px); }
  .rw-story-bar { flex-direction: column; padding: 22px 18px 0; gap: 16px; }
  .rw-story-text { padding-left: 14px; }
  .rw-beat, .records-web--booth .rw-beat { font-size: 1.4rem; }
  .rw-caption { min-height: 0; font-size: .96rem; }
  .rw-stepper { width: 100%; justify-content: space-between; gap: 4px; }
  .rw-stepper button { padding: 8px 11px; }
  .rw-progress { margin: 14px 18px 0; gap: 4px; }
  .rw-graph { aspect-ratio: auto; margin: 0; }
  .rw-backdrop, .rw-seeds, .rw-specks { display: none; }
  .rw-nodes { position: relative; inset: auto; display: flex; flex-direction: column; gap: 28px; padding: 30px 20px 30px 46px; }
  .rw-node, .rw-node[data-tool="hub"] { position: relative; left: auto; top: auto; transform: none; width: 100%; box-sizing: border-box; min-height: 84px; padding: 14px 12px; }
  .rw-node.is-current, .rw-node[data-tool="hub"].is-current { transform: none; animation: none; }
  .rw-graph-footer { padding: 16px 20px; }
  .rw-tally { gap: 14px; flex-wrap: wrap; }
  .rw-selection { margin-left: 0; text-align: left; }
  .rw-usual { padding: 24px 20px; min-height: 0; }
  .rw-usual-caption { font-size: 1.2rem; margin-bottom: 32px; }
  .rw-silos { display: flex; flex-direction: column; gap: 14px; }
  .rw-silo, .rw-silo:nth-of-type(n) { width: 100%; box-sizing: border-box; padding: 20px; transform: none; }
  .records-web .rw-copy-arrow { height: 42px; width: 42px; transform: rotate(90deg); flex-shrink: 0; }
  .rw-copy-note { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .records-web *, .records-web *::before, .records-web *::after { animation: none !important; transition: none !important; }
  .rw-links path[data-rw-edge].is-new { stroke-dasharray: none; stroke-dashoffset: 0; }
}
@media (forced-colors: active) {
  .rw-links path, .rw-copy-arrow, .rw-backdrop { stroke: CanvasText; }
  .rw-node, .rw-switch, .rw-canvas { border: 1px solid ButtonText; }
  .rw-switch button[aria-pressed="true"], .rw-node.is-current { outline: 2px solid Highlight; }
}
