/* =========================================================================
   MCP TOOLS DOCS PAGE — HEADER (solid white to match the top wave)
   ========================================================================= */

.header {
  background-color: #ffffff;
}


/* =========================================================================
   MCP TOOLS DOCS PAGE — HERO (dark, short: the reference is the point)
   ========================================================================= */

.mt-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  background: var(--color-ink);
  padding: 100px 25px 50px;
  position: relative;
  overflow: hidden;
}

.mt-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,0 L1440,0 L1440,32 C1200,72 960,8 720,48 C480,80 240,20 0,56 Z'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 2;
}

.mt-hero .mt-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.mt-hero .mt-hero__inner .mt-hero__badge {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.mt-hero .mt-hero__inner .mt-hero__headline {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
}

.mt-hero .mt-hero__inner .mt-hero__subheadline {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 0;
  max-width: 700px;
}

.mt-hero .mt-hero__inner .mt-hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.mt-hero .mt-hero__inner .mt-hero__stats .mt-hero__stat {
  padding: 10px 25px;
  border-radius: 12px;
  background: #1e293b;
  border: 1px solid rgba(28, 145, 228, 0.15);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.mt-hero .mt-hero__inner .mt-hero__overview-link {
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: none;
}

.mt-hero .mt-hero__inner .mt-hero__overview-link:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {

  .mt-hero .mt-hero__inner .mt-hero__headline {
    font-size: 42px;
  }

}


/* =========================================================================
   MCP TOOLS DOCS PAGE — CONNECT (endpoint, auth, command)
   ========================================================================= */

.mt-connect {
  background: #dbeafe;
  position: relative;
  z-index: 1;
}

.mt-connect::before {
  content: "";
  position: absolute;
  top: -79px;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C480,80 960,0 1440,60 L1440,80 L0,80 Z' fill='%23dbeafe'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 2;
}

/* THE FACT LIST IS SCOPED TO ITS OWN ROOT, NOT TO A SECTION — THE REST API PAGE REUSES IT UNDER .ap-auth */

.mt-connect__facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.mt-connect__facts .mt-connect__fact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 25px;
  border-radius: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.mt-connect__facts .mt-connect__fact .mt-connect__fact-label {
  color: var(--color-muted);
  font-weight: 600;
  min-width: 160px;
}

.mt-connect__facts .mt-connect__fact .mt-connect__fact-value {
  color: var(--color-ink);
  line-height: 1.7;
}

.mt-connect__facts .mt-connect__fact .mt-connect__fact-value code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  color: var(--color-primary);
  word-break: break-all;
}

.mt-connect .mt-connect__command {
  max-width: 900px;
  margin: 25px auto 0;
}

.mt-connect .mt-connect__command .mt-connect__command-label {
  color: var(--color-muted);
  font-weight: 600;
  margin: 0 0 10px;
}

.mt-connect .mt-connect__command pre {
  margin: 0;
  padding: 25px;
  border-radius: 12px;
  background: var(--color-ink);
  overflow-x: auto;
}

.mt-connect .mt-connect__command pre code {
  color: #4fbefe;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  white-space: pre;
  line-height: 1.6;
}

.mt-connect .mt-connect__note {
  max-width: 900px;
  margin: 25px auto 0;
  color: var(--color-muted);
  line-height: 1.7;
  text-align: center;
}

.mt-connect .mt-connect__note a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.mt-connect .mt-connect__note a:hover {
  text-decoration: underline;
}


/* =========================================================================
   MCP TOOLS DOCS PAGE — CONVENTIONS (how the surface behaves)
   ========================================================================= */

.mt-conventions {
  background: var(--color-surface);
  position: relative;
  z-index: 1;
}

.mt-conventions::before {
  content: "";
  position: absolute;
  top: -79px;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C480,80 960,0 1440,60 L1440,80 L0,80 Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 2;
}

.mt-conventions .mt-conventions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.mt-conventions .mt-conventions__grid .mt-conventions__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 25px;
  border-radius: 12px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
}

/* THE MARKETING SITE DOES NOT LOAD Eesier.Web.Shared/site.css, SO THE SHARED .eicon SIZING RULE IS ABSENT — EVERY ICON ON THIS PAGE STATES ITS OWN BOX */

.mt-conventions .mt-conventions__grid .mt-conventions__card .mt-conventions__card-icon {
  display: flex;
  color: var(--color-primary);
  line-height: 1;
}

.mt-conventions .mt-conventions__grid .mt-conventions__card .mt-conventions__card-icon .eicon {
  width: 25px;
  height: 25px;
}

.mt-conventions .mt-conventions__grid .mt-conventions__card .mt-conventions__card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0;
}

.mt-conventions .mt-conventions__grid .mt-conventions__card .mt-conventions__card-desc {
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0;
}

@media (min-width: 768px) {

  .mt-conventions .mt-conventions__grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (min-width: 1024px) {

  .mt-conventions .mt-conventions__grid {
    grid-template-columns: repeat(3, 1fr);
  }

}


/* =========================================================================
   MCP TOOLS DOCS PAGE — CATALOG (search, index, groups, tools)
   ========================================================================= */

.mt-catalog {
  background: var(--color-background);
  position: relative;
  z-index: 1;
}

.mt-catalog::before {
  content: "";
  position: absolute;
  top: -79px;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C480,80 960,0 1440,60 L1440,80 L0,80 Z' fill='%23f6f7fc'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 2;
}

.mt-catalog .mt-catalog__search {
  max-width: 700px;
  margin: 0 auto 25px;
}

.mt-catalog .mt-catalog__search .mt-catalog__search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.mt-catalog .mt-catalog__search .mt-catalog__search-input {
  width: 100%;
  padding: 10px 25px;
  min-height: 50px;
  border-radius: 50px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: inherit;
  font-size: 16px;
}

.mt-catalog .mt-catalog__search .mt-catalog__search-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.mt-catalog .mt-catalog__toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
}

.mt-catalog .mt-catalog__toc .mt-catalog__toc-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 25px;
  border-radius: 50px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 600;
}

.mt-catalog .mt-catalog__toc .mt-catalog__toc-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.mt-catalog .mt-catalog__toc .mt-catalog__toc-link .mt-catalog__toc-icon {
  display: flex;
  color: var(--color-primary);
  line-height: 1;
}

.mt-catalog .mt-catalog__toc .mt-catalog__toc-link .mt-catalog__toc-icon .eicon {
  width: 16px;
  height: 16px;
}

.mt-catalog .mt-catalog__toc .mt-catalog__toc-link .mt-catalog__toc-count {
  color: var(--color-muted);
  font-size: 14px;
}

.mt-catalog .mt-catalog__empty {
  text-align: center;
  color: var(--color-muted);
  line-height: 1.7;
}

.mt-catalog .mt-group {
  margin-bottom: 50px;
  scroll-margin-top: 100px;
}

.mt-catalog .mt-group .mt-group__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
  margin-bottom: 25px;
}

.mt-catalog .mt-group .mt-group__header .mt-group__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #dbeafe;
  color: var(--color-primary);
  flex-shrink: 0;
}

.mt-catalog .mt-group .mt-group__header .mt-group__icon .eicon {
  width: 25px;
  height: 25px;
}

.mt-catalog .mt-group .mt-group__header .mt-group__heading {
  flex: 1 1 300px;
}

.mt-catalog .mt-group .mt-group__header .mt-group__heading .mt-group__title {
  font-size: 25px;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0;
}

.mt-catalog .mt-group .mt-group__header .mt-group__heading .mt-group__desc {
  color: var(--color-muted);
  line-height: 1.7;
  margin: 10px 0 0;
}

.mt-catalog .mt-group .mt-group__header .mt-group__count {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.mt-catalog .mt-group .mt-group__tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool {
  border-radius: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  scroll-margin-top: 100px;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool[open] {
  border-color: var(--color-primary);
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 25px;
  cursor: pointer;
  list-style: none;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__summary::-webkit-details-marker {
  display: none;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__summary .mt-tool__name {
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__summary .mt-tool__badge {
  padding: 0 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__summary .mt-tool__badge--read {
  background: #dbeafe;
  color: #1c6fa8;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__summary .mt-tool__badge--write {
  background: #e2e8f0;
  color: #334155;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__summary .mt-tool__badge--destructive {
  background: #ffe6db;
  color: #c2410c;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__summary .mt-tool__desc {
  flex: 1 1 100%;
  color: var(--color-muted);
  line-height: 1.7;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__body {
  padding: 0 25px 25px;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__body .mt-tool__invocations {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 25px;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__body .mt-tool__invocations .mt-tool__invocation {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--color-background);
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  color: var(--color-ink);
  overflow-x: auto;
  white-space: nowrap;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__body .mt-tool__invocations .mt-tool__invocation .mt-tool__verb {
  padding: 0 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__body .mt-tool__invocations .mt-tool__invocation .mt-tool__verb--post {
  background: #dbeafe;
  color: #1c6fa8;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__body .mt-tool__invocations .mt-tool__invocation .mt-tool__verb--get {
  background: #e2e8f0;
  color: #334155;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__body .mt-tool__params-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-muted);
  margin: 0 0 10px;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__body .mt-tool__no-params {
  color: var(--color-muted);
  margin: 0;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__body .mt-tool__table-wrap {
  overflow-x: auto;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__body .mt-tool__table {
  width: 100%;
  border-collapse: collapse;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__body .mt-tool__table td {
  padding: 10px;
  border-top: 1px solid var(--color-border);
  vertical-align: top;
  line-height: 1.7;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__body .mt-tool__table .mt-tool__param-name code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
  white-space: nowrap;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__body .mt-tool__table .mt-tool__param-type {
  white-space: nowrap;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__body .mt-tool__table .mt-tool__param-type .mt-tool__type {
  display: block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  color: var(--color-muted);
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__body .mt-tool__table .mt-tool__param-type .mt-tool__required {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #c2410c;
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__body .mt-tool__table .mt-tool__param-type .mt-tool__optional {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-muted);
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__body .mt-tool__table .mt-tool__param-type .mt-tool__default {
  display: block;
  font-size: 12px;
  color: var(--color-muted);
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__body .mt-tool__table .mt-tool__param-type .mt-tool__default code {
  font-family: 'Courier New', Courier, monospace;
  color: var(--color-ink);
}

.mt-catalog .mt-group .mt-group__tools .mt-tool .mt-tool__body .mt-tool__table .mt-tool__param-desc {
  color: var(--color-muted);
  min-width: 250px;
}


/* =========================================================================
   MCP TOOLS DOCS PAGE — FAQ
   ========================================================================= */

.mt-faq {
  background: var(--color-surface);
  position: relative;
  z-index: 1;
}

.mt-faq::before {
  content: "";
  position: absolute;
  top: -79px;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C480,80 960,0 1440,60 L1440,80 L0,80 Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 2;
}

.mt-faq .mt-faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.mt-faq .mt-faq__list details {
  padding: 25px;
  border-radius: 12px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
}

.mt-faq .mt-faq__list details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-ink);
}

.mt-faq .mt-faq__list details .mt-faq__answer {
  margin-top: 10px;
  color: var(--color-muted);
  line-height: 1.7;
}


/* =========================================================================
   MCP TOOLS DOCS PAGE — CTA
   ========================================================================= */

.mt-cta {
  background: #dbeafe;
  position: relative;
  z-index: 1;
  text-align: center;
}

.mt-cta::before {
  content: "";
  position: absolute;
  top: -79px;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C360,80 1080,0 1440,60 L1440,80 L0,80 Z' fill='%23dbeafe'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 2;
}

.mt-cta .content-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.mt-cta .content-inner .mt-cta__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0;
  line-height: 1.3;
}

.mt-cta .content-inner .mt-cta__subtitle {
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0;
  max-width: 500px;
}

.mt-cta .content-inner .mt-cta__subtext {
  color: var(--color-muted);
  font-size: 14px;
  margin: 0;
}

@media (min-width: 768px) {

  .mt-cta .content-inner .mt-cta__title {
    font-size: 36px;
  }

}


/* =========================================================================
   MCP TOOLS DOCS PAGE — MOBILE WAVE OVERRIDES
   ========================================================================= */

@media (max-width: 767px) {

  .mt-connect::before,
  .mt-conventions::before,
  .mt-catalog::before,
  .mt-faq::before,
  .mt-cta::before {
    height: 50px;
    top: -49px;
  }

}
