:root {
  --tld-ink: #17252c;
  --tld-muted: #5e6b70;
  --tld-blue: #079bc5;
  --tld-blue-dark: #087c9d;
  --tld-orange: #f28b18;
  --tld-cream: #fff8ee;
  --tld-sky: #eef8fb;
  --tld-line: #dce7ea;
  --tld-shadow: 0 12px 35px rgba(23, 52, 63, .12);
}

.tld-knowledge-centre #main > h1,
.tld-knowledge-centre #main > .page-header,
.tld-guide-category #main > .page-header,
.tld-guide-article #main > .page-header,
.tld-knowledge-centre #content > p,
.tld-knowledge-centre #content > ul,
.tld-guide-category #content > h1,
.tld-guide-category #content > p,
.tld-guide-category #content > ul,
.tld-guide-category #cms-pages-list {
  display: none !important;
}

.tld-knowledge-centre #content,
.tld-guide-category #content,
.tld-guide-article #content {
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

.tld-kc,
.tld-category-page,
.tld-article-shell {
  color: var(--tld-ink);
  font-size: 16px;
  line-height: 1.7;
}

.tld-kc *,
.tld-category-page *,
.tld-article-shell * {
  box-sizing: border-box;
}

.tld-kc a,
.tld-category-page a,
.tld-article-shell a {
  color: var(--tld-blue-dark);
}

.tld-kc-hero {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  align-items: stretch;
  margin: 0 0 44px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e9f8fc 0%, #fff8ec 100%);
  box-shadow: var(--tld-shadow);
}

.tld-kc-hero-copy {
  padding: 58px 52px;
  align-self: center;
  z-index: 2;
}

.tld-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--tld-blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tld-kc h1,
.tld-category-page h1,
.tld-article-hero h1 {
  margin: 0 0 18px;
  color: var(--tld-ink);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -.03em;
  word-spacing: normal !important;
  text-align: left !important;
  text-transform: none;
}

.tld-kc-hero-copy p {
  max-width: 650px;
  margin: 0 0 24px;
  color: #42545b;
  font-size: 18px;
  line-height: 1.65;
}

.tld-kc-hero-media,
.tld-category-hero-media,
.tld-article-hero-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 0;
  align-self: center;
  background: #f3f7f8;
}

.tld-kc-hero-media img,
.tld-category-hero-media img,
.tld-article-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tld-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 19px;
  border-radius: 999px;
  background: var(--tld-blue);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform .2s ease, background .2s ease;
}

.tld-button:hover,
.tld-button:focus {
  transform: translateY(-2px);
  background: var(--tld-blue-dark);
}

.tld-kc-section {
  margin: 0 0 50px;
}

.tld-kc-section-head {
  max-width: 760px;
  margin: 0 0 24px;
}

.tld-kc-section h2 {
  margin: 0 0 8px;
  color: var(--tld-ink);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  text-transform: none;
}

.tld-kc-section-head p {
  color: var(--tld-muted);
  font-size: 17px;
}

.tld-feature-grid,
.tld-topic-grid {
  display: grid;
  gap: 24px;
}

.tld-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tld-topic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tld-guide-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--tld-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 52, 63, .08);
  transition: transform .22s ease, box-shadow .22s ease;
}

.tld-guide-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--tld-shadow);
}

.tld-guide-card-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--tld-sky);
}

.tld-guide-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f3f7f8;
  transition: transform .35s ease;
}

.tld-guide-card:hover img {
  transform: scale(1.035);
}

.tld-guide-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.tld-guide-card h3 {
  margin: 0 0 9px;
  color: var(--tld-ink);
  font-size: 21px;
  line-height: 1.3;
  text-transform: none;
}

.tld-guide-card h3,
.tld-guide-card p,
.tld-guide-card a,
.tld-article-body h2,
.tld-article-body h3,
.tld-article-body p,
.tld-article-body li {
  word-spacing: normal !important;
  text-align: left !important;
  text-justify: auto !important;
}

.tld-guide-card p {
  margin: 0 0 17px;
  color: var(--tld-muted);
  line-height: 1.6;
}

.tld-card-link {
  margin-top: auto;
  font-weight: 750;
  text-decoration: none !important;
}

.tld-card-link::after {
  content: '  →';
  color: var(--tld-orange);
}

/* Topic category pages */
.tld-category-page {
  color: var(--tld-ink);
}

.tld-category-hero {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: stretch;
  margin: 0 0 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e9f8fc 0%, #fff8ec 100%);
  box-shadow: var(--tld-shadow);
}

.tld-category-hero-copy {
  align-self: center;
  padding: 50px;
}

.tld-category-hero-copy p {
  max-width: 650px;
  margin: 0 0 24px;
  color: #42545b;
  font-size: 18px;
  line-height: 1.65;
  text-align: left !important;
}

.tld-category-back {
  margin: 0 0 34px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--tld-line);
}

.tld-category-back a {
  font-weight: 700;
  text-decoration: none;
}

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

.tld-card-eyebrow {
  margin-bottom: 8px;
  color: var(--tld-blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tld-category-article-card h3 a {
  color: var(--tld-ink);
  text-decoration: none;
}

.tld-quick-start {
  padding: 32px;
  border-radius: 16px;
  background: var(--tld-ink);
  color: #fff;
}

.tld-quick-start h2,
.tld-quick-start p {
  color: #fff;
}

.tld-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tld-chip {
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  color: #fff !important;
  text-decoration: none !important;
  background: rgba(255,255,255,.08);
}

.tld-chip:hover {
  background: rgba(255,255,255,.16);
}

/* Article reading experience */
.tld-article-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.tld-article-hero {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr);
  min-height: 330px;
  margin-bottom: 28px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--tld-sky), var(--tld-cream));
  box-shadow: var(--tld-shadow);
}

.tld-article-hero-copy {
  padding: 46px;
  align-self: center;
}

.tld-article-hero h1 {
  max-width: 720px;
  font-size: clamp(30px, 3vw, 46px);
}

.tld-article-hero-copy,
.tld-article-hero-copy h1,
.tld-article-tools,
.tld-toc,
.tld-toc a {
  word-spacing: normal !important;
  text-align: left !important;
  text-justify: auto !important;
}

.tld-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.tld-meta-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(7, 155, 197, .11);
  color: var(--tld-blue-dark);
  font-size: 13px;
  font-weight: 700;
}

.tld-article-tools {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 26px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--tld-line);
}

.tld-article-tools a {
  font-weight: 700;
  text-decoration: none;
}

.tld-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 42px;
  align-items: start;
}

.tld-article-body {
  min-width: 0;
  max-width: 760px;
}

.tld-article-body > p:first-of-type {
  margin-top: 0;
  padding: 22px 24px;
  border-left: 4px solid var(--tld-orange);
  border-radius: 0 12px 12px 0;
  background: var(--tld-cream);
  color: #3c4c52;
  font-size: 18px;
  line-height: 1.7;
}

.tld-article-body h2 {
  margin: 42px 0 16px;
  padding-top: 4px;
  color: var(--tld-ink);
  font-size: 28px;
  line-height: 1.25;
  text-transform: none;
}

.tld-article-body h3 {
  margin: 28px 0 11px;
  color: var(--tld-ink);
  font-size: 21px;
  line-height: 1.35;
  text-transform: none;
}

.tld-article-body p,
.tld-article-body li {
  color: #34464d;
  font-size: 16px;
  line-height: 1.75;
}

.tld-article-body ul,
.tld-article-body ol {
  margin: 16px 0 24px;
  padding-left: 24px;
}

.tld-article-body li {
  margin-bottom: 8px;
}

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

.tld-article-body table {
  width: 100%;
  margin: 22px 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--tld-line);
  border-radius: 10px;
}

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

.tld-article-body th {
  background: var(--tld-sky);
  color: var(--tld-ink);
}

.tld-toc {
  position: sticky;
  top: 22px;
  padding: 20px;
  border: 1px solid var(--tld-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23, 52, 63, .07);
}

.tld-toc-title {
  margin: 0 0 12px;
  color: var(--tld-ink);
  font-weight: 800;
}

.tld-toc a {
  display: block;
  padding: 7px 0;
  border-bottom: 1px solid #edf2f3;
  color: #506168;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}

.tld-toc a:hover {
  color: var(--tld-blue-dark);
}

.tld-article-cta {
  margin-top: 44px;
  padding: 26px 30px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--tld-sky), var(--tld-cream));
}

.tld-article-cta h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.tld-article-cta p {
  margin-bottom: 14px;
}

@media (max-width: 991px) {
  .tld-kc-hero,
  .tld-category-hero,
  .tld-article-hero {
    grid-template-columns: 1fr;
  }
  .tld-kc-hero-media,
  .tld-category-hero-media,
  .tld-article-hero-media {
    min-height: 0;
    order: -1;
  }
  .tld-feature-grid {
    grid-template-columns: 1fr;
  }
  .tld-article-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tld-article-layout {
    grid-template-columns: 1fr;
  }
  .tld-article-body {
    max-width: none;
  }
  .tld-toc {
    position: static;
    order: -1;
  }
}

@media (max-width: 767px) {
  .tld-kc-hero-copy,
  .tld-category-hero-copy,
  .tld-article-hero-copy {
    padding: 30px 24px;
  }
  .tld-kc h1,
  .tld-article-hero h1 {
    font-size: 32px;
  }
  .tld-topic-grid {
    grid-template-columns: 1fr;
  }
  .tld-article-card-grid {
    grid-template-columns: 1fr;
  }
  .tld-guide-card-body {
    padding: 18px;
  }
  .tld-article-tools {
    flex-direction: column;
  }
  .tld-quick-start,
  .tld-article-cta {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tld-guide-card,
  .tld-guide-card img,
  .tld-button {
    transition: none;
  }
}
