:root {
  --tld-ink: #17283a;
  --tld-muted: #536777;
  --tld-cream: #f7f6f1;
  --tld-gold: #b55c3a;
  --tld-yellow: #f1c75b;
  --tld-brand-blue: #3661c9;
  --tld-blue: #234f7d;
  --tld-red: #b55c3a;
  --tld-line: #d9e1e7;
}

.tld-fi-guide-page #content {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.tld-fi-native-hidden { display: none !important; }
.tld-fi-guide-page .breadcrumb { margin-bottom: 22px; }
.tld-fi-hub,
.tld-fi-topic-page,
.tld-fi-article-shell { color: var(--tld-ink); text-align: left; }

.tld-fi-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  min-height: 430px;
  overflow: hidden;
  background: linear-gradient(135deg, #163e66 0%, var(--tld-blue) 52%, #3661c9 100%);
  border-radius: 4px;
  box-shadow: 0 18px 55px rgba(36, 70, 156, .18);
}

.tld-fi-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.1), transparent 34%), linear-gradient(135deg, transparent 0 48%, rgba(255,255,255,.035) 48% 50%, transparent 50%);
  pointer-events: none;
}

.tld-fi-hero__copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 58px 56px;
  color: #fff;
}

.tld-fi-eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  color: #ffdc72 !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tld-fi-hero h1 {
  margin: 0 0 22px;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.02;
  text-transform: none;
}

.tld-fi-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.83);
  font-size: 17px;
  line-height: 1.75;
}

.tld-fi-hero__visual { min-height: 430px; background: #f7f6f1; }
.tld-fi-hero__visual img { width: 100%; height: 100%; min-height: 430px; object-fit: contain; padding: 30px; mix-blend-mode: multiply; }
.tld-fi-hero--compact { min-height: 350px; }
.tld-fi-hero--compact .tld-fi-hero__visual,
.tld-fi-hero--compact .tld-fi-hero__visual img { min-height: 350px; }
.tld-fi-hero--compact h1 { font-size: clamp(34px, 4vw, 54px); }

.tld-fi-section-head { max-width: 790px; margin: 76px auto 38px; text-align: center; }
.tld-fi-section-head span { color: var(--tld-gold); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.tld-fi-section-head h2 { margin: 12px 0 14px; font-family: Georgia, serif; font-size: clamp(30px, 4vw, 44px); font-weight: 400; line-height: 1.15; text-transform: none; }
.tld-fi-section-head p { color: var(--tld-muted); font-size: 16px; line-height: 1.75; }

.tld-fi-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-bottom: 70px; }
.tld-fi-topic-card,
.tld-fi-article-card { display: grid; overflow: hidden; color: var(--tld-ink) !important; background: #fff; border: 1px solid var(--tld-line); border-radius: 3px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.tld-fi-topic-card { grid-template-columns: 42% 58%; min-height: 285px; }
.tld-fi-topic-card:hover,
.tld-fi-article-card:hover { transform: translateY(-4px); border-color: #8aa9c2; box-shadow: 0 16px 40px rgba(35, 79, 125, .15); text-decoration: none; }
.tld-fi-topic-card__image,
.tld-fi-article-card__image { position: relative; overflow: hidden; background: var(--tld-cream); }
.tld-fi-topic-card__image img,
.tld-fi-article-card__image img { width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: transform .35s ease; mix-blend-mode: multiply; }
.tld-fi-topic-card:hover img,
.tld-fi-article-card:hover img { transform: scale(1.035); }
.tld-fi-topic-card__image span,
.tld-fi-article-card__image span { position: absolute; top: 16px; left: 16px; padding: 7px 9px; color: #fff; background: rgba(14,95,138,.94); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tld-fi-topic-card__body { align-self: center; padding: 32px; }
.tld-fi-topic-card h3 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; line-height: 1.2; text-transform: none; }
.tld-fi-topic-card p,
.tld-fi-article-card p { color: var(--tld-muted); line-height: 1.65; }
.tld-fi-topic-card strong,
.tld-fi-article-card strong { display: inline-block; margin-top: 8px; color: var(--tld-blue); font-size: 13px; letter-spacing: .035em; }

.tld-fi-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: 25px 0 36px; color: #738896; font-size: 13px; }
.tld-fi-breadcrumb a { color: var(--tld-blue); font-weight: 700; }
.tld-fi-article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-bottom: 70px; }
.tld-fi-article-card { grid-template-rows: 230px 1fr; }
.tld-fi-article-card__body { padding: 26px 25px 28px; }
.tld-fi-article-card h2 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 23px; font-weight: 400; line-height: 1.28; text-transform: none; }

.tld-fi-article-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 42px; align-items: start; }
.tld-fi-toc { position: sticky; top: 24px; padding: 24px; background: var(--tld-cream); border-top: 3px solid var(--tld-gold); }
.tld-fi-toc > strong { display: block; margin-bottom: 15px; color: var(--tld-blue); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.tld-fi-toc ol { margin: 0; padding-left: 18px; }
.tld-fi-toc li { margin: 0 0 10px; color: #7a672f; font-size: 12px; line-height: 1.4; }
.tld-fi-toc a { color: #3b5362; }

.tld-fi-article-body { min-width: 0; padding: 42px 48px; background: #fff; border: 1px solid var(--tld-line); box-shadow: 0 12px 35px rgba(48, 40, 28, .06); }
.tld-fi-guide { color: #314a5a; font-size: 16px; line-height: 1.78; text-align: left; }
.tld-fi-guide .tld-fi-intro { margin: 0 0 30px; padding: 23px 25px; color: #1f405d; background: #eef4f8; border-left: 4px solid var(--tld-brand-blue); font-size: 17px; }
.tld-fi-guide h2 { margin: 44px 0 16px; color: var(--tld-ink); font-family: Georgia, serif; font-size: 28px; font-weight: 400; line-height: 1.25; text-transform: none; scroll-margin-top: 25px; }
.tld-fi-guide h2:first-of-type { margin-top: 20px; }
.tld-fi-guide p { margin: 0 0 18px; }
.tld-fi-guide ul,
.tld-fi-guide ol { margin: 0 0 25px; padding-left: 25px; }
.tld-fi-guide li { margin-bottom: 10px; }
.tld-fi-guide table { display: table; width: 100%; margin: 22px 0 34px; border-collapse: collapse; font-size: 14px; }
.tld-fi-guide th { padding: 14px; color: #fff; background: var(--tld-blue); border: 1px solid var(--tld-blue); text-align: left; }
.tld-fi-guide td { padding: 14px; border: 1px solid var(--tld-line); vertical-align: top; }
.tld-fi-guide tbody tr:nth-child(even) { background: #f7f9fd; }
.tld-fi-guide a { color: #24469c; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tld-fi-guide h3 { margin: 26px 0 10px; color: var(--tld-blue); font-family: Georgia, serif; font-size: 21px; font-weight: 400; line-height: 1.35; }
.tld-fi-decision { margin: 0 0 18px; padding: 22px 24px; background: #fffbef; border-left: 3px solid var(--tld-yellow); }
.tld-fi-decision h3 { margin-top: 0; }
.tld-fi-decision p:last-child { margin-bottom: 0; }
.tld-fi-formula { margin: 22px 0 26px; padding: 26px 28px; background: #eef4f8; border: 1px solid #c7d7e3; }
.tld-fi-formula h3 { margin-top: 0; }
.tld-fi-formula__line { padding: 16px 18px; color: #fff; background: var(--tld-blue); font-family: Georgia, serif; font-size: 19px; text-align: center; }
.tld-fi-product-case { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr); gap: 30px; align-items: center; margin: 24px 0 36px; padding: 24px; background: #fffefa; border: 1px solid var(--tld-line); }
.tld-fi-product-case > a { display: block; background: var(--tld-cream); }
.tld-fi-product-case img { display: block; width: 100%; max-height: 390px; object-fit: contain; padding: 16px; mix-blend-mode: multiply; }
.tld-fi-product-case figcaption h3 { margin-top: 0; }
.tld-fi-product-case figcaption p:last-child { margin-bottom: 0; }
.tld-fi-errors li::marker { color: #9e4a3d; }
.tld-fi-checklist { padding: 22px 28px 15px 46px !important; background: #f1f7f4; border: 1px solid #cfe0d7; }
.tld-fi-checklist li::marker { color: var(--tld-blue); }
.tld-fi-note { margin-top: 30px !important; padding: 20px 22px; background: var(--tld-cream); border-left: 3px solid var(--tld-gold); }

.tld-fi-cta { display: flex; justify-content: space-between; gap: 30px; align-items: center; margin: 50px 0 75px 302px; padding: 32px 36px; color: #fff; background: linear-gradient(135deg, #163e66, var(--tld-brand-blue)); border-top: 4px solid var(--tld-red); }
.tld-fi-cta span { color: #ffdc72; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tld-fi-cta h2 { margin: 8px 0 0; color: #fff; font-family: Georgia, serif; font-size: 25px; font-weight: 400; text-transform: none; }
.tld-fi-cta a { flex: 0 0 auto; padding: 13px 18px; color: var(--tld-blue); background: #fff; font-weight: 700; }

.tld-fi-hub a:focus-visible,
.tld-fi-topic-page a:focus-visible,
.tld-fi-article-shell a:focus-visible {
  outline: 3px solid var(--tld-yellow);
  outline-offset: 4px;
}

@media (max-width: 991px) {
  .tld-fi-hero { grid-template-columns: 1fr; }
  .tld-fi-hero__visual { min-height: 310px; max-height: 420px; }
  .tld-fi-hero__visual img { min-height: 310px; max-height: 420px; }
  .tld-fi-topic-grid { grid-template-columns: 1fr; }
  .tld-fi-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tld-fi-article-layout { grid-template-columns: 1fr; }
  .tld-fi-toc { position: static; }
  .tld-fi-cta { margin-left: 0; }
}

@media (max-width: 767px) {
  .tld-fi-guide-page #content { padding-left: 14px; padding-right: 14px; }
  .tld-fi-hero__copy { padding: 40px 28px; }
  .tld-fi-hero h1 { font-size: 38px; }
  .tld-fi-hero p { font-size: 15px; }
  .tld-fi-topic-card { grid-template-columns: 1fr; }
  .tld-fi-topic-card__image { min-height: 260px; }
  .tld-fi-article-grid { grid-template-columns: 1fr; }
  .tld-fi-article-body { padding: 28px 20px; }
  .tld-fi-guide { font-size: 15px; }
  .tld-fi-guide h2 { font-size: 24px; }
  .tld-fi-guide table { display: block; overflow-x: auto; }
  .tld-fi-product-case { grid-template-columns: 1fr; padding: 18px; }
  .tld-fi-formula { padding: 20px; }
  .tld-fi-formula__line { font-size: 17px; }
  .tld-fi-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}
