/* Public reading pages. Same quiet voice as the home page, outside the studio. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../assets/fonts/newsreader-latin.woff2") format("woff2");
}

body.ms-legal-site,
body.ms-public-doc,
body.ms-contact-public {
  min-height: 100vh;
  margin: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

.ms-doc-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, 80rem);
  margin: 0 auto;
  padding: 1.15rem 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.ms-doc-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f !important;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none !important;
}

.ms-doc-brand:hover {
  opacity: 0.72;
}

.ms-doc-mark {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.ms-doc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.4rem;
  padding: 0 1rem;
  border-radius: 10px !important;
  background: #1d1d1f !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none !important;
}

.ms-doc-cta:hover {
  background: #2c2c2e !important;
}

body.ms-legal-site .ms-legal-wrap,
body.ms-public-doc .ms-doc-main,
body.ms-public-doc #page-body,
body.ms-contact-public .ms-contact-main,
body.ms-contact-public .ms-doc-main {
  box-sizing: border-box;
  width: min(100% - 2.5rem, 40rem) !important;
  max-width: 40rem !important;
  margin: 0 auto !important;
  padding: 7.25rem 0 4rem !important;
}

body.ms-contact-public .ms-doc-main.ms-contact-page {
  width: min(100% - 2.5rem, 46rem) !important;
  max-width: 46rem !important;
}

body.ms-legal-site h1.ms-doc-title,
body.ms-public-doc h1.ms-doc-title,
body.ms-contact-public h1.ms-doc-title {
  margin: 0 !important;
  color: #2c2c2e !important;
  -webkit-text-fill-color: #2c2c2e !important;
  font-family: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif !important;
  font-size: clamp(3.15rem, 8vw, 4.6rem) !important;
  font-weight: 450 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.02 !important;
  text-align: center;
}

body.ms-legal-site .ms-legal-intro,
body.ms-public-doc .ms-doc-lead,
body.ms-contact-public .ms-doc-lead {
  margin: 1.15rem auto 0 !important;
  max-width: 28rem;
  color: #6e6e73 !important;
  -webkit-text-fill-color: #6e6e73 !important;
  font-size: 1.0625rem !important;
  font-weight: 400 !important;
  letter-spacing: -0.011em !important;
  line-height: 1.45 !important;
  text-align: center;
}

body.ms-legal-site .ms-legal-hero,
body.ms-public-doc .ms-page-head,
body.ms-contact-public .ms-page-head {
  margin: 0 0 1.5rem !important;
  text-align: center;
}

body.ms-legal-site .ms-legal-toc,
body.ms-public-doc .ms-help-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 4px !important;
  margin: 8px 0 28px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.ms-legal-site .ms-legal-toc a,
body.ms-public-doc .ms-help-toc a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #6e6e73 !important;
  -webkit-text-fill-color: #6e6e73 !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.011em;
  line-height: 1.2;
  text-decoration: none !important;
  transition: color 160ms ease, background 160ms ease;
}

body.ms-legal-site .ms-legal-toc a[aria-current="true"]::after,
body.ms-public-doc .ms-help-toc a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 2px;
  border-radius: 1px;
  background: #1d1d1f;
}

body.ms-legal-site .ms-legal-toc a:hover,
body.ms-public-doc .ms-help-toc a:hover {
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f !important;
  background: rgb(29 29 31 / 5%) !important;
}

body.ms-legal-site .ms-legal-toc a:focus-visible,
body.ms-public-doc .ms-help-toc a:focus-visible {
  outline: 2px solid #1d1d1f;
  outline-offset: 2px;
}

body.ms-legal-site .ms-legal-toc a[aria-current="true"],
body.ms-public-doc .ms-help-toc a[aria-current="true"] {
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.ms-legal-site .ms-legal-article,
body.ms-public-doc .ms-doc-block {
  scroll-margin-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  body.ms-legal-site .ms-legal-toc a,
  body.ms-public-doc .ms-help-toc a {
    transition: none;
  }
}

body.ms-legal-site .ms-legal-updated {
  margin: -0.5rem 0 1.25rem !important;
  color: #8e8e93 !important;
  -webkit-text-fill-color: #8e8e93 !important;
  font-size: 0.9rem !important;
  text-align: center;
}

body.ms-legal-site .ms-legal-doc,
body.ms-public-doc .ms-help-guide {
  display: grid;
  gap: 0.85rem;
}

body.ms-legal-site .ms-legal-article,
body.ms-legal-site .ms-card,
body.ms-public-doc .ms-doc-block,
body.ms-public-doc .ms-card,
body.ms-public-doc .ms-creator-policy-card {
  background: #fff !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  color: #1d1d1f !important;
  padding: 1.15rem 1.2rem !important;
}

body.ms-legal-site .ms-legal-section-head,
body.ms-public-doc .ms-doc-title,
body.ms-legal-site .ms-legal-article h2,
body.ms-public-doc .ms-doc-block h2 {
  margin: 0 0 0.55rem !important;
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f !important;
  font-size: 1.15rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.03em !important;
}

body.ms-legal-site .ms-legal-article h3,
body.ms-public-doc .ms-doc-block > h3,
body.ms-public-doc .ms-doc-block > .ms-settings-hint + h3 {
  margin: 1rem 0 0.35rem !important;
  color: #1d1d1f !important;
  font-size: 1rem !important;
  font-weight: 650 !important;
}

body.ms-legal-site .ms-legal-article p,
body.ms-legal-site .ms-legal-article li,
body.ms-public-doc .ms-doc-block > .ms-settings-hint,
body.ms-public-doc .ms-doc-block > .ms-help-list,
body.ms-public-doc .ms-doc-block > .ms-help-list > li,
body.ms-public-doc .ms-doc-block > .ms-help-steps > li,
body.ms-public-doc .ms-doc-block > p,
body.ms-public-doc .ms-doc-block > ul > li,
body.ms-public-doc .ms-doc-block > ol > li {
  color: #3a3a3c !important;
  -webkit-text-fill-color: #3a3a3c !important;
  font-size: 0.98rem !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

body.ms-legal-site .ms-legal-article a,
body.ms-public-doc .ms-doc-block > p a,
body.ms-public-doc .ms-doc-block > .ms-settings-hint a,
body.ms-public-doc .ms-help-list a,
body.ms-legal-site .ms-legal-foot a,
.ms-doc-links a {
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f !important;
  font-weight: 600;
  text-decoration: none;
}

body.ms-legal-site .ms-legal-article a:hover,
body.ms-public-doc .ms-doc-block > p a:hover,
body.ms-public-doc .ms-doc-block > .ms-settings-hint a:hover,
.ms-doc-links a:hover {
  text-decoration: underline;
}

.ms-doc-links {
  display: grid;
  gap: 0.65rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.ms-doc-links a {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.ms-doc-note {
  margin: 1.5rem 0 0;
  color: #6e6e73;
  text-align: center;
}

body.ms-legal-site .ms-legal-foot {
  position: static;
  display: flex !important;
  justify-content: center;
  gap: 1rem;
  width: min(100% - 2.5rem, 40rem);
  margin: 0 auto;
  padding: 0 0 3rem !important;
  background: transparent !important;
  border: 0 !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

body.ms-public-doc:not(.ms-docs-page) .ms-btn,
body.ms-legal-site .ms-btn {
  border-radius: 10px !important;
  background: #1d1d1f !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body.ms-public-doc .ms-help-legal {
  color: #6e6e73;
  text-align: center;
}

/* ===== Docs shell (/docs) ===== */
body.ms-docs-page {
  min-height: 100vh;
  margin: 0;
  background: #fff !important;
  color: #1d1d1f !important;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.ms-docs-page .ms-docs-layout {
  box-sizing: border-box;
  width: min(100% - 2.5rem, 68rem);
  margin: 0 auto;
  padding: 6.25rem 0 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem;
  column-gap: 3.5rem;
  row-gap: 2.25rem;
  align-items: start;
}

body.ms-docs-page .ms-docs-sidebar {
  position: sticky;
  top: 4.75rem;
  max-height: calc(100vh - 5.5rem);
  overflow: auto;
  padding: 0.85rem 0.85rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(14px);
}

body.ms-docs-page .ms-docs-mobile-toggle {
  display: none;
  width: 100%;
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.9rem;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #1d1d1f;
  font: inherit;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
}

body.ms-docs-page .ms-docs-search-wrap {
  position: sticky;
  top: 4.6rem;
  z-index: 40;
  margin: 1.35rem 0 0;
  padding: 0.35rem 0 0.15rem;
  background: linear-gradient(180deg, #fff 70%, rgba(255, 255, 255, 0));
}

body.ms-docs-page .ms-docs-search-wrap.is-stuck {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

body.ms-docs-page .ms-docs-search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: min(100%, 36rem);
}

body.ms-docs-page .ms-docs-search-icon {
  position: absolute;
  left: 0.85rem;
  width: 1.05rem;
  height: 1.05rem;
  color: #6e6e73;
  pointer-events: none;
}

body.ms-docs-page .ms-docs-search {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.82rem 5.5rem 0.82rem 2.45rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #1d1d1f;
  font: inherit;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 8px 24px rgba(15, 23, 42, 0.04);
}

body.ms-docs-page .ms-docs-search::placeholder {
  color: #8e8e93;
}

body.ms-docs-page .ms-docs-search:focus {
  outline: 2px solid rgba(35, 36, 39, 0.55);
  outline-offset: 1px;
  border-color: transparent;
}

body.ms-docs-page .ms-docs-search-kbd {
  position: absolute;
  right: 0.75rem;
  min-width: 1.35rem;
  padding: 0.12rem 0.35rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  background: #f5f5f7;
  color: #6e6e73;
  font: 600 0.72rem/1.2 "DM Sans", system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-align: center;
  pointer-events: none;
}

body.ms-docs-page .ms-docs-search-wrap.is-active .ms-docs-search-kbd {
  display: none;
}

body.ms-docs-page .ms-docs-search-clear {
  position: absolute;
  right: 0.55rem;
  margin: 0;
  padding: 0.35rem 0.55rem;
  border: 0;
  border-radius: 8px;
  background: rgba(29, 29, 31, 0.06);
  color: #1d1d1f;
  font: 600 0.78rem/1 "DM Sans", system-ui, sans-serif;
  letter-spacing: -0.01em;
  cursor: pointer;
}

body.ms-docs-page .ms-docs-search-clear:hover,
body.ms-docs-page .ms-docs-search-clear:focus-visible {
  background: rgba(29, 29, 31, 0.1);
}

body.ms-docs-page .ms-docs-search-status {
  min-height: 1.1rem;
  margin: 0.45rem 0 0;
  color: #6e6e73;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

body.ms-docs-page .ms-docs-search-empty {
  margin: 1.5rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fafafa;
  color: #6e6e73;
  font-size: 0.95rem;
  line-height: 1.45;
}

body.ms-docs-page.is-docs-searching .ms-docs-main .ms-doc-block.is-docs-miss,
body.ms-docs-page.is-docs-searching .ms-docs-main .ms-legal-article.is-docs-miss,
body.ms-docs-page.is-docs-searching .ms-docs-main section.is-docs-miss {
  display: none !important;
}

body.ms-docs-page.is-docs-searching .ms-docs-main .ms-doc-block.is-docs-hit,
body.ms-docs-page.is-docs-searching .ms-docs-main .ms-legal-article.is-docs-hit {
  outline: 1px solid rgba(15, 23, 42, 0.06);
  outline-offset: 0.65rem;
  border-radius: 8px;
}

body.ms-docs-page .ms-docs-nav a.is-filtered-out,
body.ms-docs-page .ms-docs-nav a[hidden] {
  display: none !important;
}

body.ms-docs-page .ms-docs-nav {
  display: grid;
  gap: 0.35rem;
}

body.ms-docs-page .ms-docs-group {
  display: grid;
  gap: 0.15rem;
}

body.ms-docs-page .ms-docs-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.35rem;
  border: 0;
  background: transparent;
  color: #1d1d1f;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}

body.ms-docs-page .ms-docs-group-toggle svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
  transition: transform 160ms ease;
}

body.ms-docs-page .ms-docs-group.is-open .ms-docs-group-toggle svg {
  transform: rotate(90deg);
}

body.ms-docs-page .ms-docs-group-links {
  display: none;
  gap: 0.05rem;
  padding: 0 0 0.35rem 0.15rem;
}

body.ms-docs-page .ms-docs-group.is-open .ms-docs-group-links {
  display: grid;
}

body.ms-docs-page .ms-docs-nav a {
  display: block;
  padding: 0.38rem 0.5rem;
  border-radius: 8px;
  color: #6e6e73 !important;
  -webkit-text-fill-color: #6e6e73 !important;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.011em;
  line-height: 1.3;
  text-decoration: none !important;
}

body.ms-docs-page .ms-docs-nav a:hover,
body.ms-docs-page .ms-docs-nav a:focus-visible {
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f !important;
  background: rgb(29 29 31 / 5%);
}

body.ms-docs-page .ms-docs-nav a[aria-current="true"] {
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f !important;
  background: rgb(29 29 31 / 7%);
  font-weight: 650;
}

body.ms-docs-page .ms-docs-main {
  grid-column: 1;
  min-width: 0;
  max-width: 42rem;
}

body.ms-docs-page .ms-docs-hero {
  grid-column: 1;
  text-align: left;
  margin: 0;
}

body.ms-docs-page .ms-docs-hero .ms-doc-title {
  text-align: left !important;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: clamp(2.75rem, 7vw, 4.75rem) !important;
  font-weight: 500 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.08 !important;
}

body.ms-docs-page .ms-docs-hero .ms-doc-lead {
  text-align: left !important;
  max-width: 36rem;
  margin: 0.85rem 0 0 !important;
  color: #6e6e73 !important;
  -webkit-text-fill-color: #6e6e73 !important;
  font-size: 1.15rem !important;
  line-height: 1.4 !important;
}

body.ms-docs-page .ms-docs-toc-btn {
  display: none;
}

body.ms-docs-page .ms-docs-aside {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 5.5rem;
  align-self: start;
  max-height: calc(100vh - 6.5rem);
  overflow: auto;
}

body.ms-docs-page .ms-docs-onpage h2 {
  margin: 0 0 0.9rem !important;
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f !important;
  font-size: 0.875rem !important;
  font-weight: 550 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.3 !important;
}

body.ms-docs-page .ms-docs-onpage ol {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.ms-docs-page .ms-docs-onpage a {
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #6e6e73 !important;
  -webkit-text-fill-color: #6e6e73 !important;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-decoration: none;
}

body.ms-docs-page .ms-docs-onpage a:hover,
body.ms-docs-page .ms-docs-onpage a:focus-visible,
body.ms-docs-page .ms-docs-onpage a[aria-current="true"] {
  background: transparent;
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f !important;
  font-weight: 400;
  text-decoration: none;
}

body.ms-docs-page .ms-docs-main .ms-doc-block,
body.ms-docs-page .ms-docs-main .ms-legal-article {
  scroll-margin-top: 5.25rem;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 0 2.5rem !important;
  color: #1d1d1f !important;
  backdrop-filter: none;
}

body.ms-docs-page .ms-docs-main h2.ms-doc-title,
body.ms-docs-page .ms-docs-main .ms-legal-section-head {
  margin: 0 0 0.55rem !important;
  color: #1d1d1f !important;
  font-size: 1.2rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.03em !important;
}

body.ms-docs-page .ms-docs-main .ms-doc-block > h3,
body.ms-docs-page .ms-docs-main .ms-legal-article > h3 {
  margin: 1rem 0 0.35rem !important;
  font-size: 1rem !important;
  font-weight: 650 !important;
}

body.ms-docs-page .ms-docs-main .ms-doc-block > p,
body.ms-docs-page .ms-docs-main .ms-legal-article > p,
body.ms-docs-page .ms-docs-main .ms-settings-hint,
body.ms-docs-page .ms-docs-main .ms-help-list > li,
body.ms-docs-page .ms-docs-main .ms-help-steps > li {
  color: #3a3a3c !important;
  font-size: 0.98rem !important;
  line-height: 1.55 !important;
}

body.ms-docs-page .ms-docs-main .ms-doc-block > p a,
body.ms-docs-page .ms-docs-main .ms-settings-hint a,
body.ms-docs-page .ms-docs-main .ms-help-list a,
body.ms-docs-page .ms-docs-main .ms-legal-article > p a {
  color: #1d1d1f !important;
  font-weight: 600;
  text-decoration: none;
}

body.ms-docs-page .ms-docs-main .ms-doc-block > p a:hover,
body.ms-docs-page .ms-docs-main .ms-settings-hint a:hover,
body.ms-docs-page .ms-docs-main .ms-help-list a:hover,
body.ms-docs-page .ms-docs-main .ms-legal-article > p a:hover {
  text-decoration: underline;
}

body.ms-docs-page .ms-help-list,
body.ms-docs-page .ms-help-steps {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
}

body.ms-docs-page .ms-help-steps li {
  margin: 0.55rem 0;
}

body.ms-docs-page .ms-help-steps li strong {
  display: block;
  color: #1d1d1f;
  margin-bottom: 0.15rem;
}

body.ms-docs-page .ms-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.95rem;
}

body.ms-docs-page .ms-docs-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

body.ms-docs-page .ms-docs-flow li {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0.7rem;
  border-radius: 14px;
  background: #f5f5f7;
  color: #1d1d1f !important;
  font-size: 0.86rem !important;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

body.ms-docs-page .ms-docs-flow li span {
  display: block;
  color: #6e6e73 !important;
  font-size: 0.78rem !important;
  font-weight: 500;
  letter-spacing: -0.01em;
}

body.ms-docs-page .ms-docs-flow-note {
  margin: 0.75rem 0 0 !important;
  color: #6e6e73 !important;
  font-size: 0.9rem !important;
}

body.ms-docs-page .ms-creator-policy-notice {
  display: grid;
  gap: 0.65rem;
}

body.ms-docs-page .ms-legal-updated {
  margin: 0 0 0.85rem !important;
  color: #8e8e93 !important;
  font-size: 0.9rem !important;
}

body.ms-docs-page .ms-docs-main .ms-legal-article h2 {
  margin: 1.15rem 0 0.4rem !important;
  font-size: 1.02rem !important;
  font-weight: 650 !important;
}

body.ms-docs-page .ms-docs-main .ms-legal-article h2:first-of-type {
  margin-top: 0.35rem !important;
}

body.ms-docs-page .ms-docs-pre {
  margin: 0.75rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #f5f5f7;
  color: #1d1d1f;
  font-family: ui-monospace, "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body.ms-docs-page code {
  font-family: ui-monospace, "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
}

@media (max-width: 900px) {
  body.ms-docs-page .ms-docs-layout {
    grid-template-columns: 1fr;
    padding-top: 5.5rem;
  }

  body.ms-docs-page .ms-docs-search-wrap {
    top: 4.1rem;
    width: 100%;
  }

  body.ms-docs-page .ms-docs-search-field {
    width: 100%;
  }

  body.ms-docs-page .ms-docs-search-kbd {
    display: none;
  }

  body.ms-docs-page .ms-docs-hero,
  body.ms-docs-page .ms-docs-main,
  body.ms-docs-page .ms-docs-aside {
    grid-column: 1;
    grid-row: auto;
  }

  body.ms-docs-page .ms-docs-hero { order: 1; }
  body.ms-docs-page .ms-docs-main { order: 2; }

  body.ms-docs-page .ms-docs-aside {
    position: fixed;
    top: auto;
    right: 50%;
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: auto;
    z-index: 80;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    width: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    transform: translateX(50%);
  }

  body.ms-docs-page .ms-docs-toc-btn.ms-float-toc-btn {
    display: inline-flex;
  }

  body.ms-docs-page .ms-docs-onpage {
    display: none;
  }

  body.ms-docs-page .ms-docs-aside.is-open {
    width: min(18.5rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 6.5rem);
  }

  body.ms-docs-page .ms-docs-aside.is-open .ms-docs-onpage {
    display: block;
    width: 100%;
    min-height: 0;
    max-height: calc(100dvh - 10.5rem);
    margin: 0 0 0.65rem;
    padding: 0.95rem 1rem;
    overflow: auto;
    border: 1px solid #ececef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  }

  body.ms-docs-page .ms-docs-flow {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  body.ms-docs-page .ms-docs-flow {
    grid-template-columns: 1fr;
  }
}

/* Docs UI demos, real Studio chrome, read-only stage */
body.ms-docs-page .ms-docs-demo {
  margin: 1.05rem 0 1.2rem;
  padding: 0;
  border: 0;
}

body.ms-docs-page .ms-docs-demo-caption {
  margin: 0 0 0.55rem;
  color: #6e6e73 !important;
  -webkit-text-fill-color: #6e6e73 !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Isolate demos so public-doc reading colors cannot wash Studio controls. */
body.ms-docs-page .ms-docs-demo-stage {
  --ms-bg: #fafafa;
  --ms-surface: #ffffff;
  --ms-surface-alt: #f3f3f3;
  --ms-ink: #1a1a1a;
  --ms-muted: #6b6b6b;
  --ms-line: #e5e5e5;
  --ms-select: #d8d8d8;
  --ms-select-soft: #eeeeee;
  --ms-accent: #232427;
  --ms-accent-bright: #232427;
  --ms-accent-strong: #000000;
  --ms-accent-soft: #f3f3f3;
  --ms-accent-rgb: 35, 36, 39;
  --ms-link: #1a1a1a;
  --ms-radius-pill: 999px;
  --ms-shadow-segment: 0 2px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  user-select: none;
  padding: 1rem;
  border-radius: 16px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  box-shadow: none;
  color: var(--ms-ink);
  font-family: var(--ms-font, "DM Sans", system-ui, sans-serif);
}

body.ms-docs-page .ms-docs-demo-stage,
body.ms-docs-page .ms-docs-demo-stage * {
  -webkit-text-fill-color: unset;
}

body.ms-docs-page .ms-docs-demo-stage--chrome {
  padding: 0.85rem;
  background: #f3f3f3;
}

body.ms-docs-page .ms-docs-demo-stage .ms-lb-chrome-bar {
  position: static;
  display: grid;
  gap: 0.65rem;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.ms-docs-page .ms-docs-demo-stage .ms-lb-mode-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

body.ms-docs-page .ms-docs-demo-stage .ms-lb-viewports {
  justify-self: start;
}

body.ms-docs-page .ms-docs-demo-stage .ms-bs-mode-tabs {
  max-width: 28rem;
}

body.ms-docs-page .ms-docs-demo-stage .ms-lb-side-controls {
  display: grid;
  gap: 0.75rem;
  max-width: 24rem;
}

body.ms-docs-page .ms-docs-demo-stage .ms-lb-publish-actions {
  max-width: 22rem;
}

body.ms-docs-page .ms-docs-demo-stage .ms-lb-widget {
  max-width: 24rem;
}

body.ms-docs-page .ms-docs-demo-stage .ms-bs-path {
  margin-top: 0.85rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
}

body.ms-docs-page .ms-docs-demo-stage .ms-lb-onboard-maps {
  margin-top: 0.65rem;
}

body.ms-docs-page .ms-docs-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

body.ms-docs-page .ms-docs-mode {
  display: grid;
  align-content: start;
  gap: 0.28rem;
  min-height: 8.5rem;
  padding: 1rem 0.95rem 1.05rem;
  border: 1px solid #ececef;
  border-radius: 16px;
  background: #fafafa;
}

body.ms-docs-page .ms-docs-mode-icon {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.45rem;
  border: 1px solid #ececef;
  border-radius: 10px;
  background: #fff;
  color: #1d1d1f;
}

body.ms-docs-page .ms-docs-mode-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

body.ms-docs-page .ms-docs-mode strong {
  color: #1d1d1f;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

body.ms-docs-page .ms-docs-mode span {
  color: #6e6e73;
  -webkit-text-fill-color: #6e6e73;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.35;
}

@media (max-width: 640px) {
  body.ms-docs-page .ms-docs-modes {
    grid-template-columns: 1fr;
  }

  body.ms-docs-page .ms-docs-mode {
    min-height: 0;
  }
}

body.ms-docs-page .ms-docs-help {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.65rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

body.ms-docs-page .ms-docs-help > li {
  margin: 0 !important;
  padding: 0 !important;
}

body.ms-docs-page .ms-docs-help a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.35rem;
  height: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #ececef;
  border-radius: 16px;
  background: #fafafa;
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f !important;
  font-weight: 400;
  text-decoration: none;
}

body.ms-docs-page .ms-docs-help a:hover {
  background: #fff;
  border-color: #d2d2d7;
  text-decoration: none;
}

body.ms-docs-page .ms-docs-help .ms-docs-mode-icon {
  margin-bottom: 0;
  flex: none;
}

body.ms-docs-page .ms-docs-help-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
  flex: 1;
}

body.ms-docs-page .ms-docs-help-copy strong {
  color: #1d1d1f;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

body.ms-docs-page .ms-docs-help-copy span {
  color: #6e6e73;
  -webkit-text-fill-color: #6e6e73;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

body.ms-docs-page .ms-docs-help-out {
  width: 0.85rem;
  height: 0.85rem;
  flex: none;
  fill: none;
  stroke: #6e6e73;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.ms-docs-page .ms-docs-demo-note {
  margin: 0.75rem 0 0 !important;
  color: #6e6e73 !important;
  -webkit-text-fill-color: #6e6e73 !important;
  font-size: 0.88rem !important;
  line-height: 1.45 !important;
}

body.ms-docs-page #services {
  scroll-margin-top: 88px;
}

body.ms-docs-page .ms-docs-subs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr));
  gap: 0.65rem;
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
}

body.ms-docs-page .ms-docs-subs > li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.35rem;
  margin: 0 !important;
  padding: 0.7rem 0.75rem 0.7rem 0.85rem !important;
  border: 1px solid #ececef;
  border-radius: 16px;
  background: #fafafa;
}

body.ms-docs-page .ms-docs-sub-logo {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
}

body.ms-docs-page .ms-docs-sub-logo img {
  display: block;
  max-width: 2.5rem;
  max-height: 2.15rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

body.ms-docs-page .ms-docs-sub-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

body.ms-docs-page .ms-docs-sub-copy strong {
  color: #1d1d1f;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

body.ms-docs-page .ms-docs-sub-copy span {
  color: #6e6e73;
  -webkit-text-fill-color: #6e6e73;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.35;
}

body.ms-docs-page .ms-docs-sub-visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  flex: none;
  height: 2rem;
  margin-left: auto;
  padding: 0 0.72rem;
  border: 1px solid #d2d2d7;
  border-radius: 999px;
  background: #fff;
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f !important;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
}

body.ms-docs-page .ms-docs-sub-visit svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.ms-docs-page .ms-docs-sub-visit:hover {
  background: #1d1d1f;
  border-color: #1d1d1f;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: none;
}

/* Contact page — clean channel cards */
.ms-contact-page {
  text-align: center;
}

.ms-contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.35rem 0 0;
}

.ms-contact-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgb(0 0 0 / 6%);
  color: #3a3a3c;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ms-contact-chip.is-quiet {
  background: transparent;
  color: #6e6e73;
}

.ms-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.75rem 0 0;
  text-align: left;
}

.ms-contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  min-height: 5.4rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgb(0 0 0 / 5%);
  box-shadow: 0 10px 28px rgb(15 23 42 / 4%);
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f !important;
  text-decoration: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.ms-contact-card:hover,
.ms-contact-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgb(0 0 0 / 10%);
  box-shadow: 0 14px 32px rgb(15 23 42 / 8%);
  outline: none;
}

.ms-contact-logo {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 14px;
  background: #f5f5f7;
  color: #1d1d1f;
  flex: none;
}

.ms-contact-logo svg {
  width: 1.2rem;
  height: 1.2rem;
}

.ms-contact-logo.is-brand svg {
  width: 1.25rem;
  height: 1.25rem;
}

.ms-contact-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.ms-contact-label {
  color: #6e6e73;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ms-contact-card strong {
  color: #1d1d1f;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ms-contact-hint {
  color: #6e6e73;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}

.ms-contact-panel {
  margin: 2rem 0 0;
  padding: 1.15rem 1.15rem 1.05rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgb(0 0 0 / 5%);
  text-align: left;
}

.ms-contact-panel-head {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.95rem;
}

.ms-contact-panel-head h2 {
  margin: 0;
  color: #1d1d1f;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.ms-contact-panel-head p {
  margin: 0;
  color: #6e6e73;
  font-size: 0.9rem;
  line-height: 1.4;
}

.ms-contact-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.ms-contact-topics li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 0.8rem;
  border-radius: 14px;
  background: #f5f5f7;
}

.ms-contact-topic-mark {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: #1d1d1f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ms-contact-topics strong {
  display: block;
  color: #1d1d1f;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.ms-contact-topics p {
  margin: 0.15rem 0 0;
  color: #6e6e73;
  font-size: 0.84rem;
  line-height: 1.4;
}

.ms-contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.65rem 0 0;
}

.ms-contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgb(0 0 0 / 6%);
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f !important;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none !important;
  transition: background 140ms ease, color 140ms ease;
}

.ms-contact-links a:hover,
.ms-contact-links a:focus-visible {
  background: #1d1d1f;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  outline: none;
}

@media (max-width: 640px) {
  .ms-contact-grid {
    grid-template-columns: 1fr;
  }
}
