/* Role pages: the role question on the homepage, the role menu on every page, and the
   pieces the role pages share. Loads after site.css and page.css. Same moss, cream and
   hat red; hairlines, uppercase labels and plain type, no capsules. */

/* ---- The role menu (every page) ---- */
/* Wide screens: the four roles sit in the nav, the current one underlined (page.css). */
.nav-links .nav-k { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); align-self: center; }
.nav-links { align-items: baseline; }
/* Narrow screens: the nav's links are hidden (fc-base), so the roles get their own row. */
.role-row { display: none; }
@media (max-width: 960px) {
  .role-row { display: flex; gap: 1.25rem; align-items: baseline; overflow-x: auto; scrollbar-width: none; padding: 0.55rem 0 0.7rem; border-top: 1px solid var(--edge-soft); font-size: 0.86rem; color: var(--ink-2); white-space: nowrap; }
  .role-row::-webkit-scrollbar { display: none; }
  .role-row a { padding: 0.25rem 0; min-height: 32px; display: inline-flex; align-items: center; }
  .role-row a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mushroom); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
  .role-row .nav-k { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
}

/* ---- The role question (homepage hero) ---- */
.picker { margin: 0.4rem 0 1.4rem; max-width: 34rem; }
.picker-k { display: block; margin-bottom: 0.7rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mushroom); }
.picker ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--edge); }
.picker li { border-bottom: 1px solid var(--edge); }
.pick { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.2rem 1rem; padding: 0.95rem 0.2rem 0.95rem 0; color: var(--ink); transition: padding 0.3s var(--ease-out); }
.pick b { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; font-weight: 600; font-size: clamp(1.2rem, 1.7vw, 1.42rem); line-height: 1.15; letter-spacing: -0.01em; transition: color 0.25s var(--ease-out); }
.pick small { grid-column: 1; font-size: 0.88rem; color: var(--ink-3); }
.pick svg { grid-column: 2; grid-row: 1 / span 2; width: 1.25rem; height: 1.25rem; color: var(--ink-3); transition: transform 0.3s var(--ease-out), color 0.25s var(--ease-out); }
/* A thin hat-red rule grows under the row you point at. */
.pick::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out); }
.pick:hover, .pick:focus-visible { padding-left: 0.5rem; }
.pick:hover b, .pick:focus-visible b { color: var(--mushroom); }
.pick:hover svg, .pick:focus-visible svg { transform: translateX(4px); color: var(--ink); }
.pick:hover::after, .pick:focus-visible::after { transform: scaleX(1); }
.pick:focus-visible { outline: 2px solid var(--mushroom); outline-offset: 2px; border-radius: 4px; }
.pick-back { margin: 0 0 0.9rem; font-size: 0.92rem; color: var(--ink-2); }
.pick-back a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mushroom); text-underline-offset: 0.3em; }
.pick-back[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .pick, .pick svg, .pick::after { transition: none; } }

/* The hero card changes with the role you point at: one card per role, crossfading. */
.ui-card.held.role-card { opacity: 0; transition: opacity 0.45s var(--ease-out), translate 0.45s var(--ease-out); translate: 0 0.8cqw; }
.ui-card.held.role-card.on { opacity: 1; translate: 0 0; }
.ui-card .uc-row { display: flex; justify-content: space-between; gap: 0.8em; padding: 0.42em 0; border-top: 1px solid rgb(242 234 217 / 0.12); font-size: 0.92em; color: var(--ink-2); }
.ui-card .uc-row:first-of-type { border-top: 0; }
.ui-card .uc-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ui-card .uc-row b.g { color: #9be3b8; }

/* ---- The four roles again, lower on the homepage ---- */
.roles-band { border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); background: rgb(14 26 18 / 0.35); }
.roles-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 2.2rem; border-top: 1px solid var(--edge); }
.role-col { display: grid; align-content: start; gap: 0.7rem; padding: 1.4rem 1.4rem 1.6rem; border-right: 1px solid var(--edge); color: var(--ink); transition: background 0.3s var(--ease-out); }
.role-col:first-child { padding-left: 0; }
.role-col:last-child { border-right: 0; }
.role-col:hover { background: rgb(242 234 217 / 0.03); }
.role-col .rk { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mushroom); }
.role-col h3 { margin: 0; font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.role-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; color: var(--ink-2); font-size: 0.93rem; line-height: 1.45; }
.role-col ul li { padding-left: 0.9rem; position: relative; }
.role-col ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 1px; background: var(--mushroom); }
.role-col .go { margin-top: 0.4rem; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: var(--ink); }
.role-col .go svg { width: 1rem; height: 1rem; transition: transform 0.3s var(--ease-out); }
.role-col:hover .go svg { transform: translateX(4px); }
@media (max-width: 960px) {
  .roles-grid { grid-template-columns: 1fr 1fr; }
  .role-col:nth-child(2) { border-right: 0; }
  .role-col:nth-child(3) { padding-left: 0; }
  .role-col:nth-child(-n+2) { border-bottom: 1px solid var(--edge); }
}
@media (max-width: 640px) {
  .roles-grid { grid-template-columns: 1fr; }
  .role-col { padding: 1.3rem 0; border-right: 0; border-bottom: 1px solid var(--edge); }
  .role-col:last-child { border-bottom: 0; }
}

/* ---- Plain answers in three columns (role pages) ---- */
.three { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem; }
.three > div { border-top: 1px solid var(--edge); padding-top: 1.3rem; }
.three dt { margin: 0 0 0.55rem; }
.three dd { margin: 0; color: var(--ink-2); line-height: 1.6; max-width: 34rem; }
@media (max-width: 960px) { .three { grid-template-columns: 1fr; gap: 1.8rem; } }

/* A short line under a scene's words, naming what it shows (uppercase, like the app). */
.scene-copy .scene-k { display: block; margin-bottom: 0.8rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mushroom); }

/* ---- Scene drawing styles shared by the role scenes ---- */
.rs-col-k { fill: var(--ink-2); font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; }
.rs-panel { fill: rgb(242 234 217 / 0.035); stroke: var(--edge); }
.rs-panel.gwo { fill: rgb(127 214 164 / 0.06); stroke: rgb(127 214 164 / 0.45); }
.rs-t { fill: var(--ink); font-size: 13.5px; }
.rs-t2 { fill: var(--ink-2); font-size: 12.5px; }
.rs-t3 { fill: var(--ink-3); font-size: 12px; }
.rs-big { fill: var(--ink-2); font-family: var(--font-display); font-weight: 900; font-size: 46px; font-variant-numeric: tabular-nums; }
.rs-big.g { fill: #9be3b8; }
.rs-miss { fill: #f08a6c; font-size: 12.5px; font-weight: 600; }
.rs-ok { fill: #9be3b8; font-size: 12.5px; font-weight: 600; }
.rs-chip rect { fill: rgb(242 234 217 / 0.06); stroke: rgb(242 234 217 / 0.3); }
.rs-chip.g rect { fill: rgb(127 214 164 / 0.14); stroke: #7fd6a4; }
.rs-chip.dim rect { fill: rgb(242 234 217 / 0.03); stroke: rgb(242 234 217 / 0.14); }
.rs-chip.dim text { fill: var(--ink-3); }
.rs-chip text { fill: var(--ink); font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; }
.rs-x { stroke: #f08a6c; stroke-width: 1.6; stroke-linecap: round; }
.rs-tool rect.bg { fill: rgb(20 36 27 / 0.9); stroke: var(--edge); }
.rs-tool .bar-a { fill: rgb(216 195 154 / 0.45); }
.rs-tool .bar-b { fill: #7fd6a4; }
.rs-hair { stroke: rgb(242 234 217 / 0.12); stroke-width: 1; }
.rs-check { fill: none; stroke: #7fd6a4; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rs-col-k.g { fill: #9be3b8; }
/* The menu marks the page you're on (the AVImark page's rule, for pages without page.css). */
.nav-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mushroom); text-decoration-thickness: 2px; text-underline-offset: 0.5em; }
