/* API Docs overview (tokens + .hit styles live in search.css) */
@font-face {
  font-family: "Material Icons";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("fonts/material-icons.woff2") format("woff2"), url("fonts/material-icons.woff") format("woff");
}
.material-icons {
  font-family: "Material Icons"; font-weight: normal; font-style: normal; font-size: 22px; line-height: 1; display: inline-block;
  letter-spacing: normal; text-transform: none; word-wrap: normal; direction: ltr;
  white-space: nowrap; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 14px/22px "Roboto", system-ui, sans-serif;
  color: var(--ga-text); background: var(--ga-bg); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
svg { flex-shrink: 0; }
kbd { padding: 0 4px; border: 1px solid var(--ga-border); border-radius: 4px; font: 11px/16px var(--ga-mono); }

.section { padding: 64px; border-bottom: 1px solid var(--ga-border-sec); }
.section.top { padding: 36px 64px 32px; }
.section.layer { background: var(--ga-layer); }
.inner { max-width: 1100px; margin: 0 auto; }

h1 { margin: 0 0 16px; font-size: 36px; line-height: 44px; font-weight: 600; }
h2 { margin: 0 0 16px; font-size: 28px; line-height: 36px; font-weight: 600; }
.lead { margin: 0; color: var(--ga-text-sec); }
.muted { margin: 0; color: var(--ga-text-desc); }
body.searching .lead { display: none; }

.search { position: relative; display: block; margin: 24px 0 0; }
.search > svg {
  position: absolute; left: 16px; top: 12px; width: 18px; height: 18px;
  color: var(--ga-text-dis); pointer-events: none;
}
.search input {
  display: block; width: 100%; height: 42px; padding: 9px 64px 9px 44px;
  font: 15px/22px "Roboto", system-ui, sans-serif; color: var(--ga-text); background: var(--ga-bg);
  border: 1px solid var(--ga-border); border-radius: 8px; outline: none; appearance: none;
}
.search input:hover { border-color: var(--ga-text-dis); }
.search input:focus { border-color: var(--color-primary-base); }
.search input::placeholder { color: var(--ga-text-dis); opacity: 1; }
.search input::-webkit-search-decoration,
.search input::-webkit-search-cancel-button { appearance: none; }
.search .hint { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ga-text-dis); pointer-events: none; }
.search .clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  display: none; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0;
  color: var(--ga-text-desc); background: transparent; border: 0; border-radius: 50%; cursor: pointer;
}
.search .clear:hover { color: var(--ga-text); background: var(--ga-hover); }
.search .clear svg { width: 16px; height: 16px; }
.search.filled .clear { display: inline-flex; }
.search.filled .hint { display: none; }
.search.filled input { padding-right: 44px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.actions { display: flex; align-items: center; gap: 4px; }
.badge {
  display: flex; align-items: center; padding: 2px 8px;
  border-radius: 21px; background: var(--ga-badge-bg); color: var(--ga-badge-color);
}
.badge:hover { background: var(--ga-badge-hover); }
.badge span { margin-right: 4px; font-size: 10px; line-height: 20px; }
.badge img { display: block; width: 13px; height: 12px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 5px;
  color: var(--ga-text-sec); background: transparent; border: 1px solid var(--ga-border); border-radius: 6px; cursor: pointer;
}
.icon-btn:hover { color: var(--ga-text); }
.icon-btn svg, .seg svg { width: 14px; height: 14px; }

.seg { display: flex; margin-left: 4px; padding: 2px; border-radius: 4px; background: var(--ga-seg-bg); }
.seg button {
  display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0;
  color: var(--ga-text); background: transparent; border: 0; border-radius: 4px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--ga-seg-active); }

.services-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.services-head h2 { margin-bottom: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
[data-layout="stacked"] .grid { grid-template-columns: 1fr; }
.hits { display: flex; flex-direction: column; gap: 12px; }

.card {
  display: flex; align-items: flex-start; gap: 16px; padding: 16px 20px;
  background: var(--ga-bg); border: 1px solid var(--ga-border); border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.card:is(:hover, :focus-visible, .active) {
  border-color: var(--color-primary-base); box-shadow: var(--ga-shadow-hover);
  transform: translateY(-1px); outline: none;
}
.card .ico {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 8px; background: var(--ga-icon-bg); color: var(--ga-icon-color);
}
.card .body { flex: 1; min-width: 0; }
.card .title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 16px; font-weight: 600; line-height: 24px;
}
.card .title svg {
  width: 16px; height: 16px; color: var(--ga-text-desc); opacity: 0;
  transition: transform 0.15s, color 0.15s, opacity 0.15s;
}
.card:is(:hover, :focus-visible, .active) .title svg { opacity: 1; color: var(--color-primary-base); transform: translateX(2px); }
.card .desc { margin: 4px 0 0; color: var(--ga-text-sec); }

.empty { padding: 40px 0; text-align: center; color: var(--ga-text-desc); }
.note { margin: 12px 0 0; color: var(--ga-text-desc); font-size: 13px; }

@media (max-width: 900px) {
  .section, .section.top { padding: 32px 20px; }
  h1 { font-size: 28px; line-height: 36px; }
}
