:root {
  --kn-navy: #001145;
  --kn-orange: #fd4b00;
  --kn-peach: #fa9971;
  --kn-cream: #fffaf4;
  --kn-border: #e2dcd3;
  --kn-footer: #000016;
  --kn-copy: rgba(0, 17, 69, 0.7);
}

html {
  scroll-behavior: smooth;
}

body.kn-blog-page {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: var(--kn-navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.kn-blog-page *,
.kn-blog-page *::before,
.kn-blog-page *::after {
  box-sizing: border-box;
}

.kn-blog-page a,
.kn-blog-page button {
  -webkit-tap-highlight-color: transparent;
}

.kn-blog-skip {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--kn-navy);
  font-weight: 700;
  transition: top 180ms ease;
}

.kn-blog-skip:focus {
  top: 1rem;
}

.kn-blog-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 1rem 1rem 0.5rem;
}

.kn-blog-nav {
  display: flex;
  min-height: 54px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.4rem 0.6rem 0.4rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid var(--kn-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 25px rgba(0, 17, 69, 0.13);
  backdrop-filter: blur(12px);
}

.kn-blog-logo {
  display: block;
  width: 80px;
  height: 24px;
  flex: 0 0 auto;
}

.kn-blog-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kn-blog-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 1.7vw, 1.5rem);
}

.kn-blog-links a,
.kn-blog-mobile a {
  color: var(--kn-navy);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-decoration: none;
  opacity: 0.7;
  transition: color 180ms ease, opacity 180ms ease;
}

.kn-blog-links a:hover,
.kn-blog-links a:focus-visible,
.kn-blog-mobile a:hover,
.kn-blog-mobile a:focus-visible,
.kn-blog-links a[aria-current='page'],
.kn-blog-mobile a[aria-current='page'] {
  color: var(--kn-navy);
  opacity: 1;
}

.kn-blog-links a[aria-current='page'],
.kn-blog-mobile a[aria-current='page'] {
  font-weight: 650;
}

.kn-blog-contact,
.kn-blog-mobile .kn-blog-contact {
  display: inline-flex;
  min-height: 40px;
  padding: 0.65rem 1.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--kn-navy);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0;
  text-decoration: none;
  opacity: 1;
  transition: background 180ms ease, transform 180ms ease;
}

.kn-blog-contact:hover,
.kn-blog-contact:focus-visible,
.kn-blog-mobile .kn-blog-contact:hover,
.kn-blog-mobile .kn-blog-contact:focus-visible {
  background: #0b215f;
  color: #fff;
  transform: translateY(-1px);
}

.kn-blog-menu-button {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--kn-navy);
  cursor: pointer;
}

.kn-blog-menu-button:hover {
  background: #f3f4f6;
}

.kn-blog-menu-button svg {
  width: 24px;
  height: 24px;
}

.kn-blog-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 5.8rem 1rem 1rem;
  background: rgba(0, 17, 69, 0.34);
  backdrop-filter: blur(6px);
}

.kn-blog-mobile[data-open='true'] {
  display: block;
}

.kn-blog-mobile-inner {
  display: grid;
  max-height: calc(100vh - 6.8rem);
  padding: 1.1rem;
  overflow-y: auto;
  gap: 0.2rem;
  border: 1px solid var(--kn-border);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 17, 69, 0.22);
}

.kn-blog-mobile a {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
}

.kn-blog-mobile a[aria-current='page'] {
  background: rgba(0, 17, 69, 0.06);
}

.kn-blog-mobile .kn-blog-contact {
  margin-top: 0.65rem;
}

.kn-blog-hero {
  position: relative;
  display: flex;
  min-height: 283px;
  padding: 98px 1rem 70px;
  align-items: center;
  overflow: hidden;
  background: #1b1b1b;
}

.kn-blog-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
    url('/assets/8ead08d7d2d626e1ea5d4eb63f7d632e7504a8f6-CjqMM-BI.png')
      center 34% / cover no-repeat;
  content: '';
}

.kn-blog-hero::after {
  position: absolute;
  right: -7rem;
  bottom: -9rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: rgba(254, 107, 0, 0.1);
  filter: blur(60px);
  content: '';
}

.kn-blog-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.kn-blog-hero h1 {
  margin: 0 0 1.5rem;
  color: #fff;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.kn-blog-hero p {
  max-width: 56rem;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  line-height: 1.45;
}

.kn-blog-main {
  padding: 4.5rem 1rem 5rem;
  background: var(--kn-cream);
}

.kn-blog-main > * {
  max-width: 1280px;
  margin-inline: auto;
}

.kn-blog-intro {
  margin-bottom: 2.5rem;
  text-align: center;
}

.kn-blog-section-label {
  margin: 0 0 0.75rem;
  color: var(--kn-orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kn-blog-intro h2 {
  margin: 0;
  color: var(--kn-navy);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.kn-blog-intro > p:last-child {
  max-width: 40rem;
  margin: 1rem auto 0;
  color: var(--kn-copy);
  font-size: 1rem;
  line-height: 1.6;
}

#dib-posts {
  min-height: 420px;
}

#dib-posts .dib {
  max-width: none;
  margin: 0;
  color: var(--kn-navy);
  font-family: inherit;
}

#dib-posts .dib-heading,
#dib-posts .dib-cat-menu,
#dib-posts .dib-scroll-arrow {
  display: none !important;
}

#dib-posts .dib-post-wrap {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

#dib-posts .dib-list .dib-post {
  display: flex !important;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.85) !important;
  border-radius: 1rem !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(0, 17, 69, 0.06) !important;
  color: var(--kn-navy) !important;
  text-decoration: none !important;
  transition: border-color 300ms ease, box-shadow 300ms ease,
    transform 300ms ease;
}

#dib-posts .dib-list .dib-post:hover {
  border-color: var(--kn-peach) !important;
  box-shadow: 0 20px 34px rgba(0, 17, 69, 0.13) !important;
  transform: translateY(-4px);
}

/* DropInBlog turns the first post into a split-width desktop "hero".
   Keep every post in the same card system used across the Keynotes site. */
#dib-posts
  #dib-template-2.dib-hero.dib-list
  .dib-post-wrap
  a.dib-post:first-child {
  display: flex !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  flex: initial !important;
  align-items: stretch !important;
  flex-direction: column !important;
}

#dib-posts
  #dib-template-2.dib-hero.dib-list
  .dib-post-wrap
  a.dib-post:first-child
  > img.dib-post-featured-image,
#dib-posts
  #dib-template-2.dib-hero.dib-list
  .dib-post-wrap
  a.dib-post:first-child
  > .dib-post-text {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  text-align: left !important;
}

#dib-posts
  #dib-template-2.dib-hero.dib-list
  .dib-post-wrap
  a.dib-post:first-child
  > img.dib-post-featured-image {
  aspect-ratio: 16 / 10 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
}

#dib-posts
  #dib-template-2.dib-hero.dib-list
  .dib-post-wrap
  a.dib-post:first-child
  > .dib-post-text {
  padding: 1.25rem !important;
  flex: 1 1 auto !important;
}

#dib-posts
  #dib-template-2.dib-hero.dib-list
  .dib-post-wrap
  a.dib-post:first-child
  .dib-post-title.dib-highlight {
  color: var(--kn-navy) !important;
  font-size: 1.2rem !important;
  line-height: 1.32 !important;
  -webkit-line-clamp: unset !important;
}

#dib-posts
  #dib-template-2.dib-hero.dib-list
  .dib-post-wrap
  a.dib-post:first-child
  .dib-author-photo {
  display: none !important;
}

#dib-posts
  #dib-template-2.dib-hero.dib-list
  .dib-post-wrap
  a.dib-post:first-child
  .dib-meta-text {
  position: static !important;
  inset: auto !important;
}

#dib-posts .dib-list .dib-post > img.dib-post-featured-image {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
  transition: transform 500ms ease;
}

#dib-posts .dib-list .dib-post:hover > img.dib-post-featured-image {
  transform: scale(1.035);
}

#dib-posts .dib-list .dib-post-text {
  display: flex;
  min-width: 0;
  padding: 1.25rem !important;
  flex: 1;
  flex-direction: column;
  text-align: left !important;
}

#dib-posts .dib-list .dib-post-title {
  order: 1 !important;
  margin: 0 0 1rem !important;
  color: var(--kn-navy) !important;
  font-family: inherit !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  line-height: 1.32 !important;
  letter-spacing: -0.02em;
  text-align: left !important;
  transition: color 300ms ease;
}

#dib-posts .dib-list .dib-post:hover .dib-post-title {
  color: var(--kn-peach) !important;
}

#dib-posts .dib-list .dib-author-photo {
  display: none !important;
}

#dib-posts .dib-list .dib-meta-text {
  position: static !important;
  inset: auto !important;
  display: flex !important;
  order: 2 !important;
  margin: auto 0 0 !important;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  color: rgba(0, 17, 69, 0.58) !important;
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
}

#dib-posts .dib-list .dib-meta-item {
  margin: 0 !important;
}

#dib-posts .dib-list .dib-category-text {
  order: 3 !important;
  align-self: flex-start;
  margin: 0.9rem 0 0 !important;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(253, 75, 0, 0.08);
  color: var(--kn-orange) !important;
  font-size: 0.72rem !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
}

#dib-posts:empty {
  border-radius: 1.5rem;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent),
    #f3ede6;
  background-size: 240px 100%, 100% 100%;
  animation: kn-blog-loading 1.5s infinite linear;
}

@keyframes kn-blog-loading {
  from {
    background-position: -240px 0, 0 0;
  }
  to {
    background-position: calc(100% + 240px) 0, 0 0;
  }
}

body:has(#dib-posts .dib-single) .kn-blog-intro {
  display: none;
}

#dib-posts .dib-single {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

#dib-posts #dib-template-2 .dib-post-single {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 1.25rem;
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 17, 69, 0.07);
}

#dib-posts .dib-post-single > .dib-post-featured-image {
  margin: 0 0 1.75rem !important;
}

#dib-posts .dib-post-single > .dib-post-featured-image img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  object-fit: cover;
}

#dib-posts .dib-post-single > .dib-post-title {
  margin: 0 0 1rem !important;
  color: var(--kn-navy) !important;
  font-family: inherit !important;
  font-size: clamp(1.85rem, 5.5vw, 3.25rem) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em;
}

#dib-posts .dib-post-single > .dib-meta-text {
  margin: 0 0 1.75rem !important;
  color: rgba(0, 17, 69, 0.58) !important;
  font-size: 0.85rem !important;
  line-height: 1.6 !important;
}

#dib-posts .dib-post-single .dib-meta-text a,
#dib-posts .dib-post-single .dib-post-content a,
#dib-posts .dib-post-back-link {
  color: var(--kn-orange) !important;
}

#dib-posts .dib-post-content {
  color: rgba(0, 17, 69, 0.76) !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  line-height: 1.78 !important;
}

#dib-posts .dib-post-content h2,
#dib-posts .dib-post-content h3,
#dib-posts .dib-post-content h4,
#dib-posts .dib-related > h2 {
  color: var(--kn-navy) !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em;
}

#dib-posts .dib-post-content h2 {
  margin-top: 2.5rem !important;
  font-size: 1.75rem !important;
  line-height: 1.2 !important;
}

#dib-posts .dib-post-content h3 {
  margin-top: 2rem !important;
  font-size: 1.35rem !important;
}

#dib-posts .dib-post-content img {
  max-width: 100%;
  border-radius: 0.75rem;
}

#dib-posts .dib-post-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--kn-orange);
  border-radius: 0 0.75rem 0.75rem 0;
  background: var(--kn-cream);
  color: var(--kn-navy);
}

#dib-posts .dib-toc,
#dib-posts #dib-audio {
  border-radius: 0.75rem !important;
  background: var(--kn-cream) !important;
}

#dib-posts .dib-related {
  margin-top: 3.5rem !important;
  padding-top: 2.5rem !important;
  border-top: 1px solid var(--kn-border);
}

#dib-posts .dib-related-posts {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1.25rem !important;
}

#dib-posts .dib-related-post {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.85) !important;
  border-radius: 0.75rem !important;
  background: #fff;
}

#dib-posts .dib-related-post .dib-post-title,
#dib-posts .dib-related-post .dib-post-title-link {
  color: var(--kn-navy) !important;
  font-family: inherit !important;
}

.kn-blog-footer {
  background: var(--kn-footer);
  color: #f5f5f5;
}

.kn-blog-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.kn-blog-footer-cta {
  margin-bottom: 3rem;
  text-align: center;
}

.kn-blog-footer-cta h2 {
  margin: 0 0 0.75rem;
  color: #f5f5f5;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.kn-blog-footer-cta p {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  color: #f5f5f5;
  font-size: 1rem;
  line-height: 1.5;
}

.kn-blog-footer-cta a {
  display: inline-flex;
  min-height: 45px;
  padding: 0.75rem 1.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--kn-navy);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.kn-blog-footer-cta a:hover,
.kn-blog-footer-cta a:focus-visible {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.kn-blog-footer-nav {
  display: flex;
  margin-bottom: 3rem;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.kn-blog-footer-logo {
  display: block;
  flex: 0 0 auto;
}

.kn-blog-footer-logo img {
  display: block;
  width: auto;
  height: 40px;
  object-fit: contain;
}

.kn-blog-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.kn-blog-footer-links a {
  color: #f5f5f5;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 180ms ease;
}

.kn-blog-footer-links a:hover,
.kn-blog-footer-links a:focus-visible {
  opacity: 0.72;
}

.kn-blog-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.kn-blog-socials a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  transition: background 180ms ease, border-color 180ms ease,
    transform 180ms ease;
}

.kn-blog-socials a:hover,
.kn-blog-socials a:focus-visible {
  border-color: var(--kn-peach);
  background: var(--kn-orange);
  transform: translateY(-2px);
}

.kn-blog-socials svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.kn-blog-socials a[aria-label='Facebook'] svg,
.kn-blog-socials a[aria-label='Twitter'] svg {
  fill: currentColor;
  stroke: none;
}

.kn-blog-copyright {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.8rem;
  text-align: center;
}

@media (min-width: 700px) {
  #dib-posts .dib-post-wrap,
  #dib-posts .dib-related-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #dib-posts .dib-post-single {
    padding: 2.25rem;
    border-radius: 1.25rem;
  }
}

@media (min-width: 901px) {
  .kn-blog-header {
    padding: 1.5rem clamp(2rem, 6.5vw, 5.5rem) 0.5rem;
  }

  .kn-blog-nav {
    min-height: 58px;
    padding: 0.55rem 1.4rem;
  }

  .kn-blog-logo {
    width: 110px;
    height: 30px;
  }

  .kn-blog-menu-button {
    display: none;
  }

  .kn-blog-hero {
    min-height: 390px;
    padding: 9rem 2rem 8rem;
  }

  .kn-blog-hero h1 {
    font-size: 3.75rem;
  }

  .kn-blog-hero p {
    font-size: 1.5rem;
  }

  .kn-blog-main {
    padding: 6rem clamp(2rem, 6vw, 5rem) 7rem;
  }

  .kn-blog-intro {
    margin-bottom: 3.5rem;
  }

  .kn-blog-intro h2 {
    font-size: 3rem;
  }

  .kn-blog-intro > p:last-child {
    font-size: 1.125rem;
  }

  .kn-blog-footer-inner {
    padding: 5rem clamp(2rem, 6vw, 5rem);
  }

  .kn-blog-footer-cta {
    margin-bottom: 4rem;
  }

  .kn-blog-footer-cta h2 {
    font-size: 3.75rem;
    line-height: 1.07;
  }

  .kn-blog-footer-cta p {
    margin-bottom: 2rem;
    font-size: 1.25rem;
  }

  .kn-blog-footer-cta a {
    min-height: 51px;
    padding-inline: 2rem;
    font-size: 1rem;
  }

  .kn-blog-footer-nav {
    margin-bottom: 4rem;
    flex-direction: row;
    gap: 2.5rem;
  }

  .kn-blog-footer-logo img {
    height: 50px;
  }

  .kn-blog-footer-links a {
    font-size: 1rem;
  }
}

@media (min-width: 1120px) {
  #dib-posts .dib-post-wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .kn-blog-links,
  .kn-blog-nav > .kn-blog-contact {
    display: none;
  }
}

@media (max-width: 420px) {
  .kn-blog-hero p {
    font-size: 1.05rem;
  }

  .kn-blog-footer-links {
    gap: 0.85rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #dib-posts:empty {
    animation: none;
  }

  #dib-posts .dib-list .dib-post,
  #dib-posts .dib-list .dib-post > img.dib-post-featured-image,
  .kn-blog-socials a {
    transition: none;
  }
}
