/*
VERSION:
    File: documentation-site.css
    Package archive: s3-cloudfront-indexer-html-package-v88.zip
    Top folder: s3-cloudfront-indexer-html-package-v88
    Package version: v88
    Build name: documentation-site.css

CHANGE NOTE:
    Common external stylesheet for all package HTML documentation.
    Standardizes width, spacing, navigation, cards, buttons, and page rhythm.
*/

:root {
  --ink: #111827;
  --muted: #4b5563;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --green: #16a34a;
  --green-soft: #f0fdf4;
  --card: #ffffff;
  --shadow: 0 10px 28px rgba(15, 23, 42, .06);
  --page-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 28px 20px 44px;
  color: var(--ink);
  background: linear-gradient(180deg, #eef5ff 0%, #ffffff 24%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--blue);
}

main,
.doc-shell,
.wrap {
  width: min(var(--page-width), 100%);
  margin-left: auto;
  margin-right: auto;
}

main {
  min-height: 620px;
}

h1 {
  margin: 1rem 0 .75rem;
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -.045em;
}

h2 {
  margin-top: 2rem;
  line-height: 1.15;
  letter-spacing: -.025em;
}

h3 {
  line-height: 1.2;
}

p {
  max-width: 78ch;
}

code {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: .1rem .32rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
  max-width: 100%;
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f172a;
  color: #e5e7eb;
}

.doc-nav {
  margin: 0 0 1.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow);
}

.doc-nav strong {
  display: block;
  margin-bottom: .55rem;
  color: var(--ink);
}

.doc-nav .doc-nav-links {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: .5rem;
}

.doc-nav a,
.button,
.doc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: .45rem .72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-weight: 750;
  font-size: .92rem;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .045);
}

.button.primary,
.doc-button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.doc-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: .45rem .72rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-weight: 800;
  font-size: .92rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: default;
}

.doc-context {
  margin: 1rem 0 1.4rem;
  padding: 1rem;
  border-left: 5px solid var(--green);
  border-radius: 14px;
  background: var(--green-soft);
  color: #14532d;
}

.doc-next {
  margin: 2.25rem 0 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.doc-next h2 {
  margin-top: 0;
}

.doc-next-grid,
.grid,
.path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.path {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doc-next-card,
.card,
.path a {
  display: block;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  text-decoration: none;
  box-shadow: 0 7px 20px rgba(15, 23, 42, .045);
}

.doc-next-card b,
.path b {
  display: block;
  margin-bottom: .25rem;
  color: var(--blue);
}

.doc-next-card span,
.path span,
.card p {
  color: var(--muted);
}

.doc-note,
.callout {
  margin: 1rem 0;
  padding: 1rem;
  border-left: 5px solid var(--blue);
  border-radius: 14px;
  background: var(--blue-soft);
}

.win,
.quote {
  margin: 1rem 0;
  padding: 1rem;
  border-left: 5px solid var(--green);
  border-radius: 14px;
  background: var(--green-soft);
  color: #14532d;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 32px;
  align-items: center;
  padding: 24px 0 28px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.26rem);
}

.cta,
.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.15rem;
}

.panel {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.86);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
}

.terminal {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92rem;
  overflow: auto;
}

.ok {
  color: #86efac;
}

.dim {
  color: #94a3b8;
}

.badge {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  padding: .35rem .7rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #1d4ed8;
  font-weight: 800;
  font-size: .9rem;
}

footer {
  width: min(var(--page-width), 100%);
  margin: 52px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
}

@media (max-width: 860px) {
  body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero,
  .grid,
  .path,
  .doc-next-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px){.doc-nav-links{grid-template-columns:repeat(4,minmax(0,1fr));}}@media (max-width:560px){.doc-nav-links{grid-template-columns:repeat(2,minmax(0,1fr));}}
