/**
 * Copyright 2026 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@font-face {
  font-family: "Product Sans";
  font-style: normal;
  font-weight: 300;
  src: local("Open Sans"), local("OpenSans"), url(https://fonts.gstatic.com/s/productsans/v5/HYvgU2fE2nRJvZ5JFAumwegdm0LZdjqr5-oayXSOefg.woff2) format("woff2");
}

html, body {
  font: 300 16px/24px "Product Sans", "Roboto", "Noto Sans", "sans-serif";
  background-color: #f1f3f4;
  color: #202124;
}

p, ul, li, a, button, .alert, input, select, textarea {
  font: 400 15px/24px "Roboto", "Noto Sans", "sans-serif";
}

p {
  margin: 16px 0;
  padding: 0;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.hidden {
  display: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

table th, table td {
  padding: 10px 12px;
  border: 1px solid #dadce0;
  text-align: left;
  vertical-align: top;
}

table th {
  background-color: #f8f9fa;
  font-weight: 500;
}

.content {
  flex: 1;
}

.navbar {
  padding: 0 24px;
  font-size: 14px;
  border-bottom: 1px solid #dadce0;
  background-color: #fff;
  box-shadow: none;
}

.navbar-brand {
  padding: 12px;
  font-weight: 500;
  color: #1a73e8 !important;
}

.primary-nav {
  z-index: 100;
}

.docs h1 {
  font-size: 30px;
  line-height: 38px;
  margin-bottom: 20px;
  color: #202124;
}

.docs h2 {
  font-size: 22px;
  line-height: 30px;
  margin: 40px 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8eaed;
  color: #202124;
}

.docs h3 {
  font-size: 18px;
  line-height: 26px;
  margin: 28px 0 12px;
  color: #202124;
}

.docs .devsite-content {
  margin-top: 52px;
}

.docs .devsite-content .devsite-content-details {
  max-width: 1040px;
  padding: 40px;
  margin: 20px auto 40px;
  background-color: #fff;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  border-radius: 8px;
}

.docs .developer-site-nav {
  width: 260px;
  height: 100%;
  background-color: #fff;
  overflow: auto;
  position: fixed;
  z-index: 99;
  border-right: 1px solid #dadce0;
  padding-bottom: 50px;
}

.docs .developer-site-nav .developer-site-nav-list {
  list-style: none;
  padding-left: 0;
  margin-top: 12px;
}

.docs .developer-site-nav .developer-site-nav-list li {
  font-size: 13px;
  display: block;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  padding: 0 0 0 24px;
  margin-right: 12px;
}

.docs .developer-site-nav .developer-site-nav-list li a {
  display: block;
  font-size: 13px;
  line-height: 20px;
  color: #3c4043;
  padding: 6px 0;
  text-decoration: none;
}

.docs .developer-site-nav .developer-site-nav-list li.current {
  background-color: #e8f0fe;
}

.docs .developer-site-nav .developer-site-nav-list li.current a {
  font-weight: 500;
  color: #1a73e8;
}

.docs .developer-site-nav .developer-site-nav-list li:hover {
  background-color: #f1f3f4;
}

.docs .developer-site-nav h3.developer-site-nav-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #5f6368;
  font-weight: 700;
  padding-left: 24px;
  margin: 18px auto 4px auto;
}

.docs .developer-site-nav hr {
  margin: 8px 0;
}

.docs .devsite-content-container {
  margin-left: 260px;
  width: calc(100% - 260px);
  float: left;
}

.toc-container {
  background-color: #f8f9fa;
  padding: 12px 18px;
  margin: 16px 0 24px;
  border: 1px solid #dadce0;
  border-radius: 6px;
}

.toc-container .tocHeader {
  margin-top: 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #5f6368;
}

.sub-item {
  list-style-type: none;
  margin-left: 12px;
}

.input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.input-row input,
.input-row select {
  flex: 1;
  min-width: 220px;
  padding: 8px 10px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background-color: #fff;
}

.header-row {
  display: flex;
  gap: 12px;
  font-weight: 500;
  font-size: 13px;
  color: #5f6368;
  margin-bottom: 4px;
}

.header-row > div {
  flex: 1;
  min-width: 220px;
}

form button {
  background-color: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-weight: 500;
  cursor: pointer;
  margin-right: 8px;
  margin-bottom: 12px;
}

form button:hover:not(:disabled) {
  background-color: #1557b0;
}

form button:disabled {
  background-color: #dadce0;
  color: #80868b;
  cursor: not-allowed;
}

form button.secondary-btn {
  background-color: #fff;
  color: #1a73e8;
  border: 1px solid #dadce0;
}

form button.secondary-btn:hover:not(:disabled) {
  background-color: #f8f9fa;
}

pre code.hljs {
  border-radius: 6px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.45;
}

.workbench-card {
  border: 1px solid #dadce0;
  border-radius: 6px;
  padding: 16px;
  margin: 12px 0 20px;
  background-color: #f8f9fa;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-right: 8px;
}

.status-pass {
  background-color: #e6f4ea;
  color: #137333;
}

.status-fail {
  background-color: #fce8e6;
  color: #c5221f;
}

.status-info {
  background-color: #e8f0fe;
  color: #1967d2;
}

.mcp-app-iframe {
  width: 100%;
  height: 360px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background-color: #fff;
}

@media screen and (max-width: 992px) {
  .docs .devsite-content-container {
    margin-left: 0;
    width: 100%;
  }
  .developer-site-nav {
    display: none;
  }
  .developer-site-nav.displayed {
    display: block;
  }
}
