/* TYG Finance Knowledge Centre — v2.0.0 (2026-08-18)
   Page furniture (hero, sidebar, related, CTA) is built in the Elementor templates
   "KC Article" and "KC Hub & Category". This sheet styles the article body that
   Elementor's Post Content widget renders, plus the shared KC components.
   Brand: teal #00A2F3, purple #004A99, deep purple #0057BB, text #000,
   grey #707070, light tint #F6FBFF, border #E5E7EB. Type: Montserrat (site global). */

/* ---------- shared layout helpers used by the Elementor containers ---------- */
.kc-wrap { max-width: 1160px; margin: 0 auto; width: 100%; }
.kc-cols > .elementor-container { align-items: flex-start; gap: 48px; }
.kc-main > .elementor-widget-wrap { max-width: 800px; }
.kc-sidebar { position: sticky; top: 120px; align-self: flex-start; }

@media (max-width: 1024px) {
  .kc-cols > .elementor-container { gap: 32px; }
  .kc-sidebar { position: static; }
  .kc-main > .elementor-widget-wrap { max-width: 100%; }
}

/* ---------- hero (Elementor container .kc-hero-el) ---------- */
.kc-hero-el .kc-breadcrumb { color: #F6FBFF; font-size: 13px; line-height: 1.6; margin: 0 0 14px; }
.kc-hero-el .kc-breadcrumb a { color: #F6FBFF; text-decoration: underline; }
.kc-hero-el .kc-breadcrumb a:hover { color: #00A2F3; }
.kc-hero-el .kc-breadcrumb span { opacity: 0.75; }
.kc-hero-el .kc-byline {
  color: #F6FBFF; font-size: 13.5px; margin: 14px 0 0; display: flex; flex-wrap: wrap;
  align-items: center; gap: 10px; opacity: 0.92;
}
.kc-hero-el .kc-byline-name { font-weight: 600; }
.kc-hero-el .kc-byline-sep { opacity: 0.5; }
.kc-hero-el .kc-lead {
  color: #E8F4FD; font-size: 17.5px; line-height: 1.65; max-width: 760px; margin: 18px 0 0;
}
.kc-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; }
.kc-chips li {
  font-size: 12.5px; font-weight: 600; color: #F6FBFF; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: 6px 14px; line-height: 1.4;
}
.kc-block-title {
  font-size: 27px; line-height: 1.25; font-weight: 800; color: #0057BB; margin: 0 0 26px;
  letter-spacing: -0.01em;
}
.kc-muted, .kc-soon { color: #707070; }

/* ---------- article body ---------- */
.kc-page { color: #1A1A1A; font-size: 17px; line-height: 1.75; }
.kc-page > *:first-child { margin-top: 0; }
.kc-page p { margin: 0 0 22px; }
.kc-page h2 {
  font-size: 29px; line-height: 1.25; font-weight: 700; color: #0057BB;
  margin: 48px 0 18px; letter-spacing: -0.01em;
}
.kc-page h3 { font-size: 21px; line-height: 1.3; font-weight: 700; color: #0057BB; margin: 34px 0 14px; }
.kc-page ul, .kc-page ol { margin: 0 0 24px; padding-left: 22px; }
.kc-page li { margin: 0 0 10px; }
.kc-page a { color: #004A99; text-decoration: underline; text-underline-offset: 2px; }
.kc-page a:hover { color: #00A2F3; }
.kc-page strong { font-weight: 700; color: #000; }
.kc-page .kc-muted { color: #707070; }
/* the old in-content byline, kept safe if any article still carries one */
.kc-page .kc-byline { color: #707070; font-size: 14px; border-bottom: 1px solid #E5E7EB; padding-bottom: 16px; }

/* answer box */
.kc-page .kc-answer-box {
  background: #F6FBFF; border: 1px solid #D7EFFC; border-left: 4px solid #00A2F3;
  border-radius: 10px; padding: 22px 26px; margin: 0 0 34px;
}
.kc-page .kc-answer-box p { margin: 0; font-size: 16.5px; }
.kc-page .kc-answer-box strong { color: #0057BB; }

/* tables */
.kc-page table {
  width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 15.5px;
  border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden;
}
.kc-page thead th {
  background: #0057BB; color: #fff; text-align: left; font-weight: 600;
  padding: 13px 16px; font-size: 14.5px;
}
.kc-page td, .kc-page tbody th { padding: 13px 16px; border-top: 1px solid #E5E7EB; vertical-align: top; }
.kc-page tbody tr:nth-child(even) { background: #FAFBFC; }
.kc-page table + p em, .kc-page table + em { color: #707070; font-size: 13.5px; }

/* FAQ */
.kc-page .kc-faq { margin: 40px 0 0; }
.kc-page h2 + details { margin-top: 20px; }
.kc-page details {
  border: 1px solid #E5E7EB; border-radius: 10px; margin: 0 0 12px; background: #fff;
  transition: border-color .15s ease;
}
.kc-page details[open] { border-color: #00A2F3; }
.kc-page summary {
  cursor: pointer; padding: 16px 46px 16px 20px; font-weight: 600; color: #0057BB;
  list-style: none; position: relative; font-size: 16px;
}
.kc-page summary::-webkit-details-marker { display: none; }
.kc-page summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: #00A2F3; font-size: 22px; font-weight: 700; line-height: 1;
}
.kc-page details[open] summary::after { content: "\2212"; }
.kc-page details p { padding: 0 20px 18px; margin: 0; font-size: 16px; }

/* ---------- sidebar cards ---------- */
.kc-side-card {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 14px; padding: 24px 24px 22px;
  margin: 0 0 20px;
}
/* inside the tinted sidebar panel the nav card sits flush, separated by a rule */
.kc-sidebar .kc-side-card {
  background: transparent; border: 0; border-top: 1px solid #D7EBFA; border-radius: 0;
  padding: 20px 0 0; margin: 22px 0 0;
}
.kc-side-card h3 { font-size: 17px; font-weight: 700; color: #0057BB; margin: 0 0 14px; line-height: 1.35; }
.kc-side-nav ul { list-style: none; margin: 0 0 16px; padding: 0; }
.kc-side-nav li { margin: 0 0 11px; padding: 0 0 11px; border-bottom: 1px solid #F0F1F3; line-height: 1.45; }
.kc-side-nav li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.kc-side-nav a { color: #0057BB; text-decoration: none; font-size: 15px; font-weight: 500; }
.kc-side-nav a:hover { color: #00A2F3; }
.kc-side-all { display: inline-block; color: #004A99; font-weight: 700; font-size: 14px; text-decoration: none; }
.kc-side-all:hover { color: #00A2F3; }

/* ---------- related grid ---------- */
.kc-related-sec:not(:has(.kc-related-grid)) { display: none; }
/* category pages carry no body copy, so the content band collapses when empty */
.kc-content-band:not(:has(.kc-page > *)) { display: none; }
.kc-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.kc-related-card {
  display: block; background: #fff; border: 1px solid #E5E7EB; border-radius: 14px;
  padding: 24px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.kc-related-card:hover { transform: translateY(-3px); border-color: #00A2F3; box-shadow: 0 10px 26px rgba(36,22,78,.10); }
.kc-related-cat {
  display: block; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase;
  color: #00A2F3; font-weight: 700; margin: 0 0 10px;
}
.kc-related-card h3 { font-size: 17.5px; line-height: 1.35; color: #0057BB; margin: 0 0 14px; font-weight: 700; }
.kc-tile-more { font-size: 13.5px; font-weight: 700; color: #004A99; }

/* ---------- hub category cards ---------- */
.kc-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(430px, 1fr)); gap: 22px; align-items: start; }
.kc-cat-card {
  position: relative; background: #fff; border: 1px solid #E5E7EB; border-radius: 16px;
  padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.kc-cat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--kc-accent, #00A2F3);
}
.kc-cat-card:hover {
  transform: translateY(-3px); border-color: var(--kc-accent, #00A2F3);
  box-shadow: 0 14px 34px rgba(36,22,78,.10);
}
.kc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kc-cat-head h3 { margin: 0; font-size: 21px; font-weight: 700; color: #0057BB; line-height: 1.3; }
.kc-cat-head h3 a { color: inherit; text-decoration: none; }
.kc-cat-head h3 a:hover { color: var(--kc-accent, #00A2F3); }
.kc-count {
  flex: 0 0 auto; min-width: 34px; height: 34px; padding: 0 11px; border-radius: 999px;
  background: #F6FBFF; border: 1px solid #D7EBFA; color: #0057BB; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.kc-cat-desc { margin: 0; color: #5B5B66; font-size: 15px; line-height: 1.6; }
.kc-cat-links {
  list-style: none; margin: 0; padding: 16px 0 4px; border-top: 1px solid #F0F1F3;
  display: grid; gap: 11px;
}
.kc-cat-links li { margin: 0; }
.kc-cat-links a {
  color: #004A99; font-weight: 600; font-size: 14.5px; text-decoration: none; line-height: 1.45;
  display: inline-flex; gap: 9px;
}
.kc-cat-links a::before { content: "\203A"; color: var(--kc-accent, #00A2F3); font-weight: 700; }
.kc-cat-links a:hover { color: var(--kc-accent, #00A2F3); }
.kc-cat-card .kc-cat-all {
  margin-top: auto; align-self: flex-start; justify-self: start; font-size: 14px; font-weight: 700; color: #fff;
  background: #0057BB; border-radius: 999px; padding: 11px 22px; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.kc-cat-card .kc-cat-all:hover { background: var(--kc-accent, #00A2F3); color: #0057BB; }
.kc-soon { font-size: 14.5px; margin: 0; }

/* an odd number of categories leaves a hole in the 2-up grid: let the last card
   run the full width and split its own content into two columns instead */
.kc-cat-grid > .kc-cat-card:last-child:nth-child(odd) {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 44px; align-items: start;
}
.kc-cat-grid > .kc-cat-card:last-child:nth-child(odd) > .kc-cat-head,
.kc-cat-grid > .kc-cat-card:last-child:nth-child(odd) > .kc-cat-desc,
.kc-cat-grid > .kc-cat-card:last-child:nth-child(odd) > .kc-cat-all { grid-column: 1; }
.kc-cat-grid > .kc-cat-card:last-child:nth-child(odd) > .kc-cat-links,
.kc-cat-grid > .kc-cat-card:last-child:nth-child(odd) > .kc-soon {
  grid-column: 2; grid-row: 1 / span 3; border-top: 0; padding-top: 4px; align-self: stretch;
}
@media (max-width: 980px) {
  .kc-cat-grid > .kc-cat-card:last-child:nth-child(odd) { display: flex; }
  .kc-cat-grid > .kc-cat-card:last-child:nth-child(odd) > .kc-cat-links {
    border-top: 1px solid #F0F1F3; padding-top: 16px;
  }
}

/* ---------- category article tiles ---------- */
.kc-article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin: 8px 0 0; }
.kc-article-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  background: #fff; border: 1px solid #E5E7EB; border-radius: 14px; padding: 24px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.kc-article-tile { position: relative; overflow: hidden; }
.kc-article-tile::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--kc-accent, #00A2F3);
}
.kc-article-tile:hover {
  transform: translateY(-3px); border-color: var(--kc-accent, #00A2F3);
  box-shadow: 0 10px 26px rgba(36,22,78,.10);
}
.kc-tile-label {
  display: block; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase;
  color: #00A2F3; font-weight: 700;
}
.kc-article-tile h3 { margin: 0; font-size: 17.5px; line-height: 1.35; color: #0057BB; font-weight: 700; }

@media (max-width: 980px) {
  .kc-cat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .kc-hero-el .kc-lead { font-size: 16.5px; }
  .kc-block-title { font-size: 23px; }
  .kc-cat-card { padding: 26px 22px 24px; }
  .kc-hero-el .kc-byline { flex-direction: column; align-items: flex-start; gap: 4px; }
  .kc-hero-el .kc-byline-sep { display: none; }
  .kc-page { font-size: 16.5px; }
  .kc-page h2 { font-size: 24px; margin: 38px 0 16px; }
  .kc-page h3 { font-size: 19px; }
  .kc-page table { display: block; overflow-x: auto; white-space: nowrap; }
  .kc-category-card { padding: 24px; }
}

/* ---------- specificity guards ----------
   The Elementor kit styles headings and paragraphs as `.elementor-kit-4 h2` etc,
   which outranks a bare class. Anything rendered by a KC shortcode outside the
   .kc-page wrapper needs the extra class to win. */
.elementor-widget-shortcode .kc-block-title {
  font-size: 27px; line-height: 1.25; font-weight: 800; color: #0057BB; margin: 0 0 26px;
}
.elementor-widget-shortcode .kc-lead { color: #E8F4FD; font-size: 17.5px; line-height: 1.65; }
.elementor-widget-shortcode .kc-cat-head h3 { font-weight: 700; color: #0057BB; font-size: 21px; line-height: 1.3; }
.elementor-widget-shortcode .kc-cat-desc { color: #5B5B66; font-size: 15px; line-height: 1.6; }
.elementor-widget-shortcode .kc-muted,
.elementor-widget-shortcode .kc-soon { color: #707070; font-size: 14.5px; }
.elementor-widget-shortcode .kc-article-tile h3,
.elementor-widget-shortcode .kc-related-card h3 { font-weight: 700; color: #0057BB; font-size: 17.5px; line-height: 1.35; }
.elementor-widget-shortcode .kc-side-card h3 { font-weight: 700; color: #0057BB; font-size: 17px; line-height: 1.35; }

@media (max-width: 767px) {
  .elementor-widget-shortcode .kc-block-title { font-size: 23px; }
  .elementor-widget-shortcode .kc-lead { font-size: 16.5px; }
}

/* ---------- hero side card (hub and category) ---------- */
.kc-hero-cols > .elementor-container { gap: 56px; align-items: center; }
@media (max-width: 1024px) { .kc-hero-cols > .elementor-container { gap: 0; } }
.kc-hero-card {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26); border-radius: 16px;
  padding: 26px 28px 24px; backdrop-filter: blur(2px);
}
.elementor-widget-shortcode .kc-hero-card h2 {
  font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #00A2F3; margin: 0 0 16px; line-height: 1.3;
}
.kc-hero-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kc-hero-links li { margin: 0; padding: 0 0 12px; border-bottom: 1px solid rgba(255,255,255,.16); }
.kc-hero-links li:last-child { border-bottom: 0; padding-bottom: 0; }
.kc-hero-links a { color: #fff; text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.45; }
.kc-hero-links a:hover { color: #00A2F3; }
.elementor-widget-shortcode .kc-hero-card-copy { color: #E8F4FD; font-size: 15px; line-height: 1.6; margin: 0; }
.kc-hero-card-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 22px 0 0;
  padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.18);
}
.kc-hero-phone { color: #fff; font-weight: 800; font-size: 19px; text-decoration: none; }
.kc-hero-phone:hover { color: #00A2F3; }
.kc-hero-cta {
  margin-left: auto; background: #00A2F3; color: #00325C; font-weight: 700; font-size: 14px;
  border-radius: 999px; padding: 10px 20px; text-decoration: none;
}
.kc-hero-cta:hover { background: #fff; color: #0057BB; }
@media (max-width: 1024px) { .kc-hero-card { margin-top: 30px; } }
.kc-hero-card .kc-hero-phone { color: #ffffff; }
.kc-hero-card .kc-hero-phone:hover { color: #00A2F3; }
.kc-hero-card .kc-hero-cta { color: #00325C; background: #00A2F3; }
.kc-hero-card .kc-hero-cta:hover { color: #0057BB; background: #ffffff; }
.kc-hero-card .kc-hero-links a { color: #ffffff; }
.kc-hero-card .kc-hero-links a:hover { color: #00A2F3; }
