/* SimCompare365 — Table of Contents + Page Feedback styles
 *
 * Three TOC variants, single .toc-pill component for inline, then
 * sidebar (lg ≥ 1024px) and mobile-dropdown (lg < 1024px).
 * Plus the helpful/unhelpful feedback widget.
 */

/* Anchor jump offset for sticky 64-72 px nav. 96 px ≈ Tailwind's
   scroll-mt-24 (6rem). Add the class to every <h2> and <details>. */
.scroll-mt-24 { scroll-margin-top: 96px; }

/* =========================================================
 * 1. Inline pill TOC (default for most guides)
 * ========================================================= */
.toc-inline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toc-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #eceef0;
  color: #45464d;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.toc-pill:hover {
  background: #d8dadc;
  color: #000;
}
.toc-pill.active {
  background: #131b2e;
  color: #fff;
}

/* =========================================================
 * 2. Sidebar TOC (lg ≥ 1024 px)
 * Mirrors the reference: an "ON THIS PAGE" header, group buckets
 * (uppercase, dimmed), per-item full question + 3-4 word caption,
 * and a "START HERE" pill on the page's primary item.
 * ========================================================= */
.toc-sidebar {
  font-size: 14px;
  color: #45464d;
}
.toc-sidebar .toc-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #76777d;
  margin: 0 0 12px;
}
.toc-sidebar .toc-group-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #76777d;
  margin: 18px 0 4px;
}
.toc-sidebar .toc-group-heading:first-of-type { margin-top: 0; }
.toc-sidebar-list {
  list-style: none;
  margin: 0 0 4px 0;
  padding: 0;
}
.toc-sidebar-list li { margin-bottom: 6px; }
.toc-sidebar-link {
  display: block;
  padding: 4px 0;
  color: #131b2e;
  text-decoration: none;
  line-height: 1.35;
  transition: color .15s ease;
}
.toc-sidebar-link .toc-question {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.toc-sidebar-link:hover { color: #000; }
.toc-sidebar-link:hover .toc-question { color: #000; }
.toc-sidebar-link.active .toc-question {
  color: #131b2e;
  font-weight: 700;
}
.toc-sidebar-link.primary .toc-question {
  font-weight: 700;
  color: #131b2e;
}
.toc-desc {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #76777d;
  margin-top: 2px;
}
.toc-start-here {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  background: #131b2e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 9999px;
}

/* Nested H3 sub-list inside an H2 item. Indented + smaller, with a
   thin left-rule to read as a sub-hierarchy. */
.toc-sidebar-sublist {
  list-style: none;
  margin: 4px 0 8px 0;
  padding: 0 0 0 10px;
  border-left: 1px solid #e6e8ea;
}
.toc-sidebar-sublist li { margin-bottom: 2px; }
.toc-sidebar-link.toc-level-3 .toc-question {
  font-size: 13px;
  font-weight: 400;
  color: #45464d;
  line-height: 1.3;
}
.toc-sidebar-link.toc-level-3:hover .toc-question { color: #000; }
.toc-sidebar-link.toc-level-3.active .toc-question {
  color: #131b2e;
  font-weight: 600;
}

/* =========================================================
 * 3. Mobile-dropdown TOC (lg < 1024 px). Native <details>.
 * ========================================================= */
.toc-mobile-dropdown {
  margin: 16px 0;
  background: #fff;
  border: 1px solid #c6c6cd;
}
.toc-mobile-dropdown[open] { background: #f7f9fb; }
.toc-mobile-dropdown summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #000;
}
.toc-mobile-dropdown summary::-webkit-details-marker { display: none; }
.toc-mobile-dropdown summary > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.toc-mobile-dropdown summary > span > span:last-child { color: #76777d; }
.toc-mobile-dropdown nav {
  border-top: 1px solid #c6c6cd;
  padding: 12px 16px;
}
.toc-mobile-dropdown .toc-group-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #76777d;
  margin: 12px 0 4px;
}
.toc-mobile-dropdown .toc-group-heading:first-child { margin-top: 0; }
.toc-mobile-dropdown nav ul {
  list-style: none;
  margin: 0 0 4px 0;
  padding: 0;
}
.toc-mobile-dropdown nav li { margin-bottom: 2px; }
.toc-mobile-link {
  display: block;
  padding: 6px 8px;
  border-radius: 4px;
  color: #45464d;
  text-decoration: none;
  font-size: 14px;
  transition: background .15s ease, color .15s ease;
}
.toc-mobile-link:hover { background: #f2f4f6; color: #000; }
.toc-mobile-link.active { background: #e6e8ea; color: #000; font-weight: 600; }
.toc-mobile-link.primary { font-weight: 600; color: #131b2e; }
.toc-mobile-sublist {
  list-style: none;
  margin: 4px 0 6px 0;
  padding: 0 0 0 10px;
  border-left: 1px solid #e6e8ea;
}
.toc-mobile-link.toc-level-3 {
  font-size: 13px;
  color: #45464d;
  padding: 4px 8px;
}

/* =========================================================
 * 4. Page-feedback widget (helpful / unhelpful)
 * ========================================================= */
.page-feedback {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 24px;
  padding: 12px 16px;
  background: #f7f9fb;
  border: 1px solid #e6e8ea;
  font-size: 14px;
  color: #45464d;
}
.pf-prompt { font-weight: 500; }
.pf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #c6c6cd;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #45464d;
  transition: border-color .15s, color .15s, background .15s;
}
.pf-btn:hover:not(:disabled) { border-color: #000; color: #000; }
.pf-btn:disabled { cursor: default; opacity: 0.7; }
.pf-btn.selected {
  background: #131b2e;
  color: #fff;
  border-color: #131b2e;
}
.pf-thanks {
  font-size: 13px;
  color: #76777d;
  font-style: italic;
}

/* =========================================================
 * 5. BLUF paragraph styling
 * ========================================================= */
.bluf {
  background: #f2f4f6;
  border-left: 4px solid #131b2e;
  padding: 20px 24px;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: #191c1e;
}
.bluf strong { font-weight: 700; color: #000; }
.bluf .bluf-lead { font-weight: 700; color: #000; }

/* =========================================================
 * 6. Responsive sidebar layout helper
 * ========================================================= */
.toc-sticky { position: sticky; top: 96px; }
