/* Templates, guides, use cases and glossary (main/seo_pages). Marketing register as on the
   landing and pricing pages: Hanken Grotesk, lots of white, a pale-blue wash on the hero only.
   Example polls are real Slack screenshots (.seo-shot). */

.seo {
  --ink: #1a202c;
  --body: #4a5568;
  --muted: #718096;
  --line: #e2e8f0;
  --surface: #f7fafc;
  --wash: #f0faff;
  --blue: #5ad2f9;
  --blue-deep: #0eb3e9;
  --yellow: #f99f36;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.seo-wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.seo h1,
.seo h2,
.seo h3 {
  color: var(--ink);
  font-family: inherit;
  text-wrap: balance;
}

.seo a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--blue-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.seo a:hover {
  text-decoration-color: var(--ink);
}

.seo a:focus-visible,
.seo button:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

.seo code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.3em;
  color: var(--ink);
}

/* ---- Hero ---- */

.seo-hero {
  background: var(--wash);
  padding: 28px 0 56px;
  border-bottom: 1px solid #e3f4fb;
}

.seo-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.seo-crumbs li + li::before {
  content: "/";
  margin-right: 4px;
  color: #a0aec0;
}

.seo-crumbs a {
  color: var(--body);
  text-decoration: none;
}

.seo-crumbs a:hover {
  text-decoration: underline;
}

.seo-hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 20em;
  margin: 0;
}

.seo-lede {
  margin-top: 20px;
  max-width: 40rem;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--body);
}

.seo-lede p + p {
  margin-top: 0.75em;
}

.seo-definition {
  margin-top: 24px;
  max-width: 40rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 1.1875rem;
  color: var(--ink);
}

.seo-definition dfn {
  font-style: normal;
  font-weight: 800;
}

.seo-aka {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--body);
}

.seo-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-top: 28px;
  max-width: 52rem;
}

.seo-facts div {
  min-width: 0;
  max-width: 30rem;
}

.seo-facts dt {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}

.seo-facts dd {
  margin: 2px 0 0;
  font-size: 0.9375rem;
}

.seo-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.seo-letters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
}

.seo-letters a:hover {
  border-color: var(--blue-deep);
}

/* ---- Body blocks ---- */

.seo-main {
  padding-bottom: 32px;
}

.seo-block {
  margin-top: 56px;
}

.seo-article {
  max-width: 1120px;
}

.seo-article > .seo-block,
.seo-article > section {
  max-width: 44rem;
}

.seo h2 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.seo h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.seo-prose p,
.seo-prose ul,
.seo-prose ol {
  margin: 0 0 0.85em;
}

.seo-prose > :last-child {
  margin-bottom: 0;
}

.seo-prose ul {
  list-style: disc;
  padding-left: 1.25em;
}

.seo-prose ol {
  list-style: decimal;
  padding-left: 1.25em;
}

.seo-prose li + li {
  margin-top: 0.35em;
}

.seo-prose strong {
  color: var(--ink);
  font-weight: 700;
}

/* ---- Guide steps ---- */

.seo-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 44rem;
}

.seo-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.seo-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.seo-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--wash);
  border: 1px solid #c9eefc;
  color: var(--ink);
  font-weight: 800;
}

.seo-steps h3 {
  margin: 5px 0 6px;
}

/* ---- Examples ---- */

.seo-examples {
  margin-top: 56px;
}

.seo-main > .seo-examples:first-child {
  margin-top: 0;
  border-top: 0;
}

.seo-examples {
  padding: 48px 0 56px;
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.seo-examples-hint {
  margin: -8px 0 28px;
  color: var(--body);
}

.seo-example-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 470px), 1fr));
  gap: 44px 40px;
  align-items: start;
}

.seo-example {
  margin: 0;
  min-width: 0;
}

.seo-example-meta {
  margin-top: 14px;
}

.seo-example-caption {
  color: var(--ink);
  font-size: 1rem;
}

.seo-example-kind {
  font-weight: 700;
}

.seo-command {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 8px 8px 12px;
}

.seo .seo-command code {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  padding: 3px 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.seo-copy {
  flex: none;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  padding: 3px 10px;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.seo-copy:hover {
  background: var(--surface);
  border-color: #a0aec0;
}

.seo-example-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--body);
}

.seo-plan {
  display: inline-block;
  font-weight: 700;
  border-radius: 9999px;
  padding: 2px 10px;
  line-height: 1.5;
}

.seo-plan-free {
  border: 1px solid #cbd5e0;
  color: var(--ink);
  background: #fff;
}

.seo-plan-premium {
  background: rgba(249, 159, 54, 0.16);
  color: #8a4b00;
}

.seo-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--body);
}

.seo-setting {
  white-space: nowrap;
}

.seo-setting + .seo-setting::before {
  content: "·";
  margin: 0 8px;
  color: #a0aec0;
}

/* ---- Use-case template rows ---- */

.seo-team-list {
  display: grid;
  gap: 0;
}

.seo-team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.seo-team-row:last-child {
  border-bottom: 1px solid var(--line);
}

.seo-team-text p {
  margin-top: 6px;
}

@media (min-width: 900px) {
  .seo-team-row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 48px;
    align-items: start;
  }
}

/* ---- FAQ, related, sources ---- */

.seo-faq-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.seo-faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.seo-faq-item h3 {
  margin-bottom: 6px;
}

.seo-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.seo-links li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.seo-links li > a {
  font-weight: 700;
}

.seo-links p {
  margin-top: 2px;
  font-size: 0.9375rem;
}

.seo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.seo-chips a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
}

.seo-chips a:hover {
  border-color: var(--blue-deep);
}

.seo-sources ul {
  list-style: disc;
  padding-left: 1.25em;
}

/* ---- Hubs ---- */

.seo-hub {
  padding-top: 8px;
}

.seo-hub-group {
  margin-top: 48px;
  scroll-margin-top: 88px;
}

@media (min-width: 900px) {
  .seo-hub-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }
}

/* ---- Install + browse ---- */

.seo-install {
  margin-top: 72px;
  border-top: 1px solid var(--line);
}

.seo-install-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-block: 48px;
}

.seo-install h2 {
  margin-bottom: 6px;
}

.seo-install p {
  max-width: 36rem;
}

.seo .seo-install-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 9999px;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 1.0625rem;
  padding: 14px 28px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background-color 0.15s ease-in-out;
}

.seo .seo-install-button:hover {
  background: #2d3748;
  color: #fff;
}

.seo-slack-glyph {
  width: 20px;
  height: 20px;
}

.seo-hubs {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
}

.seo-hubs h2 {
  font-size: 1.125rem;
}

.seo-hubs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px 40px;
}

@media (min-width: 720px) {
  .seo-hubs ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.seo-hubs a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
}

.seo-hubs-title {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

.seo-hubs a:hover .seo-hubs-title {
  text-decoration: underline;
  text-decoration-color: var(--blue-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.seo-hubs a[aria-current] .seo-hubs-title::after {
  content: " (you are here)";
  font-weight: 400;
  color: var(--muted);
}

.seo-hubs-desc {
  display: block;
  font-size: 0.875rem;
  color: var(--body);
}

/* ---- Example poll screenshots (real Slack, 2x) ---- */

.seo-shot {
  display: block;
  max-width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid rgba(8, 51, 73, 0.08);
  border-radius: 12px;
}

@media (max-width: 520px) {
  .seo-wrap {
    padding-inline: 18px;
  }
}
