/* Single blog post: editorial, fast and readable. */
body.single-post {
  background: #f4f6fb;
}

.blog-page.taka-single-post-page {
  position: relative;
  min-height: 70vh;
  padding-top: 45px !important;
  color: #253246;
  background: #f4f6fb;
}

body.admin-bar .blog-page.taka-single-post-page {
  padding-top: 77px !important;
}

.taka-reading-progress {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: rgba(4, 32, 57, 0.1);
}

body.admin-bar .taka-reading-progress {
  top: 32px;
}

.taka-reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, #0b579f, #12a8d8);
}

.taka-single-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.taka-single-hero {
  padding: 38px 0 50px;
}

.taka-breadcrumb {
  margin: 0 0 28px;
  color: #0a6096;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.taka-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.taka-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.taka-breadcrumb li + li::before {
  color: #8a98a8;
  content: "/";
}

.taka-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.taka-breadcrumb a:hover,
.taka-breadcrumb a:focus-visible {
  color: #0ea5cf;
}

.taka-single-title-wrap {
  width: min(960px, 100%);
}

.taka-single-kicker {
  margin: 0 0 14px;
  color: #0a74a6;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.taka-single-post .taka-single-title-wrap h1 {
  max-width: 960px;
  margin: 0 0 26px;
  color: #0a1433;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: 0;
}

.taka-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.taka-post-meta li {
  display: grid;
  gap: 3px;
  min-width: 130px;
  padding: 4px 22px 4px 0;
  margin: 0 22px 10px 0;
  border-right: 1px solid #d4dce4;
}

.taka-post-meta li:last-child {
  border-right: 0;
}

.taka-post-meta span {
  color: #738091;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.taka-post-meta time,
.taka-post-meta strong,
.taka-post-meta a {
  color: #1d2a3a;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.taka-post-meta a:hover,
.taka-post-meta a:focus-visible {
  color: #0879ae;
}

.taka-single-featured {
  display: block;
  width: min(1080px, 100%);
  margin: 42px auto 0;
}

.taka-single-featured img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: contain;
  border: 1px solid rgba(13, 48, 77, 0.09);
  border-radius: 18px;
  background: #e8edf1;
  box-shadow: 0 18px 48px rgba(7, 34, 58, 0.09);
}

.taka-single-featured figcaption,
.taka-single-post-page .taka-post-content figcaption {
  margin-top: 10px;
  color: #718091;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.taka-single-placeholder {
  display: grid;
  min-height: 480px;
  align-content: end;
  gap: 12px;
  padding: 42px;
  overflow: hidden;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #073a70, #0b92bc);
}

.taka-single-placeholder strong {
  max-width: 760px;
  font-size: 44px;
  line-height: 1.06;
}

.taka-single-placeholder span {
  color: #c9f4ff;
  font-size: 13px;
  font-weight: 800;
}

.taka-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(270px, 320px);
  align-items: start;
  gap: 52px;
  padding-bottom: 46px;
}

.taka-article-column,
.taka-post-sidebar {
  min-width: 0;
}

.taka-single-post-page .single-post-content.taka-post-content {
  color: #344153;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.82;
}

.taka-single-post-page .taka-post-content > *:first-child {
  margin-top: 0;
}

.taka-single-post-page .taka-post-content p {
  margin: 0 0 26px;
}

.taka-single-post-page .taka-post-content p,
.taka-single-post-page .taka-post-content li {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.taka-single-post-page .taka-post-content h2,
.taka-single-post-page .taka-post-content h3,
.taka-single-post-page .taka-post-content h4 {
  color: #0a1433;
  letter-spacing: 0;
  scroll-margin-top: 116px;
}

.taka-single-post-page .taka-post-content h2 {
  margin: 58px 0 18px;
  font-size: 36px;
  font-weight: 950;
  line-height: 1.16;
}

.taka-single-post-page .taka-post-content h3 {
  margin: 38px 0 14px;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.24;
}

.taka-single-post-page .taka-post-content h4 {
  margin: 32px 0 12px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
}

.taka-single-post-page .taka-post-content a {
  color: #0675b0;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.taka-single-post-page .taka-post-content ul,
.taka-single-post-page .taka-post-content ol {
  margin: 0 0 28px;
  padding-left: 28px;
}

.taka-single-post-page .taka-post-content li + li {
  margin-top: 7px;
}

.taka-single-post-page .taka-post-content blockquote {
  margin: 38px 0;
  padding: 24px 28px;
  border: 1px solid #d8e2e9;
  border-left: 4px solid #149fc8;
  border-radius: 12px;
  color: #172536;
  background: #ffffff;
}

.taka-single-post-page .taka-post-content figure {
  width: 100%;
  max-width: 100%;
  margin: 38px auto;
}

.taka-single-post-page .taka-post-content figure.alignwide {
  width: calc(100% + 64px);
  max-width: none;
  margin-left: -32px;
}

.taka-single-post-page .taka-post-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: 14px;
  background: #e8edf1;
  box-shadow: 0 14px 38px rgba(7, 34, 58, 0.08);
}

.taka-single-post-page .taka-post-content figure > img,
.taka-single-post-page .taka-post-content figure > a > img,
.taka-single-post-page .taka-post-content .wp-block-image img {
  width: 100%;
}

.taka-single-post-page .taka-post-content .alignleft {
  float: left;
  max-width: 46%;
  margin: 8px 28px 18px 0;
}

.taka-single-post-page .taka-post-content .alignright {
  float: right;
  max-width: 46%;
  margin: 8px 0 18px 28px;
}

.taka-single-post-page .taka-post-content iframe,
.taka-single-post-page .taka-post-content video {
  max-width: 100%;
  border-radius: 14px;
}

.taka-single-post-page .taka-post-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 32px 0;
  overflow-x: auto;
  border-collapse: collapse;
  background: #ffffff;
}

.taka-single-post-page .taka-post-content th,
.taka-single-post-page .taka-post-content td {
  padding: 12px 14px;
  border: 1px solid #d7e0e7;
  text-align: left;
}

.taka-sidebar-sticky {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
}

body.admin-bar .taka-sidebar-sticky {
  top: 144px;
}

.taka-toc,
.taka-share-card,
.taka-sidebar-cta {
  border: 1px solid #dbe2e8;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(8, 36, 60, 0.06);
}

.taka-toc {
  overflow: hidden;
}

.taka-toc-toggle {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 0;
  color: #142030;
  background: #ffffff;
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  text-align: left;
  cursor: default;
}

.taka-toc-toggle i {
  position: relative;
  width: 16px;
  height: 16px;
}

.taka-toc-toggle i::before,
.taka-toc-toggle i::after {
  position: absolute;
  top: 7px;
  left: 2px;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: #142030;
  content: "";
  transition: transform 180ms ease;
}

.taka-toc-toggle i::after {
  transform: rotate(90deg);
}

.taka-toc.is-open .taka-toc-toggle i::after {
  transform: rotate(0);
}

.taka-toc-body {
  padding: 0 14px 16px;
}

.taka-toc-body ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.taka-toc-body li.is-child {
  padding-left: 14px;
}

.taka-toc-body a {
  position: relative;
  display: block;
  padding: 8px 9px 8px 13px;
  border-radius: 7px;
  color: #627184;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.taka-toc-body a::before {
  position: absolute;
  top: 11px;
  left: 2px;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: transparent;
  content: "";
}

.taka-toc-body a:hover,
.taka-toc-body a.is-active {
  color: #075e92;
  background: #eef5f8;
}

.taka-toc-body a.is-active::before {
  background: #149fc8;
}

.taka-toc-body p {
  margin: 0;
  color: #718091;
  font-size: 13px;
  line-height: 1.5;
}

.taka-share-card,
.taka-sidebar-cta {
  padding: 18px;
}

.taka-share-card h2,
.taka-sidebar-cta h2 {
  margin: 0;
  color: #132030;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
}

.taka-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.taka-share-links a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #d3e1e8;
  border-radius: 9px;
  color: #0a6598;
  background: #f6fafb;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.taka-share-links a:hover,
.taka-share-links a:focus-visible {
  color: #ffffff;
  background: #0b78aa;
  transform: translateY(-2px);
}

.taka-sidebar-cta {
  display: grid;
  gap: 13px;
  color: #ffffff;
  background: linear-gradient(145deg, #07315c, #087da7);
}

.taka-sidebar-cta span {
  color: #aeeeff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.taka-sidebar-cta h2 {
  color: #ffffff;
}

.taka-sidebar-cta a {
  display: inline-flex;
  width: max-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  color: #07315c;
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.taka-author-box {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 58px;
  padding: 24px;
  border: 1px solid #d8e1e7;
  border-radius: 14px;
  background: #ffffff;
}

.taka-author-avatar img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.taka-author-box span {
  color: #0a76a8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.taka-author-box h2 {
  margin: 4px 0 7px;
  font-size: 21px;
  line-height: 1.2;
}

.taka-author-box h2 a {
  color: #142030;
  text-decoration: none;
}

.taka-author-box p {
  margin: 0;
  color: #5e6d7d;
  font-size: 14px;
  line-height: 1.6;
}

.taka-single-bottom {
  width: min(1180px, calc(100% - 48px)) !important;
  margin: 38px auto 0 !important;
  padding: 34px 0 106px !important;
  border-top: 1px solid #d5dee5;
}

.taka-post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 52px;
}

.taka-post-navigation div:last-child {
  text-align: right;
}

.taka-post-navigation a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #d3dde4;
  border-radius: 9px;
  color: #19354f;
  background: #ffffff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.taka-related-heading {
  margin-bottom: 22px;
}

.taka-related-heading span {
  color: #0b73a5;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.taka-related-heading h2 {
  margin: 5px 0 0;
  color: #101b29;
  font-size: 34px;
  font-weight: 950;
  line-height: 1.15;
}

.single-post-page .taka-related-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 0;
}

.single-post-page .taka-related-posts article {
  padding: 10px 10px 16px;
  border: 1px solid #dbe3e9;
  border-radius: 14px;
  background: #ffffff;
  text-align: left;
}

.single-post-page .taka-related-posts .blog-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 0 13px;
  overflow: hidden;
  border-radius: 10px;
}

.single-post-page .taka-related-posts h2 {
  max-width: none;
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  text-align: left;
}

.single-post-page .taka-related-posts h2 a {
  color: #142030;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .taka-single-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 36px;
  }
}

@media (max-width: 920px) {
  .blog-page.taka-single-post-page {
    padding-top: 73px !important;
  }

  body.admin-bar .blog-page.taka-single-post-page {
    padding-top: 119px !important;
  }

  .taka-single-container {
    width: min(100% - 36px, 740px);
  }

  .taka-single-hero {
    padding: 30px 0 42px;
  }

  .taka-single-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .taka-post-sidebar {
    order: -1;
  }

  .taka-sidebar-sticky,
  body.admin-bar .taka-sidebar-sticky {
    position: static;
  }

  .taka-toc-toggle {
    cursor: pointer;
  }

  .taka-toc.is-enhanced .taka-toc-body {
    display: none;
  }

  .taka-toc.is-enhanced.is-open .taka-toc-body {
    display: block;
  }

  .taka-share-card,
  .taka-sidebar-cta {
    display: none;
  }

  .single-post-page .taka-related-posts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.admin-bar .taka-reading-progress {
    top: 46px;
  }

  .taka-single-container,
  .taka-single-bottom {
    width: calc(100% - 28px) !important;
  }

  .taka-single-post .taka-single-title-wrap h1 {
    margin-bottom: 20px;
    font-size: 34px;
    line-height: 1.1;
  }

  .taka-single-featured {
    margin-top: 28px;
  }

  .taka-single-featured img,
  .taka-single-placeholder {
    border-radius: 12px;
  }

  .taka-single-placeholder {
    min-height: 320px;
    padding: 24px;
  }

  .taka-single-placeholder strong {
    font-size: 30px;
  }

  .taka-post-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .taka-post-meta li {
    min-width: 0;
    padding: 0;
    margin: 0;
    border-right: 0;
  }

  .taka-single-post-page .single-post-content.taka-post-content {
    font-size: 17px;
    line-height: 1.76;
  }

  .taka-single-post-page .taka-post-content h2 {
    margin-top: 46px;
    font-size: 29px;
  }

  .taka-single-post-page .taka-post-content h3 {
    font-size: 23px;
  }

  .taka-single-post-page .taka-post-content figure.alignwide {
    width: 100%;
    margin-left: 0;
  }

  .taka-single-post-page .taka-post-content .alignleft,
  .taka-single-post-page .taka-post-content .alignright {
    float: none;
    max-width: 100%;
    margin: 30px auto;
  }

  .taka-author-box {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .taka-author-avatar img {
    width: 56px;
    height: 56px;
  }

  .taka-post-navigation {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }

  .taka-post-navigation div:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .taka-breadcrumb a,
  .taka-toc-toggle i::after,
  .taka-toc-body a,
  .taka-share-links a {
    transition: none;
  }
}
