/*
 * FIGSITE 1.2.1: isolated presentation for classic-theme Pages, Posts and Archives.
 * The independently rendered Business Experience homepage is not a target.
 * Deliberately leaves the existing main.css, plugin assets, and custom CSS intact.
 */
:root {
  --knowledge-ink: #102344;
  --knowledge-body: #243c58;
  --knowledge-blue: #1455ec;
  --knowledge-pale: #f4f7fc;
  --knowledge-border: #d7e2f0;
}
body:is(.page:not(.home), .single-post, .blog, .archive, .search, .error404) {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fc 31%, #edf3fc 100%);
  color: var(--knowledge-body);
}
body:is(.page:not(.home), .single-post, .blog, .archive, .search, .error404) .site-main {
  color: var(--knowledge-body);
}
body:is(.page:not(.home), .single-post, .blog, .archive, .search, .error404) .site-main :is(h1,h2,h3) {
  color: var(--knowledge-ink);
}
body:is(.page:not(.home), .single-post, .blog, .archive, .search, .error404) .site-main :is(.entry-content, .post-meta) {
  color: var(--knowledge-body);
}
body:is(.page:not(.home), .single-post, .blog, .archive, .search, .error404) .site-main a:not(.button) {
  color: #1153c9;
}
body:is(.page:not(.home), .single-post, .blog, .archive, .search, .error404) .site-main a:not(.button):hover {
  color: #092d79;
}
/* Shared shell: no database menu rewrite or homepage plugin changes. */
.figsite-knowledge-header.site-header {
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--knowledge-border);
  box-shadow: 0 8px 28px rgba(16, 35, 68, .055);
}
.figsite-knowledge-header .header-inner { min-height: 80px; gap: 1.25rem; }
.figsite-knowledge-header .figsite-knowledge-brand { gap: .7rem; color: var(--knowledge-ink); line-height: 1.2; flex-shrink: 0; }
.figsite-knowledge-header .figsite-knowledge-brand:hover { color: var(--knowledge-ink); }
.figsite-knowledge-mark { width: 39px; height: 39px; object-fit: contain; flex: 0 0 39px; }
.figsite-knowledge-mark-fallback { border-radius: 9px; display: grid; place-items: center; background: #1755ee; color: #fff; font: 800 26px/1 sans-serif; }
.figsite-knowledge-brand-text { display: flex; flex-direction: column; gap: 3px; }
.figsite-knowledge-brand-text strong { font-size: 1rem; letter-spacing: .17em; font-weight: 850; }
.figsite-knowledge-brand-text small { font-size: .67rem; color: #395371; letter-spacing: .01em; font-weight: 500; }
.figsite-knowledge-header .primary-navigation { background: #fff; border-color: var(--knowledge-border); }
.figsite-knowledge-header .primary-menu a { color: var(--knowledge-ink); font-size: .89rem; font-weight: 650; }
.figsite-knowledge-header .primary-menu a:hover { color: var(--knowledge-blue); }
.figsite-knowledge-header .header-cta { background: #1755f4; box-shadow: none; border-radius: 10px; color: #fff; font-size: .875rem; }
.figsite-knowledge-header .header-cta:hover { background: #0d3cb9; color: #fff; }
.figsite-knowledge-header .menu-toggle { border-color: #bdcde7; color: #15304c; }
.figsite-knowledge-header .menu-toggle-bars, .figsite-knowledge-header .menu-toggle-bars::before, .figsite-knowledge-header .menu-toggle-bars::after { background: currentColor; }
/* Editorial templates: readable, compact and independent of the old dark theme. */
body.single-post .site-main > .section:first-child, body.archive .site-main > .section:first-child,
body.blog .site-main > .section:first-child { padding-top: clamp(3rem, 5vw, 5rem); }
body.single-post .single-insight { max-width: 860px; }
body.single-post .single-insight-header h1 { max-width: 22ch; font-family: Georgia, Cambria, 'Times New Roman', serif; font-size: clamp(2.4rem, 4.7vw, 4.3rem); letter-spacing: -.03em; line-height: 1.14; }
body.single-post .single-insight-content { color: var(--knowledge-body); font-size: 1.075rem; line-height: 1.85; }
body.single-post .single-insight-content :is(h2,h3) { max-width: 32ch; font-family: Georgia, Cambria, 'Times New Roman', serif; line-height: 1.25; }
body.single-post .single-featured-image { border: none; border-radius: 16px; box-shadow: 0 10px 36px rgba(15,40,75,.1); }
body.single-post .single-insight .post-meta { color: #5d708b; }
body.single-post .single-insight-content :is(ol,ul) { padding-left: 1.5rem; }
body.single-post .single-insight-content blockquote { padding: .75rem 1.5rem; border-left: 4px solid #1855ee; background: #ebf1ff; margin-inline: 0; }
body.blog .figsite-insights-intro { padding-bottom: 1.75rem; }
body.blog .figsite-insights-intro h1 { font-family: Georgia, Cambria, 'Times New Roman', serif; max-width: none; font-size: clamp(2.55rem,5vw,4.5rem); }
body.blog .figsite-insights-intro .hero-lede { margin-left: auto; margin-right: auto; color: var(--knowledge-body); }
body.blog .figsite-insights-intro .section-kicker { color: var(--knowledge-blue); letter-spacing: .14em; }
body:is(.blog, .archive, .search) .insight-card { background: #fff; border: 1px solid var(--knowledge-border); color: var(--knowledge-body); box-shadow: 0 12px 36px rgba(16,35,68,.07); border-radius: 16px; }
body:is(.blog, .archive, .search) .insight-card-title a { color: var(--knowledge-ink); }
body:is(.blog, .archive, .search) .insight-card .post-meta, body:is(.blog, .archive, .search) .insight-card-excerpt { color: #4c627e; }
body:is(.blog, .archive, .search) .insight-card .category-label { color: var(--knowledge-blue); }
body:is(.blog, .archive, .search) .insight-card-media { background: #e9eff8; }
body:is(.blog, .archive, .search) .insight-card-placeholder { background: #e9eff8; color: #395371; }
body:is(.blog, .archive, .search) .archive-header h1 { max-width: none; font-family: Georgia, Cambria, 'Times New Roman', serif; }
body.page:not(.home) .site-main > .content-article { padding: clamp(2.4rem,5vw,4.5rem) 0 clamp(3.5rem,6vw,6rem); }
body.page:not(.home) .page-header h1 { max-width: 22ch; font-family: Georgia, Cambria, 'Times New Roman', serif; font-size: clamp(2.3rem,5vw,4rem); }
body.page:not(.home) .entry-content { color: var(--knowledge-body); }
/* Customer shortcode surface: keep an authenticated workspace legible without restyling its controls. */
body.page:not(.home) .entry-content .fppc { background: #fff; border-radius: 18px; color: #1e323b; }
body.page:not(.home) .entry-content .fppc :is(h1,h2,h3,h4,p,label,legend) { color: #1e323b; }
body.page:not(.home) .entry-content .fppc :is(input,select,textarea) { color: #1e323b; background-color: #fff; border-color: #c1d0dc; }
/* Native checkbox/radio control sizes on the public sign-in surface. */
body.page:not(.home) .entry-content .fppc input[type="checkbox"],
body.page:not(.home) .entry-content .fppc input[type="radio"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  padding: 0;
  margin: 0 .45rem 0 0;
  accent-color: #1755ee;
}
/* Editorial call-to-action replaces the Revenue Capture post footer panel. */
body:is(.single-post, .blog, .archive, .search) .insights-cta { border: 1px solid #c7d9f6; background: #eaf1ff; border-radius: 18px; color: var(--knowledge-body); padding: clamp(1.25rem,4vw,2rem); }
body:is(.single-post, .blog, .archive, .search) .insights-cta :is(h2,p) { color: var(--knowledge-ink); }
body:is(.single-post, .blog, .archive, .search) .insights-cta .button-primary { color: #fff; background: #1755f4; box-shadow: none; }
body:is(.single-post, .blog, .archive, .search) .insights-cta .button-secondary { color: #1450b8; background: #fff; border: 1px solid #aac3ee; }
.figsite-knowledge-cta-note { font-size: .82rem; opacity: .85; margin-top: 1.1rem; }
.figsite-knowledge-footer.site-footer { background: #0c1d3a; border-top: 1px solid #233a5b; color: #d6e4f9; }
.figsite-knowledge-footer :is(.footer-logo,.footer-heading) { color: #fff; }
.figsite-knowledge-footer .footer-grid { gap: clamp(1.75rem, 3vw, 2.5rem); }
.figsite-knowledge-footer .footer-logo { font-size: 1.4rem; letter-spacing: .16em; }
.figsite-knowledge-footer p, .figsite-knowledge-footer .footer-menu a { color: #c7d9ee; }
.figsite-knowledge-footer a:hover { color: #fff; }
.figsite-knowledge-footer .footer-bottom { border-color: #354d70; }
@media (max-width: 1023px) {
  .figsite-knowledge-header .primary-navigation { box-shadow: 0 18px 38px rgba(16,35,68,.16); }
  .figsite-knowledge-header .primary-menu a { padding-inline: .6rem; }
}
@media (min-width: 1024px) {
  .figsite-knowledge-header .primary-navigation { background: transparent; gap: .95rem; }
  .figsite-knowledge-header .primary-menu { gap: .75rem; }
  .figsite-knowledge-header .header-cta { max-width: none; white-space: nowrap; }
}
@media (max-width: 640px) {
  .figsite-knowledge-header .figsite-knowledge-brand-text small { font-size: .61rem; }
  .figsite-knowledge-header .header-inner { min-height: 72px; }
  body.single-post .single-insight-content { font-size: 1rem; }
  body.single-post .single-insight-header h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .figsite-knowledge-header *, .figsite-knowledge-footer * { scroll-behavior: auto; }
}
