/* Match the visual language of aistudio.google.com/docs:
   white app bar, Google blue (#1a73e8), Google-gray text/borders,
   Google Sans / Noto Sans TC typography, soft rounded code blocks. */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&family=Roboto:wght@400;500;700&family=Roboto+Mono:wght@400;500&display=swap');

:root {
  --md-accent-fg-color: #1a73e8;
  --md-accent-fg-color--transparent: rgba(26, 115, 232, 0.1);
  --md-typeset-a-color: #1a73e8;
  --md-default-fg-color: #1f1f1f;
  --md-default-fg-color--light: #3c4043;
  --md-default-fg-color--lighter: #5f6368;
  --md-code-bg-color: #f1f3f4;
  --md-code-fg-color: #3c4043;
}

body,
.md-typeset {
  font-family: "Google Sans", "Noto Sans TC", "Roboto", -apple-system, "Segoe UI", sans-serif;
  color: #1f1f1f;
}

.md-typeset code,
.md-typeset pre,
.md-typeset kbd {
  font-family: "Roboto Mono", "Noto Sans TC", monospace;
}

/* --- header: white bar like the AI Studio app shell --- */
.md-header {
  background-color: #ffffff;
  color: #1f1f1f;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}
.md-header__title {
  font-weight: 500;
  color: #1f1f1f;
}
.md-search__form {
  background-color: #f1f3f4;
  border-radius: 24px;
  box-shadow: none;
}
.md-search__input {
  color: #1f1f1f;
}
.md-search__input::placeholder {
  color: #5f6368;
}

/* --- layout --- */
.md-grid {
  max-width: 1440px;
}

/* --- typography --- */
.md-typeset h1 {
  color: #1f1f1f;
  font-weight: 400;
  font-size: 2.25rem;
  letter-spacing: 0;
}
.md-typeset h2 {
  color: #1f1f1f;
  font-weight: 400;
  font-size: 1.75rem;
  margin-top: 2.2em;
}
.md-typeset h3 {
  color: #1f1f1f;
  font-weight: 500;
  font-size: 1.375rem;
}
.md-typeset h4 {
  color: #1f1f1f;
  font-weight: 500;
}
.md-typeset a {
  color: #1a73e8;
}
.md-typeset a:hover {
  text-decoration: underline;
}

/* --- code --- */
.md-typeset code {
  background-color: #f1f3f4;
  border-radius: 4px;
  color: #3c4043;
  padding: 0.1em 0.3em;
}
.md-typeset pre > code {
  background-color: #f8f9fa;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 16px;
}
.md-typeset .highlight {
  background: transparent;
}

/* --- tables --- */
.md-typeset table:not([class]) {
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 0.8rem;
}
.md-typeset table:not([class]) th {
  background-color: #f8f9fa;
  color: #1f1f1f;
  font-weight: 500;
  border-bottom: 1px solid #dadce0;
}
.md-typeset table:not([class]) td {
  border-top: 1px solid #e8eaed;
}

/* --- sidebar navigation --- */
.md-nav__title {
  color: #1f1f1f;
  font-weight: 500;
}
.md-nav__link {
  color: #3c4043;
}
.md-nav__link:hover {
  color: #1a73e8;
}
.md-nav__link--active,
.md-nav__link--active:hover {
  color: #1a73e8;
  font-weight: 500;
}
.md-sidebar--primary .md-nav__item--section > .md-nav__link {
  color: #1f1f1f;
  font-weight: 500;
}

/* --- content tabs (pymdownx.tabbed) --- */
.md-typeset .tabbed-labels > label {
  color: #3c4043;
  font-weight: 500;
}
.md-typeset .tabbed-labels > label:hover {
  color: #1a73e8;
}
.md-typeset .tabbed-set > input:checked + label,
.md-typeset .tabbed-labels > label[for]:hover {
  border-color: #1a73e8;
}
.md-typeset .tabbed-alternate input:checked + label {
  color: #1a73e8;
  border-color: #1a73e8;
}

/* --- admonitions --- */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 8px;
  font-size: 0.8rem;
}

/* --- footer: light gray like Google properties --- */
.md-footer {
  background-color: #f8f9fa;
  color: #3c4043;
}
.md-footer-meta {
  background-color: #f1f3f4;
  color: #3c4043;
}
.md-footer a,
.md-footer-meta a {
  color: #1a73e8;
}
.md-copyright {
  color: #3c4043;
}
.md-copyright__highlight {
  color: #1f1f1f;
}
