/* AEO vs GEO page graphics (owner, Nov 22, 2026: "the graphics don't look
   appealing"). Loaded after home.css and compare.css on /aeo-vs-geo only.
   - .gx-names  the names on one line of work, like branches merging into
                "One piece of work". The line draws down and each node
                lights in turn when the frame enters view ([data-draw]).
   - .gx-diff   two proposals compared line by line; each pair joins with
                "=" in turn; what really changes sits underneath in Partial.
   - .gx-ask    each question with a good sign (Pass) and a warning sign (Fail).
   Under reduced motion site.js adds .is-in at once, so everything shows. */

/* ------------------------------------------------------- Names, one line */
/* Owner, Nov 22, 2026: the column labels sit once in a header row (shown
   under each name only on phones, where the columns stack); the line ends
   at the last node. */
.gx-names .frame-bar, .gx-diff .frame-bar { font-size: .9375rem; }
.gx-stat { font-size: .8125rem; color: var(--muted); }
.gx-stat b { color: var(--signal); font-weight: 500; }
.gx-head, .gx-list > li { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.05fr); column-gap: 20px; }
.gx-head { padding: 12px 22px 10px 0; border-bottom: 1px solid var(--rule); font-size: .75rem; color: var(--muted); }
.gx-head span:first-child { grid-column: 2; }
.gx-list { list-style: none; margin: 0; padding: 0; }
.gx-list > li { position: relative; padding: 18px 22px 18px 0; border-bottom: 1px solid var(--rule); }
.gx-list > li:last-child { border-bottom: 0; }
.gx-term { grid-column: 2; }
.gx-list dl { grid-column: 3 / 5; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; margin: 0; }
.gx-work p { grid-column: 3 / 5; margin: 0; align-self: center; font-size: 1.0625rem; line-height: 1.5; color: var(--ink); }
.gx-list dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gx-list dd { margin: 0; font-size: .9375rem; line-height: 1.5; color: rgba(232, 239, 243, .88); }
.gx-term b { display: block; font-size: 1.1875rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; color: var(--ink); }
.gx-term span { display: block; margin-top: 3px; font-size: .8125rem; color: var(--muted); }
/* The node on each row, and the line from it down to the next node. */
.gx-list > li::before {
  content: ""; position: absolute; z-index: 1; left: 26px; top: 25px; width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid var(--rule-strong); background: var(--surface);
  transition: background-color 360ms var(--ease), border-color 360ms var(--ease), box-shadow 360ms var(--ease);
  transition-delay: calc(250ms + var(--i, 0) * 260ms);
}
.gx-list > li:not(:last-child)::after {
  content: ""; position: absolute; left: 31px; top: 31px; bottom: -31px; width: 1px; background: rgba(34, 211, 238, .55);
  transform: scaleY(0); transform-origin: top; transition: transform 300ms linear; transition-delay: calc(300ms + var(--i, 0) * 260ms);
}
/* AIO is a place to appear: a hollow, dashed node. */
.gx-list > li.gx-place::before { border-style: dashed; }
.gx-place .gx-term b { color: rgba(232, 239, 243, .75); }
/* The end of the line: one piece of work. */
.gx-work { background: linear-gradient(90deg, rgba(34, 211, 238, .07), transparent 80%); }
.gx-list > li.gx-work::before { left: 24px; top: 23px; width: 15px; height: 15px; }
.gx-work .gx-term b { color: var(--signal); }

[data-draw].gx-names .gx-list > li > * { opacity: 0; transform: translateY(6px); transition: opacity 420ms var(--ease), transform 420ms var(--ease); transition-delay: calc(200ms + var(--i, 0) * 260ms); }
[data-draw].gx-names.is-in .gx-list > li > * { opacity: 1; transform: none; }
.gx-names.is-in .gx-list > li::after { transform: scaleY(1); }
.gx-names.is-in .gx-list > li::before { border-color: var(--signal); background: rgba(34, 211, 238, .9); }
.gx-names.is-in .gx-list > li.gx-place::before { background: var(--surface); border-color: rgba(34, 211, 238, .7); }
.gx-names.is-in .gx-list > li.gx-work::before { background: var(--signal); box-shadow: 0 0 0 5px rgba(34, 211, 238, .14), 0 0 18px rgba(34, 211, 238, .6); }

@media (max-width: 720px) {
  .gx-head { display: none; }
  .gx-list > li { grid-template-columns: 48px minmax(0, 1fr); row-gap: 10px; padding-right: 16px; }
  .gx-term, .gx-list dl, .gx-work p { grid-column: 2; }
  .gx-list dl { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .gx-list dt { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; margin-bottom: 3px; font-size: .75rem; color: var(--muted); }
  .gx-list > li::before { left: 18px; }
  .gx-list > li:not(:last-child)::after { left: 23px; }
  .gx-list > li.gx-work::before { left: 16px; }
}

/* -------------------------------------------------- Proposals, line by line */
.gx-diff-head, .gx-rows > li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 52px minmax(0, 1fr); align-items: center; }
.gx-diff-head { padding: 16px 18px 8px; font-size: .8125rem; font-weight: 500; color: rgba(232, 239, 243, .9); }
.gx-diff-head span:nth-child(2), .gx-diff-head span:nth-child(4) { padding-left: 14px; }
.gx-rows { list-style: none; margin: 0; padding: 0 18px 16px; display: grid; gap: 6px; }
.gx-n { font-size: .75rem; color: rgba(255, 255, 255, .35); font-variant-numeric: tabular-nums; }
.gx-rows > li > span:not(.gx-n) {
  padding: 9px 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: rgba(255, 255, 255, .02);
  font-size: .875rem; line-height: 1.4; color: rgba(232, 239, 243, .55);
  transition: border-color 380ms var(--ease), color 380ms var(--ease), background-color 380ms var(--ease);
  transition-delay: calc(250ms + var(--i, 0) * 220ms);
}
.gx-eq { position: relative; align-self: stretch; display: grid; place-items: center; }
.gx-eq::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(34, 211, 238, .55);
  transform: scaleX(0); transition: transform 380ms var(--ease); transition-delay: calc(250ms + var(--i, 0) * 220ms);
}
.gx-eq b {
  position: relative; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--rule-strong); background: var(--surface); font-size: .8125rem; font-weight: 500; font-style: normal; line-height: 1;
  color: var(--muted); transform: scale(.7); opacity: .5;
  transition: transform 380ms var(--ease), opacity 380ms var(--ease), background-color 380ms var(--ease), color 380ms var(--ease), border-color 380ms var(--ease);
  transition-delay: calc(330ms + var(--i, 0) * 220ms);
}
.gx-diff.is-in .gx-rows > li > span:not(.gx-n) { border-color: rgba(34, 211, 238, .22); color: var(--ink); background: rgba(34, 211, 238, .035); }
.gx-diff.is-in .gx-eq::before { transform: scaleX(1); }
.gx-diff.is-in .gx-eq b { transform: none; opacity: 1; background: var(--signal); border-color: var(--signal); color: var(--paper); }
.gx-diff-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px 18px; border-top: 1px solid var(--rule); }
.gx-diff-foot p { margin: 0; font-size: .8125rem; color: var(--muted); }
.gx-diff-foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.gx-diff-foot li { padding: 5px 12px; border: 1px solid rgba(240, 180, 41, .45); border-radius: 999px; background: rgba(240, 180, 41, .06); font-size: .8125rem; color: var(--partial-text); }
[data-draw].gx-diff .gx-diff-foot li { opacity: 0; transform: translateY(4px); transition: opacity 380ms var(--ease), transform 380ms var(--ease); }
[data-draw].gx-diff.is-in .gx-diff-foot li { opacity: 1; transform: none; transition-delay: 1700ms; }
[data-draw].gx-diff.is-in .gx-diff-foot li:nth-child(2) { transition-delay: 1820ms; }
[data-draw].gx-diff.is-in .gx-diff-foot li:nth-child(3) { transition-delay: 1940ms; }
@media (max-width: 560px) {
  .gx-diff-head, .gx-rows > li { grid-template-columns: 16px minmax(0, 1fr) 34px minmax(0, 1fr); }
  .gx-diff-head, .gx-rows { padding-left: 12px; padding-right: 12px; }
  .gx-diff-head span:nth-child(2), .gx-diff-head span:nth-child(4) { padding-left: 10px; }
  .gx-rows > li > span:not(.gx-n) { padding: 8px 10px; font-size: .8125rem; }
  .gx-eq b { width: 20px; height: 20px; }
}

/* ---------------------------------------------- Questions, what to look for */
.gx-ask li::before { grid-row: span 3; border-color: rgba(34, 211, 238, .4); color: var(--signal); }
.gx-ask h3 { padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--rule); }
.gx-ask p { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; margin: 6px 0 0; }
.gx-ask p svg { margin-top: 3px; }
.gx-ask p b { font-weight: 500; }
.gx-good svg, .gx-good b { color: var(--pass); }
.gx-warn svg, .gx-warn b { color: var(--fail); }
.gx-ask li { align-content: start; transition: border-color var(--d-2) var(--ease); }
.gx-ask li:hover { border-color: rgba(255, 255, 255, .16); }
