/* Question pages and the refill calculator: one plain answer, the tool where it helps, then the waitlist ledge. */
.qa { max-width: 680px; margin: 0 auto; padding: 8px var(--gutter) 0; }
.crumbs { font-size: 1rem; color: var(--soft); }
.crumbs a { color: var(--soft); }
.qa h1 { margin-top: 12px; font-size: clamp(2rem, 6vw, 2.75rem); }
.byline { margin-top: 12px; font-size: 1rem; color: var(--soft); }
.qa h2 { margin-top: 36px; font-size: 1.375rem; }
.qa p, .qa ul, .qa ol { margin-top: 12px; }
.qa li + li { margin-top: 8px; }
.qa ul, .qa ol { padding-left: 1.3em; }
.answer { margin-top: 24px; padding: 20px; border-radius: var(--r-card); background: var(--card); }
.answer p { margin: 0; font-size: 1.25rem; line-height: 1.4; }
.answer p + p { margin-top: 10px; font-size: 1.125rem; color: var(--soft); }
.vet-note { padding-left: 14px; border-left: 4px solid var(--ledge); color: var(--soft); }
.sources { font-size: 1rem; color: var(--soft); }
.sources li { overflow-wrap: anywhere; }

/* The calculator. */
.tool { margin-top: 36px; padding: 20px; border-radius: var(--r-card); background: var(--ledge); color: var(--ink); }
.tool h2 { margin-top: 0; }
.tool fieldset { margin: 16px 0 0; padding: 0; border: 0; }
.tool legend { font-weight: 600; padding: 0; }
.kinds { display: flex; gap: 8px; margin-top: 8px; }
.kinds label { position: relative; flex: 1; }
.kinds input { position: absolute; opacity: 0; }
.kinds span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px;
  border-radius: var(--r-button); background: var(--card); font-weight: 600; cursor: pointer;
}
.kinds input:checked + span { background: var(--accent); color: var(--on-accent); }
.kinds input:focus-visible + span { outline: var(--focus-width) solid var(--ink); outline-offset: var(--focus-offset); }
.fields { display: grid; gap: 14px; margin-top: 16px; }
.fields[hidden] { display: none; }
.field label { display: block; font-weight: 600; line-height: 1.25; }
.field small { display: block; font-size: 0.9375rem; color: var(--soft); }
.field input, .field select {
  width: 100%; min-height: 48px; margin-top: 6px; padding: 0 12px; border: 0; border-radius: 14px;
  background: var(--card); color: var(--ink); font: 400 1.125rem var(--body);
}
.result { margin-top: 18px; font: 600 1.25rem/1.35 var(--body); }
.tool .text-btn { margin-top: 10px; }
.tool-note { margin-top: 12px; font-size: 1rem; color: var(--soft); }
.text-btn {
  padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; min-height: 32px;
  text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer;
}

/* The ledge: Steve and Obi peek over it, and the waitlist sits on it. */
.ledge-cta { max-width: 680px; margin: 56px auto 0; padding: 0 var(--gutter); }
.ledge-cta .peek { width: min(300px, 70%); margin: 0 auto -6px; position: relative; z-index: 1; }
.ledge-in {
  --marigold: #FFB547; --clay-ink: #2B1B4D; --paper: #FFF6E4; --given: #3FD6C1; --on-given: #06302A;
  padding: 24px 20px; border-radius: var(--r-card); background: #5C40D8; color: #fff;
}
.ledge-in h2 { font: 400 clamp(1.5rem, 5vw, 2rem)/1.1 var(--display); }
.ledge-in > p { margin-top: 10px; color: #EDE9FF; }
.ledge-in .join { margin-top: 18px; }
.ledge-in .follow { margin-top: 14px; font-size: 1rem; color: #EDE9FF; }
.ledge-in .follow a, .ledge-in .text-btn { color: #fff; }
.join-label { display: block; font-weight: 600; margin-bottom: 6px; line-height: 1.2; }
.join-row { display: flex; gap: 8px; }
.join-row input {
  flex: 1 1 0; min-width: 0; min-height: 56px; padding: 0 12px;
  border: 0; border-radius: var(--r-button); background: #fff; color: var(--clay-ink); font: 400 1rem var(--body);
}
.join-row input::placeholder { color: #6B6577; }
.join-row input[aria-invalid='true'] { box-shadow: inset 0 0 0 3px var(--marigold); }
.nose-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 56px; padding: 0 16px 0 8px;
  border: 0; border-radius: var(--r-button); background: var(--marigold); color: var(--clay-ink);
  font: 400 1.2rem/1 var(--display); cursor: pointer; box-shadow: inset 0 -5px 0 #0000002a;
  transition: transform var(--motion-duration-enter) var(--motion-easing-enter);
}
.nose-btn:active { transform: scale(0.97); }
.nose { width: 40px; height: auto; transform-origin: 50% 100%; transition: transform var(--motion-duration-enter) var(--motion-easing-enter); }
.nose-btn:active .nose, .nose-btn.is-booping .nose { transform: scale(1.12, 0.82); }
.join-msg { margin-top: 8px; font-size: 1rem; line-height: 1.25; min-height: 1.25em; color: #EDE9FF; }
.join-msg.is-error { font-weight: 600; color: #fff; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bubble {
  position: relative; display: inline-block; max-width: 30ch; padding: 14px 20px; border-radius: 22px;
  background: var(--paper); color: var(--clay-ink); font: italic 400 1.25rem/1.3 var(--body);
}
.joined .bubble:focus { outline: none; }
.joined .bubble .w { opacity: 0; }
.joined .bubble .w.on { opacity: 1; }
.joined-note { margin-top: 12px; font-size: 1rem; color: #EDE9FF; }

.more { max-width: 680px; margin: 48px auto 0; padding: 0 var(--gutter); }
.more h2 { font-size: 1.25rem; }
.more ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.more a { display: block; padding: 14px 16px; border-radius: 16px; background: var(--card); font-weight: 600; text-decoration: none; }
.more a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .nose-btn, .nose { transition: none; }
  .nose-btn:active .nose, .nose-btn.is-booping .nose { transform: none; }
  .joined .bubble .w { opacity: 1; }
}
