/* TriLumen shared site nav — keep gap/font/breakpoint in one place */
nav { position: sticky; top: 0; background: #fff; border-bottom: 1px solid #EDEDF2; z-index: 50; }
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 16px 28px;
  max-width: 1400px !important;
  margin: 0 auto;
  box-sizing: border-box;
}
.logo {
  font-size: 18px;
  font-weight: 700;
  color: #18181B;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: 8px;
}
.logo-icon-img { height: 26px; width: auto; display: block; }
.logo span { color: #4C4272; }
.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  flex-wrap: nowrap;
  flex-shrink: 1;
  min-width: 0;
}
.nav-links a:hover { color: #4C4272; }
.nav-links a { white-space: nowrap; }
.nav-links a.current { color: #4C4272; }
.nav-cta { background: #4C4272; color: #fff !important; padding: 10px 16px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.nav-cta:hover { background: #3A3358; }
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-shrink: 0; }
.menu-btn svg { width: 26px; height: 26px; }
.mobile-menu { display: none; flex-direction: column; padding: 8px 24px 16px; background: #fff; border-bottom: 1px solid #EDEDF2; }
.mobile-menu a { padding: 10px 0; font-weight: 500; font-size: 15px; border-bottom: 1px solid #F4F2FA; }
.mobile-menu.open { display: flex; }

/* Dropdown menus (Solutions, About) */
.nav-links { gap: 22px; }
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; padding: 6px 0; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
.nav-dd-btn:hover, .nav-dd.is-current .nav-dd-btn { color: #4C4272; }
.nav-dd-chev { width: 12px; height: 12px; transition: transform 0.15s; }
.nav-dd-menu { position: absolute; top: 100%; left: -14px; min-width: 240px; padding: 8px; margin-top: 10px; background: #fff; border: 1px solid #EDEDF2; border-radius: 12px; box-shadow: 0 12px 32px rgba(24,24,27,0.10); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; z-index: 60; }
.nav-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-dd-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #18181B; white-space: nowrap; }
.nav-dd-menu a small { display: block; font-size: 12px; font-weight: 500; color: #71717A; margin-top: 2px; }
.nav-dd-menu a:hover { background: #F4F2FA; color: #4C4272; }
.nav-dd-menu a.current { color: #4C4272; background: #F4F2FA; }
.nav-dd:last-of-type .nav-dd-menu { left: auto; right: -14px; min-width: 180px; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu, .nav-dd.open .nav-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dd:hover .nav-dd-chev, .nav-dd.open .nav-dd-chev { transform: rotate(180deg); }

/* Grouped mobile menu */
.mobile-menu .mm-label { margin: 14px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #A1A1AA; }
.mobile-menu .mm-label:first-child { margin-top: 4px; }
.mobile-menu a.current { color: #4C4272; }

/* Desktop nav fits down to 900px now that it's shorter; overrides older per-page breakpoints */
@media (min-width: 901px) {
  .nav-links { display: flex !important; }
  .menu-btn { display: none !important; }
  .mobile-menu, .mobile-menu.open { display: none !important; }
}
@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .menu-btn { display: block !important; }
}

/* Mobile footer: two-column links, centered bottom bar */
@media (max-width: 560px) {
  footer .footer-columns { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  footer .footer-col-brand, footer .footer-col-newsletter { grid-column: 1 / -1; }
  footer .footer-col-links { gap: 9px; }
  footer .footer-bottom-inner { align-items: center; text-align: center; gap: 10px; }
  footer .footer-bottom-links { justify-content: center; gap: 6px 18px; }
  footer .footer-bottom-sep { display: none; }
}

/* Related reading: Insights cards on articles and solution pages */
.related-reading-article { margin-top: 44px; }
.related-reading-article h2 { font-size: 22px; margin: 0 0 16px; }
.related-reading-section { padding: 60px 0; background: #fff; border-top: 1px solid #EDEDF2; }
.related-reading-section h2 { font-size: 26px; font-weight: 700; text-align: center; margin: 0 0 10px; color: #18181B; }
.related-reading-sub { text-align: center; font-size: 15px; color: #71717A; max-width: 560px; margin: 0 auto 30px; line-height: 1.6; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.related-reading-section .related-grid { max-width: 1000px; margin: 0 auto; gap: 18px; }
.related-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid #E5E1F0; border-radius: 12px; padding: 18px 18px 16px; color: #18181B; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.related-reading-article .related-card { background: #F4F2FA; }
.related-card:hover { border-color: #4C4272; box-shadow: 0 6px 18px rgba(76,66,114,0.10); transform: translateY(-1px); }
.related-card:focus-visible { outline: 2px solid #4C4272; outline-offset: 2px; }
.related-card-tag { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #4C4272; font-weight: 700; }
.related-card-title { font-size: 15.5px; font-weight: 600; line-height: 1.4; color: #18181B; flex: 1; }
.related-card-more { font-size: 13.5px; font-weight: 600; color: #4C4272; }
.related-reading-all { text-align: center; margin: 26px 0 0; font-size: 14.5px; }
.related-reading-all a { color: #4C4272; font-weight: 600; }
@media (max-width: 560px) {
  .related-grid { grid-template-columns: 1fr; }
  .related-reading-section { padding: 46px 0; }
  .related-reading-section h2 { font-size: 23px; }
}

/* Article newsletter signup: Sync or Swim CTA (after Related Insights) */
.article-newsletter { margin: 52px 0 8px; padding: 30px 30px 14px; background: linear-gradient(135deg, #4A3F7A 0%, #352B5E 100%); border: none; border-radius: 16px; box-shadow: 0 16px 40px rgba(53,43,94,0.22); color: #fff; position: relative; overflow: hidden; }
.article-newsletter::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,0.06); pointer-events: none; }
.article-newsletter-eyebrow { font-size: 12px !important; font-weight: 700 !important; letter-spacing: 0.14em; text-transform: uppercase; color: #CFC6F2 !important; margin: 0 0 8px !important; line-height: 1.3 !important; }
.article-newsletter-title { font-size: 22px !important; font-weight: 700; color: #fff !important; margin: 0 0 8px !important; line-height: 1.3 !important; }
.article-newsletter-text { font-size: 15px !important; color: #E4E0F0 !important; line-height: 1.6 !important; margin: 0 0 18px !important; max-width: 560px; }
.article-newsletter .embeddable-buttondown-form { max-width: 480px; margin-bottom: 16px; position: relative; z-index: 1; }
.article-newsletter .embeddable-buttondown-form input[type="email"] { background: #fff; border: 1px solid transparent; color: #18181B; }
.article-newsletter .embeddable-buttondown-form input[type="email"]:focus { border-color: #CFC6F2; box-shadow: 0 0 0 3px rgba(207,198,242,0.45); }
.article-newsletter .embeddable-buttondown-form input[type="submit"] { background: #FFFFFF; color: #352B5E; font-weight: 700; box-shadow: 0 2px 8px rgba(24,24,27,0.18); }
.article-newsletter .embeddable-buttondown-form input[type="submit"]:hover { background: #F4F2FA; }
.article-newsletter .nl-noscript { color: #E4E0F0 !important; }
.article-newsletter .nl-error { color: #FFD7D2 !important; margin: -6px 0 14px; }
@media (max-width: 600px) {
  .article-newsletter { padding: 24px 20px 10px; border-radius: 14px; margin-top: 40px; }
  .article-newsletter-title { font-size: 20px !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Newsletter slide-in (Insights articles only; see assets/js/newsletter-slidein.js) */
.nl-slidein { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 340px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid #E5E1F0; border-radius: 14px; box-shadow: 0 14px 40px rgba(24,24,27,0.16); padding: 20px 20px 18px; font-family: 'Inter', sans-serif; opacity: 0; transform: translateY(16px); transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none; }
.nl-slidein.is-open { opacity: 1; transform: none; pointer-events: auto; }
.nl-slidein-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: none; border: none; border-radius: 8px; color: #71717A; cursor: pointer; }
.nl-slidein-close:hover { background: #F4F2FA; color: #4C4272; }
.nl-slidein-close:focus-visible { outline: 2px solid #4C4272; outline-offset: 1px; }
.nl-slidein-close svg { width: 16px; height: 16px; display: block; }
.nl-slidein-title { font-size: 16px; font-weight: 700; color: #18181B; margin: 0 28px 4px 0; line-height: 1.35; }
.nl-slidein-text { font-size: 14px; color: #52525B; line-height: 1.5; margin: 0 0 12px; }
.nl-slidein-form { display: flex; gap: 8px; margin: 0; }
.nl-slidein-form input[type="email"] { flex: 1 1 auto; min-width: 0; padding: 10px 12px; border: 1px solid #E5E1F0; border-radius: 8px; font-family: inherit; font-size: 14px; color: #18181B; background: #fff; }
.nl-slidein-form input[type="email"]:focus { outline: none; border-color: #4C4272; box-shadow: 0 0 0 3px rgba(76,66,114,0.12); }
.nl-slidein-form input[type="submit"] { background: #4C4272; color: #fff; border: none; border-radius: 8px; padding: 10px 16px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.nl-slidein-form input[type="submit"]:hover { background: #3d365c; }
@media (max-width: 600px) {
  .nl-slidein { left: 0; right: 0; bottom: 0; width: auto; max-width: none; border-radius: 14px 14px 0 0; border-width: 1px 0 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .nl-slidein-title { font-size: 14.5px; margin-bottom: 8px; }
  .nl-slidein-text { display: none; }
  .nl-slidein-close { top: 6px; right: 8px; }
  .nl-slidein-form input[type="email"], .nl-slidein-form input[type="submit"] { padding: 9px 12px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .nl-slidein { transition: none; transform: none; }
}

/* Newsletter inline confirmation (assets/js/newsletter-form.js) */
.nl-success { margin: 0 0 18px; padding: 12px 14px; background: #F4F2FA; border: 1px solid #E5E1F0; border-left: 3px solid #4C4272; border-radius: 8px; font-size: 14.5px !important; line-height: 1.5 !important; color: #3F3F46 !important; font-weight: 500; }
.article-newsletter .nl-success, .nl-slidein .nl-success { background: #fff; }
.article-newsletter .nl-success { border-left-color: #CFC6F2; position: relative; z-index: 1; }
.nl-form .nl-success { text-align: left; font-size: 15px !important; }
.nl-error { margin: -10px 0 16px; font-size: 13.5px !important; color: #B42318 !important; line-height: 1.5 !important; }
.nl-slidein .nl-error { margin: 8px 0 0; }
.nl-slidein .nl-success { margin: 0; }

/* Newsletter: honeypot (must stay empty), Turnstile slot, no-JS note */
.nl-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
form[data-newsletter-form] { position: relative; }
.nl-ts { flex: 1 1 100%; max-width: 100%; }
.nl-ts:empty { display: none; }
.nl-noscript { flex: 1 1 100%; margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: #6B6880; }

/* Free templates offer inside newsletter signups (article box, /newsletter, footer, slide-in) */
.nl-tpl-link { color: #fff !important; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.nl-tpl-thumbs { display: flex; gap: 10px; margin: 0 0 18px; position: relative; z-index: 1; }
.nl-tpl-thumbs a { display: block; width: 76px; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 4px 12px rgba(24,24,27,0.18); transition: transform 0.15s; }
.nl-tpl-thumbs a:hover { transform: translateY(-2px); }
.nl-tpl-thumbs img { display: block; width: 100%; height: auto; }
.nl-tpl-thumbs-light a { border: 1px solid #E5E1F0; box-shadow: 0 4px 12px rgba(76,66,114,0.10); }
.footer-nl-more { font-size: 13px; margin: -8px 0 18px; }
.footer-nl-more a { color: #4C4272; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.nl-slidein-text a { color: #4C4272; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.nl-slidein-title small { display: block; font-size: 13px; font-weight: 500; color: #52525B; margin-top: 3px; }
.nl-slidein-title small a { color: #4C4272; font-weight: 600; text-decoration: underline; }
@media (min-width: 601px) { .nl-slidein-title small { display: none; } }

/* Free templates hub and landing pages (/templates) */
.tpl-hero { background: #F4F2FA; padding: 52px 0 56px; }
.tpl-crumbs { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #4C4272; font-weight: 700; margin: 0 0 14px; }
.tpl-crumbs a:hover { text-decoration: underline; }
.tpl-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.tpl-hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 16px; color: #18181B; }
.tpl-pitch { font-size: 17.5px; color: #3F3F46; line-height: 1.65; margin: 0 0 18px; }
.tpl-who { font-size: 15px; color: #52525B; line-height: 1.6; margin: 0; }
.tpl-who strong { color: #18181B; }
.tpl-signup.article-newsletter { margin: 0; }
.tpl-signup .article-newsletter-text a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.tpl-section { padding: 56px 0; }
.tpl-section + .tpl-section { border-top: 1px solid #EDEDF2; }
.tpl-section h2 { font-size: 26px; margin: 0 0 10px; color: #18181B; }
.tpl-section-sub { font-size: 15.5px; color: #71717A; margin: 0 0 26px; line-height: 1.6; max-width: 640px; }
.tpl-previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.tpl-previews figure { margin: 0; background: #fff; border: 1px solid #E5E1F0; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(76,66,114,0.08); }
.tpl-previews img { display: block; width: 100%; height: auto; }
.tpl-previews figcaption { font-size: 13.5px; color: #52525B; padding: 10px 14px; border-top: 1px solid #EDEDF2; background: #F4F2FA; }
.tpl-inside { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tpl-inside li { background: #F4F2FA; border: 1px solid #E5E1F0; border-radius: 12px; padding: 16px 18px; font-size: 15px; color: #3F3F46; line-height: 1.55; }
.tpl-inside li strong { display: block; color: #4C4272; font-size: 15.5px; margin-bottom: 4px; }
.tpl-faq { max-width: 760px; }
.tpl-faq details { border-bottom: 1px solid #EDEDF2; padding: 18px 0; }
.tpl-faq summary { font-size: 16.5px; font-weight: 600; cursor: pointer; color: #18181B; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.tpl-faq summary::-webkit-details-marker { display: none; }
.tpl-faq summary::after { content: "+"; color: #4C4272; font-size: 20px; line-height: 1; }
.tpl-faq details[open] summary::after { content: "\2212"; }
.tpl-faq details p { font-size: 15px; color: #52525B; line-height: 1.7; margin: 12px 0 0; }
.tpl-faq a, .tpl-section p a { color: #4C4272; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.tpl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tpl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #E5E1F0; border-radius: 14px; overflow: hidden; color: #18181B; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.tpl-card:hover { border-color: #4C4272; box-shadow: 0 10px 26px rgba(76,66,114,0.12); transform: translateY(-2px); }
.tpl-card-img { background: #F4F2FA; padding: 22px 22px 0; height: 250px; overflow: hidden; border-bottom: 1px solid #EDEDF2; }
.tpl-card-img img { display: block; width: 100%; height: auto; border-radius: 6px 6px 0 0; box-shadow: 0 4px 14px rgba(76,66,114,0.14); }
.tpl-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tpl-card-tag { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #4C4272; font-weight: 700; }
.tpl-card-title { font-size: 19px; font-weight: 700; line-height: 1.3; }
.tpl-card-text { font-size: 14.5px; color: #52525B; line-height: 1.6; flex: 1; }
.tpl-card-more { font-size: 14px; font-weight: 600; color: #4C4272; }
.tpl-cta-inline { font-size: 15.5px; color: #52525B; background: #F4F2FA; border: 1px solid #E5E1F0; border-radius: 10px; padding: 14px 16px; margin: 28px 0 8px; }
.tpl-cta-inline a { color: #4C4272; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) {
  .tpl-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .tpl-cards { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 700px) {
  .tpl-hero { padding: 38px 0 40px; }
  .tpl-hero h1 { font-size: 30px; }
  .tpl-previews { grid-template-columns: 1fr; }
  .tpl-inside { grid-template-columns: 1fr; }
  .tpl-section { padding: 42px 0; }
  .tpl-section h2 { font-size: 23px; }
  .nl-tpl-thumbs a { width: 64px; }
}
.nl-tpl-thumbs-center { justify-content: center; }
