/*
 * Discover (/features/discover), Figma frame 5840:2 "01 Discover".
 * Loaded after tokens.css, header.css, footer.css and v3.css; only what is
 * unique to this page lives here.
 */

/* Skip link: not in v3.css yet (was in the v03 site.css). */
.v3 .skip {
  position: absolute;
  top: 8px;
  left: -9999px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 100px;
  background: var(--k-ink);
  color: #fff;
}

.v3 .skip:focus {
  left: 12px;
}

/*
 * Shared-layer workarounds (coordinator: promote or fix upstream):
 * - v3.css `.v3 a { color: inherit }` outranks `.v3-btn { color: #fff }`,
 *   so link buttons render dark on dark.
 * - server.js injects a Home / page breadcrumb above the floating header; the
 *   2026-11 design has none. Keep it for assistive tech, take it out of flow.
 */
.v3 a.v3-btn {
  color: #fff;
}

.v3 a.v3-btn.is-secondary {
  color: var(--k-ink);
}

.v3 .knBreadcrumb {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- hero: headline, search, one CTA ---------- */
.discover-hero.v3-band {
  padding-top: 168px;
  padding-bottom: 56px;
}

.discover-hero-inner {
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.discover-title.v3-h1 {
  max-width: 1000px;
  font-size: clamp(36px, 3.75vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.discover-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 720px);
  padding: 10px 10px 10px 28px;
  border: 1px solid #fff;
  border-radius: 100px;
  background: var(--k-surface);
  box-shadow: var(--k-shadow-soft);
  transition: box-shadow var(--k-dur-ui) var(--k-ease);
}

.discover-search:focus-within {
  box-shadow: var(--k-shadow-soft), 0 0 0 3px var(--k-green-soft);
}

/* The field is a real input; the rotating suggestion sits under it as its placeholder. */
.discover-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
}

.discover-field input {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--k-ink);
  font: 400 17px/1.3 var(--k-font-text);
  outline: none;
  appearance: none;
}

.discover-field input::-webkit-search-decoration {
  appearance: none;
}

.v3 .discover-field input:focus-visible {
  outline: none;
}

.discover-hint {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 6px;
  overflow: hidden;
  pointer-events: none;
  text-align: left;
  transition: opacity 120ms var(--k-ease);
}

.discover-field input:not(:placeholder-shown) + .discover-hint {
  opacity: 0;
}

.discover-hint-text {
  display: grid;
}

.discover-hint-text > * {
  grid-area: 1 / 1;
  overflow: hidden;
  color: var(--k-ink-3);
  font-size: 17px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.discover-voice,
.discover-go {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 100px;
}

.discover-voice {
  background: var(--k-green-soft);
  color: var(--k-ink-body);
}

.discover-go {
  padding: 0;
  border: 0;
  background: var(--k-button);
  color: #fff;
  cursor: pointer;
  transition:
    transform var(--k-dur-press) var(--k-ease),
    background-color var(--k-dur-ui) var(--k-ease);
}

.discover-go:active {
  transform: scale(0.97);
}

/* ---------- browse people: v2 in-product person cards ---------- */
.discover-browse.v3-band {
  padding-top: 24px;
  padding-bottom: 96px;
}

.discover-browse-title {
  margin-bottom: 28px;
}

.discover-people {
  margin: 0;
  padding: 0;
  gap: 24px 20px;
  list-style: none;
}

.discover-person {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
  border: 1px solid rgb(0 0 0 / 4%);
  border-radius: 20px;
  background: #fcfcfc;
  box-shadow: 0 2px 10px rgb(0 0 0 / 4%);
}

.discover-person[hidden] {
  display: none;
}

.discover-person-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 100px;
  margin-bottom: 14px;
}

.discover-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 100px;
  background: var(--avatar, var(--k-green));
  color: #fff;
  font: 600 20px/1 var(--k-font-text);
}

.discover-add {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 100px;
  background: #ececec;
  color: var(--k-ink-2);
  transition:
    transform var(--k-dur-press) var(--k-ease),
    background-color var(--k-dur-ui) var(--k-ease);
}

.discover-add:active {
  transform: scale(0.97);
}

.discover-person h3 {
  margin: 0 0 4px;
  color: var(--k-ink-2);
  font: 600 17px/1.3 var(--k-font-text);
}

.discover-role {
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #e9e9e9;
  color: var(--k-ink-body);
  font-size: 13px;
  line-height: 1.3;
}

.discover-line {
  margin: 14px 0 0;
  color: var(--k-ink-2);
  font-size: 14px;
  line-height: 1.4;
}

/* ---------- principles ---------- */
.discover-principles.v3-band {
  padding-top: 88px;
  padding-bottom: 104px;
}

.discover-principle.v3-card {
  gap: 16px;
  padding: 28px;
}

.discover-principle p {
  margin: 0;
  color: var(--k-ink-body);
  font-size: 15px;
  line-height: 1.5;
}

@media (hover: hover) and (pointer: fine) {
  .discover-go:hover {
    background: #000;
  }

  .discover-add:hover {
    background: #e0e0e0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .discover-search,
  .discover-go,
  .discover-add {
    transition: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .discover-hero.v3-band {
    padding-top: 136px;
    padding-bottom: 48px;
  }

  .discover-browse.v3-band {
    padding-top: 24px;
    padding-bottom: 72px;
  }

  .discover-principles.v3-band {
    padding-top: 72px;
    padding-bottom: 80px;
  }
}

@media (max-width: 639px) {
  .discover-search {
    gap: 8px;
    padding: 8px 8px 8px 20px;
  }

  .discover-hint-text > *,
  .discover-field input {
    font-size: 16px;
  }

  .discover-person-top {
    min-height: 72px;
  }
}
