/* Shared basics for building58.ai. Page layout lives inline in each page, from the direction A mockups. */
body { margin: 0; }
a { color: #e8a45c; }
a:hover { color: #f3c48f; }
.light a { color: #1d3f72; }
.light a:hover { color: #0f2549; }
:focus-visible { outline: 2px solid #7fb2ff; outline-offset: 2px; }
button { font: inherit; }

.loop-step { position: absolute; transform: translate(-50%, -50%); font: 600 14px 'Roboto Mono', monospace; color: #ece9e4; background: #151a22; border: 1px solid #3a4352; border-radius: 999px; padding: 8px 14px; min-height: 44px; cursor: pointer; white-space: nowrap; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.loop-step.done { background: #2a1d26; border-color: #6b3b52; }
.loop-step[aria-pressed="true"] { background: #ff7aa8; border-color: #ff7aa8; color: #1a0b12; }
#loop-arc { transition: stroke-dasharray 0.6s; }

.ws-row { width: 100%; text-align: left; color: #e9ebee; background: transparent; border: 0; border-left: 4px solid transparent; border-bottom: 1px solid #262d39; padding: 10px 14px; min-height: 56px; cursor: pointer; display: flex; align-items: flex-start; gap: 10px; }
.ws-row[aria-pressed="true"] { background: #1c2635; border-left-color: #7fb2ff; }
.ws-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: #6fd08c; }

.tw-row { width: 100%; text-align: left; color: #ece9e4; background: transparent; border: 0; border-left: 3px solid transparent; border-radius: 4px; padding: 10px 12px; min-height: 48px; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; }
.tw-row[aria-pressed="true"] { background: #1b2230; border-left-color: #e8a45c; }

.chip { font: 500 14px 'Roboto Mono', monospace; color: #2c2c2c; background: #ffffff; border: 1px solid #c9ced6; border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.chip[aria-pressed="true"] { color: #ffffff; background: #2c2c2c; border-color: #2c2c2c; }

@media (max-width: 640px) {
  h1 { font-size: 40px !important; }
  h2 { font-size: 30px !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
