/* Ask PraisePad on the website (site/ask.js): a button in the corner and a small panel. */
#ask-root[hidden] {
  display: none;
}
.ask-open {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(18, 20, 24, 0.22);
  cursor: pointer;
}
.ask-spark {
  color: var(--accent);
}
.ask-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: 600px;
  max-height: calc(100dvh - 40px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(18, 20, 24, 0.18);
  overflow: hidden;
}
.ask-panel[hidden] {
  display: none;
}
/* The page behind an open panel: dimmed and blurred, and not scrolling (the body is pinned, the
   iOS way; the top offset keeps the page where it was). */
.ask-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(18, 20, 24, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
html.ask-locked {
  overscroll-behavior: none;
}
body.ask-locked {
  position: fixed;
  width: 100%;
  overflow: hidden;
}
.ask-list {
  overscroll-behavior: contain;
}
@media (max-width: 600px) {
  .ask-panel {
    inset: 0;
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
    border-radius: 0;
    border: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .ask-head {
    padding-top: calc(14px + env(safe-area-inset-top));
  }
}
/* Follow the updates (What's new): the feed link, or a reader to open it in. Sized to its words
   on a wide screen; the full screen on a phone, like the Ask panel. */
.follow-sheet {
  height: auto;
  max-height: calc(100dvh - 40px);
}
@media (max-width: 600px) {
  .follow-sheet {
    height: auto;
    max-height: none;
  }
}
.follow-body {
  gap: 14px;
}
.follow-how,
.follow-raw {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
}
.follow-raw {
  color: var(--muted);
}
.follow-raw a {
  color: var(--accent-text);
  font-weight: 600;
}
.follow-link {
  display: flex;
  gap: 8px;
}
.follow-url {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  font: inherit;
  font-size: 14px;
}
.follow-said {
  padding: 0;
  min-height: 0;
}
.follow-readers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.follow-readers a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.ask-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 8px 12px 18px;
  border-bottom: 1px solid var(--line);
}
.ask-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ask-titles span {
  color: var(--muted);
  font-size: 13px;
}
.ask-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}
.ask-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}
.ask-starts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.ask-chip {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.ask-q {
  align-self: flex-end;
  max-width: 85%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
}
.ask-answer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
}
.ask-answer p,
.ask-answer ol {
  margin: 0;
}
.ask-answer ol {
  padding-left: 20px;
}
.ask-from {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.ask-from span {
  color: var(--muted);
  font-size: 12.5px;
}
.ask-from a {
  color: var(--accent-text);
  font-weight: 600;
}
.ask-invite {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.ask-person {
  color: var(--muted);
  font-size: 14px;
}
.ask-person a {
  color: var(--accent-text);
  font-weight: 600;
}
.ask-rate {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.ask-rate button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.ask-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px 4px;
  border-top: 1px solid var(--line);
}
.ask-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  font: inherit;
  font-size: 16px;
}
.ask-go {
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.ask-status {
  min-height: 18px;
  margin: 0;
  padding: 2px 14px 10px;
  color: var(--muted);
  font-size: 12.5px;
}
.ask-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.ask-person-open {
  align-self: flex-start;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface, #fff);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ask-talk {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.ask-talk label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
}
.ask-talk input,
.ask-talk textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
}
.ask-talk textarea {
  min-height: 96px;
  resize: vertical;
}
.ask-talk-note,
.ask-talk-said {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0;
}
.ask-trap {
  display: none;
}
