/* ==========================================================================
   MKB Blog - list and article layout.
   Built on the site's own stylesheets (style.css, thinking.css, mkb-cta.css): same frame, fonts, breadcrumbs,
   corner ticks and buttons. Values follow the approved blog design (blog list + article page).
   ========================================================================== */
.mkb-blog-page {
  --mb-ink: #121218;
  --mb-text: #525252;
  --mb-muted: #5e5e5e;
  --mb-line: #d9d9d9;
  --mb-font: "Urbanist", Arial, sans-serif;
}

.mkb-img {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Blog list
   -------------------------------------------------------------------------- */
.mkb-list-section .thinking-hero-inner {
  gap: 44px;
}

.mkb-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 100px;
  align-items: stretch;
  width: 100%;
}

.mkb-card {
  display: flex;
  margin: 0;
}

/* framed card: thin frame with corner ticks, the picture sits 4px inside it */
.mkb-card-link {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 4px 4px 0;
  border: 1px solid #e6e6e6;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

.mkb-card-media {
  overflow: hidden;
  aspect-ratio: 583 / 415;
  background: #f0f0f0;                 /* the picture's own frame: same size and place at rest and on hover */
}

/* The picture's frame never changes size and always stays completely filled.
   At rest the picture is a little enlarged inside the frame (cropped by it); on hover it shrinks back to fit the frame. */
.mkb-card-media .mkb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transform-origin: 50% 50%;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.mkb-card-link:hover .mkb-card-media .mkb-img,
.mkb-card-link:focus-visible .mkb-card-media .mkb-img {
  transform: scale(1);
}

/* Corner ticks (same idea as the site's buttons): grey on the blog cards (red on the related-article cards), standing OUTSIDE the frame with an even 8px gap on all four sides;
   on hover they close in and meet exactly on the frame's own border line. */
.mkb-blog-page .mkb-card-link .card-edge-tick {
  border-color: rgb(163, 163, 163) !important;
}

.mkb-blog-page .mkb-related-card .card-edge-tick {
  border-color: #ed1c24 !important;
}

.mkb-blog-page .mkb-card-link .card-edge-tick,
.mkb-blog-page .mkb-related-card .card-edge-tick {
  transition: top 0.55s cubic-bezier(0.22, 1, 0.36, 1), right 0.55s cubic-bezier(0.22, 1, 0.36, 1), bottom 0.55s cubic-bezier(0.22, 1, 0.36, 1), left 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.mkb-blog-page .mkb-card-link .card-edge-tick.edge-tl,
.mkb-blog-page .mkb-related-card .card-edge-tick.edge-tl { top: -9px !important; left: -9px !important; }
.mkb-blog-page .mkb-card-link .card-edge-tick.edge-tr,
.mkb-blog-page .mkb-related-card .card-edge-tick.edge-tr { top: -9px !important; right: -9px !important; }
.mkb-blog-page .mkb-card-link .card-edge-tick.edge-bl,
.mkb-blog-page .mkb-related-card .card-edge-tick.edge-bl { bottom: -9px !important; left: -9px !important; }
.mkb-blog-page .mkb-card-link .card-edge-tick.edge-br,
.mkb-blog-page .mkb-related-card .card-edge-tick.edge-br { bottom: -9px !important; right: -9px !important; }

.mkb-blog-page .mkb-card-link:hover .card-edge-tick.edge-tl,
.mkb-blog-page .mkb-card-link:focus-visible .card-edge-tick.edge-tl,
.mkb-blog-page .mkb-related-card:hover .card-edge-tick.edge-tl { top: -1px !important; left: -1px !important; }
.mkb-blog-page .mkb-card-link:hover .card-edge-tick.edge-tr,
.mkb-blog-page .mkb-card-link:focus-visible .card-edge-tick.edge-tr,
.mkb-blog-page .mkb-related-card:hover .card-edge-tick.edge-tr { top: -1px !important; right: -1px !important; }
.mkb-blog-page .mkb-card-link:hover .card-edge-tick.edge-bl,
.mkb-blog-page .mkb-card-link:focus-visible .card-edge-tick.edge-bl,
.mkb-blog-page .mkb-related-card:hover .card-edge-tick.edge-bl { bottom: -1px !important; left: -1px !important; }
.mkb-blog-page .mkb-card-link:hover .card-edge-tick.edge-br,
.mkb-blog-page .mkb-card-link:focus-visible .card-edge-tick.edge-br,
.mkb-blog-page .mkb-related-card:hover .card-edge-tick.edge-br { bottom: -1px !important; right: -1px !important; }

.mkb-card-body {
  flex: 1 1 auto;
  padding: 20px 16px 22px;
}

/* label chips: "STRATEGY • DECISION-MAKING • 12 October 2026" in one outlined, tinted pill */
.mkb-chips {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 1px 8px;
  border: 1px solid rgba(26, 26, 26, 0.16);
  background: rgba(26, 26, 26, 0.06);
  font-family: var(--mb-font);
  font-size: 14px;
  line-height: 22px;
  letter-spacing: -0.03em;
  color: #1a1a1a;
}

.mkb-chip-dot {
  font-size: 9px;
  opacity: 0.7;
}

.mkb-card-title {
  margin: 16px 0 8px;
  font-family: var(--mb-font);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #0a281f;
  transition: color 0.25s ease;
}

.mkb-card-link:hover .mkb-card-title {
  color: var(--mkb-red, #ed1c24);
}

.mkb-card-excerpt {
  margin: 0;
  font-family: var(--mb-font);
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mkb-empty {
  font-family: var(--mb-font);
  font-size: 18px;
  color: var(--mb-muted);
}

/* pagination */
.mkb-blog-page .navigation.pagination {
  margin-top: 8px;
}

.mkb-blog-page .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.mkb-blog-page .nav-links .page-numbers {
  min-width: 40px;
  padding: 8px 14px;
  border: 1px solid var(--mb-line);
  font-family: var(--mb-font);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--mb-ink);
  text-decoration: none;
  box-sizing: border-box;
}

.mkb-blog-page .nav-links .page-numbers.current,
.mkb-blog-page .nav-links a.page-numbers:hover {
  border-color: var(--mb-ink);
  background: var(--mb-ink);
  color: #fff;
}

.mkb-blog-page .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */
.mkb-article {
  max-width: 1280px;
  margin: 0 auto;
  font-family: var(--mb-font);
}

.mkb-article-head {
  text-align: center;
  margin: 18px auto 36px;
}

.mkb-blog-page .mkb-article .mkb-article-meta {
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.4;
  color: rgba(30, 13, 1, 0.7);
}

.mkb-dot {
  font-size: 10px;
}

.mkb-blog-page .mkb-article .mkb-article-title {
  max-width: 1100px;
  margin: 0 auto;
  font-family: var(--mb-font);
  font-size: 64px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-align: center;
}

.mkb-article-hero {
  margin: 0 0 36px;
}

.mkb-article-hero .mkb-img {
  border-radius: 20px;
}

/* highlighted intro summary */
.mkb-article-intro {
  margin: 0 0 52px;
  padding: 14px 18px;
  border-left: 3px solid #1a1a1a;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0.025) 70%, rgba(0, 0, 0, 0));
}

.mkb-article-intro p {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #222;
}

/* key takeaways */
.mkb-takeaways h2,
.mkb-article-body h2,
.mkb-final h2,
.mkb-related h2 {
  margin: 0 0 18px;
  font-family: var(--mb-font);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--mb-ink);
}

.mkb-takeaways ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mkb-takeaways li {
  margin: 0 0 3px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--mb-text);
}

.mkb-takeaways li::before {
  content: "\2609\00a0";
}

.mkb-divider {
  height: 0;
  margin: 36px 0;
  border: 0;
  border-top: 1px solid #cfcfcf;
}

/* body copy (from the editor) */
.mkb-article-body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--mb-text);
}

.mkb-article-body > *:first-child {
  margin-top: 0;
}

.mkb-article-body p {
  margin: 0 0 16px;
}

.mkb-article-body h2 {
  margin: 56px 0 18px;
}

.mkb-article-body h3 {
  margin: 36px 0 12px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--mb-ink);
}

.mkb-article-body ul,
.mkb-article-body ol {
  margin: 0 0 18px;
  padding-left: 1.3em;
}

.mkb-article-body li {
  margin-bottom: 6px;
}

.mkb-article-body a {
  color: var(--mkb-red, #ed1c24);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mkb-article-body strong {
  color: var(--mb-ink);
}

.mkb-article-body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--mkb-red, #ed1c24);
  font-size: 22px;
  line-height: 1.45;
  color: var(--mb-ink);
}

.mkb-article-body img,
.mkb-article-body figure img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.mkb-article-body figure {
  margin: 32px 0;
}

.mkb-article-body figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--mb-muted);
}

.mkb-article-body .wp-block-table table,
.mkb-article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.mkb-article-body th,
.mkb-article-body td {
  padding: 10px 12px;
  border: 1px solid var(--mb-line);
  text-align: left;
}

/* call-to-action box inside the article */
.mkb-cta-box {
  position: relative;
  margin: 40px 0;
  padding: 20px;
  border: 1px solid var(--mb-line);
  background: #fff;
  box-sizing: border-box;
}

/* the box has its own typography and white-space, whatever block the shortcode was placed in */
.mkb-blog-page .mkb-article-body .mkb-cta-box,
.mkb-blog-page .mkb-article-body .mkb-cta-box .mkb-cta-text {
  font-family: var(--mb-font, "Urbanist", Arial, sans-serif);
  white-space: normal;
  text-transform: none;
  letter-spacing: normal;
}

/* label = the site's sliding eyebrow (red text with the curtain wipe, from css/style.css + js/main.js) */
.mkb-blog-page .mkb-cta-box .mkb-cta-eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap !important;
}

.mkb-blog-page .mkb-article-body .mkb-cta-box .mkb-cta-text {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--mb-muted);
}

/* the button keeps the site's size (as wide as its text) and sits in the right-most corner of the box */
.mkb-cta-box {
  display: flex;
  flex-direction: column;
}

.mkb-blog-page .mkb-cta-box a.framer-corner-btn {
  align-self: flex-end !important;
  margin-left: auto;
}

/* closing call-to-action ("From clarity to action"): a framed box like the other boxes, button in its right-most corner */
.mkb-final {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 56px 0 0;
  padding: 28px 28px 24px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--mb-line);       /* the frame line (a section border is reset by the site styles) */
  box-sizing: border-box;
}

.mkb-article-body ~ .mkb-final h2,
.mkb-final h2 {
  margin: 0 0 12px;
}

.mkb-final p {
  max-width: 820px;
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--mb-text);
}

.mkb-blog-page .mkb-final a.framer-corner-btn {
  align-self: flex-end !important;
  margin-left: auto;
}

/* FAQs - a light framed panel with red corner ticks and a numbered accordion */
.mkb-faq {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: 48px;
  margin: 72px 0 0;
  padding: 44px 44px 40px;
  background: #fafafa;
  box-shadow: 0 0 0 1px #d9d9d9;           /* the frame line (a section border can be reset by the site styles) */
  color: var(--mb-ink);
  box-sizing: border-box;
}

.mkb-faq-tick {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  border: 0 solid #ed1c24;
}

.mkb-faq-tick.tl { top: -5px; left: -5px; border-top-width: 1.6px; border-left-width: 1.6px; }
.mkb-faq-tick.tr { top: -5px; right: -5px; border-top-width: 1.6px; border-right-width: 1.6px; }
.mkb-faq-tick.bl { bottom: -5px; left: -5px; border-bottom-width: 1.6px; border-left-width: 1.6px; }
.mkb-faq-tick.br { bottom: -5px; right: -5px; border-bottom-width: 1.6px; border-right-width: 1.6px; }

.mkb-faq-intro {
  align-self: start;
  position: sticky;
  top: 110px;
}

.mkb-faq-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding-left: 10px;
  border-left: 2px solid #ed1c24;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  color: #e01a22;
}

.mkb-blog-page .mkb-faq .mkb-faq-intro h2 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.15;
  color: var(--mb-ink);
}

.mkb-faq-intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--mb-muted);
}

.mkb-faq-list {
  border-top: 1px solid #d9d9d9;
}

.mkb-faq-item {
  position: relative;
  border-bottom: 1px solid #d9d9d9;
}

/* red line that draws down the left edge of the open question */
.mkb-faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: #ed1c24;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.mkb-faq-item.is-open::before {
  transform: scaleY(1);
}

.mkb-blog-page .mkb-faq .mkb-faq-h {
  margin: 0;
  font-size: inherit;
}

.mkb-faq-q {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 22px 6px 22px 18px;
  border: 0;
  background: transparent;
  color: var(--mb-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.mkb-faq-q:hover {
  background: rgba(0, 0, 0, 0.03);
}

.mkb-faq-q:focus-visible {
  outline: 2px solid #ed1c24;
  outline-offset: -2px;
}

.mkb-faq-num {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #e01a22;
}

.mkb-faq-text {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--mb-ink);
}

/* plus / minus in a small outlined square */
.mkb-faq-icon {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(18, 18, 24, 0.35);
  background: #fff;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.mkb-faq-icon::before,
.mkb-faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.6px;
  margin: -0.8px 0 0 -6px;
  background: var(--mb-ink);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.mkb-faq-icon::after {
  transform: rotate(90deg);
}

.mkb-faq-item.is-open .mkb-faq-icon {
  border-color: #ed1c24;
  background: #ed1c24;
}

.mkb-faq-item.is-open .mkb-faq-icon::before {
  background: #fff;
}

.mkb-faq-item.is-open .mkb-faq-icon::after {
  transform: rotate(0deg);
  opacity: 0;
}

/* answer: animates open (rows 0fr -> 1fr); without JavaScript every answer simply stays visible */
.mkb-faq-a {
  display: grid;
  grid-template-rows: 1fr;
}

.mkb-faq-a-in {
  overflow: hidden;
  padding: 0 52px 0 70px;
}

.mkb-faq-a-in p {
  margin: 0 0 24px;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--mb-text);
}

.mkb-faq.is-enhanced .mkb-faq-a {
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.mkb-faq.is-enhanced .mkb-faq-item.is-open .mkb-faq-a {
  grid-template-rows: 1fr;
}

.mkb-faq.is-enhanced .mkb-faq-a-in p {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.5s ease;
}

.mkb-faq.is-enhanced .mkb-faq-item.is-open .mkb-faq-a-in p {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}

/* related articles */
.mkb-related {
  margin: 72px 0 0;
}

.mkb-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mkb-related-card {
  position: relative;
  display: block;
  padding: 24px;
  border: 1px solid var(--mb-line);
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

.mkb-related-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--mb-ink);
  transition: color 0.25s ease;
}

.mkb-related-card:hover h3 {
  color: var(--mkb-red, #ed1c24);
}

.mkb-related-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--mb-muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .mkb-faq {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 20px 24px;
  }

  .mkb-faq-intro {
    position: static;
  }

  .mkb-faq-q {
    grid-template-columns: 34px minmax(0, 1fr) 30px;
    padding-left: 12px;
  }

  .mkb-faq-text {
    font-size: 18px;
  }

  .mkb-faq-a-in {
    padding: 0 8px 0 46px;
  }
}

@media (max-width: 1024px) {
  .mkb-card-list {
    gap: 40px 36px;
  }

  .mkb-blog-page .mkb-article .mkb-article-title {
    font-size: 48px;
  }

  .mkb-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mkb-final {
    padding: 22px 18px 20px;
  }

  .mkb-blog-page .mkb-article .mkb-article-title {
    font-size: 34px;
    letter-spacing: -0.03em;
  }

  .mkb-article-hero .mkb-img {
    border-radius: 12px;
  }

  .mkb-takeaways h2,
  .mkb-article-body h2,
  .mkb-final h2,
  .mkb-related h2 {
    font-size: 26px;
  }

  .mkb-article-body,
  .mkb-takeaways li {
    font-size: 17px;
  }

  .mkb-card-list {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .mkb-card-body {
    padding: 16px 12px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mkb-card-media .mkb-img {
    transition: none;
    transform: none;
  }

  .mkb-faq.is-enhanced .mkb-faq-a,
  .mkb-faq-item::before,
  .mkb-faq.is-enhanced .mkb-faq-a-in p {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Headline wave: the letters appear one by one (a few milliseconds apart), starting faint and ending fully dark.
   Applied to the blog heading and to each article title (js/blog-wave.js).
   -------------------------------------------------------------------------- */
.mkb-wave {
  --wave-end: #121218;
}

.mkb-wave .mkb-w {
  display: inline-block;
  white-space: nowrap;
}

.mkb-wave .mkb-l {
  display: inline-block;
  opacity: 0.12;
  color: #9a9a9a;
  transform: translateY(0.14em);
  transition: opacity 0.6s ease, color 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i) * 28ms);
}

.mkb-wave.is-in .mkb-l {
  opacity: 1;
  color: var(--wave-end);
  transform: none;
}

.mkb-blog-page .mkb-article .mkb-article-title.mkb-wave {
  --wave-end: #1a1a1a;
}

@media (prefers-reduced-motion: reduce) {
  .mkb-wave .mkb-l {
    opacity: 1;
    color: var(--wave-end);
    transform: none;
    transition: none;
  }
}

/* a little air between an open question and its answer */
.mkb-faq-item.is-open .mkb-faq-q {
  padding-bottom: 12px;
}


/* --------------------------------------------------------------------------
   Article layout with a sticky table of contents on the left
   -------------------------------------------------------------------------- */
.mkb-article-layout {
  display: block;
}

.mkb-article-layout.has-toc {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.mkb-article-main {
  min-width: 0;
}

.mkb-article-layout.has-toc .mkb-article-main > *:first-child {
  margin-top: 0;
}

/* headings stop below the fixed header when jumped to */
.mkb-article-body h2,
.mkb-article-body h3,
.mkb-takeaways,
.mkb-faq {
  scroll-margin-top: 112px;
}

/* the box: same frame as the other cards (thin border, corner ticks, sliding eyebrow from css/style.css + js/main.js) */
.mkb-toc {
  position: sticky;
  top: 112px;
  padding: 22px 20px 14px;
  border: 1px solid var(--mb-line);
  background: #fff;
  box-sizing: border-box;
}

.mkb-blog-page .mkb-toc .mkb-toc-eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap !important;
}

.mkb-toc nav {
  max-height: calc(100vh - 230px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.mkb-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mkb-toc-item {
  margin: 0;
  border-top: 1px solid #ececec;
}

.mkb-toc-item:first-child {
  border-top: 0;
}

.mkb-toc-link {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 6px;
  align-items: baseline;
  padding: 11px 6px 11px 12px;
  font-family: var(--mb-font);
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--mb-muted);
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.mkb-toc-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #ed1c24;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.mkb-toc-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #e01a22;
}

.mkb-toc-item.is-sub .mkb-toc-link {
  padding-left: 26px;
  font-size: 14px;
}

.mkb-toc-link:hover {
  color: var(--mb-ink);
  background: rgba(0, 0, 0, 0.025);
}

.mkb-toc-link.is-active {
  color: var(--mb-ink);
  font-weight: 600;
}

.mkb-toc-link.is-active::before {
  transform: scaleY(1);
}

/* narrower screens: the table of contents sits above the article instead of beside it */
@media (max-width: 1100px) {
  .mkb-article-layout.has-toc {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .mkb-toc {
    position: static;
  }

  .mkb-toc nav {
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mkb-toc-link,
  .mkb-toc-link::before {
    transition: none;
  }
}
