:root {
  --bg: #f5f8ff;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --muted2: #94a3b8;
  --accent: #1e3a5f;
  --accent-bright: #2563eb;
  --accent2: #0d9488;
  --border: #e2e8f0;
  --ring: rgba(37, 99, 235, 0.35);
  --shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
  --radius: 18px;
  --radius2: 26px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: linear-gradient(180deg, #f5f8ff 0%, var(--bg) 40%, #ffffff 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text);
}
.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.2);
}
.navlinks {
  display: flex;
  gap: 14px;
  align-items: center;
}
.navlinks a {
  color: var(--muted);
  font-weight: 700;
}
.navlinks a:hover {
  color: var(--accent);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #1e4976);
  color: #ffffff;
  border-color: rgba(30, 58, 95, 0.35);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.2);
}
.btn.primary:hover {
  filter: brightness(1.05);
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  width: fit-content;
}

.card {
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
}

.section {
  margin-top: 14px;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 16px;
}
.section h2 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.25px;
  color: var(--accent);
}
.section p {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
}

.snapshotGrid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.snap {
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}
.snap .label {
  color: var(--muted2);
  font-size: 12px;
  font-weight: 800;
}
.snap .value {
  font-size: 15px;
  font-weight: 800;
  margin-top: 4px;
  color: var(--text);
}
.snap .small {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  margin-top: 6px;
}

.callout {
  border-radius: 18px;
  border: 1px solid rgba(13, 148, 136, 0.35);
  background: rgba(13, 148, 136, 0.08);
  padding: 12px;
  color: var(--muted);
  font-weight: 600;
}

.csp-partner-cta {
  margin: 1rem 0 0;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(13, 148, 136, 0.35);
  background: rgba(13, 148, 136, 0.08);
  text-align: left;
  font-weight: 500;
}

.csp-partner-cta p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

.csp-partner-cta__btn {
  display: inline-block;
  font-weight: 700;
  color: #0f766e;
  text-decoration: none;
}

.csp-partner-cta__btn:hover {
  text-decoration: underline;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.check {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(13, 148, 136, 0.12);
  border: 1px solid rgba(13, 148, 136, 0.35);
  display: grid;
  place-items: center;
  color: var(--accent2);
  flex: 0 0 auto;
  margin-top: 1px;
  font-weight: 800;
}

details {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #f8fafc;
  padding: 12px;
  margin-top: 10px;
}
summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.field {
  position: relative;
}
input[type="text"] {
  width: 100%;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  outline: none;
  font-weight: 600;
  font-size: 15px;
}
input[type="text"]:focus {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 4px var(--ring);
}
.results {
  position: absolute;
  left: 0;
  right: 0;
  top: 54px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  display: none;
  z-index: 10;
  box-shadow: var(--shadow);
}
.results button {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.results button:hover,
.results button[aria-selected="true"] {
  background: #f1f5f9;
}
.results .subline {
  display: block;
  color: var(--muted2);
  font-weight: 600;
  font-size: 12px;
  margin-top: 2px;
}

.tocTitle {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
  color: var(--text);
}
.toc {
  display: grid;
  gap: 6px;
}
.toc a {
  display: block;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 650;
}
.toc a:hover {
  color: var(--accent);
  background: #f1f5f9;
  text-decoration: none;
}
.toc a.active {
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.06);
}

.stickyCta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.06);
}
.stickyCta .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.stickyCta .left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stickyCta .title {
  font-weight: 800;
  color: var(--text);
}
.stickyCta .meta {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 16px;
  color: var(--muted2);
  font-weight: 600;
  font-size: 13px;
}

/* Injected by site-owner-footer.js (below main content) */
.site-owner-attribution-bar {
  margin-top: 0;
  padding: 1.25rem 1rem 1.75rem;
  border-top: 1px solid var(--border);
  background: #f1f5f9;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.site-owner-attribution-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.site-owner-line {
  margin: 0 0 0.65rem;
  font-weight: 650;
  color: var(--muted);
}

.site-owner-line strong {
  color: var(--text);
  font-weight: 800;
}

.site-owner-copyright {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted2);
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 1020px) {
  .snapshotGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .navlinks {
    display: none;
  }
  .snapshotGrid {
    grid-template-columns: 1fr;
  }
}
