/*
Theme Name: Visuvate Support
Theme URI: https://visuvate.com
Author: Visuvate
Author URI: https://visuvate.com
Description: Docs and support site for Visuvate templates. Pages under "Templates" become docs with a sidebar, contents list and next/previous links. Works with the Visuvate Support Kit plugin (template cards and the support form).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: visuvate-support
*/

:root {
  --bg: #000;
  --bg-2: #0c0c0c;
  --surface: #161616;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --field-line: rgba(255, 255, 255, 0.42);
  --fg: #fff;
  --fg-2: #d6d6d6;
  --muted: #9a9a9a;
  --accent: #0099ff;
  --link: #3db1ff;
  --danger: #ff7070;
  --btn: #fff;
  --btn-fg: #000;
  --btn-hover: #d6d6d6;
  --code-bg: #161616;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --gut: 32px;
  --hd: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fff;
    --bg-2: #f6f6f4;
    --surface: #eeeeec;
    --line: rgba(0, 0, 0, 0.1);
    --line-strong: rgba(0, 0, 0, 0.2);
    --field-line: rgba(0, 0, 0, 0.45);
    --fg: #000;
    --fg-2: #262626;
    --muted: #5c5c5c;
    --link: #0067ad;
    --danger: #c0392b;
    --btn: #000;
    --btn-fg: #fff;
    --btn-hover: #333;
    --code-bg: #f0f0ee;
    color-scheme: light;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hd) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}

a:hover {
  text-decoration-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr,
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-fg);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gut));
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* ---------- header ---------- */
.hd {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.admin-bar .hd {
  top: 32px;
}

.hd .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--hd);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  text-decoration: none;
}

.logo {
  width: 114px;
  height: 23px;
  background: currentColor;
  -webkit-mask: var(--logo) left center / contain no-repeat;
  mask: var(--logo) left center / contain no-repeat;
}

.brand-tag {
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
}

.nav {
  margin-left: auto;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  color: var(--fg-2);
  font-size: 15px;
  text-decoration: none;
}

.nav a:hover,
.nav .current-menu-item > a,
.nav .current-page-ancestor > a {
  color: var(--fg);
}

.nav .vs-menu-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-fg);
  font-weight: 500;
  transition: background 0.3s var(--ease);
}

.nav .vs-menu-cta a:hover {
  background: var(--btn-hover);
  color: var(--btn-fg);
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: 500 14px/1 var(--sans);
  cursor: pointer;
}

.menu-btn i {
  position: relative;
  width: 14px;
  height: 8px;
}

.menu-btn i::before,
.menu-btn i::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.menu-btn i::before {
  top: 0;
}

.menu-btn i::after {
  top: 6.5px;
}

.menu-btn[aria-expanded='true'] i::before {
  top: 3px;
  transform: rotate(45deg);
}

.menu-btn[aria-expanded='true'] i::after {
  top: 3px;
  transform: rotate(-45deg);
}

/* ---------- buttons (blocks and plugin) ---------- */
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}

.wp-block-button__link,
.vs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-fg);
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}

.wp-block-button__link:hover,
.vs-btn:hover {
  background: var(--btn-hover);
  color: var(--btn-fg);
}

.is-style-outline .wp-block-button__link,
.vs-btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--fg);
}

.is-style-outline .wp-block-button__link:hover,
.vs-btn-ghost:hover {
  border-color: var(--fg);
  background: transparent;
  color: var(--fg);
}

.vs-btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- content (block editor output) ---------- */
.entry > * + * {
  margin-top: 20px;
}

.entry h1,
.entry h2,
.entry h3,
.entry h4,
.page-title {
  margin-bottom: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.page-title {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.05;
}

.entry h2 {
  margin-top: 56px;
  font-size: clamp(26px, 2.6vw, 32px);
}

.entry h3 {
  margin-top: 36px;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.entry h4 {
  margin-top: 28px;
  font-size: 17px;
  letter-spacing: 0;
}

.entry h2 + *,
.entry h3 + *,
.entry h4 + * {
  margin-top: 12px;
}

.entry p,
.entry li {
  color: var(--fg-2);
}

.entry strong {
  color: var(--fg);
  font-weight: 500;
}

.entry ul,
.entry ol {
  padding-left: 22px;
}

.entry li + li {
  margin-top: 8px;
}

.entry li > ul,
.entry li > ol {
  margin-top: 8px;
}

.entry li::marker {
  color: var(--muted);
}

.entry code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--fg);
  font: 400 0.88em/1.4 var(--mono);
  overflow-wrap: anywhere;
}

.entry pre {
  overflow-x: auto;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--code-bg);
}

.entry pre code {
  padding: 0;
  border: 0;
  background: none;
}

.entry .wp-block-table {
  margin-left: 0;
  margin-right: 0;
  overflow-x: auto;
}

.entry table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  table-layout: auto;
}

.entry th,
.entry td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--fg-2);
}

.entry th {
  color: var(--fg);
  font-weight: 500;
  border-bottom-color: var(--line-strong);
}

.entry td:first-child {
  color: var(--fg);
  min-width: 140px;
}

.entry blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--accent);
}

.entry hr {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.wp-block-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.wp-block-column > * + * {
  margin-top: 10px;
}

.wp-block-column h3 {
  margin-top: 0;
}

/* ---------- home ---------- */
.home-main {
  padding-bottom: 96px;
}

.home-main .entry {
  max-width: none;
}

.home-main .entry > h1:first-child {
  max-width: 900px;
  margin-top: 0;
  padding-top: 104px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.home-main .entry > h1:first-child + p {
  max-width: 620px;
  margin-top: 24px;
  color: var(--fg-2);
  font-size: 19px;
  line-height: 1.55;
}

.home-main .entry > h2 {
  margin-top: 96px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
  font-size: clamp(30px, 3.6vw, 44px);
}

.home-main .entry > h2 + * {
  margin-top: 32px;
}

.home-main .wp-block-columns {
  margin-top: 32px;
}

.vs-band {
  margin-top: 96px !important;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.vs-band h2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border: 0 !important;
}

.vs-band p {
  max-width: 620px;
  margin-top: 14px;
}

.vs-band .wp-block-buttons {
  margin-top: 28px;
}

/* template cards */
.vs-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.vs-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: border-color 0.35s var(--ease);
}

.vs-card:hover {
  border-color: var(--line-strong);
}

.vs-card-img {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.vs-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s var(--ease);
}

.vs-card:hover .vs-card-img img {
  transform: scale(1.02);
}

.vs-card-ph {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
  font-size: 28px;
}

.vs-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.vs-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.vs-card h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.vs-card h3 a {
  color: var(--fg);
  text-decoration: none;
}

.vs-card-meta {
  color: var(--muted);
  font-size: 14px;
}

.vs-card p {
  margin: 0;
  color: var(--fg-2);
}

.vs-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  font-size: 15px;
}

.vs-card-links li {
  margin: 0 !important;
}

.vs-card-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.vs-card-acts .vs-btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

/* ---------- ordinary pages ---------- */
.page-main {
  padding: 72px 0 112px;
}

.page-head {
  max-width: 820px;
  margin-bottom: 40px;
}

.page-lead {
  margin-top: 18px;
  color: var(--fg-2);
  font-size: 19px;
  line-height: 1.55;
}

.page-main .entry {
  max-width: 820px;
}

.page-main.wide .entry {
  max-width: none;
}

.page-main.wide .entry > p:first-child {
  max-width: 680px;
  font-size: 18px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.crumbs li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--line-strong);
}

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

.crumbs a:hover {
  color: var(--fg);
}

/* ---------- docs layout ---------- */
.docs {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 200px;
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 112px;
}

.docs-side {
  position: sticky;
  top: calc(var(--hd) + 32px);
  align-self: start;
  max-height: calc(100vh - var(--hd) - 64px);
  overflow-y: auto;
}

.admin-bar .docs-side,
.admin-bar .toc {
  top: calc(var(--hd) + 64px);
}

.docs-side details > summary {
  display: none;
}

.side-title {
  display: block;
  color: var(--fg);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.side-meta {
  margin: 4px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.side-nav {
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
  list-style: none;
}

.side-nav a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 16px;
  border-left: 1px solid transparent;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.side-nav a:hover {
  color: var(--fg);
  border-left-color: var(--line-strong);
}

.side-nav a[aria-current='page'] {
  border-left-color: var(--accent);
  color: var(--fg);
  font-weight: 500;
}

.side-nav ul {
  margin: 0;
  padding: 0 0 0 12px;
  list-style: none;
}

.side-help {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.side-help .vs-btn {
  min-height: 38px;
  margin-top: 12px;
  padding: 0 16px;
  font-size: 14px;
}

.side-other {
  margin-top: 20px;
  font-size: 14px;
}

.side-other a {
  color: var(--muted);
  text-decoration: none;
}

.side-other a:hover {
  color: var(--fg);
}

.docs-main {
  min-width: 0;
}

.docs-main .page-head {
  margin-bottom: 32px;
}

.docs-main .entry {
  max-width: 760px;
}

.docs-main .entry > :first-child {
  margin-top: 0;
}

.toc {
  position: sticky;
  top: calc(var(--hd) + 32px);
  align-self: start;
  font-size: 14px;
}

.toc[hidden] {
  display: none;
}

.toc h2 {
  margin: 0 0 12px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

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

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.toc a:hover,
.toc a.on {
  color: var(--fg);
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 760px;
  margin-top: 64px;
}

.pager a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.3s var(--ease);
}

.pager a:hover {
  border-color: var(--fg);
}

.pager span {
  color: var(--muted);
  font-size: 14px;
}

.pager .next {
  grid-column: 2;
  text-align: right;
}

.doc-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  max-width: 760px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}

.doc-help p {
  margin: 0;
  color: var(--fg-2);
}

.doc-help strong {
  display: block;
  color: var(--fg);
  font-weight: 500;
}

/* ---------- support form (plugin markup) ---------- */
.vs-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  margin-top: 40px !important;
}

.vs-form-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.vs-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}

.vs-form.off {
  display: none;
}

.vs-fld {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.vs-fld.full,
.vs-submit,
.vs-alert {
  grid-column: 1 / -1;
}

.vs-fld label,
.vs-lbl {
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
}

.vs-req {
  color: var(--muted);
  font-weight: 400;
}

.vs-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.vs-in {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.4 var(--sans);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.vs-in::placeholder {
  color: var(--muted);
  opacity: 1;
}

.vs-in:hover {
  border-color: var(--fg-2);
}

.vs-in:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}

textarea.vs-in {
  min-height: 170px;
  resize: vertical;
}

select.vs-in {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 21px) 22px, calc(100% - 16px) 22px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.vs-fld.bad .vs-in {
  border-color: var(--danger);
}

.vs-err {
  color: var(--danger);
  font-size: 13px;
}

.vs-err:empty {
  display: none;
}

.vs-alert {
  padding: 14px 16px;
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-size: 15px;
}

.vs-alert:empty {
  display: none;
}

.vs-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 18px;
  border: 1px dashed var(--field-line);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.vs-drop:hover,
.vs-drop.over {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.vs-drop:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}

.vs-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.vs-drop strong {
  color: var(--fg);
  font-weight: 500;
}

.vs-files {
  display: grid;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.vs-files:empty {
  display: none;
}

.vs-files li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.vs-files .n {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--fg);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-files .s {
  color: var(--muted);
}

.vs-files button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -4px -6px -4px 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.vs-files button:hover {
  background: var(--surface);
  color: var(--fg);
}

.vs-trap {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.vs-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding-top: 4px;
}

.vs-submit .vs-hint {
  flex: 1;
  min-width: 220px;
}

.vs-done {
  outline: none;
}

.vs-done.on {
  animation: vs-rise 0.6s var(--ease) both;
}

.vs-done h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.vs-done p {
  margin-top: 14px;
  color: var(--fg-2);
}

.vs-ref {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

@keyframes vs-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.vs-aside {
  display: grid;
  gap: 32px;
  position: sticky;
  top: calc(var(--hd) + 32px);
}

.vs-aside h2 {
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 19px !important;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.vs-aside p,
.vs-aside li {
  color: var(--fg-2);
  font-size: 15px;
}

.vs-ticks {
  margin: 0;
  padding: 0 !important;
  list-style: none;
}

.vs-ticks li {
  position: relative;
  margin: 0 !important;
  padding: 9px 0 9px 20px;
  border-top: 1px solid var(--line);
}

.vs-ticks li:first-child {
  padding-top: 0;
  border-top: 0;
}

.vs-ticks li::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.vs-ticks li:first-child::before {
  top: 11px;
}

/* ---------- footer ---------- */
.ft {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.ft .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.ft nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.ft a {
  color: var(--fg-2);
  text-decoration: none;
}

.ft a:hover {
  color: var(--fg);
}

/* ---------- 404 ---------- */
.nf {
  padding: 120px 0 140px;
}

.nf p {
  max-width: 560px;
  margin-top: 18px;
  color: var(--fg-2);
  font-size: 18px;
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .docs {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
  }

  .toc {
    display: none;
  }
}

@media (max-width: 960px) {
  .vs-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vs-contact {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .vs-aside {
    position: static;
  }
}

@media (max-width: 860px) {
  :root {
    --gut: 20px;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px var(--gut) 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav li a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }

  .nav .vs-menu-cta a {
    display: flex;
    justify-content: center;
    min-height: 48px;
    margin-top: 16px;
    padding: 0 18px;
    border: 0;
  }

  .docs {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 24px;
  }

  .docs-side {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .docs-side details {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
  }

  .docs-side details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: var(--fg);
    font-weight: 500;
    cursor: pointer;
    list-style: none;
  }

  .docs-side details > summary::-webkit-details-marker {
    display: none;
  }

  .docs-side details > summary::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
    transition: transform 0.3s var(--ease);
  }

  .docs-side details[open] > summary::after {
    transform: translateY(2px) rotate(-135deg);
  }

  .docs-side .side-in {
    padding: 4px 16px 18px;
  }

  .wp-block-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-main {
    padding: 48px 0 88px;
  }
}

@media (max-width: 640px) {
  :root {
    --gut: 16px;
  }

  .brand-tag {
    display: none;
  }

  .vs-cards,
  .vs-form {
    grid-template-columns: 1fr;
  }

  .vs-form-card,
  .vs-band {
    padding: 22px;
  }

  .home-main .entry > h1:first-child {
    padding-top: 64px;
  }

  .home-main .entry > h1:first-child + p,
  .page-lead {
    font-size: 17px;
  }

  .home-main .entry > h2 {
    margin-top: 72px;
    padding-top: 40px;
  }

  .vs-band {
    margin-top: 72px !important;
  }

  .pager {
    grid-template-columns: 1fr;
  }

  .pager .next {
    grid-column: 1;
  }

  .entry table {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
