/* ==========================================================================
   What? Studio — Support page
   Loaded after ws-theme.css on support.html; uses the ws tokens only.
   ========================================================================== */

body.ws26 .ws-support-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.ws26 .ws-support-faq a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ws-line-soft);
  color: var(--ws-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color 200ms var(--ws-ease);
}

body.ws26 .ws-support-faq a:hover {
  color: var(--ws-accent-text);
}

body.ws26 .ws-support-faq em {
  flex: none;
  color: var(--ws-text-3);
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  text-align: right;
}

body.ws26 .ws-support-docs {
  padding-bottom: clamp(96px, 11vw, 150px);
}

body.ws26 .ws-support-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

body.ws26 .ws-support-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 2px;
}

body.ws26 .ws-support-nav a {
  padding: 8px 12px;
  border-radius: var(--ws-r-sm);
  color: var(--ws-text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 200ms var(--ws-ease), color 200ms var(--ws-ease);
}

body.ws26 .ws-support-nav a:hover,
body.ws26 .ws-support-nav a.is-active {
  background: var(--ws-surface-2);
  color: var(--ws-text);
}

body.ws26 .ws-support-body {
  display: grid;
  gap: clamp(56px, 7vw, 88px);
  max-width: 760px;
}

body.ws26 .ws-support-topic {
  scroll-margin-top: 96px;
  color: var(--ws-text-2);
  font-size: 16px;
  line-height: 1.6;
}

body.ws26 .ws-support-topic > .ws-h3 {
  margin: 0 0 20px;
  color: var(--ws-text);
}

body.ws26 .ws-support-topic h5 {
  scroll-margin-top: 96px;
  margin: 20px 0 6px;
  color: var(--ws-text);
  font-size: 15px;
  font-weight: 600;
}

body.ws26 .ws-support-topic h4 {
  scroll-margin-top: 96px;
  margin: 28px 0 8px;
  color: var(--ws-text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.ws26 .ws-support-topic p,
body.ws26 .ws-support-topic ul,
body.ws26 .ws-support-topic ol {
  margin: 0 0 14px;
}

body.ws26 .ws-support-topic ul,
body.ws26 .ws-support-topic ol {
  padding-left: 22px;
}

body.ws26 .ws-support-topic li + li {
  margin-top: 6px;
}

body.ws26 .ws-support-topic strong {
  color: var(--ws-text);
  font-weight: 600;
}

body.ws26 .ws-support-a {
  color: var(--ws-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.ws26 .ws-support-topic code {
  padding: 1px 6px;
  border-radius: var(--ws-r-xs);
  background: var(--ws-surface-2);
  color: var(--ws-text);
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.88em;
}

body.ws26 .ws-support-code-wrap {
  position: relative;
  margin: 0 0 14px;
}

body.ws26 .ws-support-code {
  margin: 0 0 14px;
  padding: 18px 20px;
  overflow-x: auto;
  border-radius: var(--ws-r-md);
  background: var(--ws-surface-2);
  box-shadow: inset 0 0 0 1px var(--ws-line-soft);
  color: var(--ws-text);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body.ws26 .ws-support-code-wrap .ws-support-code {
  margin: 0;
  padding-right: 88px;
}

body.ws26 .ws-support-code code {
  padding: 0;
  background: none;
  font-size: inherit;
}

body.ws26 .ws-support-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--ws-line);
  border-radius: 999px;
  background: var(--ws-surface);
  color: var(--ws-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body.ws26 .ws-support-note {
  color: var(--ws-text-3);
  font-size: 14px;
}

body.ws26 .ws-support-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
}

body.ws26 .ws-support-picker span {
  margin-right: 4px;
  color: var(--ws-text-3);
  font-size: 14px;
  font-weight: 500;
}

body.ws26 .ws-support-picker button {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--ws-line);
  border-radius: 999px;
  background: transparent;
  color: var(--ws-text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms var(--ws-ease), color 200ms var(--ws-ease), border-color 200ms var(--ws-ease);
}

body.ws26 .ws-support-picker button.is-active {
  border-color: var(--ws-text);
  background: var(--ws-text);
  color: var(--ws-bg);
}

body.ws26 .ws-support-topic .ws-actions {
  margin-top: 20px;
}

@media (max-width: 900px) {
  body.ws26 .ws-support-faq {
    grid-template-columns: 1fr;
  }

  body.ws26 .ws-support-layout {
    grid-template-columns: 1fr;
  }

  body.ws26 .ws-support-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  body.ws26 .ws-support-nav a {
    border: 1px solid var(--ws-line-soft);
    border-radius: 999px;
    font-size: 14px;
  }
}
