/* Voiply Help Center — tokens from the Voiply Design System */
@font-face { font-family: "Aspekta"; src: url(/fonts/AspektaVF.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --orange: #F53900; --orange-press: #DF3400; --orange-deep: #AE2800; --orange-50: #FEEBE6;
  --black: #080808; --gray-800: #585858; --gray-300: #D9D9D9; --gray-100: #F5F5F5; --gray-50: #FAFAFA; --white: #FFFFFF;
  --lime: #C6FF00;
  --font: "Aspekta", "Inter", Arial, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --pill: 999px;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--black); background: var(--white); font-size: 16px; line-height: 1.5; }
img, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; margin: 0; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--black); color: var(--white); padding: 10px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; color: var(--white); }
.muted { color: var(--gray-800); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.icon { flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 500; font-size: 16px; min-height: 48px; padding: 12px 22px; border-radius: var(--pill); border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-press); color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); border-radius: 10px; }
.btn-dark:hover { background: #2a2a2a; color: var(--white); }
.btn-outline { background: var(--white); border-color: var(--black); color: var(--black); }
.btn-outline:hover { background: var(--gray-50); color: var(--black); }
.btn-outline[aria-pressed="true"] { background: var(--black); color: var(--white); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--gray-300); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 30px; width: auto; }
.brand-divider { width: 1px; height: 24px; background: var(--gray-300); }
.brand-label { color: var(--gray-800); font-weight: 500; }
.header-spacer { flex: 1; }
.header-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-link { font-size: 15px; }

/* search */
.search { position: relative; display: flex; align-items: center; gap: 10px; background: var(--white); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; background: transparent; color: var(--black); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search-icon { color: var(--gray-800); }
.search:focus-within .search-kbd { display: none; }
.search-kbd { font: 12px var(--font); color: var(--gray-800); border: 1px solid var(--gray-300); border-radius: 6px; padding: 2px 7px; }
.search-compact { flex: 1 1 320px; max-width: 520px; border: 1px solid var(--gray-300); border-radius: var(--pill); padding: 8px 16px; background: var(--gray-50); }
.search-compact:focus-within { border-color: var(--black); background: var(--white); }
.search-compact input { font-size: 15px; min-height: 28px; }
.search-hero { width: 100%; border: 1.5px solid var(--black); border-radius: var(--r-lg); padding: 8px 8px 8px 20px; box-shadow: 0 12px 32px rgba(245,57,0,0.10); }
.search-hero input { font-size: 17px; min-height: 48px; }
.typeahead { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--r); box-shadow: 0 16px 40px rgba(8,8,8,0.12); padding: 6px; z-index: 30; text-align: left; max-height: 70vh; overflow: auto; }
.ta-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r-sm); }
.ta-item[aria-selected="true"], .ta-item:hover { background: var(--orange-50); color: var(--black); }
.ta-title { font-weight: 500; }
.ta-meta { font-size: 13px; color: var(--gray-800); }
.ta-all { display: block; padding: 10px 12px; font-size: 14px; color: var(--orange-deep); font-weight: 500; border-top: 1px solid var(--gray-300); margin-top: 4px; }
.ta-none { padding: 12px; color: var(--gray-800); font-size: 14px; }
mark { background: var(--orange-50); color: inherit; border-radius: 3px; padding: 0 1px; }

/* hero */
.hero { background: linear-gradient(180deg, rgba(217,217,217,0.25), rgba(217,217,217,0)); padding: 72px 0 48px; }
.hero-inner { max-width: 820px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.hero h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; }
.lede { font-size: 18px; color: var(--gray-800); line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 14px; }
.chips-label { color: var(--gray-800); padding: 8px 4px; }
.chip { border: 1px solid var(--gray-300); border-radius: var(--pill); padding: 8px 14px; background: var(--white); }
.chip:hover { border-color: var(--orange); }

/* blocks */
.block { padding-top: 56px; }
.block:last-child { padding-bottom: 72px; }
.block h2 { font-size: 30px; }
.h-small { font-size: 15px !important; font-weight: 600 !important; color: var(--gray-800); margin-bottom: 14px !important; }
.block-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.block-head p { color: var(--gray-800); }
.grid { display: grid; gap: 16px; }
.grid-actions { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-related { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }

.action { display: flex; align-items: center; gap: 14px; border: 1px solid var(--gray-300); border-radius: var(--r); padding: 18px; }
.action:hover { border-color: var(--black); color: var(--black); }
.action-icon { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--black); color: var(--white); display: flex; align-items: center; justify-content: center; }
.action-title { display: block; font-weight: 500; }
.action-sub { display: block; font-size: 14px; color: var(--gray-800); }

.cat { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--gray-300); border-radius: var(--r); padding: 24px; min-height: 180px; }
.cat:hover { border-color: var(--black); color: var(--black); }
.cat-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--orange-50); color: var(--orange); display: flex; align-items: center; justify-content: center; flex: none; }
.cat-icon-lg { width: 56px; height: 56px; border-radius: 14px; }
.cat-title { font-size: 20px; font-weight: 500; line-height: 1.25; }
.cat-desc { font-size: 15px; color: var(--gray-800); }
.cat-count { margin-top: auto; font-size: 14px; font-weight: 500; color: var(--orange-deep); }
.cat-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.cat-dark:hover { color: var(--white); background: #1d1d1d; }
.cat-dark .cat-desc { color: rgba(255,255,255,0.78); }
.cat-dark .cat-count { color: var(--lime); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 48px; }
.split h2 { margin-bottom: 8px; }
.toplist { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--gray-300); counter-reset: top; }
.toplist li { border-bottom: 1px solid var(--gray-300); }
.toplist a { display: flex; align-items: center; gap: 16px; padding: 16px 4px; }
.toplist-title { flex: 1; font-size: 17px; line-height: 1.4; }
.tag { font-size: 13px; color: var(--gray-800); background: var(--gray-100); border-radius: var(--pill); padding: 4px 10px; white-space: nowrap; }
.tag-accent { background: var(--orange-50); color: var(--orange-deep); font-weight: 500; }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps a { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid var(--gray-300); border-radius: var(--r); }
.steps a:hover { border-color: var(--black); color: var(--black); }
.step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--orange); color: var(--orange-deep); font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.step-title { display: block; font-weight: 500; font-size: 17px; }
.step-sub { display: block; font-size: 14px; color: var(--gray-800); }

.contact { border: 1px solid var(--gray-300); border-radius: var(--r-lg); padding: 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; background: var(--gray-50); }
.contact-text { max-width: 460px; display: flex; flex-direction: column; gap: 8px; }
.contact-text p { color: var(--gray-800); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* page head, breadcrumbs */
.page-head { background: linear-gradient(180deg, rgba(217,217,217,0.25), rgba(217,217,217,0)); padding: 32px 0 28px; }
.page-head .wrap { display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { font-size: clamp(30px, 4vw, 40px); }
.page-title { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.page-title > div { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 260px; }
.page-head .search-hero { max-width: 760px; }
.page-head .chips { justify-content: flex-start; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--gray-800); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--gray-300); }
.crumbs a { color: var(--gray-800); }
.crumbs [aria-current] { color: var(--black); }

/* category layout */
.with-side { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 24px; padding-bottom: 72px; }
.side { flex: 1 1 240px; max-width: 280px; display: flex; flex-direction: column; gap: 24px; }
.content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.side-label { font-size: 13px; font-weight: 600; color: var(--gray-800); padding: 0 12px 8px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--gray-800); font-size: 15px; }
.side-nav a:hover { background: var(--gray-100); color: var(--black); }
.side-nav .count { font-size: 13px; }
.side-box { padding: 18px; border-radius: var(--r); background: var(--gray-50); border: 1px solid var(--gray-300); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.side-box a { color: var(--gray-800); }
.side-box a:hover { color: var(--orange); }
.side-box-title { font-size: 15px; font-weight: 500; }
.list-section h2 { font-size: 22px; margin-bottom: 12px; }
.rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--gray-300); border-radius: var(--r); overflow: hidden; }
.rows li + li { border-top: 1px solid var(--gray-300); }
.row-link { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.row-link:hover { background: var(--gray-50); color: var(--black); }
.row-link .muted, .row-link .icon { color: var(--gray-800); }
.row-title { flex: 1; line-height: 1.4; }
.row-link:hover .row-title { color: var(--orange-deep); }
.row-meta { font-size: 13px; color: var(--gray-800); white-space: nowrap; }

/* article */
.with-toc { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 32px; padding-bottom: 80px; }
.article { flex: 999 1 600px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.article-head { display: flex; flex-direction: column; gap: 12px; }
.article-head h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 14px; color: var(--gray-800); }
.toc { flex: 1 1 240px; max-width: 280px; position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }
.toc-nav { display: flex; flex-direction: column; border-left: 1px solid var(--gray-300); max-height: 50vh; overflow: auto; }
.toc-nav .side-label { padding-left: 16px; }
.toc-nav a { font-size: 14px; color: var(--gray-800); padding: 7px 16px; margin-left: -1px; border-left: 2px solid transparent; line-height: 1.35; }
.toc-nav a.sub { padding-left: 28px; font-size: 13px; }
.toc-nav a.active { color: var(--black); font-weight: 500; border-left-color: var(--orange); }
.tool-row { display: flex; gap: 8px; flex-wrap: wrap; }
.toc-mobile { display: none; border: 1px solid var(--gray-300); border-radius: var(--r); padding: 4px 16px; }
.toc-mobile summary { cursor: pointer; padding: 10px 0; font-weight: 500; }
.toc-mobile nav { display: flex; flex-direction: column; padding-bottom: 10px; }
.toc-mobile a { padding: 8px 0; color: var(--gray-800); }

.prose { font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 26px; margin-top: 1.8em; }
.prose h3 { font-size: 21px; margin-top: 1.6em; }
.prose h4 { font-size: 18px; font-weight: 600; margin-top: 1.4em; }
.prose p, .prose li { max-width: 72ch; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose li > ul, .prose li > ol { margin-top: 0.35em; }
.prose a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--orange); }
.prose strong { font-weight: 600; }
.prose img { display: block; border: 1px solid var(--gray-300); border-radius: var(--r-sm); margin: 0.8em 0; }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--gray-100); padding: 1px 6px; border-radius: 5px; }
.prose pre { background: var(--gray-100); padding: 16px; border-radius: var(--r-sm); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin-left: 0; padding: 14px 18px; background: var(--orange-50); border-radius: var(--r); }
.prose hr { border: 0; border-top: 1px solid var(--gray-300); margin: 2em 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--gray-300); border-radius: var(--r-sm); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--gray-300); vertical-align: top; }
.prose th { background: var(--gray-50); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.prose figure.video { margin: 1.2em 0; }
.prose video { width: 100%; border-radius: var(--r); background: var(--black); display: block; }

.feedback { border: 1.5px solid var(--black); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.feedback h2 { font-size: 22px; }
.fb-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.fb-yes, .fb-no { border-top: 1px solid var(--gray-300); padding-top: 16px; }
.fb-next { margin: 10px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.fb-next a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; }
.related h2 { font-size: 20px; margin-bottom: 12px; }
.related-card { border: 1px solid var(--gray-300); border-radius: var(--r); padding: 16px; font-size: 15px; line-height: 1.4; }
.related-card:hover { border-color: var(--black); color: var(--black); }

/* search page */
.results { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gray-300); }
.results li { border-bottom: 1px solid var(--gray-300); }
.results a { display: flex; flex-direction: column; gap: 4px; padding: 18px 4px; }
.results .r-title { font-size: 18px; font-weight: 500; }
.results a:hover .r-title { color: var(--orange-deep); }
.results .r-desc { color: var(--gray-800); }
.results .r-meta { font-size: 13px; color: var(--gray-800); }
.results-count { color: var(--gray-800); margin-bottom: 12px; }
.empty { display: flex; flex-direction: column; gap: 12px; }
.empty .chips { justify-content: flex-start; }

/* footer */
.site-footer { border-top: 1px solid var(--gray-300); padding: 36px 0; font-size: 14px; color: var(--gray-800); }
.footer-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: var(--gray-800); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--black); color: var(--white); padding: 12px 18px; border-radius: var(--pill); font-size: 14px; z-index: 50; }

@media (max-width: 900px) {
  .toc { position: static; max-width: none; flex-basis: 100%; }
  .toc .toc-nav { display: none; }
  .toc-mobile { display: block; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 32px; }
  .site-header { position: static; }
  .header-row { gap: 12px; }
  .header-nav { order: 2; }
  .header-nav .nav-link, .hide-sm { display: none; }
  .search-compact { order: 3; flex-basis: 100%; max-width: none; }
  .brand img { height: 26px; }
  .search-kbd { display: none; }
  .search-hero { padding-left: 14px; }
  .search-hero .btn-dark { padding: 10px 14px; }
  .contact { padding: 24px; }
  .side { max-width: none; }
  .side .side-box { display: none; }
  .grid-cats, .grid-actions { grid-template-columns: 1fr; }
  .toplist a { flex-wrap: wrap; gap: 8px; }
  .prose { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .site-footer, .toc, .feedback, .related, .toc-mobile, .skip { display: none !important; }
  .with-toc { padding: 0; }
  .prose a { color: inherit; }
}
