/* ============================================================
   Help Center — Zocdoc-inspired warm, parent-friendly layout
   Namespace: hc-
   ============================================================ */

:root {
  --hc-yellow: #fff0b3;
  --hc-yellow-deep: #ffe566;
  --hc-yellow-pattern: rgb(255 220 80 / 0.35);
  --hc-bg: #ffffff;
  --hc-bg-page: #f6f4ef;
  --hc-text: #1a1a1a;
  --hc-text-muted: #5f5f5f;
  --hc-text-soft: #8a8a8a;
  --hc-border: #e8e4dc;
  --hc-link: #1a1a1a;
  --hc-link-hover: #ff5a36;
  --hc-accent: #ff5a36;
  --hc-accent-soft: #fff1ec;
  --hc-callout-bg: #faf8f4;
  --hc-callout-border: #ebe6dc;
  --hc-radius: 14px;
  --hc-radius-lg: 20px;
  --hc-radius-pill: 999px;
  --hc-shadow-search: 0 4px 24px rgb(0 0 0 / 0.08);
  --hc-shadow-card: 0 2px 12px rgb(0 0 0 / 0.06);
  --hc-max: 1080px;
  --hc-article-max: 640px;
  --hc-sidebar: 240px;
  --hc-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hc-line: 1.75;
}

/* Hide main site nav — Help Center has its own warm chrome */
.hc-page #fpa-site-nav-mount {
  display: none;
}

.hc-page {
  background: var(--hc-bg-page);
  color: var(--hc-text);
  font-family: var(--hc-font);
  line-height: var(--hc-line);
  min-height: 100vh;
}

.hc-main {
  padding: 0;
}

.hc-container {
  margin: 0 auto;
  max-width: var(--hc-max);
  padding: 0 1.5rem;
}

.hc-container--wide {
  max-width: 1140px;
}

/* ——— Yellow hero band (Zocdoc-style) ——— */

.hc-hero {
  background-color: var(--hc-yellow);
  background-image:
    radial-gradient(circle at 12% 30%, var(--hc-yellow-pattern) 0, transparent 45%),
    radial-gradient(circle at 88% 20%, var(--hc-yellow-pattern) 0, transparent 40%),
    radial-gradient(circle at 70% 85%, var(--hc-yellow-pattern) 0, transparent 35%),
    radial-gradient(circle at 25% 80%, var(--hc-yellow-pattern) 0, transparent 30%);
  padding: 0 0 2.5rem;
  position: relative;
}

.hc-hero--compact {
  padding-bottom: 1.75rem;
}

.hc-hero-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 1.1rem 0 0.5rem;
}

.hc-hero-brand {
  color: var(--hc-text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.hc-hero-brand:hover {
  color: var(--hc-accent);
}

.hc-hero-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.hc-hero-links a {
  color: var(--hc-text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.hc-hero-links a:hover {
  color: var(--hc-accent);
  text-decoration: underline;
}

.hc-hero-body {
  padding: 1.5rem 0 0;
  text-align: center;
}

.hc-hero--article .hc-hero-body {
  padding-top: 0.25rem;
}

.hc-hero--article {
  padding-bottom: 1.5rem;
}

.hc-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.hc-hero-sub {
  color: var(--hc-text-muted);
  font-size: 1.0625rem;
  margin: 0 auto 1.75rem;
  max-width: 34rem;
}

/* ——— Search ——— */

.hc-search-wrap {
  margin: 0 auto;
  max-width: 36rem;
  position: relative;
  text-align: left;
}

.hc-search {
  align-items: center;
  background: rgb(255 255 255 / 0.92);
  border: 0;
  border-radius: var(--hc-radius-pill);
  box-shadow: var(--hc-shadow-search);
  display: flex;
  gap: 0.65rem;
  padding: 0.85rem 1.25rem;
  transition: box-shadow 0.15s;
}

.hc-search:focus-within {
  box-shadow: 0 4px 28px rgb(0 0 0 / 0.12), 0 0 0 3px rgb(255 90 54 / 0.15);
}

.hc-search-icon {
  color: var(--hc-text-soft);
  flex-shrink: 0;
  height: 1.25rem;
  width: 1.25rem;
}

.hc-search input {
  background: transparent;
  border: 0;
  color: var(--hc-text);
  flex: 1;
  font: inherit;
  font-size: 1.0625rem;
  min-width: 0;
  outline: none;
}

.hc-search input::-webkit-search-cancel-button,
.hc-search input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.hc-search input::placeholder {
  color: #aaa;
}

.hc-search-clear {
  background: none;
  border: 0;
  color: var(--hc-text-soft);
  cursor: pointer;
  display: none;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
}

.hc-search-clear.is-visible {
  display: block;
}

.hc-search-results {
  background: var(--hc-bg);
  border-radius: var(--hc-radius);
  box-shadow: var(--hc-shadow-search);
  left: 0;
  margin-top: 0.35rem;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.2rem 0;
  position: absolute;
  right: 0;
  text-align: left;
  top: 100%;
  z-index: 30;
}

.hc-search-results[hidden] {
  display: none;
}

.hc-search-result {
  border-bottom: 1px solid var(--hc-border);
  display: block;
  padding: 0.45rem 0.85rem;
  text-align: left;
  text-decoration: none;
  transition: background 0.12s;
}

.hc-search-result:last-child {
  border-bottom: 0;
}

.hc-search-result:hover,
.hc-search-result:focus-visible {
  background: #faf8f4;
  outline: none;
}

.hc-search-result-title {
  color: var(--hc-text);
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.hc-search-result-meta {
  color: var(--hc-text-soft);
  display: block;
  font-size: 0.75rem;
  line-height: 1.25;
  margin-top: 0.05rem;
}

.hc-search-empty {
  color: var(--hc-text-muted);
  font-size: 0.8125rem;
  padding: 0.6rem 0.85rem;
  text-align: left;
}

/* ——— White content panel below hero ——— */

.hc-panel {
  background: var(--hc-bg);
  border-radius: var(--hc-radius-lg) var(--hc-radius-lg) 0 0;
  margin-top: -1rem;
  min-height: 50vh;
  padding: 2rem 0 3rem;
  position: relative;
}

.hc-panel--flush {
  margin-top: 0;
  border-radius: 0;
}

/* ——— Breadcrumbs ——— */

.hc-breadcrumb {
  color: var(--hc-text-soft);
  font-size: 0.8125rem;
  margin: 0 0 1.75rem;
}

.hc-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-breadcrumb li {
  align-items: center;
  display: flex;
}

.hc-breadcrumb li:not(:last-child)::after {
  color: var(--hc-text-soft);
  content: ">";
  margin: 0 0.4rem;
}

.hc-breadcrumb a {
  color: var(--hc-text-muted);
  text-decoration: none;
}

.hc-breadcrumb a:hover {
  color: var(--hc-accent);
  text-decoration: underline;
}

.hc-breadcrumb [aria-current="page"] {
  color: var(--hc-text-soft);
}

/* ——— Collection grid (hub) ——— */

.hc-collections {
  padding: 0.5rem 0 1rem;
}

.hc-collection-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
}

@media (min-width: 700px) {
  .hc-collection-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hc-collection-card {
  align-items: center;
  background: var(--hc-bg);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-lg);
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 2rem 1.25rem 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
}

.hc-collection-card:hover {
  box-shadow: var(--hc-shadow-card);
  transform: translateY(-2px);
}

.hc-collection-icon {
  align-items: center;
  background: var(--hc-yellow);
  border-radius: 50%;
  display: flex;
  height: 3.5rem;
  justify-content: center;
  width: 3.5rem;
}

.hc-collection-icon svg,
.hc-collection-icon .material-symbols-outlined {
  font-size: 1.75rem;
  height: 1.75rem;
  width: 1.75rem;
}

.hc-collection-card h3 {
  color: var(--hc-text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.hc-collection-card-count {
  color: var(--hc-text-soft);
  font-size: 0.8125rem;
}

/* ——— Collection landing ——— */

.hc-collection-header {
  margin-bottom: 2rem;
}

.hc-collection-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.hc-collection-header p {
  color: var(--hc-text-muted);
  font-size: 1.0625rem;
  margin: 0;
  max-width: 38rem;
}

.hc-article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-article-list-item {
  border-bottom: 1px solid var(--hc-border);
}

.hc-article-list-item:first-child {
  border-top: 1px solid var(--hc-border);
}

.hc-article-list-link {
  align-items: center;
  color: var(--hc-text);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 1.1rem 0.25rem;
  text-decoration: none;
  transition: color 0.12s;
}

.hc-article-list-link:hover {
  color: var(--hc-accent);
}

.hc-article-list-link span:first-child {
  font-size: 1rem;
  font-weight: 500;
}

.hc-chevron {
  color: var(--hc-text-soft);
  flex-shrink: 0;
  height: 1.125rem;
  width: 1.125rem;
}

/* ——— Article layout: content left, TOC right ——— */

.hc-article-layout {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .hc-article-layout {
    grid-template-columns: minmax(0, 1fr) var(--hc-sidebar);
  }
}

.hc-article {
  min-width: 0;
}

.hc-article-header {
  margin-bottom: 2.5rem;
}

.hc-article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.hc-article-lede {
  color: var(--hc-text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.hc-article-date {
  color: var(--hc-text-soft);
  font-size: 0.875rem;
  margin: 0;
}

.hc-jurisdiction {
  align-items: flex-start;
  background: var(--hc-accent-soft);
  border-radius: var(--hc-radius);
  color: var(--hc-text-muted);
  display: flex;
  font-size: 0.9375rem;
  gap: 0.65rem;
  line-height: 1.55;
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
}

.hc-jurisdiction-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.hc-jurisdiction p {
  margin: 0;
}

/* ——— TOC (right sidebar, Zocdoc-style) ——— */

.hc-toc {
  display: none;
  order: 2;
}

@media (min-width: 900px) {
  .hc-toc {
    display: block;
  }
}

.hc-toc-inner {
  position: sticky;
  top: 1.5rem;
}

.hc-toc nav ol {
  border-left: 2px solid var(--hc-border);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-toc nav li {
  margin: 0;
}

.hc-toc nav a {
  border-left: 2px solid transparent;
  color: var(--hc-text-muted);
  display: block;
  font-size: 0.875rem;
  line-height: 1.45;
  margin-left: -2px;
  padding: 0.4rem 0 0.4rem 1rem;
  text-decoration: none;
  transition: color 0.12s, border-color 0.12s;
}

.hc-toc nav a:hover {
  color: var(--hc-text);
}

.hc-toc nav a.is-active {
  border-left-color: var(--hc-text);
  color: var(--hc-text);
  font-weight: 500;
}

.hc-toc-mobile {
  background: var(--hc-bg-page);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

@media (min-width: 900px) {
  .hc-toc-mobile {
    display: none;
  }
}

.hc-toc-mobile-toggle {
  align-items: center;
  background: none;
  border: 0;
  color: var(--hc-text);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  width: 100%;
}

.hc-toc-mobile-panel {
  border-top: 1px solid var(--hc-border);
  padding: 0.5rem 1rem 1rem;
}

.hc-toc-mobile-panel[hidden] {
  display: none;
}

.hc-toc-mobile-panel ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-toc-mobile-panel a {
  color: var(--hc-text-muted);
  display: block;
  font-size: 0.875rem;
  padding: 0.45rem 0;
  text-decoration: none;
}

.hc-toc-mobile-panel a:hover {
  color: var(--hc-accent);
}

/* ——— Article sections ——— */

.hc-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 1.5rem;
}

.hc-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 1rem;
}

.hc-section p {
  color: var(--hc-text);
  font-size: 1.0625rem;
  margin: 0 0 1.15rem;
}

.hc-section ul,
.hc-section ol {
  font-size: 1.0625rem;
  margin: 0 0 1.15rem;
  padding-left: 1.4rem;
}

.hc-section li {
  margin-bottom: 0.55rem;
}

.hc-section li:last-child {
  margin-bottom: 0;
}

/* ——— Callouts ——— */

.hc-callout {
  background: var(--hc-callout-bg);
  border: 1px solid var(--hc-callout-border);
  border-radius: var(--hc-radius);
  margin: 0 0 1rem;
  padding: 1.15rem 1.25rem;
}

.hc-callout-title {
  color: var(--hc-text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.hc-callout-text {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  white-space: pre-wrap;
}

.hc-callout--script {
  padding-top: 1rem;
  position: relative;
}

.hc-callout-head {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.hc-callout-head .hc-callout-title {
  margin: 0;
}

.hc-callout-copy {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--hc-text-muted);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  height: 2rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  transition: background 0.12s, color 0.12s;
  width: 2rem;
}

.hc-callout-copy svg {
  height: 1.125rem;
  width: 1.125rem;
}

.hc-callout-copy:hover {
  background: rgb(0 0 0 / 0.05);
  color: var(--hc-text);
}

.hc-callout-copy.is-copied {
  color: #0d7a4f;
}

/* ——— Related articles ——— */

.hc-related {
  border-top: 1px solid var(--hc-border);
  margin-top: 3rem;
  padding-top: 1.75rem;
}

.hc-related h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.hc-related-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-related-list li {
  margin: 0;
}

.hc-related-link {
  align-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--hc-text);
  display: flex;
  font-size: 1rem;
  font-weight: 500;
  justify-content: space-between;
  margin: 0 -0.5rem;
  padding: 0.65rem 0.5rem;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}

.hc-related-link:hover {
  background: var(--hc-bg-page);
  color: var(--hc-accent);
}

/* ——— Feedback ——— */

.hc-feedback {
  border-top: 1px solid var(--hc-border);
  margin-top: 2.5rem;
  padding: 2rem 0 0;
  text-align: center;
}

.hc-feedback-question {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1.75rem;
}

.hc-feedback-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.hc-feedback-btn {
  align-items: center;
  background: var(--hc-bg);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
  gap: 0.3rem;
  min-width: 5.5rem;
  padding: 0.75rem 0.85rem;
  transition: border-color 0.12s, background 0.12s, transform 0.12s;
}

.hc-feedback-btn:hover {
  background: var(--hc-yellow);
  border-color: var(--hc-yellow-deep);
  transform: translateY(-1px);
}

.hc-feedback-btn.is-selected {
  background: var(--hc-yellow);
  border-color: var(--hc-yellow-deep);
}

.hc-feedback-btn:disabled {
  cursor: default;
  opacity: 0.55;
  transform: none;
}

.hc-feedback-emoji {
  font-size: 1.75rem;
  line-height: 1;
}

.hc-feedback-label {
  color: var(--hc-text-muted);
  font-size: 0.75rem;
}

.hc-feedback-thanks {
  color: var(--hc-text-muted);
  font-size: 0.9375rem;
  margin: 1rem 0 0;
}

.hc-feedback-thanks[hidden] {
  display: none;
}

/* ——— Toast ——— */

.hc-toast-container {
  bottom: 1.5rem;
  left: 50%;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%);
  z-index: 1000;
}

.hc-toast {
  background: var(--hc-text);
  border-radius: var(--hc-radius-pill);
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.18);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0;
  padding: 0.75rem 1.25rem;
  transform: translateY(0.5rem);
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
}

.hc-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hc-toast.is-leaving {
  opacity: 0;
  transform: translateY(0.35rem);
}

.hc-toast--error {
  background: #9b1c1c;
}

/* ——— Sources ——— */

.hc-sources {
  margin-bottom: 0.5rem;
  margin-top: 2.5rem;
}

.hc-sources h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.hc-sources ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-sources li {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.hc-sources a {
  color: var(--hc-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hc-sources a:hover {
  color: var(--hc-accent);
}

.hc-sources cite {
  color: var(--hc-text-soft);
  font-style: normal;
}

/* ——— Contact strip ——— */

.hc-contact-strip {
  background: var(--hc-bg-page);
  border-top: 1px solid var(--hc-border);
  padding: 2.5rem 0;
  text-align: center;
}

.hc-contact-strip .hc-container {
  padding: 0 1.5rem;
}

.hc-contact-strip p {
  color: var(--hc-text-muted);
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.hc-contact-strip a {
  color: var(--hc-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hc-contact-strip a:hover {
  color: var(--hc-accent);
}

/* ——— Advocate CTA ——— */

.hc-advocate-cta {
  background: var(--hc-yellow);
  border-radius: var(--hc-radius-lg);
  margin-top: 3.5rem;
  padding: 1.5rem 1.75rem;
}

.hc-advocate-cta p {
  font-size: 1rem;
  margin: 0 0 1rem;
}

.hc-advocate-cta a {
  background: var(--hc-text);
  border-radius: var(--hc-radius-pill);
  color: #fff;
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
  transition: background 0.12s;
}

.hc-advocate-cta a:hover {
  background: #333;
}
