/* ==========================================================
TIKAP BLOG — PUBLIC DESIGN SYSTEM
========================================================== */

:root {
  --tikap-blue: #1d4ed8;
  --tikap-blue-dark: #0f3aa7;
  --tikap-blue-soft: #eff6ff;
  --tikap-teal: #0f766e;
  --tikap-navy: #112033;
  --tikap-text: #516276;
  --tikap-muted: #758398;
  --tikap-border: #e6ebf2;
  --tikap-bg: #f7f9fc;
  --tikap-white: #ffffff;

  --tikap-radius-sm: 12px;
  --tikap-radius: 20px;
  --tikap-radius-lg: 28px;

  --tikap-shadow:
    0 18px 60px rgba(17, 32, 51, .08);

  --tikap-container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--tikap-navy);
  background: var(--tikap-white);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.tk-container {
  width: min(
    var(--tikap-container),
    calc(100% - 40px)
  );
  margin-inline: auto;
}


/* ==========================================================
HEADER
========================================================== */

.tk-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(230,235,242,.9);
  backdrop-filter: blur(14px);
}

.tk-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.tk-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.tk-logo img {
  display: block;
  width: 142px;
  max-height: 48px;
  object-fit: contain;
}

.tk-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.tk-nav a {
  color: #33445b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.tk-nav a:hover,
.tk-nav a.active {
  color: var(--tikap-blue);
}

.tk-header-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: white !important;
  background:
    linear-gradient(
      135deg,
      var(--tikap-blue),
      var(--tikap-blue-dark)
    );
}


/* ==========================================================
BLOG HERO
========================================================== */

.tk-blog-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 58px;
  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(29,78,216,.14),
      transparent 28%
    ),
    radial-gradient(
      circle at 20% 120%,
      rgba(15,118,110,.10),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #f7faff 0%,
      #fff 100%
    );
}

.tk-blog-hero-inner {
  max-width: 900px;
}

.tk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 12px;
  color: var(--tikap-blue);
  background: var(--tikap-blue-soft);
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.tk-blog-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 7vw, 74px);
  line-height: .99;
  letter-spacing: -.045em;
}

.tk-blog-hero h1 strong {
  color: var(--tikap-blue);
}

.tk-blog-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--tikap-text);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}


/* ==========================================================
CATEGORIES
========================================================== */

.tk-categories {
  padding: 26px 0;
  border-bottom: 1px solid var(--tikap-border);
}

.tk-category-list {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.tk-category-list::-webkit-scrollbar {
  display: none;
}

.tk-chip {
  flex: 0 0 auto;
  padding: 10px 15px;
  color: #45566b;
  background: white;
  border: 1px solid var(--tikap-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.tk-chip:hover,
.tk-chip.active {
  color: white;
  background: var(--tikap-blue);
  border-color: var(--tikap-blue);
}


/* ==========================================================
ARTICLES
========================================================== */

.tk-blog-main {
  padding: 54px 0 78px;
}

.tk-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.tk-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.025em;
}

.tk-section-head p {
  max-width: 520px;
  margin: 7px 0 0;
  color: var(--tikap-text);
}

.tk-article-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tk-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: white;
  border: 1px solid var(--tikap-border);
  border-radius: var(--tikap-radius);
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.tk-card:hover {
  transform: translateY(-4px);
  border-color: #ccd9ec;
  box-shadow: var(--tikap-shadow);
}

.tk-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(
      135deg,
      #edf4ff,
      #f6f8fb
    );
}

.tk-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.tk-card:hover .tk-card-media img {
  transform: scale(1.025);
}

.tk-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--tikap-blue);
  font-size: 15px;
  font-weight: 800;
}

.tk-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.tk-card-category {
  color: var(--tikap-blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.tk-card h3 {
  margin: 10px 0 12px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.tk-card h3 a {
  text-decoration: none;
}

.tk-card-description {
  margin: 0;
  color: var(--tikap-text);
  font-size: 15px;
  line-height: 1.65;
}

.tk-card-meta {
  margin-top: auto;
  padding-top: 20px;
  color: var(--tikap-muted);
  font-size: 13px;
}


/* ==========================================================
EMPTY STATE
========================================================== */

.tk-empty {
  grid-column: 1 / -1;
  padding: 60px 30px;
  text-align: center;
  color: var(--tikap-text);
  background: var(--tikap-bg);
  border: 1px dashed #ccd6e5;
  border-radius: var(--tikap-radius);
}


/* ==========================================================
PAGINATION
========================================================== */

.tk-pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding-top: 48px;
}

.tk-pagination a {
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  color: #415166;
  background: white;
  border: 1px solid var(--tikap-border);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.tk-pagination a:hover,
.tk-pagination a.active {
  color: white;
  background: var(--tikap-blue);
  border-color: var(--tikap-blue);
}


/* ==========================================================
CTA TIKAP
========================================================== */

.tk-support-section {
  padding: 0 0 86px;
}

.tk-support-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 48px;
  color: white;
  background:
    radial-gradient(
      circle at 85% 0%,
      rgba(255,255,255,.17),
      transparent 28%
    ),
    linear-gradient(
      130deg,
      #112033,
      #153b83 60%,
      #1d4ed8
    );
  border-radius: var(--tikap-radius-lg);
}

.tk-support-cta h2 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.tk-support-cta p {
  max-width: 670px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.78);
  line-height: 1.65;
}

.tk-support-button {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  color: var(--tikap-navy);
  background: white;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
}


/* ==========================================================
ARTICLE PAGE
========================================================== */

.tk-article-head {
  max-width: 900px;
  padding: 54px 0 34px;
}

.tk-breadcrumb {
  margin-bottom: 26px;
  color: var(--tikap-muted);
  font-size: 13px;
}

.tk-breadcrumb a {
  color: var(--tikap-blue);
  text-decoration: none;
}

.tk-article-head h1 {
  margin: 12px 0 20px;
  font-size: clamp(39px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.tk-article-excerpt {
  max-width: 800px;
  margin: 0;
  color: var(--tikap-text);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.7;
}

.tk-article-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 25px;
  color: var(--tikap-muted);
  font-size: 14px;
}

.tk-hero-image {
  margin: 12px auto 52px;
}

.tk-hero-image img {
  display: block;
  width: 100%;
  max-height: 630px;
  object-fit: cover;
  border-radius: var(--tikap-radius-lg);
}

.tk-article-content {
  width: min(780px, calc(100% - 40px));
  margin-inline: auto;
  padding-bottom: 70px;
  color: #26374b;
  font-size: 18px;
  line-height: 1.85;
}

.tk-article-content p {
  margin: 0 0 24px;
}

.tk-article-content h2 {
  margin: 56px 0 20px;
  color: var(--tikap-navy);
  font-size: clamp(29px, 4vw, 38px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.tk-article-content h3 {
  margin: 42px 0 16px;
  color: var(--tikap-navy);
  font-size: 26px;
  line-height: 1.3;
}

.tk-article-content a {
  color: var(--tikap-blue);
  font-weight: 650;
}

.tk-article-content ul,
.tk-article-content ol {
  padding-left: 26px;
  margin: 22px 0 28px;
}

.tk-article-content li {
  margin: 8px 0;
}

.tk-article-content blockquote {
  margin: 36px 0;
  padding: 20px 24px;
  background: #f3f7ff;
  border-left: 4px solid var(--tikap-blue);
  border-radius: 0 14px 14px 0;
}

.tk-article-content figure {
  margin: 42px 0;
}

.tk-article-content figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.tk-article-content figcaption {
  margin-top: 9px;
  color: var(--tikap-muted);
  font-size: 13px;
  text-align: center;
}

.article-callout {
  margin: 34px 0;
  padding: 24px;
  background: #f4f9f8;
  border: 1px solid #cee7e3;
  border-radius: 16px;
}

.callout-title {
  display: block;
  margin-bottom: 7px;
  color: var(--tikap-teal);
}

.article-cta {
  margin: 42px 0;
  padding: 28px;
  background: var(--tikap-navy);
  color: white;
  border-radius: 18px;
}

.article-cta strong {
  display: block;
  font-size: 22px;
}

.article-cta p {
  color: rgba(255,255,255,.76);
}

.article-cta a {
  display: inline-flex;
  padding: 11px 17px;
  color: var(--tikap-navy);
  background: white;
  border-radius: 999px;
  text-decoration: none;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 30px 0;
}

.article-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.article-table-wrap th,
.article-table-wrap td {
  padding: 13px;
  text-align: left;
  border: 1px solid var(--tikap-border);
}

.article-faq {
  margin: 40px 0;
}

.article-faq details {
  padding: 17px 0;
  border-bottom: 1px solid var(--tikap-border);
}

.article-faq summary {
  cursor: pointer;
  font-weight: 800;
}


/* ==========================================================
RELATED ARTICLES
========================================================== */

.tk-related {
  padding: 70px 0;
  background: var(--tikap-bg);
}

.tk-related .tk-article-grid {
  margin-top: 28px;
}


/* ==========================================================
404
========================================================== */

.tk-not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
}

.tk-not-found h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
}

.tk-not-found p {
  color: var(--tikap-text);
}

.tk-not-found a {
  color: var(--tikap-blue);
  font-weight: 800;
}


/* ==========================================================
FOOTER
========================================================== */

.tk-footer {
  padding: 54px 0 28px;
  color: rgba(255,255,255,.77);
  background: #0b1727;
}

.tk-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
}

.tk-footer-logo {
  width: 145px;
  display: block;
  margin-bottom: 18px;
}

.tk-footer p {
  max-width: 480px;
  line-height: 1.65;
}

.tk-footer h3 {
  margin: 0 0 15px;
  color: white;
  font-size: 14px;
}

.tk-footer-links {
  display: grid;
  gap: 9px;
}

.tk-footer-links a {
  text-decoration: none;
}

.tk-footer-links a:hover {
  color: white;
}

.tk-footer-bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.11);
  font-size: 13px;
}


/* ==========================================================
RESPONSIVE
========================================================== */

@media (max-width: 900px) {
  .tk-article-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .tk-support-cta {
    grid-template-columns: 1fr;
  }

  .tk-footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .tk-container {
    width: min(
      100% - 28px,
      var(--tikap-container)
    );
  }

  .tk-header-inner {
    min-height: 66px;
  }

  .tk-logo img {
    width: 115px;
  }

  .tk-nav > a:not(.tk-header-cta) {
    display: none;
  }

  .tk-blog-hero {
    padding: 58px 0 42px;
  }

  .tk-article-grid {
    grid-template-columns: 1fr;
  }

  .tk-section-head {
    display: block;
  }

  .tk-support-cta {
    padding: 32px 25px;
  }

  .tk-footer-top {
    grid-template-columns: 1fr;
  }

  .tk-article-content {
    width: min(100% - 28px, 780px);
    font-size: 17px;
  }

  .tk-article-content figure {
    margin: 34px 0;
  }
}


/* ==========================================================
ARTICLE LAYOUT + TABLE OF CONTENTS
========================================================== */

.tk-article-layout {
  display: grid;
  grid-template-columns:
    220px
    minmax(0, 780px);
  justify-content: center;
  align-items: start;
  gap: 58px;
  padding-bottom: 76px;
}

.tk-article-layout .tk-article-content {
  width: 100%;
  margin: 0;
  padding: 0;
}

.tk-toc {
  position: sticky;
  top: 105px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding: 18px 16px;
  background: #f8faff;
  border: 1px solid var(--tikap-border);
  border-radius: 16px;
}

.tk-toc-label {
  margin-bottom: 12px;
  color: var(--tikap-navy);
  font-size: 13px;
  font-weight: 850;
}

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

.tk-toc-list li {
  margin: 0;
}

.tk-toc-list a {
  display: block;
  padding: 6px 0;
  color: var(--tikap-text);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.tk-toc-list a:hover {
  color: var(--tikap-blue);
}

.tk-toc-h3 a {
  padding-left: 14px;
  font-size: 12px;
}

.tk-article-content h2[id],
.tk-article-content h3[id] {
  scroll-margin-top: 105px;
}


/* ==========================================================
AUTHOR
========================================================== */

.tk-author-box {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 58px;
  padding: 24px;
  background: #f8fafc;
  border: 1px solid var(--tikap-border);
  border-radius: 18px;
}

.tk-author-avatar img,
.tk-author-placeholder {
  width: 68px;
  height: 68px;
  border-radius: 50%;
}

.tk-author-avatar img {
  display: block;
  object-fit: cover;
}

.tk-author-placeholder {
  display: grid;
  place-items: center;
  color: white;
  background:
    linear-gradient(
      135deg,
      var(--tikap-blue),
      var(--tikap-blue-dark)
    );
  font-size: 25px;
  font-weight: 900;
}

.tk-author-eyebrow {
  margin-bottom: 3px;
  color: var(--tikap-blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.tk-author-name {
  display: block;
  color: var(--tikap-navy);
  font-size: 19px;
}

.tk-author-box p {
  margin: 7px 0 0;
  color: var(--tikap-text);
  font-size: 14px;
  line-height: 1.65;
}


/* ==========================================================
CONTEXTUAL CTA
========================================================== */

.tk-contextual-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin: 54px 0;
  padding: 30px;
  color: white;
  background:
    radial-gradient(
      circle at 95% 0,
      rgba(255,255,255,.16),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #112033,
      #163c87 70%,
      #1d4ed8
    );
  border-radius: 20px;
}

.tk-contextual-label {
  margin-bottom: 8px;
  color: #aac6ff;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.tk-contextual-cta h2 {
  margin: 0;
  color: white;
  font-size: 28px;
}

.tk-contextual-cta p {
  margin: 11px 0 0;
  color: rgba(255,255,255,.75);
  font-size: 15px;
  line-height: 1.65;
}

.tk-contextual-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  white-space: nowrap;
  color: var(--tikap-navy) !important;
  background: white;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850 !important;
  text-decoration: none;
}



/* responsive  */

@media (max-width: 1050px) {

  .tk-article-layout {
    grid-template-columns: 180px minmax(0, 700px);
    gap: 32px;
  }

}


@media (max-width: 820px) {

  .tk-article-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .tk-toc {
    position: static;
    max-height: none;
  }

  .tk-contextual-cta {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 560px) {

  .tk-article-head {
    padding-top: 38px;
  }

  .tk-article-info {
    display: grid;
    gap: 5px;
  }

  .tk-toc {
    padding: 16px;
  }

  .tk-contextual-cta {
    padding: 24px 20px;
  }

  .tk-contextual-cta h2 {
    font-size: 24px;
  }

  .tk-contextual-button {
    width: 100%;
  }

  .tk-author-box {
    grid-template-columns: 52px 1fr;
    padding: 20px;
  }

  .tk-author-avatar img,
  .tk-author-placeholder {
    width: 52px;
    height: 52px;
  }

}

/* ==========================================================
PRIVATE ARTICLE PREVIEW
========================================================== */

.tk-preview-article-layout {
  width: 100%;
  max-width: 900px;

  margin: 0 auto;

  padding-top: 38px;
  padding-bottom: 80px;
}


.tk-preview-article-layout
.tk-article-content {
  width: 100%;

  margin: 0;
  padding: 0;
}


/* ==========================================================
ARTICLE TYPOGRAPHY
========================================================== */

.tk-article-excerpt {
  font-size: 20px;
  line-height: 1.7;
}


.tk-article-info {
  font-size: 14px;
}


.tk-breadcrumb {
  font-size: 14px;
}


.tk-article-content {
  font-size: 18px;
  line-height: 1.82;
}


.tk-article-content p {
  font-size: 18px;
  line-height: 1.82;
}


.tk-article-content li {
  font-size: 17px;
  line-height: 1.75;
}


.tk-article-content h2 {
  margin-top: 52px;

  font-size: 31px;
  line-height: 1.25;
}


.tk-article-content h3 {
  margin-top: 36px;

  font-size: 23px;
  line-height: 1.35;
}


.tk-toc-label {
  font-size: 14px;
}


.tk-toc-list a {
  font-size: 14px;
}


.tk-toc-h3 a {
  font-size: 13px;
}