.pagehead {
  position: relative;
  background: var(--deep);
  color: #fff;
  overflow: hidden;
  padding: 84px 0 72px;
}

.pagehead::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  top: -300px;
  right: -160px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0, 9, 113, .85), rgba(0, 9, 113, 0) 70%);
  pointer-events: none;
}

.pagehead .wrap {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.pagehead h1 {
  margin: 24px 0 18px;
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3rem);
}

.pagehead__lead {
  color: rgba(255, 255, 255, .76);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.docsearch {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 34px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 3, 36, .3);
}

.docsearch__icon {
  display: flex;
  padding: 0 4px 0 18px;
  color: var(--faint);
}

.docsearch__icon svg { width: 20px; height: 20px; }

.docsearch input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 18px 14px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}

.docsearch input::placeholder { color: var(--faint); }

.docsearch input:focus { outline: none; }

.docsearch:focus-within { box-shadow: 0 18px 40px rgba(0, 3, 36, .3), 0 0 0 2px var(--red); }

.docsearch__clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  cursor: pointer;
  transition: background-color .24s var(--ease), color .24s var(--ease);
}

.docsearch__clear svg { width: 15px; height: 15px; }

.docsearch__clear:hover { background: var(--red); color: #fff; }

.docnav {
  position: sticky;
  top: 76px;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.docnav .wrap {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-top: 14px;
  padding-bottom: 14px;
  scrollbar-width: none;
}

.docnav .wrap::-webkit-scrollbar { display: none; }

.docnav__chip {
  flex: none;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--navy);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color .24s var(--ease), color .24s var(--ease), background-color .24s var(--ease);
}

.docnav__chip:hover {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.section--docs { padding: 76px 0; }

.docs-empty {
  margin: 40px 0 0;
  padding: 26px 30px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.doclist { margin-top: 40px; }

.doc {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.doc + .doc { margin-top: 14px; }

.doc:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 9, 113, .22);
  box-shadow: var(--shadow-md);
}

.doc__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0, 9, 113, .07);
  color: var(--navy);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

.doc:hover .doc__icon { background: var(--red); color: #fff; }

.doc__icon svg { width: 22px; height: 22px; }

.doc__body { flex: 1 1 auto; min-width: 0; }

.doc__body h3 { font-size: 1.0625rem; }

.doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 7px;
  color: var(--faint);
  font-size: .8125rem;
}

.doc__meta span { position: relative; }

.doc__meta span + span::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}

.doc__ext { color: var(--red); }

.doc__action { flex: none; }

.doc__action svg {
  width: 14px;
  height: 14px;
  transition: transform .28s var(--ease);
}

.doc__action:hover svg { transform: translateX(3px); }

.plugins {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
  margin-top: 46px;
}

.plugin {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.plugin:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 9, 113, .22);
  box-shadow: var(--shadow-md);
}

.plugin__logo {
  display: flex;
  align-items: center;
  height: 44px;
  margin-bottom: 20px;
}

.plugin__logo img {
  height: auto;
  width: auto;
  max-height: 32px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .78;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}

.plugin:hover .plugin__logo img { filter: grayscale(0); opacity: 1; }

.plugin h3 { font-size: 1rem; }

.plugin p {
  margin-top: 10px;
  color: var(--muted);
  font-size: .875rem;
}

.plugin__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}

.plugin__links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  font-size: .8125rem;
  font-weight: 600;
  transition: border-color .24s var(--ease), color .24s var(--ease), background-color .24s var(--ease);
}

.plugin__links a:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

@media (max-width: 780px) {
  .pagehead { padding: 56px 0 52px; }
  .docnav { top: 0; }
  .section--docs { padding: 54px 0; }

  .doc {
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
  }

  .doc__body { flex-basis: calc(100% - 62px); }
  .doc__action { width: 100%; }
}
