/* Help center. Article prose mirrors rehive-website-next `.rt-prose` (src/app/globals.css). */

.rt-prose {
  color: hsl(var(--rt-ink) / 0.7);
  font-size: 15.5px;
  line-height: 1.75;
  text-align: left;
  overflow-wrap: break-word;
}
.rt-prose > :first-child { margin-top: 0; }
.rt-prose h1,
.rt-prose h2,
.rt-prose h3,
.rt-prose h4,
.rt-prose h5,
.rt-prose h6 {
  font-family: 'Inter Tight', system-ui, sans-serif;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: hsl(var(--rt-ink));
  text-align: left;
  scroll-margin-top: 96px;
}
.rt-prose h1 {
  font-size: 28px;
  line-height: 1.15;
  margin: 3.5rem 0 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(13, 13, 20, 0.1);
}
.rt-prose h2 { font-size: 21px; line-height: 1.2; margin: 2.75rem 0 1rem; }
.rt-prose h3 { font-size: 17px; margin: 2.25rem 0 0.75rem; }
.rt-prose h4, .rt-prose h5, .rt-prose h6 { font-size: 15.5px; margin: 1.75rem 0 0.5rem; }
.rt-prose p { margin: 1rem 0; }
.rt-prose a {
  color: hsl(var(--rt-violet-deep));
  text-decoration: underline;
  text-decoration-color: hsl(var(--rt-violet) / 0.35);
  text-underline-offset: 3px;
}
.rt-prose a:hover { text-decoration-color: hsl(var(--rt-violet)); }
.rt-prose strong { color: hsl(var(--rt-ink)); font-weight: 600; }
.rt-prose ul, .rt-prose ol { margin: 1rem 0; padding-left: 1.5rem; }
.rt-prose ul { list-style: disc; }
.rt-prose li { margin: 0.375rem 0; padding-left: 0.25rem; }
.rt-prose li::marker { color: hsl(var(--rt-ink) / 0.4); }
.rt-prose blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 2px solid hsl(var(--rt-violet) / 0.5);
  color: hsl(var(--rt-ink) / 0.6);
  font-style: italic;
}
.rt-prose hr { margin: 2.5rem 0; border: 0; border-top: 1px solid rgba(13, 13, 20, 0.1); }
.rt-prose img { border-radius: 16px; margin: 1.75rem 0; }
.rt-prose code {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.85em;
  background: hsl(var(--rt-ink) / 0.06);
  border-radius: 4px;
  padding: 0.15em 0.4em;
}
.rt-prose pre {
  margin: 1.5rem 0;
  padding: 1.25rem;
  overflow-x: auto;
  border-radius: 12px;
  background: hsl(var(--rt-ink));
  color: hsl(var(--rt-paper));
  font-size: 13px;
  line-height: 1.6;
}
.rt-prose pre code { background: transparent; padding: 0; font-size: inherit; }

/* Steps: every ordered list renders as numbered circles joined by a line */
.rt-prose ol { list-style: none; padding-left: 0; counter-reset: step; }
.rt-prose ol > li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 0 0 1.1rem 2.75rem;
}
.rt-prose ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  color: hsl(var(--rt-violet-deep));
  background: hsl(var(--rt-violet) / 0.1);
  border: 1px solid hsl(var(--rt-violet) / 0.3);
}
.rt-prose ol > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(0.875rem - 0.5px);
  top: 2.05rem;
  bottom: 0.2rem;
  border-left: 1px solid hsl(var(--rt-violet) / 0.2);
}
.rt-prose ol > li:last-child { padding-bottom: 0; }

/* Inline tags: `*Before go-live*{: .tag }` */
.rt-prose em.tag,
.help-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--rt-violet) / 0.25);
  background: hsl(var(--rt-violet) / 0.06);
  color: hsl(var(--rt-violet-deep));
  font-style: normal;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.1em;
  white-space: nowrap;
}

/* Status pills: `*Completed*{: .tag .ok }` (green), `*Failed*{: .tag .no }` (red) */
.rt-prose em.tag.ok { border-color: hsl(152 60% 32% / 0.3); background: hsl(152 76% 44% / 0.1); color: hsl(152 70% 24%); }
.rt-prose em.tag.no { border-color: hsl(0 70% 45% / 0.25); background: hsl(0 80% 55% / 0.07); color: hsl(0 65% 38%); }
.rt-prose p > em.tag:first-child { margin-left: 0; }

/* Checklists:"- [ ] item" ticks, "- [-] item" crosses */
.rt-prose ul.checklist { list-style: none; padding-left: 0; }
.rt-prose ul.checklist > li { position: relative; padding-left: 2rem; margin: 0.55rem 0; }
.rt-prose ul.checklist > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 6px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 0.8rem;
}
.rt-prose ul.checklist > li.check::before {
  background-color: hsl(var(--rt-mint) / 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23157a4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.rt-prose ul.checklist > li.cross::before {
  background-color: hsl(0 80% 55% / 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4232a' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
}

/* Flow diagrams: wider than the column, so they scroll sideways inside a card. The card is
   drawn on the same paper tone as the other help diagrams (flow-rain-*.svg), so it reads as
   one of them rather than a bordered panel. */
.rt-prose .help-flow {
  position: relative;
  margin: 1.75rem 0;
  overflow: hidden;
  border-radius: 16px;
  background: #f6f5f2;
}
/* Lane titles sit in their own image to the left so they stay put while the body scrolls */
.rt-prose .help-flow { display: flex; align-items: flex-start; }
.rt-prose .help-flow__lanes { flex: none; position: relative; z-index: 1; background: #f6f5f2; }
.rt-prose .help-flow__scroll {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.rt-prose .help-flow img { display: block; max-width: none; margin: 0; border-radius: 0; }
/* Scroll affordance: a fade on the right edge and a hint pill, only while there is more to the right.
   `is-scrollable` and `at-end` are set by the script in help/article.html. */
.rt-prose .help-flow::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 72px;
  pointer-events: none;
  background: linear-gradient(to right, rgba(246, 245, 242, 0), #f6f5f2 85%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.rt-prose .help-flow::before {
  content: "Scroll sideways \2192";
  position: absolute;
  top: 10px; right: 12px;
  z-index: 1;
  pointer-events: none;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--rt-violet));
  background: hsl(var(--rt-violet) / 0.1);
  border: 1px solid hsl(var(--rt-violet) / 0.25);
  border-radius: 999px;
  padding: 4px 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.rt-prose .help-flow.is-scrollable:not(.at-end)::after,
.rt-prose .help-flow.is-scrollable:not(.at-end)::before { opacity: 1; }

/* Tables: a soft card with a tinted header; scroll inside the column on narrow screens */
.rt-prose .help-table {
  margin: 1.75rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(13, 13, 20, 0.1);
  border-radius: 14px;
  background: white;
}
.rt-prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.rt-prose th {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: hsl(var(--rt-ink) / 0.55);
  background: hsl(var(--rt-ink) / 0.03);
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(13, 13, 20, 0.1);
  white-space: nowrap;
}
.rt-prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(13, 13, 20, 0.07);
  vertical-align: top;
  min-width: 7rem;
}
.rt-prose tr:last-child td { border-bottom: 0; }
.rt-prose td:first-child { color: hsl(var(--rt-ink)); font-weight: 500; }

/* Group rows: a bold first cell and empty other cells (`| **Notifications** | | |`) */
.rt-prose tr:has(> td:first-child > strong:only-child):has(> td:nth-child(2):empty) td {
  background: hsl(var(--rt-ink) / 0.04);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.rt-prose tr:has(> td:first-child > strong:only-child):has(> td:nth-child(2):empty) td:first-child { white-space: nowrap; }

/* Plan comparison tables: centred plan columns, tick or dash instead of "Yes" or blank */
.rt-prose .plan-table th:not(:first-child),
.rt-prose .plan-table td:not(:first-child) { text-align: center; }
.rt-prose .plan-table .cell-yes,
.rt-prose .plan-table .cell-no {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  vertical-align: middle;
  background-position: center;
  background-repeat: no-repeat;
}
.rt-prose .plan-table .cell-yes {
  border-radius: 999px;
  background-color: hsl(var(--rt-mint) / 0.16);
  background-size: 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23157a4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.rt-prose .plan-table .cell-no {
  background-size: 0.7rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3ad' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E");
}

/* Callouts: `!!! note "Can you change it?"` (python-markdown admonition) */
.rt-prose .admonition {
  margin: 1.75rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid hsl(var(--rt-violet) / 0.25);
  border-radius: 16px;
  background: hsl(var(--rt-violet) / 0.05);
}
.rt-prose .admonition > :last-child { margin-bottom: 0; }
.rt-prose .admonition-title {
  margin: 0 0 0.4rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--rt-violet-deep));
}
.rt-prose .admonition.warning {
  border-color: hsl(36 90% 45% / 0.35);
  background: hsl(42 100% 50% / 0.07);
}
.rt-prose .admonition.warning .admonition-title { color: hsl(30 80% 32%); }
.rt-prose .admonition.tip {
  border-color: hsl(var(--rt-mint) / 0.35);
  background: hsl(var(--rt-mint) / 0.06);
}
.rt-prose .admonition.tip .admonition-title { color: hsl(152 70% 26%); }

/* Slide-out triggers: `[Groups](#slideout-groups)` in an article. The text wraps normally and a
   small panel mark (not a chevron, which means "expand") follows the last word. */
.rt-prose a[href^="#slideout-"] {
  font-weight: 600;
  text-decoration: none;
}
.rt-prose a[href^="#slideout-"] .slideout-tail { white-space: nowrap; }
.rt-prose a[href^="#slideout-"] .slideout-tail::after {
  content: "";
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 0.3rem;
  vertical-align: -0.12rem;
  border-radius: 4px;
  background: hsl(var(--rt-violet) / 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a35c8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='14' rx='2'/%3E%3Cpath d='M14 5v14'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
  transition: background-color .2s ease;
}
.rt-prose a[href^="#slideout-"]:hover .slideout-tail::after { background-color: hsl(var(--rt-violet) / 0.2); }

/* Tables of slide-out areas: a fixed first column with a gutter for the expand toggle, so names
   line up whether or not a row expands. A Beta tag drops under the name. */
.rt-prose table.slideout-table td:first-child,
.rt-prose table.slideout-table th:first-child { width: 11.5rem; min-width: 10rem; padding-left: 2.1rem; position: relative; }
.rt-prose table.slideout-table td:first-child em.tag { display: block; width: fit-content; margin: 0.4rem 0 0; }
.rt-prose tr.has-subrows { cursor: pointer; }
.rt-prose tr.has-subrows:hover td { background: hsl(var(--rt-violet) / 0.03); }
.help-row-toggle {
  position: absolute;
  left: 0.55rem;
  top: 0.82rem;
  width: 1.2rem;
  height: 1.2rem;
  border: 0;
  border-radius: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366667a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
  transition: transform .2s ease;
  cursor: pointer;
}
.help-row-toggle:hover { background-color: hsl(var(--rt-ink) / 0.06); }
.rt-prose tr.is-expanded .help-row-toggle { transform: rotate(90deg); }
.rt-prose tr.help-subrow td { background: hsl(var(--rt-ink) / 0.025); font-size: 13.5px; padding-top: 0.55rem; padding-bottom: 0.55rem; }
.rt-prose table.slideout-table tr.help-subrow td:first-child { padding-left: 2.9rem; }
.rt-prose tr.help-subrow td:first-child a { font-weight: 500; }

/* Slide-out panel: a native <dialog> pinned to the right edge */
.help-slideout {
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  width: min(460px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  background: transparent;
}
.help-slideout:focus { outline: none; }
.help-slideout::backdrop { background: hsl(var(--rt-ink) / 0.35); }
.help-slideout__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: hsl(var(--rt-paper));
  box-shadow: -24px 0 48px -24px rgba(13, 13, 20, 0.35);
}
.help-slideout[open] .help-slideout__panel { animation: help-slideout-in .25s ease-out; }
@keyframes help-slideout-in { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .help-slideout[open] .help-slideout__panel { animation: none; } }
.help-slideout__close {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 13, 20, 0.12);
  background: white;
  color: hsl(var(--rt-ink) / 0.6);
}
.help-slideout__close:hover { color: hsl(var(--rt-ink)); border-color: hsl(var(--rt-ink) / 0.3); }
.help-slideout__list { list-style: none; padding: 0; margin: 0; }
.help-slideout__list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.6rem;
  border-bottom: 1px solid rgba(13, 13, 20, 0.07);
  font-size: 14.5px;
  line-height: 1.5;
  color: hsl(var(--rt-ink) / 0.8);
}
.help-slideout__list li:last-child { border-bottom: 0; }
.help-slideout__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: hsl(var(--rt-mint) / 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23157a4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.62rem no-repeat;
}

/* The stack (How Rehive works): apps, the Rehive operating layer, providers */
.rt-prose .help-stack { margin: 1.75rem 0; display: grid; gap: 0.5rem; }
.rt-prose .help-stack__layer {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(13, 13, 20, 0.12);
  border-radius: 14px;
  background: white;
}
.rt-prose .help-stack__layer--rehive {
  border-color: hsl(var(--rt-violet) / 0.45);
  background: hsl(var(--rt-violet) / 0.06);
}
.rt-prose .help-stack p { margin: 0; }
.rt-prose .help-stack__label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--rt-ink) / 0.55);
}
.rt-prose .help-stack__layer--rehive .help-stack__label { color: hsl(var(--rt-violet-deep)); }
.rt-prose .help-stack__text { margin-top: 0.3rem !important; font-size: 14.5px; line-height: 1.55; }
.rt-prose .help-stack__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem !important; }
.rt-prose .help-stack__chip {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--rt-violet) / 0.4);
  background: white;
  color: hsl(var(--rt-violet-deep));
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
.rt-prose a.help-stack__chip:hover { border-color: hsl(var(--rt-violet)); }
.rt-prose .help-stack__chip--quiet { border-color: rgba(13, 13, 20, 0.14); color: hsl(var(--rt-ink) / 0.7); font-weight: 500; }

/* Draft blocks (`!!! draft "Question"`): open questions for the team, shown only with ?draft=true */
.rt-prose .admonition.draft {
  border: 1px dashed hsl(280 55% 50% / 0.55);
  background: hsl(280 80% 60% / 0.05);
}
.rt-prose .admonition.draft .admonition-title { color: hsl(280 50% 38%); }
.rt-prose .admonition.draft .admonition-title::before { content: "Draft · question for the team · "; }
.rt-prose .admonition.draft > :not(.admonition-title) { font-style: italic; }
.rt-prose h2.draft-section, .rt-prose h3.draft-section { color: hsl(280 50% 38%); }
.help-draft-banner { border: 1px dashed hsl(280 55% 50% / 0.55); background: hsl(280 80% 60% / 0.07); border-radius: 14px; color: hsl(280 40% 25%); }

/* Roadmap (`!!! roadmap "Title"` cards, `*text*{: .roadmap-mark }` inline): shown only with ?roadmap=true */
.rt-prose .admonition.roadmap {
  border: 1px solid hsl(174 60% 35% / 0.4);
  background: hsl(174 70% 40% / 0.06);
  padding-left: 3.1rem;
  position: relative;
}
.rt-prose .admonition.roadmap::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 1.05rem;
  width: 1.3rem;
  height: 1.3rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20'/%3E%3Cpath d='M12 5h7l2 2.5-2 2.5h-7'/%3E%3Cpath d='M12 12H5l-2 2.5L5 17h7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rt-prose .admonition.roadmap .admonition-title { color: hsl(174 70% 24%); }
.rt-prose .admonition.roadmap .admonition-title::before { content: "On the roadmap · "; }
.rt-prose em.roadmap-mark { font-style: inherit; }
.rt-prose.show-roadmap em.roadmap-mark {
  background: hsl(174 70% 40% / 0.12);
  border-radius: 4px;
  padding: 0.05rem 0.3rem 0.05rem 1.35rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20'/%3E%3Cpath d='M12 5h7l2 2.5-2 2.5h-7'/%3E%3Cpath d='M12 12H5l-2 2.5L5 17h7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.3rem center;
  background-size: 0.85rem;
}
.rt-prose.show-roadmap .admonition.roadmap.has-mark { display: none; }
.rt-prose.show-roadmap em.roadmap-mark[role="button"] { cursor: pointer; text-decoration: underline dotted hsl(174 60% 30% / 0.6); text-underline-offset: 3px; }
.rt-prose.show-roadmap em.roadmap-mark[role="button"]:hover,
.rt-prose.show-roadmap em.roadmap-mark[role="button"]:focus-visible { background-color: hsl(174 70% 40% / 0.22); outline: none; }
.help-roadmap-slideout .help-slideout__panel { border-left: 3px solid hsl(174 60% 35% / 0.6); }
.help-roadmap-slideout__eyebrow { color: hsl(174 70% 24%); }
.help-roadmap-slideout__body > :first-child { margin-top: 0; }
.help-roadmap-banner { border: 1px solid hsl(174 60% 35% / 0.4); background: hsl(174 70% 40% / 0.07); border-radius: 14px; color: hsl(174 60% 18%); }

/* Collapsible group rows (`**Group**{: .collapsible }`) */
.rt-prose tr.is-collapsible td { cursor: pointer; background: hsl(var(--rt-ink) / 0.04); padding-top: 0.55rem; padding-bottom: 0.55rem; }
.help-group-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.help-group-toggle::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366667a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}
.rt-prose tr.is-open .help-group-toggle::before { transform: rotate(90deg); }
.help-group-toggle > strong { flex: 1; }
.help-group-count {
  flex-shrink: 0;
  padding: 0.1rem 0.6rem;
  border: 1px solid rgba(13, 13, 20, 0.12);
  border-radius: 999px;
  background: white;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--rt-ink) / 0.55);
}
.rt-prose tr.is-collapsible:hover td { background: hsl(var(--rt-ink) / 0.07); }

/* Plan badges */
.plan-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(13, 13, 20, 0.12);
  padding: 0.15rem 0.6rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--rt-ink) / 0.65);
  background: white;
}
.plan-badge--premium { border-color: hsl(var(--rt-violet) / 0.3); color: hsl(var(--rt-violet-deep)); }
.plan-badge--enterprise { border-color: hsl(var(--rt-ink) / 0.8); background: hsl(var(--rt-ink)); color: hsl(var(--rt-paper)); }

/* On-page TOC */
.help-toc a { display: block; padding: 0.3rem 0 0.3rem 0.85rem; border-left: 1px solid rgba(13, 13, 20, 0.1); font-size: 13.5px; line-height: 1.4; color: hsl(var(--rt-ink) / 0.55); transition: color .2s ease, border-color .2s ease; }
.help-toc a:hover { color: hsl(var(--rt-ink)); }
.help-toc a.is-active { color: hsl(var(--rt-violet-deep)); border-left-color: hsl(var(--rt-violet)); }
.help-toc a.level-3 { padding-left: 1.6rem; font-size: 12.5px; }

/* Search results */
.help-search-results mark { background: hsl(var(--rt-violet) / 0.15); color: inherit; border-radius: 3px; padding: 0 1px; }

/* DEBUG-only review box */
.help-review { border: 1px solid hsl(45 90% 45% / 0.6); background: hsl(50 100% 88%); border-radius: 14px; overflow-wrap: anywhere; }

.rt-prose .nowrap { white-space: nowrap; }

/* Pills in a table's first column sit on their own line under the name */
.rt-prose td:first-child em.tag { display: block; width: fit-content; margin: 0.4rem 0 0; }

/* Under-construction bar under the site header on every help page. */
.help-construction-banner {
  border-bottom: 1px solid hsl(38 92% 45% / 0.35);
  background: hsl(45 100% 60% / 0.18);
  color: hsl(30 60% 22%);
}
